ttls chbind: update VSA to use
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 SED
835 LN_S
836 ECHO
837 AR
838 STRIP
839 DSYMUTIL
840 NMEDIT
841 CXXCPP
842 F77
843 FFLAGS
844 ac_ct_F77
845 logdir
846 radacctdir
847 raddbdir
848 PERL
849 SNMPGET
850 SNMPWALK
851 RUSERS
852 ACLOCAL
853 AUTOCONF
854 AUTOHEADER
855 LOCATE
856 DIRNAME
857 LIBREADLINE
858 REGEX
859 REGEX_EXTENDED
860 OPENSSL_INCLUDE
861 OPENSSL_LIBS
862 PCAP_LIBS
863 LIBPREFIX
864 CRYPTLIB
865 HOSTINFO
866 LIBLTDL
867 INCLTDL
868 subdirs
869 MODULES
870 INSTALLSTRIP
871 USE_SHARED_LIBS
872 USE_STATIC_LIBS
873 STATIC_MODULES
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
876 RADIUSD_VERSION
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP
892 CXXCPP
893 F77
894 FFLAGS'
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462   cat <<\_ACEOF
1463
1464 Optional Features:
1465   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467   --disable-largefile     omit support for large files
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-static[=PKGS]  build static libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1474   --enable-developer               Enables features of interest to developers.
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1480   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-tags[=TAGS]      include additional configurations [automatic]
1485   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1486   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1487   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1488   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1489   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1490   --with-threads          Use threads, if available.  (default=yes)
1491   --with-vmps             Compile in VMPS support. (default=yes)
1492   --with-dhcp             Compile in DHCP support. (default=yes)
1493   --with-static-modules=QUOTED-MODULE-LIST
1494  --with-modules=QUOTED-MODULE-LIST
1495   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1496   --with-openssl                   Use OpenSSL. (default=yes)
1497   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1498   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1499   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1500   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1501   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CXX         C++ compiler command
1512   CXXFLAGS    C++ compiler flags
1513   CPP         C preprocessor
1514   CXXCPP      C++ preprocessor
1515   F77         Fortran 77 compiler command
1516   FFLAGS      Fortran 77 compiler flags
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" || continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for guested configure.
1565     if test -f "$ac_srcdir/configure.gnu"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568     elif test -f "$ac_srcdir/configure"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure" --help=recursive
1571     else
1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573     fi || ac_status=$?
1574     cd "$ac_pwd" || { ac_status=$?; break; }
1575   done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580   cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.61
1583
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1594
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61.  Invocation command line was
1597
1598   $ $0 $@
1599
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1607
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616
1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624
1625 _ASUNAME
1626
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1635
1636 } >&5
1637
1638 cat >&5 <<_ACEOF
1639
1640
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1644
1645 _ACEOF
1646
1647
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659   for ac_arg
1660   do
1661     case $ac_arg in
1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664     | -silent | --silent | --silen | --sile | --sil)
1665       continue ;;
1666     *\'*)
1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668     esac
1669     case $ac_pass in
1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671     2)
1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673       if test $ac_must_keep_next = true; then
1674         ac_must_keep_next=false # Got value, back to normal.
1675       else
1676         case $ac_arg in
1677           *=* | --config-cache | -C | -disable-* | --disable-* \
1678           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680           | -with-* | --with-* | -without-* | --without-* | --x)
1681             case "$ac_configure_args0 " in
1682               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683             esac
1684             ;;
1685           -* ) ac_must_keep_next=true ;;
1686         esac
1687       fi
1688       ac_configure_args="$ac_configure_args '$ac_arg'"
1689       ;;
1690     esac
1691   done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log.  We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702   # Save into config.log some information that might help in debugging.
1703   {
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711     echo
1712     # The following way of writing the cache mishandles newlines in values,
1713 (
1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715     eval ac_val=\$$ac_var
1716     case $ac_val in #(
1717     *${as_nl}*)
1718       case $ac_var in #(
1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721       esac
1722       case $ac_var in #(
1723       _ | IFS | as_nl) ;; #(
1724       *) $as_unset $ac_var ;;
1725       esac ;;
1726     esac
1727   done
1728   (set) 2>&1 |
1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730     *${as_nl}ac_space=\ *)
1731       sed -n \
1732         "s/'\''/'\''\\\\'\'''\''/g;
1733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734       ;; #(
1735     *)
1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737       ;;
1738     esac |
1739     sort
1740 )
1741     echo
1742
1743     cat <<\_ASBOX
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1747 _ASBOX
1748     echo
1749     for ac_var in $ac_subst_vars
1750     do
1751       eval ac_val=\$$ac_var
1752       case $ac_val in
1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754       esac
1755       echo "$ac_var='\''$ac_val'\''"
1756     done | sort
1757     echo
1758
1759     if test -n "$ac_subst_files"; then
1760       cat <<\_ASBOX
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1764 _ASBOX
1765       echo
1766       for ac_var in $ac_subst_files
1767       do
1768         eval ac_val=\$$ac_var
1769         case $ac_val in
1770         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771         esac
1772         echo "$ac_var='\''$ac_val'\''"
1773       done | sort
1774       echo
1775     fi
1776
1777     if test -s confdefs.h; then
1778       cat <<\_ASBOX
1779 ## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##
1782 _ASBOX
1783       echo
1784       cat confdefs.h
1785       echo
1786     fi
1787     test "$ac_signal" != 0 &&
1788       echo "$as_me: caught signal $ac_signal"
1789     echo "$as_me: exit $exit_status"
1790   } >&5
1791   rm -f core *.core core.conftest.* &&
1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793     exit $exit_status
1794 ' 0
1795 for ac_signal in 1 2 13 15; do
1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 done
1798 ac_signal=0
1799
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1802
1803 # Predefined preprocessor variables.
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 _ACEOF
1828
1829
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833   set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 else
1837   set x "$ac_default_prefix/share/config.site" \
1838         "$ac_default_prefix/etc/config.site"
1839 fi
1840 shift
1841 for ac_site_file
1842 do
1843   if test -r "$ac_site_file"; then
1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846     sed 's/^/| /' "$ac_site_file" >&5
1847     . "$ac_site_file"
1848   fi
1849 done
1850
1851 if test -r "$cache_file"; then
1852   # Some versions of bash will fail to source /dev/null (special
1853   # files actually), so we avoid doing that.
1854   if test -f "$cache_file"; then
1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1857     case $cache_file in
1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859       *)                      . "./$cache_file";;
1860     esac
1861   fi
1862 else
1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1865   >$cache_file
1866 fi
1867
1868 # Check that the precious variables saved in the cache have kept the same
1869 # value.
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873   eval ac_new_set=\$ac_env_${ac_var}_set
1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875   eval ac_new_val=\$ac_env_${ac_var}_value
1876   case $ac_old_set,$ac_new_set in
1877     set,)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,set)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,);;
1886     *)
1887       if test "x$ac_old_val" != "x$ac_new_val"; then
1888         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
1892         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1893 echo "$as_me:   current value: $ac_new_val" >&2;}
1894         ac_cache_corrupted=:
1895       fi;;
1896   esac
1897   # Pass precious variables to config.status.
1898   if test "$ac_new_set" = set; then
1899     case $ac_new_val in
1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     *) ac_arg=$ac_var=$ac_new_val ;;
1902     esac
1903     case " $ac_configure_args " in
1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906     esac
1907   fi
1908 done
1909 if $ac_cache_corrupted; then
1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914    { (exit 1); exit 1; }; }
1915 fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933 ac_ext=c
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938
1939
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1941
1942
1943 RADIUSD_VERSION=`cat VERSION`
1944 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1945 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1946 PACKAGE=freeradius
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968   IFS=$as_save_IFS
1969   test -z "$as_dir" && as_dir=.
1970   for ac_exec_ext in '' $ac_executable_extensions; do
1971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984   { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1986 else
1987   { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991
1992 fi
1993 if test -z "$ac_cv_prog_CC"; then
1994   ac_ct_CC=$CC
1995   # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012     ac_cv_prog_ac_ct_CC="gcc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018 IFS=$as_save_IFS
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 else
2027   { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2029 fi
2030
2031   if test "x$ac_ct_CC" = x; then
2032     CC=""
2033   else
2034     case $cross_compiling:$ac_tool_warned in
2035 yes:)
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet.  If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2043 esac
2044     CC=$ac_ct_CC
2045   fi
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051           if test -n "$ac_tool_prefix"; then
2052     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   fi
2090 fi
2091 if test -z "$CC"; then
2092   # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$CC"; then
2100   ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102   ac_prog_rejected=no
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111        ac_prog_rejected=yes
2112        continue
2113      fi
2114     ac_cv_prog_CC="cc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 if test $ac_prog_rejected = yes; then
2123   # We found a bogon in the path, so make sure we never use it.
2124   set dummy $ac_cv_prog_CC
2125   shift
2126   if test $# != 0; then
2127     # We chose a different compiler from the bogus one.
2128     # However, it has the same basename, so the bogon will be chosen
2129     # first if we set CC to just the basename; use the full file name.
2130     shift
2131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132   fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138   { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl.exe
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188     test -n "$CC" && break
2189   done
2190 fi
2191 if test -z "$CC"; then
2192   ac_ct_CC=$CC
2193   for ac_prog in cl.exe
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$ac_ct_CC"; then
2203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_ac_ct_CC="$ac_prog"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 else
2227   { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 fi
2230
2231
2232   test -n "$ac_ct_CC" && break
2233 done
2234
2235   if test "x$ac_ct_CC" = x; then
2236     CC=""
2237   else
2238     case $cross_compiling:$ac_tool_warned in
2239 yes:)
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet.  If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet.  If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2247 esac
2248     CC=$ac_ct_CC
2249   fi
2250 fi
2251
2252 fi
2253
2254
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_compiler --version >&5") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280   (eval "$ac_compiler -v >&5") 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290   (eval "$ac_compiler -V >&5") 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 #
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort.  b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 #
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions.  Remove them first so a
2326 # subsequent execution test works.
2327 ac_rmfiles=
2328 for ac_file in $ac_files
2329 do
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2333   esac
2334 done
2335 rm -f $ac_rmfiles
2336
2337 if { (ac_try="$ac_link_default"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_link_default") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2351 # Autoconf.
2352 for ac_file in $ac_files ''
2353 do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2357         ;;
2358     [ab].out )
2359         # We found the default executable, but exeext='' is most
2360         # certainly right.
2361         break;;
2362     *.* )
2363         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364         then :; else
2365            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366         fi
2367         # We set ac_cv_exeext here because the later test for it is not
2368         # safe: cross compilers may not add the suffix if given an `-o'
2369         # argument, so we may need to know it at that point already.
2370         # Even if this section looks crufty: it has the advantage of
2371         # actually working.
2372         break;;
2373     * )
2374         break;;
2375   esac
2376 done
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2378
2379 else
2380   ac_file=''
2381 fi
2382
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393    { (exit 77); exit 77; }; }
2394 fi
2395
2396 ac_exeext=$ac_cv_exeext
2397
2398 # Check that the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405   if { ac_try='./$ac_file'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415     cross_compiling=no
2416   else
2417     if test "$cross_compiling" = maybe; then
2418         cross_compiling=yes
2419     else
2420         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427     fi
2428   fi
2429 fi
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run.  If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2441
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_link") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; then
2454   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459   test -f "$ac_file" || continue
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   for ac_file in conftest.o conftest.obj conftest.*; do
2514   test -f "$ac_file" || continue;
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } && {
2575          test -z "$ac_c_werror_flag" ||
2576          test ! -s conftest.err
2577        } && test -s conftest.$ac_objext; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_compiler_gnu=no
2584 fi
2585
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_save_c_werror_flag=$ac_c_werror_flag
2601    ac_c_werror_flag=yes
2602    ac_cv_prog_cc_g=no
2603    CFLAGS="-g"
2604    cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compile") 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } && {
2633          test -z "$ac_c_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest.$ac_objext; then
2636   ac_cv_prog_cc_g=yes
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641         CFLAGS=""
2642       cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } && {
2671          test -z "$ac_c_werror_flag" ||
2672          test ! -s conftest.err
2673        } && test -s conftest.$ac_objext; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679         ac_c_werror_flag=$ac_save_c_werror_flag
2680          CFLAGS="-g"
2681          cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_cv_prog_cc_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728    ac_c_werror_flag=$ac_save_c_werror_flag
2729 fi
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733   CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735   if test "$GCC" = yes; then
2736     CFLAGS="-g -O2"
2737   else
2738     CFLAGS="-g"
2739   fi
2740 else
2741   if test "$GCC" = yes; then
2742     CFLAGS="-O2"
2743   else
2744     CFLAGS=
2745   fi
2746 fi
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_cv_prog_cc_c89=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768      char **p;
2769      int i;
2770 {
2771   return p[i];
2772 }
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2774 {
2775   char *s;
2776   va_list v;
2777   va_start (v,p);
2778   s = g (p, va_arg (v,int));
2779   va_end (v);
2780   return s;
2781 }
2782
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2784    function prototypes and stuff, but not '\xHH' hex character constants.
2785    These don't provoke an error unfortunately, instead are silently treated
2786    as 'x'.  The following induces an error, until -std is added to get
2787    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2788    array size at least.  It's necessary to write '\x00'==0 to get something
2789    that's true only with -std.  */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793    inside strings and character constants.  */
2794 #define FOO(x) 'x'
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 int argc;
2802 char **argv;
2803 int
2804 main ()
2805 {
2806 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 do
2814   CC="$ac_save_CC $ac_arg"
2815   rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819   *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   ac_cv_prog_cc_c89=$ac_arg
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841   test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 done
2843 rm -f conftest.$ac_ext
2844 CC=$ac_save_CC
2845
2846 fi
2847 # AC_CACHE_VAL
2848 case "x$ac_cv_prog_cc_c89" in
2849   x)
2850     { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2852   xno)
2853     { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2855   *)
2856     CC="$CC $ac_cv_prog_cc_c89"
2857     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2859 esac
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868 ac_ext=cpp
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 if test -z "$CXX"; then
2874   if test -n "$CCC"; then
2875     CXX=$CCC
2876   else
2877     if test -n "$ac_tool_prefix"; then
2878   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2879   do
2880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CXX+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$CXX"; then
2888   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CXX=$ac_cv_prog_CXX
2908 if test -n "$CXX"; then
2909   { echo "$as_me:$LINENO: result: $CXX" >&5
2910 echo "${ECHO_T}$CXX" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917     test -n "$CXX" && break
2918   done
2919 fi
2920 if test -z "$CXX"; then
2921   ac_ct_CXX=$CXX
2922   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   if test -n "$ac_ct_CXX"; then
2932   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CXX="$ac_prog"
2942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2952 if test -n "$ac_ct_CXX"; then
2953   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2954 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2955 else
2956   { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960
2961   test -n "$ac_ct_CXX" && break
2962 done
2963
2964   if test "x$ac_ct_CXX" = x; then
2965     CXX="g++"
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet.  If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet.  If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977     CXX=$ac_ct_CXX
2978   fi
2979 fi
2980
2981   fi
2982 fi
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (ac_try="$ac_compiler --version >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compiler --version >&5") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996 { (ac_try="$ac_compiler -v >&5"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compiler -v >&5") 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }
3006 { (ac_try="$ac_compiler -V >&5"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compiler -V >&5") 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }
3016
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032 #ifndef __GNUC__
3033        choke me
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } && {
3054          test -z "$ac_cxx_werror_flag" ||
3055          test ! -s conftest.err
3056        } && test -s conftest.$ac_objext; then
3057   ac_compiler_gnu=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062         ac_compiler_gnu=no
3063 fi
3064
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067
3068 fi
3069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3071 GXX=`test $ac_compiler_gnu = yes && echo yes`
3072 ac_test_CXXFLAGS=${CXXFLAGS+set}
3073 ac_save_CXXFLAGS=$CXXFLAGS
3074 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3075 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cxx_g+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3080    ac_cxx_werror_flag=yes
3081    ac_cv_prog_cxx_g=no
3082    CXXFLAGS="-g"
3083    cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_cxx_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   ac_cv_prog_cxx_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         CXXFLAGS=""
3121       cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } && {
3150          test -z "$ac_cxx_werror_flag" ||
3151          test ! -s conftest.err
3152        } && test -s conftest.$ac_objext; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159          CXXFLAGS="-g"
3160          cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_cxx_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest.$ac_objext; then
3192   ac_cv_prog_cxx_g=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 fi
3209 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3210 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3211 if test "$ac_test_CXXFLAGS" = set; then
3212   CXXFLAGS=$ac_save_CXXFLAGS
3213 elif test $ac_cv_prog_cxx_g = yes; then
3214   if test "$GXX" = yes; then
3215     CXXFLAGS="-g -O2"
3216   else
3217     CXXFLAGS="-g"
3218   fi
3219 else
3220   if test "$GXX" = yes; then
3221     CXXFLAGS="-O2"
3222   else
3223     CXXFLAGS=
3224   fi
3225 fi
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243   CPP=
3244 fi
3245 if test -z "$CPP"; then
3246   if test "${ac_cv_prog_CPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CPP needs to be expanded
3250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272                      Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null && {
3287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        }; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298
3299 rm -f conftest.err conftest.$ac_ext
3300
3301   # OK, works on sane cases.  Now check whether nonexistent headers
3302   # can be detected and how.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null && {
3324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3325          test ! -s conftest.err
3326        }; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CPP=$CPP
3349
3350 fi
3351   CPP=$ac_cv_prog_CPP
3352 else
3353   ac_cv_prog_CPP=$CPP
3354 fi
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null && {
3392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393          test ! -s conftest.err
3394        }; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406   # OK, works on sane cases.  Now check whether nonexistent headers
3407   # can be detected and how.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } >/dev/null && {
3429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430          test ! -s conftest.err
3431        }; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   # Extract the first word of "grep ggrep" to use in msg output
3471 if test -z "$GREP"; then
3472 set dummy grep ggrep; ac_prog_name=$2
3473 if test "${ac_cv_path_GREP+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_prog in grep ggrep; do
3484   for ac_exec_ext in '' $ac_executable_extensions; do
3485     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3487     # Check for GNU ac_path_GREP and select it if it is found.
3488   # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3490 *GNU*)
3491   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3492 *)
3493   ac_count=0
3494   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3495   while :
3496   do
3497     cat "conftest.in" "conftest.in" >"conftest.tmp"
3498     mv "conftest.tmp" "conftest.in"
3499     cp "conftest.in" "conftest.nl"
3500     echo 'GREP' >> "conftest.nl"
3501     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503     ac_count=`expr $ac_count + 1`
3504     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505       # Best one so far, save it but keep looking for a better one
3506       ac_cv_path_GREP="$ac_path_GREP"
3507       ac_path_GREP_max=$ac_count
3508     fi
3509     # 10*(2^10) chars as input seems more than enough
3510     test $ac_count -gt 10 && break
3511   done
3512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 esac
3514
3515
3516     $ac_path_GREP_found && break 3
3517   done
3518 done
3519
3520 done
3521 IFS=$as_save_IFS
3522
3523
3524 fi
3525
3526 GREP="$ac_cv_path_GREP"
3527 if test -z "$GREP"; then
3528   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3530    { (exit 1); exit 1; }; }
3531 fi
3532
3533 else
3534   ac_cv_path_GREP=$GREP
3535 fi
3536
3537
3538 fi
3539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3541  GREP="$ac_cv_path_GREP"
3542
3543
3544 { echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3546 if test "${ac_cv_path_EGREP+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3550    then ac_cv_path_EGREP="$GREP -E"
3551    else
3552      # Extract the first word of "egrep" to use in msg output
3553 if test -z "$EGREP"; then
3554 set dummy egrep; ac_prog_name=$2
3555 if test "${ac_cv_path_EGREP+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_path_EGREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_prog in egrep; do
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569     # Check for GNU ac_path_EGREP and select it if it is found.
3570   # Check for GNU $ac_path_EGREP
3571 case `"$ac_path_EGREP" --version 2>&1` in
3572 *GNU*)
3573   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3574 *)
3575   ac_count=0
3576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3577   while :
3578   do
3579     cat "conftest.in" "conftest.in" >"conftest.tmp"
3580     mv "conftest.tmp" "conftest.in"
3581     cp "conftest.in" "conftest.nl"
3582     echo 'EGREP' >> "conftest.nl"
3583     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585     ac_count=`expr $ac_count + 1`
3586     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587       # Best one so far, save it but keep looking for a better one
3588       ac_cv_path_EGREP="$ac_path_EGREP"
3589       ac_path_EGREP_max=$ac_count
3590     fi
3591     # 10*(2^10) chars as input seems more than enough
3592     test $ac_count -gt 10 && break
3593   done
3594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 esac
3596
3597
3598     $ac_path_EGREP_found && break 3
3599   done
3600 done
3601
3602 done
3603 IFS=$as_save_IFS
3604
3605
3606 fi
3607
3608 EGREP="$ac_cv_path_EGREP"
3609 if test -z "$EGREP"; then
3610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3612    { (exit 1); exit 1; }; }
3613 fi
3614
3615 else
3616   ac_cv_path_EGREP=$EGREP
3617 fi
3618
3619
3620    fi
3621 fi
3622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3624  EGREP="$ac_cv_path_EGREP"
3625
3626
3627
3628 { echo "$as_me:$LINENO: checking for AIX" >&5
3629 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #ifdef _AIX
3637   yes
3638 #endif
3639
3640 _ACEOF
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642   $EGREP "yes" >/dev/null 2>&1; then
3643   { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _ALL_SOURCE 1
3647 _ACEOF
3648
3649 else
3650   { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3652 fi
3653 rm -f conftest*
3654
3655
3656
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663     ac_pattern="Autoconf.*'x'"
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <sgtty.h>
3671 Autoconf TIOCGETP
3672 _ACEOF
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675   ac_cv_prog_gcc_traditional=yes
3676 else
3677   ac_cv_prog_gcc_traditional=no
3678 fi
3679 rm -f conftest*
3680
3681
3682   if test $ac_cv_prog_gcc_traditional = no; then
3683     cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 #include <termio.h>
3690 Autoconf TCGETA
3691 _ACEOF
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694   ac_cv_prog_gcc_traditional=yes
3695 fi
3696 rm -f conftest*
3697
3698   fi
3699 fi
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3702   if test $ac_cv_prog_gcc_traditional = yes; then
3703     CC="$CC -traditional"
3704   fi
3705 fi
3706
3707 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3708 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_suncc+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   cat > conftest.c <<EOF
3713 #ifdef __SUNPRO_C
3714   yes;
3715 #endif
3716 EOF
3717 if { ac_try='${CC-cc} -E conftest.c'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3723   ac_cv_prog_suncc=yes
3724 else
3725   ac_cv_prog_suncc=no
3726 fi
3727 fi
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3729 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_RANLIB+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$RANLIB"; then
3739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6; }
3762 else
3763   { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3765 fi
3766
3767
3768 fi
3769 if test -z "$ac_cv_prog_RANLIB"; then
3770   ac_ct_RANLIB=$RANLIB
3771   # Extract the first word of "ranlib", so it can be a program name with args.
3772 set dummy ranlib; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if test -n "$ac_ct_RANLIB"; then
3779   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788     ac_cv_prog_ac_ct_RANLIB="ranlib"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3799 if test -n "$ac_ct_RANLIB"; then
3800   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3802 else
3803   { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 fi
3806
3807   if test "x$ac_ct_RANLIB" = x; then
3808     RANLIB=":"
3809   else
3810     case $cross_compiling:$ac_tool_warned in
3811 yes:)
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet.  If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet.  If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820     RANLIB=$ac_ct_RANLIB
3821   fi
3822 else
3823   RANLIB="$ac_cv_prog_RANLIB"
3824 fi
3825
3826
3827 if test "x$GCC" = "xyes"; then
3828     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3829 fi
3830
3831 # Check whether --enable-largefile was given.
3832 if test "${enable_largefile+set}" = set; then
3833   enableval=$enable_largefile;
3834 fi
3835
3836 if test "$enable_largefile" != no; then
3837
3838   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3839 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3840 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   ac_cv_sys_largefile_CC=no
3844      if test "$GCC" != yes; then
3845        ac_save_CC=$CC
3846        while :; do
3847          # IRIX 6.2 and later do not support large files by default,
3848          # so use the C compiler's -n32 option if that helps.
3849          cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <sys/types.h>
3856  /* Check that off_t can represent 2**63 - 1 correctly.
3857     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3858     since some C++ compilers masquerading as C compilers
3859     incorrectly reject 9223372036854775807.  */
3860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3861   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3862                        && LARGE_OFF_T % 2147483647 == 1)
3863                       ? 1 : -1];
3864 int
3865 main ()
3866 {
3867
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872          rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879   (eval "$ac_compile") 2>conftest.er1
3880   ac_status=$?
3881   grep -v '^ *+' conftest.er1 >conftest.err
3882   rm -f conftest.er1
3883   cat conftest.err >&5
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } && {
3886          test -z "$ac_c_werror_flag" ||
3887          test ! -s conftest.err
3888        } && test -s conftest.$ac_objext; then
3889   break
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894
3895 fi
3896
3897 rm -f core conftest.err conftest.$ac_objext
3898          CC="$CC -n32"
3899          rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_compile") 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } && {
3913          test -z "$ac_c_werror_flag" ||
3914          test ! -s conftest.err
3915        } && test -s conftest.$ac_objext; then
3916   ac_cv_sys_largefile_CC=' -n32'; break
3917 else
3918   echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921
3922 fi
3923
3924 rm -f core conftest.err conftest.$ac_objext
3925          break
3926        done
3927        CC=$ac_save_CC
3928        rm -f conftest.$ac_ext
3929     fi
3930 fi
3931 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3932 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3933   if test "$ac_cv_sys_largefile_CC" != no; then
3934     CC=$CC$ac_cv_sys_largefile_CC
3935   fi
3936
3937   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3938 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3939 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   while :; do
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <sys/types.h>
3950  /* Check that off_t can represent 2**63 - 1 correctly.
3951     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952     since some C++ compilers masquerading as C compilers
3953     incorrectly reject 9223372036854775807.  */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956                        && LARGE_OFF_T % 2147483647 == 1)
3957                       ? 1 : -1];
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_compile") 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } && {
3980          test -z "$ac_c_werror_flag" ||
3981          test ! -s conftest.err
3982        } && test -s conftest.$ac_objext; then
3983   ac_cv_sys_file_offset_bits=no; break
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988
3989 fi
3990
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992   cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998 #define _FILE_OFFSET_BITS 64
3999 #include <sys/types.h>
4000  /* Check that off_t can represent 2**63 - 1 correctly.
4001     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4002     since some C++ compilers masquerading as C compilers
4003     incorrectly reject 9223372036854775807.  */
4004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4005   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4006                        && LARGE_OFF_T % 2147483647 == 1)
4007                       ? 1 : -1];
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023   (eval "$ac_compile") 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } && {
4030          test -z "$ac_c_werror_flag" ||
4031          test ! -s conftest.err
4032        } && test -s conftest.$ac_objext; then
4033   ac_cv_sys_file_offset_bits=64; break
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038
4039 fi
4040
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042   ac_cv_sys_file_offset_bits=unknown
4043   break
4044 done
4045 fi
4046 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4047 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4048 case $ac_cv_sys_file_offset_bits in #(
4049   no | unknown) ;;
4050   *)
4051 cat >>confdefs.h <<_ACEOF
4052 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4053 _ACEOF
4054 ;;
4055 esac
4056 rm -f conftest*
4057   if test $ac_cv_sys_file_offset_bits = unknown; then
4058     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4059 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4060 if test "${ac_cv_sys_large_files+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   while :; do
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #include <sys/types.h>
4071  /* Check that off_t can represent 2**63 - 1 correctly.
4072     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4073     since some C++ compilers masquerading as C compilers
4074     incorrectly reject 9223372036854775807.  */
4075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4076   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4077                        && LARGE_OFF_T % 2147483647 == 1)
4078                       ? 1 : -1];
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_compile") 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } && {
4101          test -z "$ac_c_werror_flag" ||
4102          test ! -s conftest.err
4103        } && test -s conftest.$ac_objext; then
4104   ac_cv_sys_large_files=no; break
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #define _LARGE_FILES 1
4120 #include <sys/types.h>
4121  /* Check that off_t can represent 2**63 - 1 correctly.
4122     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4123     since some C++ compilers masquerading as C compilers
4124     incorrectly reject 9223372036854775807.  */
4125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4126   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4127                        && LARGE_OFF_T % 2147483647 == 1)
4128                       ? 1 : -1];
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && {
4151          test -z "$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        } && test -s conftest.$ac_objext; then
4154   ac_cv_sys_large_files=1; break
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163   ac_cv_sys_large_files=unknown
4164   break
4165 done
4166 fi
4167 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4168 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4169 case $ac_cv_sys_large_files in #(
4170   no | unknown) ;;
4171   *)
4172 cat >>confdefs.h <<_ACEOF
4173 #define _LARGE_FILES $ac_cv_sys_large_files
4174 _ACEOF
4175 ;;
4176 esac
4177 rm -f conftest*
4178   fi
4179 fi
4180
4181
4182 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4184 if test "${ac_cv_header_stdc+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <stdlib.h>
4194 #include <stdarg.h>
4195 #include <string.h>
4196 #include <float.h>
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_compile") 2>conftest.er1
4214   ac_status=$?
4215   grep -v '^ *+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } && {
4220          test -z "$ac_c_werror_flag" ||
4221          test ! -s conftest.err
4222        } && test -s conftest.$ac_objext; then
4223   ac_cv_header_stdc=yes
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228         ac_cv_header_stdc=no
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232
4233 if test $ac_cv_header_stdc = yes; then
4234   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <string.h>
4242
4243 _ACEOF
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245   $EGREP "memchr" >/dev/null 2>&1; then
4246   :
4247 else
4248   ac_cv_header_stdc=no
4249 fi
4250 rm -f conftest*
4251
4252 fi
4253
4254 if test $ac_cv_header_stdc = yes; then
4255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 #include <stdlib.h>
4263
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266   $EGREP "free" >/dev/null 2>&1; then
4267   :
4268 else
4269   ac_cv_header_stdc=no
4270 fi
4271 rm -f conftest*
4272
4273 fi
4274
4275 if test $ac_cv_header_stdc = yes; then
4276   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4277   if test "$cross_compiling" = yes; then
4278   :
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 #include <ctype.h>
4287 #include <stdlib.h>
4288 #if ((' ' & 0x0FF) == 0x020)
4289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291 #else
4292 # define ISLOWER(c) \
4293                    (('a' <= (c) && (c) <= 'i') \
4294                      || ('j' <= (c) && (c) <= 'r') \
4295                      || ('s' <= (c) && (c) <= 'z'))
4296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297 #endif
4298
4299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300 int
4301 main ()
4302 {
4303   int i;
4304   for (i = 0; i < 256; i++)
4305     if (XOR (islower (i), ISLOWER (i))
4306         || toupper (i) != TOUPPER (i))
4307       return 2;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest$ac_exeext
4312 if { (ac_try="$ac_link"
4313 case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_link") 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4322   { (case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_try") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; }; then
4331   :
4332 else
4333   echo "$as_me: program exited with status $ac_status" >&5
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ( exit $ac_status )
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4341 fi
4342
4343
4344 fi
4345 fi
4346 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4347 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4349
4350 cat >>confdefs.h <<\_ACEOF
4351 #define STDC_HEADERS 1
4352 _ACEOF
4353
4354 fi
4355
4356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367                   inttypes.h stdint.h unistd.h
4368 do
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 $ac_includes_default
4382
4383 #include <$ac_header>
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (ac_try="$ac_compile"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_compile") 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } && {
4399          test -z "$ac_c_werror_flag" ||
4400          test ! -s conftest.err
4401        } && test -s conftest.$ac_objext; then
4402   eval "$as_ac_Header=yes"
4403 else
4404   echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407         eval "$as_ac_Header=no"
4408 fi
4409
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 ac_res=`eval echo '${'$as_ac_Header'}'`
4413                { echo "$as_me:$LINENO: result: $ac_res" >&5
4414 echo "${ECHO_T}$ac_res" >&6; }
4415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4416   cat >>confdefs.h <<_ACEOF
4417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418 _ACEOF
4419
4420 fi
4421
4422 done
4423
4424
4425 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4426 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4427 if test "${ac_cv_c_bigendian+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   # See if sys/param.h defines the BYTE_ORDER macro.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 #include <sys/types.h>
4438 #include <sys/param.h>
4439
4440 int
4441 main ()
4442 {
4443 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4444         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4445  bogus endian macros
4446 #endif
4447
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_compile") 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } && {
4466          test -z "$ac_c_werror_flag" ||
4467          test ! -s conftest.err
4468        } && test -s conftest.$ac_objext; then
4469   # It does; now see whether it defined to BIG_ENDIAN or not.
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 #include <sys/types.h>
4477 #include <sys/param.h>
4478
4479 int
4480 main ()
4481 {
4482 #if BYTE_ORDER != BIG_ENDIAN
4483  not big endian
4484 #endif
4485
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (ac_try="$ac_compile"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_compile") 2>conftest.er1
4498   ac_status=$?
4499   grep -v '^ *+' conftest.er1 >conftest.err
4500   rm -f conftest.er1
4501   cat conftest.err >&5
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } && {
4504          test -z "$ac_c_werror_flag" ||
4505          test ! -s conftest.err
4506        } && test -s conftest.$ac_objext; then
4507   ac_cv_c_bigendian=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512         ac_cv_c_bigendian=no
4513 fi
4514
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520         # It does not; compile a test program.
4521 if test "$cross_compiling" = yes; then
4522   # try to guess the endianness by grepping values into an object file
4523   ac_cv_c_bigendian=unknown
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4531 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4532 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4533 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4534 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4535 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4536 int
4537 main ()
4538 {
4539  _ascii (); _ebcdic ();
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (ac_try="$ac_compile"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_compile") 2>conftest.er1
4552   ac_status=$?
4553   grep -v '^ *+' conftest.er1 >conftest.err
4554   rm -f conftest.er1
4555   cat conftest.err >&5
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } && {
4558          test -z "$ac_c_werror_flag" ||
4559          test ! -s conftest.err
4560        } && test -s conftest.$ac_objext; then
4561   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4562   ac_cv_c_bigendian=yes
4563 fi
4564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4565   if test "$ac_cv_c_bigendian" = unknown; then
4566     ac_cv_c_bigendian=no
4567   else
4568     # finding both strings is unlikely to happen, but who knows?
4569     ac_cv_c_bigendian=unknown
4570   fi
4571 fi
4572 else
4573   echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576
4577 fi
4578
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 else
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 $ac_includes_default
4588 int
4589 main ()
4590 {
4591
4592   /* Are we little or big endian?  From Harbison&Steele.  */
4593   union
4594   {
4595     long int l;
4596     char c[sizeof (long int)];
4597   } u;
4598   u.l = 1;
4599   return u.c[sizeof (long int) - 1] == 1;
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest$ac_exeext
4606 if { (ac_try="$ac_link"
4607 case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_link") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616   { (case "(($ac_try" in
4617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618   *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621   (eval "$ac_try") 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   ac_cv_c_bigendian=no
4626 else
4627   echo "$as_me: program exited with status $ac_status" >&5
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ( exit $ac_status )
4632 ac_cv_c_bigendian=yes
4633 fi
4634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635 fi
4636
4637
4638 fi
4639
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 fi
4642 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4643 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4644 case $ac_cv_c_bigendian in
4645   yes)
4646
4647 cat >>confdefs.h <<\_ACEOF
4648 #define WORDS_BIGENDIAN 1
4649 _ACEOF
4650  ;;
4651   no)
4652      ;;
4653   *)
4654     { { echo "$as_me:$LINENO: error: unknown endianness
4655 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4656 echo "$as_me: error: unknown endianness
4657 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4658    { (exit 1); exit 1; }; } ;;
4659 esac
4660
4661
4662 # Extract the first word of "gmake", so it can be a program name with args.
4663 set dummy gmake; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_GMAKE+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   if test -n "$GMAKE"; then
4670   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679     ac_cv_prog_GMAKE="yes"
4680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4688 fi
4689 fi
4690 GMAKE=$ac_cv_prog_GMAKE
4691 if test -n "$GMAKE"; then
4692   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4693 echo "${ECHO_T}$GMAKE" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700 if test $GMAKE = no; then
4701   # Extract the first word of "make", so it can be a program name with args.
4702 set dummy make; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_path_MAKE+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   case $MAKE in
4709   [\\/]* | ?:[\\/]*)
4710   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4711   ;;
4712   *)
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4729   ;;
4730 esac
4731 fi
4732 MAKE=$ac_cv_path_MAKE
4733 if test -n "$MAKE"; then
4734   { echo "$as_me:$LINENO: result: $MAKE" >&5
4735 echo "${ECHO_T}$MAKE" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742 else
4743   # Extract the first word of "gmake", so it can be a program name with args.
4744 set dummy gmake; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_path_MAKE+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   case $MAKE in
4751   [\\/]* | ?:[\\/]*)
4752   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4753   ;;
4754   *)
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4771   ;;
4772 esac
4773 fi
4774 MAKE=$ac_cv_path_MAKE
4775 if test -n "$MAKE"; then
4776   { echo "$as_me:$LINENO: result: $MAKE" >&5
4777 echo "${ECHO_T}$MAKE" >&6; }
4778 else
4779   { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781 fi
4782
4783
4784 fi
4785 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4786 if test -z "$makever"; then
4787   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4788                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4789 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4790                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4791    { (exit 1); exit 1; }; }
4792 fi
4793
4794
4795 # Check whether --with-system-libltdl was given.
4796 if test "${with_system_libltdl+set}" = set; then
4797   withval=$with_system_libltdl;
4798 LIBLTDL="-lltdl"
4799 INCLTDL=-DWITH_SYSTEM_LTDL
4800 LTDL_SUBDIRS=
4801
4802 else
4803
4804 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4805   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4806 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4807 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   ac_check_lib_save_LIBS=$LIBS
4811 LIBS="-lltdl  $LIBS"
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818
4819 /* Override any GCC internal prototype to avoid an error.
4820    Use char because int might match the return type of a GCC
4821    builtin and then its argument prototype would still apply.  */
4822 #ifdef __cplusplus
4823 extern "C"
4824 #endif
4825 char lt_dlinit ();
4826 int
4827 main ()
4828 {
4829 return lt_dlinit ();
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (ac_try="$ac_link"
4836 case "(($ac_try" in
4837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838   *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841   (eval "$ac_link") 2>conftest.er1
4842   ac_status=$?
4843   grep -v '^ *+' conftest.er1 >conftest.err
4844   rm -f conftest.er1
4845   cat conftest.err >&5
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); } && {
4848          test -z "$ac_c_werror_flag" ||
4849          test ! -s conftest.err
4850        } && test -s conftest$ac_exeext &&
4851        $as_test_x conftest$ac_exeext; then
4852   ac_cv_lib_ltdl_lt_dlinit=yes
4853 else
4854   echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857         ac_cv_lib_ltdl_lt_dlinit=no
4858 fi
4859
4860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4861       conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4863 fi
4864 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4865 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4866 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4867   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4868 else
4869   if test x"$enable_ltdl_install" = xno; then
4870      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4871 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4872    else
4873      enable_ltdl_install=yes
4874    fi
4875
4876 fi
4877
4878   if test x"$enable_ltdl_install" = x"yes"; then
4879     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4880     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4881     LTDLINCL='-I${top_srcdir}/''libltdl'
4882   else
4883     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4884     LIBLTDL="-lltdl"
4885     LTDLINCL=
4886   fi
4887   # For backwards non-gettext consistent compatibility...
4888   INCLTDL="$LTDLINCL"
4889
4890
4891 if test x"$enable_ltdl_install" = x"yes"; then
4892   LTDL_SUBDIRS=libltdl
4893 fi
4894
4895 fi
4896
4897
4898
4899 # Check whether --enable-shared was given.
4900 if test "${enable_shared+set}" = set; then
4901   enableval=$enable_shared; p=${PACKAGE-default}
4902     case $enableval in
4903     yes) enable_shared=yes ;;
4904     no) enable_shared=no ;;
4905     *)
4906       enable_shared=no
4907       # Look at the argument we got.  We use all the common list separators.
4908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4909       for pkg in $enableval; do
4910         IFS="$lt_save_ifs"
4911         if test "X$pkg" = "X$p"; then
4912           enable_shared=yes
4913         fi
4914       done
4915       IFS="$lt_save_ifs"
4916       ;;
4917     esac
4918 else
4919   enable_shared=yes
4920 fi
4921
4922
4923 # Check whether --enable-static was given.
4924 if test "${enable_static+set}" = set; then
4925   enableval=$enable_static; p=${PACKAGE-default}
4926     case $enableval in
4927     yes) enable_static=yes ;;
4928     no) enable_static=no ;;
4929     *)
4930      enable_static=no
4931       # Look at the argument we got.  We use all the common list separators.
4932       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4933       for pkg in $enableval; do
4934         IFS="$lt_save_ifs"
4935         if test "X$pkg" = "X$p"; then
4936           enable_static=yes
4937         fi
4938       done
4939       IFS="$lt_save_ifs"
4940       ;;
4941     esac
4942 else
4943   enable_static=yes
4944 fi
4945
4946
4947 # Check whether --enable-fast-install was given.
4948 if test "${enable_fast_install+set}" = set; then
4949   enableval=$enable_fast_install; p=${PACKAGE-default}
4950     case $enableval in
4951     yes) enable_fast_install=yes ;;
4952     no) enable_fast_install=no ;;
4953     *)
4954       enable_fast_install=no
4955       # Look at the argument we got.  We use all the common list separators.
4956       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4957       for pkg in $enableval; do
4958         IFS="$lt_save_ifs"
4959         if test "X$pkg" = "X$p"; then
4960           enable_fast_install=yes
4961         fi
4962       done
4963       IFS="$lt_save_ifs"
4964       ;;
4965     esac
4966 else
4967   enable_fast_install=yes
4968 fi
4969
4970
4971 ac_aux_dir=
4972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4973   if test -f "$ac_dir/install-sh"; then
4974     ac_aux_dir=$ac_dir
4975     ac_install_sh="$ac_aux_dir/install-sh -c"
4976     break
4977   elif test -f "$ac_dir/install.sh"; then
4978     ac_aux_dir=$ac_dir
4979     ac_install_sh="$ac_aux_dir/install.sh -c"
4980     break
4981   elif test -f "$ac_dir/shtool"; then
4982     ac_aux_dir=$ac_dir
4983     ac_install_sh="$ac_aux_dir/shtool install -c"
4984     break
4985   fi
4986 done
4987 if test -z "$ac_aux_dir"; then
4988   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4989 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4990    { (exit 1); exit 1; }; }
4991 fi
4992
4993 # These three variables are undocumented and unsupported,
4994 # and are intended to be withdrawn in a future Autoconf release.
4995 # They can cause serious problems if a builder's source tree is in a directory
4996 # whose full name contains unusual characters.
4997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4999 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5000
5001
5002 # Make sure we can run config.sub.
5003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5004   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5005 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5006    { (exit 1); exit 1; }; }
5007
5008 { echo "$as_me:$LINENO: checking build system type" >&5
5009 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5010 if test "${ac_cv_build+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   ac_build_alias=$build_alias
5014 test "x$ac_build_alias" = x &&
5015   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5016 test "x$ac_build_alias" = x &&
5017   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5018 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5019    { (exit 1); exit 1; }; }
5020 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5021   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5022 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5023    { (exit 1); exit 1; }; }
5024
5025 fi
5026 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5027 echo "${ECHO_T}$ac_cv_build" >&6; }
5028 case $ac_cv_build in
5029 *-*-*) ;;
5030 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5031 echo "$as_me: error: invalid value of canonical build" >&2;}
5032    { (exit 1); exit 1; }; };;
5033 esac
5034 build=$ac_cv_build
5035 ac_save_IFS=$IFS; IFS='-'
5036 set x $ac_cv_build
5037 shift
5038 build_cpu=$1
5039 build_vendor=$2
5040 shift; shift
5041 # Remember, the first character of IFS is used to create $*,
5042 # except with old shells:
5043 build_os=$*
5044 IFS=$ac_save_IFS
5045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5046
5047
5048 { echo "$as_me:$LINENO: checking host system type" >&5
5049 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5050 if test "${ac_cv_host+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   if test "x$host_alias" = x; then
5054   ac_cv_host=$ac_cv_build
5055 else
5056   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5057     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5059    { (exit 1); exit 1; }; }
5060 fi
5061
5062 fi
5063 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5064 echo "${ECHO_T}$ac_cv_host" >&6; }
5065 case $ac_cv_host in
5066 *-*-*) ;;
5067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5068 echo "$as_me: error: invalid value of canonical host" >&2;}
5069    { (exit 1); exit 1; }; };;
5070 esac
5071 host=$ac_cv_host
5072 ac_save_IFS=$IFS; IFS='-'
5073 set x $ac_cv_host
5074 shift
5075 host_cpu=$1
5076 host_vendor=$2
5077 shift; shift
5078 # Remember, the first character of IFS is used to create $*,
5079 # except with old shells:
5080 host_os=$*
5081 IFS=$ac_save_IFS
5082 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5083
5084
5085 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5086 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5087 if test "${lt_cv_path_SED+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   # Loop through the user's path and test for sed and gsed.
5091 # Then use that list of sed's as ones to test for truncation.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097   for lt_ac_prog in sed gsed; do
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5100         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5101       fi
5102     done
5103   done
5104 done
5105 IFS=$as_save_IFS
5106 lt_ac_max=0
5107 lt_ac_count=0
5108 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5109 # along with /bin/sed that truncates output.
5110 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5111   test ! -f $lt_ac_sed && continue
5112   cat /dev/null > conftest.in
5113   lt_ac_count=0
5114   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5115   # Check for GNU sed and select it if it is found.
5116   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5117     lt_cv_path_SED=$lt_ac_sed
5118     break
5119   fi
5120   while true; do
5121     cat conftest.in conftest.in >conftest.tmp
5122     mv conftest.tmp conftest.in
5123     cp conftest.in conftest.nl
5124     echo >>conftest.nl
5125     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5126     cmp -s conftest.out conftest.nl || break
5127     # 10000 chars as input seems more than enough
5128     test $lt_ac_count -gt 10 && break
5129     lt_ac_count=`expr $lt_ac_count + 1`
5130     if test $lt_ac_count -gt $lt_ac_max; then
5131       lt_ac_max=$lt_ac_count
5132       lt_cv_path_SED=$lt_ac_sed
5133     fi
5134   done
5135 done
5136
5137 fi
5138
5139 SED=$lt_cv_path_SED
5140
5141 { echo "$as_me:$LINENO: result: $SED" >&5
5142 echo "${ECHO_T}$SED" >&6; }
5143
5144
5145 # Check whether --with-gnu-ld was given.
5146 if test "${with_gnu_ld+set}" = set; then
5147   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5148 else
5149   with_gnu_ld=no
5150 fi
5151
5152 ac_prog=ld
5153 if test "$GCC" = yes; then
5154   # Check if gcc -print-prog-name=ld gives a path.
5155   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5156 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5157   case $host in
5158   *-*-mingw*)
5159     # gcc leaves a trailing carriage return which upsets mingw
5160     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5161   *)
5162     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5163   esac
5164   case $ac_prog in
5165     # Accept absolute paths.
5166     [\\/]* | ?:[\\/]*)
5167       re_direlt='/[^/][^/]*/\.\./'
5168       # Canonicalize the pathname of ld
5169       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5170       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5171         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5172       done
5173       test -z "$LD" && LD="$ac_prog"
5174       ;;
5175   "")
5176     # If it fails, then pretend we aren't using GCC.
5177     ac_prog=ld
5178     ;;
5179   *)
5180     # If it is relative, then search for the first ld in PATH.
5181     with_gnu_ld=unknown
5182     ;;
5183   esac
5184 elif test "$with_gnu_ld" = yes; then
5185   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5186 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5187 else
5188   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5189 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5190 fi
5191 if test "${lt_cv_path_LD+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if test -z "$LD"; then
5195   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5196   for ac_dir in $PATH; do
5197     IFS="$lt_save_ifs"
5198     test -z "$ac_dir" && ac_dir=.
5199     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5200       lt_cv_path_LD="$ac_dir/$ac_prog"
5201       # Check to see if the program is GNU ld.  I'd rather use --version,
5202       # but apparently some variants of GNU ld only accept -v.
5203       # Break only if it was the GNU/non-GNU ld that we prefer.
5204       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5205       *GNU* | *'with BFD'*)
5206         test "$with_gnu_ld" != no && break
5207         ;;
5208       *)
5209         test "$with_gnu_ld" != yes && break
5210         ;;
5211       esac
5212     fi
5213   done
5214   IFS="$lt_save_ifs"
5215 else
5216   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5217 fi
5218 fi
5219
5220 LD="$lt_cv_path_LD"
5221 if test -n "$LD"; then
5222   { echo "$as_me:$LINENO: result: $LD" >&5
5223 echo "${ECHO_T}$LD" >&6; }
5224 else
5225   { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5227 fi
5228 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5229 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5230    { (exit 1); exit 1; }; }
5231 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5232 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5233 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5237 case `$LD -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239   lt_cv_prog_gnu_ld=yes
5240   ;;
5241 *)
5242   lt_cv_prog_gnu_ld=no
5243   ;;
5244 esac
5245 fi
5246 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5247 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5248 with_gnu_ld=$lt_cv_prog_gnu_ld
5249
5250
5251 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5252 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5253 if test "${lt_cv_ld_reload_flag+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   lt_cv_ld_reload_flag='-r'
5257 fi
5258 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5259 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5260 reload_flag=$lt_cv_ld_reload_flag
5261 case $reload_flag in
5262 "" | " "*) ;;
5263 *) reload_flag=" $reload_flag" ;;
5264 esac
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 case $host_os in
5267   darwin*)
5268     if test "$GCC" = yes; then
5269       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5270     else
5271       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272     fi
5273     ;;
5274 esac
5275
5276 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5277 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5278 if test "${lt_cv_path_NM+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if test -n "$NM"; then
5282   # Let the user override the test.
5283   lt_cv_path_NM="$NM"
5284 else
5285   lt_nm_to_check="${ac_tool_prefix}nm"
5286   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5287     lt_nm_to_check="$lt_nm_to_check nm"
5288   fi
5289   for lt_tmp_nm in $lt_nm_to_check; do
5290     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5291     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5292       IFS="$lt_save_ifs"
5293       test -z "$ac_dir" && ac_dir=.
5294       tmp_nm="$ac_dir/$lt_tmp_nm"
5295       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5296         # Check to see if the nm accepts a BSD-compat flag.
5297         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5298         #   nm: unknown option "B" ignored
5299         # Tru64's nm complains that /dev/null is an invalid object file
5300         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5301         */dev/null* | *'Invalid file or object type'*)
5302           lt_cv_path_NM="$tmp_nm -B"
5303           break
5304           ;;
5305         *)
5306           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5307           */dev/null*)
5308             lt_cv_path_NM="$tmp_nm -p"
5309             break
5310             ;;
5311           *)
5312             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5313             continue # so that we can try to find one that supports BSD flags
5314             ;;
5315           esac
5316           ;;
5317         esac
5318       fi
5319     done
5320     IFS="$lt_save_ifs"
5321   done
5322   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5323 fi
5324 fi
5325 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5326 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5327 NM="$lt_cv_path_NM"
5328
5329 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5330 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5331 LN_S=$as_ln_s
5332 if test "$LN_S" = "ln -s"; then
5333   { echo "$as_me:$LINENO: result: yes" >&5
5334 echo "${ECHO_T}yes" >&6; }
5335 else
5336   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5337 echo "${ECHO_T}no, using $LN_S" >&6; }
5338 fi
5339
5340 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5341 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5342 if test "${lt_cv_deplibs_check_method+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   lt_cv_file_magic_cmd='$MAGIC_CMD'
5346 lt_cv_file_magic_test_file=
5347 lt_cv_deplibs_check_method='unknown'
5348 # Need to set the preceding variable on all platforms that support
5349 # interlibrary dependencies.
5350 # 'none' -- dependencies not supported.
5351 # `unknown' -- same as none, but documents that we really don't know.
5352 # 'pass_all' -- all dependencies passed with no checks.
5353 # 'test_compile' -- check by making test program.
5354 # 'file_magic [[regex]]' -- check by looking for files in library path
5355 # which responds to the $file_magic_cmd with a given extended regex.
5356 # If you have `file' or equivalent on your system and you're not sure
5357 # whether `pass_all' will *always* work, you probably want this one.
5358
5359 case $host_os in
5360 aix[4-9]*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 beos*)
5365   lt_cv_deplibs_check_method=pass_all
5366   ;;
5367
5368 bsdi[45]*)
5369   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5370   lt_cv_file_magic_cmd='/usr/bin/file -L'
5371   lt_cv_file_magic_test_file=/shlib/libc.so
5372   ;;
5373
5374 cygwin*)
5375   # func_win32_libid is a shell function defined in ltmain.sh
5376   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5377   lt_cv_file_magic_cmd='func_win32_libid'
5378   ;;
5379
5380 mingw* | pw32*)
5381   # Base MSYS/MinGW do not provide the 'file' command needed by
5382   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5383   # unless we find 'file', for example because we are cross-compiling.
5384   if ( file / ) >/dev/null 2>&1; then
5385     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5386     lt_cv_file_magic_cmd='func_win32_libid'
5387   else
5388     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5389     lt_cv_file_magic_cmd='$OBJDUMP -f'
5390   fi
5391   ;;
5392
5393 darwin* | rhapsody*)
5394   lt_cv_deplibs_check_method=pass_all
5395   ;;
5396
5397 freebsd* | dragonfly*)
5398   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5399     case $host_cpu in
5400     i*86 )
5401       # Not sure whether the presence of OpenBSD here was a mistake.
5402       # Let's accept both of them until this is cleared up.
5403       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5404       lt_cv_file_magic_cmd=/usr/bin/file
5405       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5406       ;;
5407     esac
5408   else
5409     lt_cv_deplibs_check_method=pass_all
5410   fi
5411   ;;
5412
5413 gnu*)
5414   lt_cv_deplibs_check_method=pass_all
5415   ;;
5416
5417 hpux10.20* | hpux11*)
5418   lt_cv_file_magic_cmd=/usr/bin/file
5419   case $host_cpu in
5420   ia64*)
5421     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5422     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5423     ;;
5424   hppa*64*)
5425     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5426     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5427     ;;
5428   *)
5429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5430     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5431     ;;
5432   esac
5433   ;;
5434
5435 interix[3-9]*)
5436   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5437   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5438   ;;
5439
5440 irix5* | irix6* | nonstopux*)
5441   case $LD in
5442   *-32|*"-32 ") libmagic=32-bit;;
5443   *-n32|*"-n32 ") libmagic=N32;;
5444   *-64|*"-64 ") libmagic=64-bit;;
5445   *) libmagic=never-match;;
5446   esac
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 # This must be Linux ELF.
5451 linux* | k*bsd*-gnu)
5452   lt_cv_deplibs_check_method=pass_all
5453   ;;
5454
5455 netbsd* | netbsdelf*-gnu)
5456   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5457     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5458   else
5459     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5460   fi
5461   ;;
5462
5463 newos6*)
5464   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5465   lt_cv_file_magic_cmd=/usr/bin/file
5466   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5467   ;;
5468
5469 nto-qnx*)
5470   lt_cv_deplibs_check_method=unknown
5471   ;;
5472
5473 openbsd*)
5474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5476   else
5477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5478   fi
5479   ;;
5480
5481 osf3* | osf4* | osf5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 rdos*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 solaris*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 sysv4 | sysv4.3*)
5494   case $host_vendor in
5495   motorola)
5496     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5497     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5498     ;;
5499   ncr)
5500     lt_cv_deplibs_check_method=pass_all
5501     ;;
5502   sequent)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5505     ;;
5506   sni)
5507     lt_cv_file_magic_cmd='/bin/file'
5508     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5509     lt_cv_file_magic_test_file=/lib/libc.so
5510     ;;
5511   siemens)
5512     lt_cv_deplibs_check_method=pass_all
5513     ;;
5514   pc)
5515     lt_cv_deplibs_check_method=pass_all
5516     ;;
5517   esac
5518   ;;
5519
5520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523 esac
5524
5525 fi
5526 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5527 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5528 file_magic_cmd=$lt_cv_file_magic_cmd
5529 deplibs_check_method=$lt_cv_deplibs_check_method
5530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5531
5532
5533
5534
5535 # If no C compiler was specified, use CC.
5536 LTCC=${LTCC-"$CC"}
5537
5538 # If no C compiler flags were specified, use CFLAGS.
5539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5540
5541 # Allow CC to be a program name with arguments.
5542 compiler=$CC
5543
5544 # Check whether --enable-libtool-lock was given.
5545 if test "${enable_libtool_lock+set}" = set; then
5546   enableval=$enable_libtool_lock;
5547 fi
5548
5549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5550
5551 # Some flags need to be propagated to the compiler or linker for good
5552 # libtool support.
5553 case $host in
5554 ia64-*-hpux*)
5555   # Find out which ABI we are using.
5556   echo 'int i;' > conftest.$ac_ext
5557   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; then
5562     case `/usr/bin/file conftest.$ac_objext` in
5563     *ELF-32*)
5564       HPUX_IA64_MODE="32"
5565       ;;
5566     *ELF-64*)
5567       HPUX_IA64_MODE="64"
5568       ;;
5569     esac
5570   fi
5571   rm -rf conftest*
5572   ;;
5573 *-*-irix6*)
5574   # Find out which ABI we are using.
5575   echo '#line 5571 "configure"' > conftest.$ac_ext
5576   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577   (eval $ac_compile) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; then
5581    if test "$lt_cv_prog_gnu_ld" = yes; then
5582     case `/usr/bin/file conftest.$ac_objext` in
5583     *32-bit*)
5584       LD="${LD-ld} -melf32bsmip"
5585       ;;
5586     *N32*)
5587       LD="${LD-ld} -melf32bmipn32"
5588       ;;
5589     *64-bit*)
5590       LD="${LD-ld} -melf64bmip"
5591       ;;
5592     esac
5593    else
5594     case `/usr/bin/file conftest.$ac_objext` in
5595     *32-bit*)
5596       LD="${LD-ld} -32"
5597       ;;
5598     *N32*)
5599       LD="${LD-ld} -n32"
5600       ;;
5601     *64-bit*)
5602       LD="${LD-ld} -64"
5603       ;;
5604     esac
5605    fi
5606   fi
5607   rm -rf conftest*
5608   ;;
5609
5610 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5611 s390*-*linux*|sparc*-*linux*)
5612   # Find out which ABI we are using.
5613   echo 'int i;' > conftest.$ac_ext
5614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615   (eval $ac_compile) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; then
5619     case `/usr/bin/file conftest.o` in
5620     *32-bit*)
5621       case $host in
5622         x86_64-*kfreebsd*-gnu)
5623           LD="${LD-ld} -m elf_i386_fbsd"
5624           ;;
5625         x86_64-*linux*)
5626           LD="${LD-ld} -m elf_i386"
5627           ;;
5628         ppc64-*linux*|powerpc64-*linux*)
5629           LD="${LD-ld} -m elf32ppclinux"
5630           ;;
5631         s390x-*linux*)
5632           LD="${LD-ld} -m elf_s390"
5633           ;;
5634         sparc64-*linux*)
5635           LD="${LD-ld} -m elf32_sparc"
5636           ;;
5637       esac
5638       ;;
5639     *64-bit*)
5640       case $host in
5641         x86_64-*kfreebsd*-gnu)
5642           LD="${LD-ld} -m elf_x86_64_fbsd"
5643           ;;
5644         x86_64-*linux*)
5645           LD="${LD-ld} -m elf_x86_64"
5646           ;;
5647         ppc*-*linux*|powerpc*-*linux*)
5648           LD="${LD-ld} -m elf64ppc"
5649           ;;
5650         s390*-*linux*)
5651           LD="${LD-ld} -m elf64_s390"
5652           ;;
5653         sparc*-*linux*)
5654           LD="${LD-ld} -m elf64_sparc"
5655           ;;
5656       esac
5657       ;;
5658     esac
5659   fi
5660   rm -rf conftest*
5661   ;;
5662
5663 *-*-sco3.2v5*)
5664   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5665   SAVE_CFLAGS="$CFLAGS"
5666   CFLAGS="$CFLAGS -belf"
5667   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5668 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5669 if test "${lt_cv_cc_needs_belf+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   ac_ext=c
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677
5678      cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h.  */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h.  */
5684
5685 int
5686 main ()
5687 {
5688
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (ac_try="$ac_link"
5695 case "(($ac_try" in
5696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697   *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700   (eval "$ac_link") 2>conftest.er1
5701   ac_status=$?
5702   grep -v '^ *+' conftest.er1 >conftest.err
5703   rm -f conftest.er1
5704   cat conftest.err >&5
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } && {
5707          test -z "$ac_c_werror_flag" ||
5708          test ! -s conftest.err
5709        } && test -s conftest$ac_exeext &&
5710        $as_test_x conftest$ac_exeext; then
5711   lt_cv_cc_needs_belf=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716         lt_cv_cc_needs_belf=no
5717 fi
5718
5719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720       conftest$ac_exeext conftest.$ac_ext
5721      ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727 fi
5728 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5729 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5730   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5731     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5732     CFLAGS="$SAVE_CFLAGS"
5733   fi
5734   ;;
5735 sparc*-*solaris*)
5736   # Find out which ABI we are using.
5737   echo 'int i;' > conftest.$ac_ext
5738   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739   (eval $ac_compile) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; then
5743     case `/usr/bin/file conftest.o` in
5744     *64-bit*)
5745       case $lt_cv_prog_gnu_ld in
5746       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5747       *)
5748         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5749           LD="${LD-ld} -64"
5750         fi
5751         ;;
5752       esac
5753       ;;
5754     esac
5755   fi
5756   rm -rf conftest*
5757   ;;
5758
5759
5760 esac
5761
5762 need_locks="$enable_libtool_lock"
5763
5764
5765
5766 for ac_header in dlfcn.h
5767 do
5768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 fi
5775 ac_res=`eval echo '${'$as_ac_Header'}'`
5776                { echo "$as_me:$LINENO: result: $ac_res" >&5
5777 echo "${ECHO_T}$ac_res" >&6; }
5778 else
5779   # Is the header compilable?
5780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 #include <$ac_header>
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (ac_try="$ac_compile"
5793 case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_compile") 2>conftest.er1
5799   ac_status=$?
5800   grep -v '^ *+' conftest.er1 >conftest.err
5801   rm -f conftest.er1
5802   cat conftest.err >&5
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } && {
5805          test -z "$ac_c_werror_flag" ||
5806          test ! -s conftest.err
5807        } && test -s conftest.$ac_objext; then
5808   ac_header_compiler=yes
5809 else
5810   echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813         ac_header_compiler=no
5814 fi
5815
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818 echo "${ECHO_T}$ac_header_compiler" >&6; }
5819
5820 # Is the header present?
5821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #include <$ac_header>
5830 _ACEOF
5831 if { (ac_try="$ac_cpp conftest.$ac_ext"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } >/dev/null && {
5844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5845          test ! -s conftest.err
5846        }; then
5847   ac_header_preproc=yes
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852   ac_header_preproc=no
5853 fi
5854
5855 rm -f conftest.err conftest.$ac_ext
5856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857 echo "${ECHO_T}$ac_header_preproc" >&6; }
5858
5859 # So?  What about this header?
5860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5861   yes:no: )
5862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5866     ac_header_preproc=yes
5867     ;;
5868   no:yes:* )
5869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5881
5882     ;;
5883 esac
5884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   eval "$as_ac_Header=\$ac_header_preproc"
5890 fi
5891 ac_res=`eval echo '${'$as_ac_Header'}'`
5892                { echo "$as_me:$LINENO: result: $ac_res" >&5
5893 echo "${ECHO_T}$ac_res" >&6; }
5894
5895 fi
5896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5897   cat >>confdefs.h <<_ACEOF
5898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5899 _ACEOF
5900
5901 fi
5902
5903 done
5904
5905
5906
5907 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5908     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5909     (test "X$CXX" != "Xg++"))) ; then
5910   ac_ext=cpp
5911 ac_cpp='$CXXCPP $CPPFLAGS'
5912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5915 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5916 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5917 if test -z "$CXXCPP"; then
5918   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921       # Double quotes because CXXCPP needs to be expanded
5922     for CXXCPP in "$CXX -E" "/lib/cpp"
5923     do
5924       ac_preproc_ok=false
5925 for ac_cxx_preproc_warn_flag in '' yes
5926 do
5927   # Use a header file that comes with gcc, so configuring glibc
5928   # with a fresh cross-compiler works.
5929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930   # <limits.h> exists even on freestanding compilers.
5931   # On the NeXT, cc -E runs the code through the compiler's parser,
5932   # not just through cpp. "Syntax error" is here to catch this case.
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 #ifdef __STDC__
5940 # include <limits.h>
5941 #else
5942 # include <assert.h>
5943 #endif
5944                      Syntax error
5945 _ACEOF
5946 if { (ac_try="$ac_cpp conftest.$ac_ext"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } >/dev/null && {
5959          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5960          test ! -s conftest.err
5961        }; then
5962   :
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967   # Broken: fails on valid input.
5968 continue
5969 fi
5970
5971 rm -f conftest.err conftest.$ac_ext
5972
5973   # OK, works on sane cases.  Now check whether nonexistent headers
5974   # can be detected and how.
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981 #include <ac_nonexistent.h>
5982 _ACEOF
5983 if { (ac_try="$ac_cpp conftest.$ac_ext"
5984 case "(($ac_try" in
5985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986   *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } >/dev/null && {
5996          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5997          test ! -s conftest.err
5998        }; then
5999   # Broken: success on invalid input.
6000 continue
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005   # Passes both tests.
6006 ac_preproc_ok=:
6007 break
6008 fi
6009
6010 rm -f conftest.err conftest.$ac_ext
6011
6012 done
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then
6016   break
6017 fi
6018
6019     done
6020     ac_cv_prog_CXXCPP=$CXXCPP
6021
6022 fi
6023   CXXCPP=$ac_cv_prog_CXXCPP
6024 else
6025   ac_cv_prog_CXXCPP=$CXXCPP
6026 fi
6027 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6028 echo "${ECHO_T}$CXXCPP" >&6; }
6029 ac_preproc_ok=false
6030 for ac_cxx_preproc_warn_flag in '' yes
6031 do
6032   # Use a header file that comes with gcc, so configuring glibc
6033   # with a fresh cross-compiler works.
6034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035   # <limits.h> exists even on freestanding compilers.
6036   # On the NeXT, cc -E runs the code through the compiler's parser,
6037   # not just through cpp. "Syntax error" is here to catch this case.
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 #ifdef __STDC__
6045 # include <limits.h>
6046 #else
6047 # include <assert.h>
6048 #endif
6049                      Syntax error
6050 _ACEOF
6051 if { (ac_try="$ac_cpp conftest.$ac_ext"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } >/dev/null && {
6064          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6065          test ! -s conftest.err
6066        }; then
6067   :
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072   # Broken: fails on valid input.
6073 continue
6074 fi
6075
6076 rm -f conftest.err conftest.$ac_ext
6077
6078   # OK, works on sane cases.  Now check whether nonexistent headers
6079   # can be detected and how.
6080   cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h.  */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h.  */
6086 #include <ac_nonexistent.h>
6087 _ACEOF
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6089 case "(($ac_try" in
6090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091   *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } >/dev/null && {
6101          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6102          test ! -s conftest.err
6103        }; then
6104   # Broken: success on invalid input.
6105 continue
6106 else
6107   echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110   # Passes both tests.
6111 ac_preproc_ok=:
6112 break
6113 fi
6114
6115 rm -f conftest.err conftest.$ac_ext
6116
6117 done
6118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119 rm -f conftest.err conftest.$ac_ext
6120 if $ac_preproc_ok; then
6121   :
6122 else
6123   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6124 See \`config.log' for more details." >&5
6125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6126 See \`config.log' for more details." >&2;}
6127    { (exit 1); exit 1; }; }
6128 fi
6129
6130 ac_ext=cpp
6131 ac_cpp='$CXXCPP $CPPFLAGS'
6132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6135
6136 fi
6137
6138
6139 ac_ext=f
6140 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6141 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6143 if test -n "$ac_tool_prefix"; then
6144   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6145   do
6146     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_F77+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   if test -n "$F77"; then
6154   ac_cv_prog_F77="$F77" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 F77=$ac_cv_prog_F77
6174 if test -n "$F77"; then
6175   { echo "$as_me:$LINENO: result: $F77" >&5
6176 echo "${ECHO_T}$F77" >&6; }
6177 else
6178   { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6180 fi
6181
6182
6183     test -n "$F77" && break
6184   done
6185 fi
6186 if test -z "$F77"; then
6187   ac_ct_F77=$F77
6188   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6189 do
6190   # Extract the first word of "$ac_prog", so it can be a program name with args.
6191 set dummy $ac_prog; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -n "$ac_ct_F77"; then
6198   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_ac_ct_F77="$ac_prog"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6218 if test -n "$ac_ct_F77"; then
6219   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6220 echo "${ECHO_T}$ac_ct_F77" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227   test -n "$ac_ct_F77" && break
6228 done
6229
6230   if test "x$ac_ct_F77" = x; then
6231     F77=""
6232   else
6233     case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet.  If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&5
6238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6239 whose name does not start with the host triplet.  If you think this
6240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243     F77=$ac_ct_F77
6244   fi
6245 fi
6246
6247
6248 # Provide some information about the compiler.
6249 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6250 ac_compiler=`set X $ac_compile; echo $2`
6251 { (ac_try="$ac_compiler --version >&5"
6252 case "(($ac_try" in
6253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254   *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257   (eval "$ac_compiler --version >&5") 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }
6261 { (ac_try="$ac_compiler -v >&5"
6262 case "(($ac_try" in
6263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264   *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267   (eval "$ac_compiler -v >&5") 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }
6271 { (ac_try="$ac_compiler -V >&5"
6272 case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_compiler -V >&5") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }
6281 rm -f a.out
6282
6283 # If we don't use `.F' as extension, the preprocessor is not run on the
6284 # input file.  (Note that this only needs to work for GNU compilers.)
6285 ac_save_ext=$ac_ext
6286 ac_ext=F
6287 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6288 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6289 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   cat >conftest.$ac_ext <<_ACEOF
6293       program main
6294 #ifndef __GNUC__
6295        choke me
6296 #endif
6297
6298       end
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6302 case "(($ac_try" in
6303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304   *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307   (eval "$ac_compile") 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } && {
6314          test -z "$ac_f77_werror_flag" ||
6315          test ! -s conftest.err
6316        } && test -s conftest.$ac_objext; then
6317   ac_compiler_gnu=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322         ac_compiler_gnu=no
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6327
6328 fi
6329 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6330 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6331 ac_ext=$ac_save_ext
6332 ac_test_FFLAGS=${FFLAGS+set}
6333 ac_save_FFLAGS=$FFLAGS
6334 FFLAGS=
6335 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6336 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6337 if test "${ac_cv_prog_f77_g+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   FFLAGS=-g
6341 cat >conftest.$ac_ext <<_ACEOF
6342       program main
6343
6344       end
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (ac_try="$ac_compile"
6348 case "(($ac_try" in
6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350   *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353   (eval "$ac_compile") 2>conftest.er1
6354   ac_status=$?
6355   grep -v '^ *+' conftest.er1 >conftest.err
6356   rm -f conftest.er1
6357   cat conftest.err >&5
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } && {
6360          test -z "$ac_f77_werror_flag" ||
6361          test ! -s conftest.err
6362        } && test -s conftest.$ac_objext; then
6363   ac_cv_prog_f77_g=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368         ac_cv_prog_f77_g=no
6369 fi
6370
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372
6373 fi
6374 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6375 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6376 if test "$ac_test_FFLAGS" = set; then
6377   FFLAGS=$ac_save_FFLAGS
6378 elif test $ac_cv_prog_f77_g = yes; then
6379   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6380     FFLAGS="-g -O2"
6381   else
6382     FFLAGS="-g"
6383   fi
6384 else
6385   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6386     FFLAGS="-O2"
6387   else
6388     FFLAGS=
6389   fi
6390 fi
6391
6392 G77=`test $ac_compiler_gnu = yes && echo yes`
6393 ac_ext=c
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
6399
6400
6401 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6402 # find the maximum length of command line arguments
6403 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408     i=0
6409   teststring="ABCD"
6410
6411   case $build_os in
6412   msdosdjgpp*)
6413     # On DJGPP, this test can blow up pretty badly due to problems in libc
6414     # (any single argument exceeding 2000 bytes causes a buffer overrun
6415     # during glob expansion).  Even if it were fixed, the result of this
6416     # check would be larger than it should be.
6417     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6418     ;;
6419
6420   gnu*)
6421     # Under GNU Hurd, this test is not required because there is
6422     # no limit to the length of command line arguments.
6423     # Libtool will interpret -1 as no limit whatsoever
6424     lt_cv_sys_max_cmd_len=-1;
6425     ;;
6426
6427   cygwin* | mingw*)
6428     # On Win9x/ME, this test blows up -- it succeeds, but takes
6429     # about 5 minutes as the teststring grows exponentially.
6430     # Worse, since 9x/ME are not pre-emptively multitasking,
6431     # you end up with a "frozen" computer, even though with patience
6432     # the test eventually succeeds (with a max line length of 256k).
6433     # Instead, let's just punt: use the minimum linelength reported by
6434     # all of the supported platforms: 8192 (on NT/2K/XP).
6435     lt_cv_sys_max_cmd_len=8192;
6436     ;;
6437
6438   amigaos*)
6439     # On AmigaOS with pdksh, this test takes hours, literally.
6440     # So we just punt and use a minimum line length of 8192.
6441     lt_cv_sys_max_cmd_len=8192;
6442     ;;
6443
6444   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6445     # This has been around since 386BSD, at least.  Likely further.
6446     if test -x /sbin/sysctl; then
6447       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6448     elif test -x /usr/sbin/sysctl; then
6449       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6450     else
6451       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6452     fi
6453     # And add a safety zone
6454     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6455     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6456     ;;
6457
6458   interix*)
6459     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6460     lt_cv_sys_max_cmd_len=196608
6461     ;;
6462
6463   osf*)
6464     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6465     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6466     # nice to cause kernel panics so lets avoid the loop below.
6467     # First set a reasonable default.
6468     lt_cv_sys_max_cmd_len=16384
6469     #
6470     if test -x /sbin/sysconfig; then
6471       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6472         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6473       esac
6474     fi
6475     ;;
6476   sco3.2v5*)
6477     lt_cv_sys_max_cmd_len=102400
6478     ;;
6479   sysv5* | sco5v6* | sysv4.2uw2*)
6480     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6481     if test -n "$kargmax"; then
6482       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6483     else
6484       lt_cv_sys_max_cmd_len=32768
6485     fi
6486     ;;
6487   *)
6488     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6489     if test -n "$lt_cv_sys_max_cmd_len"; then
6490       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6492     else
6493       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6494       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6495                = "XX$teststring") >/dev/null 2>&1 &&
6496               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6497               lt_cv_sys_max_cmd_len=$new_result &&
6498               test $i != 17 # 1/2 MB should be enough
6499       do
6500         i=`expr $i + 1`
6501         teststring=$teststring$teststring
6502       done
6503       teststring=
6504       # Add a significant safety factor because C++ compilers can tack on massive
6505       # amounts of additional arguments before passing them to the linker.
6506       # It appears as though 1/2 is a usable value.
6507       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6508     fi
6509     ;;
6510   esac
6511
6512 fi
6513
6514 if test -n $lt_cv_sys_max_cmd_len ; then
6515   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6516 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: none" >&5
6519 echo "${ECHO_T}none" >&6; }
6520 fi
6521
6522
6523
6524
6525
6526 # Check for command to grab the raw symbol name followed by C symbol from nm.
6527 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6528 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532
6533 # These are sane defaults that work on at least a few old systems.
6534 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6535
6536 # Character class describing NM global symbol codes.
6537 symcode='[BCDEGRST]'
6538
6539 # Regexp to match symbols that can be accessed directly from C.
6540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6541
6542 # Transform an extracted symbol line into a proper C declaration
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6544
6545 # Transform an extracted symbol line into symbol name and symbol address
6546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6547
6548 # Define system-specific variables.
6549 case $host_os in
6550 aix*)
6551   symcode='[BCDT]'
6552   ;;
6553 cygwin* | mingw* | pw32*)
6554   symcode='[ABCDGISTW]'
6555   ;;
6556 hpux*) # Its linker distinguishes data from code symbols
6557   if test "$host_cpu" = ia64; then
6558     symcode='[ABCDEGRST]'
6559   fi
6560   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6561   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6562   ;;
6563 linux* | k*bsd*-gnu)
6564   if test "$host_cpu" = ia64; then
6565     symcode='[ABCDGIRSTW]'
6566     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6567     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6568   fi
6569   ;;
6570 irix* | nonstopux*)
6571   symcode='[BCDEGRST]'
6572   ;;
6573 osf*)
6574   symcode='[BCDEGQRST]'
6575   ;;
6576 solaris*)
6577   symcode='[BDRT]'
6578   ;;
6579 sco3.2v5*)
6580   symcode='[DT]'
6581   ;;
6582 sysv4.2uw2*)
6583   symcode='[DT]'
6584   ;;
6585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6586   symcode='[ABDT]'
6587   ;;
6588 sysv4)
6589   symcode='[DFNSTU]'
6590   ;;
6591 esac
6592
6593 # Handle CRLF in mingw tool chain
6594 opt_cr=
6595 case $build_os in
6596 mingw*)
6597   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6598   ;;
6599 esac
6600
6601 # If we're using GNU nm, then use its standard symbol codes.
6602 case `$NM -V 2>&1` in
6603 *GNU* | *'with BFD'*)
6604   symcode='[ABCDGIRSTW]' ;;
6605 esac
6606
6607 # Try without a prefix undercore, then with it.
6608 for ac_symprfx in "" "_"; do
6609
6610   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6611   symxfrm="\\1 $ac_symprfx\\2 \\2"
6612
6613   # Write the raw and C identifiers.
6614   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6615
6616   # Check to see that the pipe works correctly.
6617   pipe_works=no
6618
6619   rm -f conftest*
6620   cat > conftest.$ac_ext <<EOF
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624 char nm_test_var;
6625 void nm_test_func(){}
6626 #ifdef __cplusplus
6627 }
6628 #endif
6629 int main(){nm_test_var='a';nm_test_func();return(0);}
6630 EOF
6631
6632   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633   (eval $ac_compile) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; then
6637     # Now try to grab the symbols.
6638     nlist=conftest.nm
6639     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6640   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } && test -s "$nlist"; then
6644       # Try sorting and uniquifying the output.
6645       if sort "$nlist" | uniq > "$nlist"T; then
6646         mv -f "$nlist"T "$nlist"
6647       else
6648         rm -f "$nlist"T
6649       fi
6650
6651       # Make sure that we snagged all the symbols we need.
6652       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6653         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6654           cat <<EOF > conftest.$ac_ext
6655 #ifdef __cplusplus
6656 extern "C" {
6657 #endif
6658
6659 EOF
6660           # Now generate the symbol file.
6661           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6662
6663           cat <<EOF >> conftest.$ac_ext
6664 #if defined (__STDC__) && __STDC__
6665 # define lt_ptr_t void *
6666 #else
6667 # define lt_ptr_t char *
6668 # define const
6669 #endif
6670
6671 /* The mapping between symbol names and symbols. */
6672 const struct {
6673   const char *name;
6674   lt_ptr_t address;
6675 }
6676 lt_preloaded_symbols[] =
6677 {
6678 EOF
6679           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6680           cat <<\EOF >> conftest.$ac_ext
6681   {0, (lt_ptr_t) 0}
6682 };
6683
6684 #ifdef __cplusplus
6685 }
6686 #endif
6687 EOF
6688           # Now try linking the two files.
6689           mv conftest.$ac_objext conftstm.$ac_objext
6690           lt_save_LIBS="$LIBS"
6691           lt_save_CFLAGS="$CFLAGS"
6692           LIBS="conftstm.$ac_objext"
6693           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6694           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695   (eval $ac_link) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6699             pipe_works=yes
6700           fi
6701           LIBS="$lt_save_LIBS"
6702           CFLAGS="$lt_save_CFLAGS"
6703         else
6704           echo "cannot find nm_test_func in $nlist" >&5
6705         fi
6706       else
6707         echo "cannot find nm_test_var in $nlist" >&5
6708       fi
6709     else
6710       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6711     fi
6712   else
6713     echo "$progname: failed program was:" >&5
6714     cat conftest.$ac_ext >&5
6715   fi
6716   rm -rf conftest* conftst*
6717
6718   # Do not use the global_symbol_pipe unless it works.
6719   if test "$pipe_works" = yes; then
6720     break
6721   else
6722     lt_cv_sys_global_symbol_pipe=
6723   fi
6724 done
6725
6726 fi
6727
6728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6729   lt_cv_sys_global_symbol_to_cdecl=
6730 fi
6731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6732   { echo "$as_me:$LINENO: result: failed" >&5
6733 echo "${ECHO_T}failed" >&6; }
6734 else
6735   { echo "$as_me:$LINENO: result: ok" >&5
6736 echo "${ECHO_T}ok" >&6; }
6737 fi
6738
6739 { echo "$as_me:$LINENO: checking for objdir" >&5
6740 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6741 if test "${lt_cv_objdir+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   rm -f .libs 2>/dev/null
6745 mkdir .libs 2>/dev/null
6746 if test -d .libs; then
6747   lt_cv_objdir=.libs
6748 else
6749   # MS-DOS does not allow filenames that begin with a dot.
6750   lt_cv_objdir=_libs
6751 fi
6752 rmdir .libs 2>/dev/null
6753 fi
6754 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6755 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6756 objdir=$lt_cv_objdir
6757
6758
6759
6760
6761
6762 case $host_os in
6763 aix3*)
6764   # AIX sometimes has problems with the GCC collect2 program.  For some
6765   # reason, if we set the COLLECT_NAMES environment variable, the problems
6766   # vanish in a puff of smoke.
6767   if test "X${COLLECT_NAMES+set}" != Xset; then
6768     COLLECT_NAMES=
6769     export COLLECT_NAMES
6770   fi
6771   ;;
6772 esac
6773
6774 # Sed substitution that helps us do robust quoting.  It backslashifies
6775 # metacharacters that are still active within double-quoted strings.
6776 Xsed='sed -e 1s/^X//'
6777 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6778
6779 # Same as above, but do not quote variable references.
6780 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6781
6782 # Sed substitution to delay expansion of an escaped shell variable in a
6783 # double_quote_subst'ed string.
6784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6785
6786 # Sed substitution to avoid accidental globbing in evaled expressions
6787 no_glob_subst='s/\*/\\\*/g'
6788
6789 # Constants:
6790 rm="rm -f"
6791
6792 # Global variables:
6793 default_ofile=libtool
6794 can_build_shared=yes
6795
6796 # All known linkers require a `.a' archive for static linking (except MSVC,
6797 # which needs '.lib').
6798 libext=a
6799 ltmain="$ac_aux_dir/ltmain.sh"
6800 ofile="$default_ofile"
6801 with_gnu_ld="$lt_cv_prog_gnu_ld"
6802
6803 if test -n "$ac_tool_prefix"; then
6804   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}ar; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_AR+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   if test -n "$AR"; then
6812   ac_cv_prog_AR="$AR" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_prog_AR="${ac_tool_prefix}ar"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 AR=$ac_cv_prog_AR
6832 if test -n "$AR"; then
6833   { echo "$as_me:$LINENO: result: $AR" >&5
6834 echo "${ECHO_T}$AR" >&6; }
6835 else
6836   { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_AR"; then
6843   ac_ct_AR=$AR
6844   # Extract the first word of "ar", so it can be a program name with args.
6845 set dummy ar; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   if test -n "$ac_ct_AR"; then
6852   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_ac_ct_AR="ar"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6872 if test -n "$ac_ct_AR"; then
6873   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6874 echo "${ECHO_T}$ac_ct_AR" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880   if test "x$ac_ct_AR" = x; then
6881     AR="false"
6882   else
6883     case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6886 whose name does not start with the host triplet.  If you think this
6887 configuration is useful to you, please write to autoconf@gnu.org." >&5
6888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6889 whose name does not start with the host triplet.  If you think this
6890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     AR=$ac_ct_AR
6894   fi
6895 else
6896   AR="$ac_cv_prog_AR"
6897 fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_RANLIB+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   if test -n "$RANLIB"; then
6908   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913   IFS=$as_save_IFS
6914   test -z "$as_dir" && as_dir=.
6915   for ac_exec_ext in '' $ac_executable_extensions; do
6916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919     break 2
6920   fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 RANLIB=$ac_cv_prog_RANLIB
6928 if test -n "$RANLIB"; then
6929   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6930 echo "${ECHO_T}$RANLIB" >&6; }
6931 else
6932   { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_RANLIB"; then
6939   ac_ct_RANLIB=$RANLIB
6940   # Extract the first word of "ranlib", so it can be a program name with args.
6941 set dummy ranlib; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   if test -n "$ac_ct_RANLIB"; then
6948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955   for ac_exec_ext in '' $ac_executable_extensions; do
6956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957     ac_cv_prog_ac_ct_RANLIB="ranlib"
6958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968 if test -n "$ac_ct_RANLIB"; then
6969   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6970 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6971 else
6972   { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6974 fi
6975
6976   if test "x$ac_ct_RANLIB" = x; then
6977     RANLIB=":"
6978   else
6979     case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6982 whose name does not start with the host triplet.  If you think this
6983 configuration is useful to you, please write to autoconf@gnu.org." >&5
6984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6985 whose name does not start with the host triplet.  If you think this
6986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     RANLIB=$ac_ct_RANLIB
6990   fi
6991 else
6992   RANLIB="$ac_cv_prog_RANLIB"
6993 fi
6994
6995 if test -n "$ac_tool_prefix"; then
6996   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}strip; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_prog_STRIP+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   if test -n "$STRIP"; then
7004   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 STRIP=$ac_cv_prog_STRIP
7024 if test -n "$STRIP"; then
7025   { echo "$as_me:$LINENO: result: $STRIP" >&5
7026 echo "${ECHO_T}$STRIP" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_STRIP"; then
7035   ac_ct_STRIP=$STRIP
7036   # Extract the first word of "strip", so it can be a program name with args.
7037 set dummy strip; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   if test -n "$ac_ct_STRIP"; then
7044   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_prog_ac_ct_STRIP="strip"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7064 if test -n "$ac_ct_STRIP"; then
7065   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7066 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7067 else
7068   { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7070 fi
7071
7072   if test "x$ac_ct_STRIP" = x; then
7073     STRIP=":"
7074   else
7075     case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7078 whose name does not start with the host triplet.  If you think this
7079 configuration is useful to you, please write to autoconf@gnu.org." >&5
7080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7081 whose name does not start with the host triplet.  If you think this
7082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085     STRIP=$ac_ct_STRIP
7086   fi
7087 else
7088   STRIP="$ac_cv_prog_STRIP"
7089 fi
7090
7091
7092 old_CC="$CC"
7093 old_CFLAGS="$CFLAGS"
7094
7095 # Set sane defaults for various variables
7096 test -z "$AR" && AR=ar
7097 test -z "$AR_FLAGS" && AR_FLAGS=cru
7098 test -z "$AS" && AS=as
7099 test -z "$CC" && CC=cc
7100 test -z "$LTCC" && LTCC=$CC
7101 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7102 test -z "$DLLTOOL" && DLLTOOL=dlltool
7103 test -z "$LD" && LD=ld
7104 test -z "$LN_S" && LN_S="ln -s"
7105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7106 test -z "$NM" && NM=nm
7107 test -z "$SED" && SED=sed
7108 test -z "$OBJDUMP" && OBJDUMP=objdump
7109 test -z "$RANLIB" && RANLIB=:
7110 test -z "$STRIP" && STRIP=:
7111 test -z "$ac_objext" && ac_objext=o
7112
7113 # Determine commands to create old-style static archives.
7114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7115 old_postinstall_cmds='chmod 644 $oldlib'
7116 old_postuninstall_cmds=
7117
7118 if test -n "$RANLIB"; then
7119   case $host_os in
7120   openbsd*)
7121     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7122     ;;
7123   *)
7124     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7125     ;;
7126   esac
7127   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7128 fi
7129
7130 for cc_temp in $compiler""; do
7131   case $cc_temp in
7132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7134     \-*) ;;
7135     *) break;;
7136   esac
7137 done
7138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7139
7140
7141 # Only perform the check for file, if the check method requires it
7142 case $deplibs_check_method in
7143 file_magic*)
7144   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7145     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7146 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7147 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   case $MAGIC_CMD in
7151 [\\/*] |  ?:[\\/]*)
7152   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7153   ;;
7154 *)
7155   lt_save_MAGIC_CMD="$MAGIC_CMD"
7156   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7157   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7158   for ac_dir in $ac_dummy; do
7159     IFS="$lt_save_ifs"
7160     test -z "$ac_dir" && ac_dir=.
7161     if test -f $ac_dir/${ac_tool_prefix}file; then
7162       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7163       if test -n "$file_magic_test_file"; then
7164         case $deplibs_check_method in
7165         "file_magic "*)
7166           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7167           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7169             $EGREP "$file_magic_regex" > /dev/null; then
7170             :
7171           else
7172             cat <<EOF 1>&2
7173
7174 *** Warning: the command libtool uses to detect shared libraries,
7175 *** $file_magic_cmd, produces output that libtool cannot recognize.
7176 *** The result is that libtool may fail to recognize shared libraries
7177 *** as such.  This will affect the creation of libtool libraries that
7178 *** depend on shared libraries, but programs linked with such libtool
7179 *** libraries will work regardless of this problem.  Nevertheless, you
7180 *** may want to report the problem to your system manager and/or to
7181 *** bug-libtool@gnu.org
7182
7183 EOF
7184           fi ;;
7185         esac
7186       fi
7187       break
7188     fi
7189   done
7190   IFS="$lt_save_ifs"
7191   MAGIC_CMD="$lt_save_MAGIC_CMD"
7192   ;;
7193 esac
7194 fi
7195
7196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197 if test -n "$MAGIC_CMD"; then
7198   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7199 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205 if test -z "$lt_cv_path_MAGIC_CMD"; then
7206   if test -n "$ac_tool_prefix"; then
7207     { echo "$as_me:$LINENO: checking for file" >&5
7208 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   case $MAGIC_CMD in
7213 [\\/*] |  ?:[\\/]*)
7214   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7215   ;;
7216 *)
7217   lt_save_MAGIC_CMD="$MAGIC_CMD"
7218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7220   for ac_dir in $ac_dummy; do
7221     IFS="$lt_save_ifs"
7222     test -z "$ac_dir" && ac_dir=.
7223     if test -f $ac_dir/file; then
7224       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7225       if test -n "$file_magic_test_file"; then
7226         case $deplibs_check_method in
7227         "file_magic "*)
7228           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7229           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7231             $EGREP "$file_magic_regex" > /dev/null; then
7232             :
7233           else
7234             cat <<EOF 1>&2
7235
7236 *** Warning: the command libtool uses to detect shared libraries,
7237 *** $file_magic_cmd, produces output that libtool cannot recognize.
7238 *** The result is that libtool may fail to recognize shared libraries
7239 *** as such.  This will affect the creation of libtool libraries that
7240 *** depend on shared libraries, but programs linked with such libtool
7241 *** libraries will work regardless of this problem.  Nevertheless, you
7242 *** may want to report the problem to your system manager and/or to
7243 *** bug-libtool@gnu.org
7244
7245 EOF
7246           fi ;;
7247         esac
7248       fi
7249       break
7250     fi
7251   done
7252   IFS="$lt_save_ifs"
7253   MAGIC_CMD="$lt_save_MAGIC_CMD"
7254   ;;
7255 esac
7256 fi
7257
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if test -n "$MAGIC_CMD"; then
7260   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267   else
7268     MAGIC_CMD=:
7269   fi
7270 fi
7271
7272   fi
7273   ;;
7274 esac
7275
7276
7277   case $host_os in
7278     rhapsody* | darwin*)
7279     if test -n "$ac_tool_prefix"; then
7280   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   if test -n "$DSYMUTIL"; then
7288   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7308 if test -n "$DSYMUTIL"; then
7309   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7310 echo "${ECHO_T}$DSYMUTIL" >&6; }
7311 else
7312   { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_DSYMUTIL"; then
7319   ac_ct_DSYMUTIL=$DSYMUTIL
7320   # Extract the first word of "dsymutil", so it can be a program name with args.
7321 set dummy dsymutil; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   if test -n "$ac_ct_DSYMUTIL"; then
7328   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7348 if test -n "$ac_ct_DSYMUTIL"; then
7349   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7350 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7351 else
7352   { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7354 fi
7355
7356   if test "x$ac_ct_DSYMUTIL" = x; then
7357     DSYMUTIL=":"
7358   else
7359     case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7362 whose name does not start with the host triplet.  If you think this
7363 configuration is useful to you, please write to autoconf@gnu.org." >&5
7364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7365 whose name does not start with the host triplet.  If you think this
7366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369     DSYMUTIL=$ac_ct_DSYMUTIL
7370   fi
7371 else
7372   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7373 fi
7374
7375     if test -n "$ac_tool_prefix"; then
7376   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   if test -n "$NMEDIT"; then
7384   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391   for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 NMEDIT=$ac_cv_prog_NMEDIT
7404 if test -n "$NMEDIT"; then
7405   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7406 echo "${ECHO_T}$NMEDIT" >&6; }
7407 else
7408   { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_NMEDIT"; then
7415   ac_ct_NMEDIT=$NMEDIT
7416   # Extract the first word of "nmedit", so it can be a program name with args.
7417 set dummy nmedit; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   if test -n "$ac_ct_NMEDIT"; then
7424   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7444 if test -n "$ac_ct_NMEDIT"; then
7445   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7446 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452   if test "x$ac_ct_NMEDIT" = x; then
7453     NMEDIT=":"
7454   else
7455     case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7458 whose name does not start with the host triplet.  If you think this
7459 configuration is useful to you, please write to autoconf@gnu.org." >&5
7460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7461 whose name does not start with the host triplet.  If you think this
7462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7463 ac_tool_warned=yes ;;
7464 esac
7465     NMEDIT=$ac_ct_NMEDIT
7466   fi
7467 else
7468   NMEDIT="$ac_cv_prog_NMEDIT"
7469 fi
7470
7471
7472     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7473 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7474 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   lt_cv_apple_cc_single_mod=no
7478       if test -z "${LT_MULTI_MODULE}"; then
7479    # By default we will add the -single_module flag. You can override
7480    # by either setting the environment variable LT_MULTI_MODULE
7481    # non-empty at configure time, or by adding -multi_module to the
7482    # link flags.
7483    echo "int foo(void){return 1;}" > conftest.c
7484    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485      -dynamiclib ${wl}-single_module conftest.c
7486    if test -f libconftest.dylib; then
7487      lt_cv_apple_cc_single_mod=yes
7488      rm -rf libconftest.dylib*
7489    fi
7490    rm conftest.c
7491       fi
7492 fi
7493 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7494 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7495     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7496 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   lt_cv_ld_exported_symbols_list=no
7501       save_LDFLAGS=$LDFLAGS
7502       echo "_main" > conftest.sym
7503       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7504       cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510
7511 int
7512 main ()
7513 {
7514
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (ac_try="$ac_link"
7521 case "(($ac_try" in
7522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523   *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526   (eval "$ac_link") 2>conftest.er1
7527   ac_status=$?
7528   grep -v '^ *+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } && {
7533          test -z "$ac_c_werror_flag" ||
7534          test ! -s conftest.err
7535        } && test -s conftest$ac_exeext &&
7536        $as_test_x conftest$ac_exeext; then
7537   lt_cv_ld_exported_symbols_list=yes
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542         lt_cv_ld_exported_symbols_list=no
7543 fi
7544
7545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7546       conftest$ac_exeext conftest.$ac_ext
7547    LDFLAGS="$save_LDFLAGS"
7548
7549 fi
7550 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7551 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7552     case $host_os in
7553     rhapsody* | darwin1.[0123])
7554       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7555     darwin1.*)
7556      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7557     darwin*)
7558       # if running on 10.5 or later, the deployment target defaults
7559       # to the OS version, if on x86, and 10.4, the deployment
7560       # target defaults to 10.4. Don't you love it?
7561       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7562    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7563      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7564    10.[012]*)
7565      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7566    10.*)
7567      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7568       esac
7569     ;;
7570   esac
7571     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7572       _lt_dar_single_mod='$single_module'
7573     fi
7574     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7575       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7576     else
7577       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7578     fi
7579     if test "$DSYMUTIL" != ":"; then
7580       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7581     else
7582       _lt_dsymutil=
7583     fi
7584     ;;
7585   esac
7586
7587
7588 enable_dlopen=yes
7589 enable_win32_dll=no
7590
7591 # Check whether --enable-libtool-lock was given.
7592 if test "${enable_libtool_lock+set}" = set; then
7593   enableval=$enable_libtool_lock;
7594 fi
7595
7596 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7597
7598
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then
7601   withval=$with_pic; pic_mode="$withval"
7602 else
7603   pic_mode=default
7604 fi
7605
7606 test -z "$pic_mode" && pic_mode=default
7607
7608 # Use C for the default configuration in the libtool script
7609 tagname=
7610 lt_save_CC="$CC"
7611 ac_ext=c
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617
7618 # Source file extension for C test sources.
7619 ac_ext=c
7620
7621 # Object file extension for compiled C test sources.
7622 objext=o
7623 objext=$objext
7624
7625 # Code to be used in simple compile tests
7626 lt_simple_compile_test_code="int some_variable = 0;"
7627
7628 # Code to be used in simple link tests
7629 lt_simple_link_test_code='int main(){return(0);}'
7630
7631
7632 # If no C compiler was specified, use CC.
7633 LTCC=${LTCC-"$CC"}
7634
7635 # If no C compiler flags were specified, use CFLAGS.
7636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7637
7638 # Allow CC to be a program name with arguments.
7639 compiler=$CC
7640
7641
7642 # save warnings/boilerplate of simple test code
7643 ac_outfile=conftest.$ac_objext
7644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7646 _lt_compiler_boilerplate=`cat conftest.err`
7647 $rm conftest*
7648
7649 ac_outfile=conftest.$ac_objext
7650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7652 _lt_linker_boilerplate=`cat conftest.err`
7653 $rm -r conftest*
7654
7655
7656
7657 lt_prog_compiler_no_builtin_flag=
7658
7659 if test "$GCC" = yes; then
7660   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7661
7662
7663 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7664 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7665 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   lt_cv_prog_compiler_rtti_exceptions=no
7669   ac_outfile=conftest.$ac_objext
7670    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7671    lt_compiler_flag="-fno-rtti -fno-exceptions"
7672    # Insert the option either (1) after the last *FLAGS variable, or
7673    # (2) before a word containing "conftest.", or (3) at the end.
7674    # Note that $ac_compile itself does not contain backslashes and begins
7675    # with a dollar sign (not a hyphen), so the echo should work correctly.
7676    # The option is referenced via a variable to avoid confusing sed.
7677    lt_compile=`echo "$ac_compile" | $SED \
7678    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7680    -e 's:$: $lt_compiler_flag:'`
7681    (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
7682    (eval "$lt_compile" 2>conftest.err)
7683    ac_status=$?
7684    cat conftest.err >&5
7685    echo "$as_me:7681: \$? = $ac_status" >&5
7686    if (exit $ac_status) && test -s "$ac_outfile"; then
7687      # The compiler can only warn and ignore the option if not recognized
7688      # So say no if there are warnings other than the usual output.
7689      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7690      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7691      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7692        lt_cv_prog_compiler_rtti_exceptions=yes
7693      fi
7694    fi
7695    $rm conftest*
7696
7697 fi
7698 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7699 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7700
7701 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7702     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7703 else
7704     :
7705 fi
7706
7707 fi
7708
7709 lt_prog_compiler_wl=
7710 lt_prog_compiler_pic=
7711 lt_prog_compiler_static=
7712
7713 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7715
7716   if test "$GCC" = yes; then
7717     lt_prog_compiler_wl='-Wl,'
7718     lt_prog_compiler_static='-static'
7719
7720     case $host_os in
7721       aix*)
7722       # All AIX code is PIC.
7723       if test "$host_cpu" = ia64; then
7724         # AIX 5 now supports IA64 processor
7725         lt_prog_compiler_static='-Bstatic'
7726       fi
7727       ;;
7728
7729     amigaos*)
7730       # FIXME: we need at least 68020 code to build shared libraries, but
7731       # adding the `-m68020' flag to GCC prevents building anything better,
7732       # like `-m68040'.
7733       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7734       ;;
7735
7736     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7737       # PIC is the default for these OSes.
7738       ;;
7739
7740     mingw* | cygwin* | pw32* | os2*)
7741       # This hack is so that the source file can tell whether it is being
7742       # built for inclusion in a dll (and should export symbols for example).
7743       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7744       # (--disable-auto-import) libraries
7745       lt_prog_compiler_pic='-DDLL_EXPORT'
7746       ;;
7747
7748     darwin* | rhapsody*)
7749       # PIC is the default on this platform
7750       # Common symbols not allowed in MH_DYLIB files
7751       lt_prog_compiler_pic='-fno-common'
7752       ;;
7753
7754     interix[3-9]*)
7755       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7756       # Instead, we relocate shared libraries at runtime.
7757       ;;
7758
7759     msdosdjgpp*)
7760       # Just because we use GCC doesn't mean we suddenly get shared libraries
7761       # on systems that don't support them.
7762       lt_prog_compiler_can_build_shared=no
7763       enable_shared=no
7764       ;;
7765
7766     sysv4*MP*)
7767       if test -d /usr/nec; then
7768         lt_prog_compiler_pic=-Kconform_pic
7769       fi
7770       ;;
7771
7772     hpux*)
7773       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7774       # not for PA HP-UX.
7775       case $host_cpu in
7776       hppa*64*|ia64*)
7777         # +Z the default
7778         ;;
7779       *)
7780         lt_prog_compiler_pic='-fPIC'
7781         ;;
7782       esac
7783       ;;
7784
7785     *)
7786       lt_prog_compiler_pic='-fPIC'
7787       ;;
7788     esac
7789   else
7790     # PORTME Check for flag to pass linker flags through the system compiler.
7791     case $host_os in
7792     aix*)
7793       lt_prog_compiler_wl='-Wl,'
7794       if test "$host_cpu" = ia64; then
7795         # AIX 5 now supports IA64 processor
7796         lt_prog_compiler_static='-Bstatic'
7797       else
7798         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7799       fi
7800       ;;
7801       darwin*)
7802         # PIC is the default on this platform
7803         # Common symbols not allowed in MH_DYLIB files
7804        case $cc_basename in
7805          xlc*)
7806          lt_prog_compiler_pic='-qnocommon'
7807          lt_prog_compiler_wl='-Wl,'
7808          ;;
7809        esac
7810        ;;
7811
7812     mingw* | cygwin* | pw32* | os2*)
7813       # This hack is so that the source file can tell whether it is being
7814       # built for inclusion in a dll (and should export symbols for example).
7815       lt_prog_compiler_pic='-DDLL_EXPORT'
7816       ;;
7817
7818     hpux9* | hpux10* | hpux11*)
7819       lt_prog_compiler_wl='-Wl,'
7820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7821       # not for PA HP-UX.
7822       case $host_cpu in
7823       hppa*64*|ia64*)
7824         # +Z the default
7825         ;;
7826       *)
7827         lt_prog_compiler_pic='+Z'
7828         ;;
7829       esac
7830       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7831       lt_prog_compiler_static='${wl}-a ${wl}archive'
7832       ;;
7833
7834     irix5* | irix6* | nonstopux*)
7835       lt_prog_compiler_wl='-Wl,'
7836       # PIC (with -KPIC) is the default.
7837       lt_prog_compiler_static='-non_shared'
7838       ;;
7839
7840     newsos6)
7841       lt_prog_compiler_pic='-KPIC'
7842       lt_prog_compiler_static='-Bstatic'
7843       ;;
7844
7845     linux* | k*bsd*-gnu)
7846       case $cc_basename in
7847       icc* | ecc*)
7848         lt_prog_compiler_wl='-Wl,'
7849         lt_prog_compiler_pic='-KPIC'
7850         lt_prog_compiler_static='-static'
7851         ;;
7852       pgcc* | pgf77* | pgf90* | pgf95*)
7853         # Portland Group compilers (*not* the Pentium gcc compiler,
7854         # which looks to be a dead project)
7855         lt_prog_compiler_wl='-Wl,'
7856         lt_prog_compiler_pic='-fpic'
7857         lt_prog_compiler_static='-Bstatic'
7858         ;;
7859       ccc*)
7860         lt_prog_compiler_wl='-Wl,'
7861         # All Alpha code is PIC.
7862         lt_prog_compiler_static='-non_shared'
7863         ;;
7864       *)
7865         case `$CC -V 2>&1 | sed 5q` in
7866         *Sun\ C*)
7867           # Sun C 5.9
7868           lt_prog_compiler_pic='-KPIC'
7869           lt_prog_compiler_static='-Bstatic'
7870           lt_prog_compiler_wl='-Wl,'
7871           ;;
7872         *Sun\ F*)
7873           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7874           lt_prog_compiler_pic='-KPIC'
7875           lt_prog_compiler_static='-Bstatic'
7876           lt_prog_compiler_wl=''
7877           ;;
7878         esac
7879         ;;
7880       esac
7881       ;;
7882
7883     osf3* | osf4* | osf5*)
7884       lt_prog_compiler_wl='-Wl,'
7885       # All OSF/1 code is PIC.
7886       lt_prog_compiler_static='-non_shared'
7887       ;;
7888
7889     rdos*)
7890       lt_prog_compiler_static='-non_shared'
7891       ;;
7892
7893     solaris*)
7894       lt_prog_compiler_pic='-KPIC'
7895       lt_prog_compiler_static='-Bstatic'
7896       case $cc_basename in
7897       f77* | f90* | f95*)
7898         lt_prog_compiler_wl='-Qoption ld ';;
7899       *)
7900         lt_prog_compiler_wl='-Wl,';;
7901       esac
7902       ;;
7903
7904     sunos4*)
7905       lt_prog_compiler_wl='-Qoption ld '
7906       lt_prog_compiler_pic='-PIC'
7907       lt_prog_compiler_static='-Bstatic'
7908       ;;
7909
7910     sysv4 | sysv4.2uw2* | sysv4.3*)
7911       lt_prog_compiler_wl='-Wl,'
7912       lt_prog_compiler_pic='-KPIC'
7913       lt_prog_compiler_static='-Bstatic'
7914       ;;
7915
7916     sysv4*MP*)
7917       if test -d /usr/nec ;then
7918         lt_prog_compiler_pic='-Kconform_pic'
7919         lt_prog_compiler_static='-Bstatic'
7920       fi
7921       ;;
7922
7923     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7924       lt_prog_compiler_wl='-Wl,'
7925       lt_prog_compiler_pic='-KPIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7928
7929     unicos*)
7930       lt_prog_compiler_wl='-Wl,'
7931       lt_prog_compiler_can_build_shared=no
7932       ;;
7933
7934     uts4*)
7935       lt_prog_compiler_pic='-pic'
7936       lt_prog_compiler_static='-Bstatic'
7937       ;;
7938
7939     *)
7940       lt_prog_compiler_can_build_shared=no
7941       ;;
7942     esac
7943   fi
7944
7945 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7946 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7947
7948 #
7949 # Check to make sure the PIC flag actually works.
7950 #
7951 if test -n "$lt_prog_compiler_pic"; then
7952
7953 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7954 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7955 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_prog_compiler_pic_works=no
7959   ac_outfile=conftest.$ac_objext
7960    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7961    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7962    # Insert the option either (1) after the last *FLAGS variable, or
7963    # (2) before a word containing "conftest.", or (3) at the end.
7964    # Note that $ac_compile itself does not contain backslashes and begins
7965    # with a dollar sign (not a hyphen), so the echo should work correctly.
7966    # The option is referenced via a variable to avoid confusing sed.
7967    lt_compile=`echo "$ac_compile" | $SED \
7968    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7969    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7970    -e 's:$: $lt_compiler_flag:'`
7971    (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7972    (eval "$lt_compile" 2>conftest.err)
7973    ac_status=$?
7974    cat conftest.err >&5
7975    echo "$as_me:7971: \$? = $ac_status" >&5
7976    if (exit $ac_status) && test -s "$ac_outfile"; then
7977      # The compiler can only warn and ignore the option if not recognized
7978      # So say no if there are warnings other than the usual output.
7979      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7980      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7982        lt_cv_prog_compiler_pic_works=yes
7983      fi
7984    fi
7985    $rm conftest*
7986
7987 fi
7988 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7989 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7990
7991 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7992     case $lt_prog_compiler_pic in
7993      "" | " "*) ;;
7994      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7995      esac
7996 else
7997     lt_prog_compiler_pic=
7998      lt_prog_compiler_can_build_shared=no
7999 fi
8000
8001 fi
8002 case $host_os in
8003   # For platforms which do not support PIC, -DPIC is meaningless:
8004   *djgpp*)
8005     lt_prog_compiler_pic=
8006     ;;
8007   *)
8008     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8009     ;;
8010 esac
8011
8012 #
8013 # Check to make sure the static flag actually works.
8014 #
8015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8016 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8017 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8018 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   lt_cv_prog_compiler_static_works=no
8022    save_LDFLAGS="$LDFLAGS"
8023    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8024    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8025    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8026      # The linker can only warn and ignore the option if not recognized
8027      # So say no if there are warnings
8028      if test -s conftest.err; then
8029        # Append any errors to the config.log.
8030        cat conftest.err 1>&5
8031        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8032        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8033        if diff conftest.exp conftest.er2 >/dev/null; then
8034          lt_cv_prog_compiler_static_works=yes
8035        fi
8036      else
8037        lt_cv_prog_compiler_static_works=yes
8038      fi
8039    fi
8040    $rm -r conftest*
8041    LDFLAGS="$save_LDFLAGS"
8042
8043 fi
8044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8045 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8046
8047 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8048     :
8049 else
8050     lt_prog_compiler_static=
8051 fi
8052
8053
8054 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8056 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   lt_cv_prog_compiler_c_o=no
8060    $rm -r conftest 2>/dev/null
8061    mkdir conftest
8062    cd conftest
8063    mkdir out
8064    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8065
8066    lt_compiler_flag="-o out/conftest2.$ac_objext"
8067    # Insert the option either (1) after the last *FLAGS variable, or
8068    # (2) before a word containing "conftest.", or (3) at the end.
8069    # Note that $ac_compile itself does not contain backslashes and begins
8070    # with a dollar sign (not a hyphen), so the echo should work correctly.
8071    lt_compile=`echo "$ac_compile" | $SED \
8072    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8074    -e 's:$: $lt_compiler_flag:'`
8075    (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8076    (eval "$lt_compile" 2>out/conftest.err)
8077    ac_status=$?
8078    cat out/conftest.err >&5
8079    echo "$as_me:8075: \$? = $ac_status" >&5
8080    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8081    then
8082      # The compiler can only warn and ignore the option if not recognized
8083      # So say no if there are warnings
8084      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8085      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8086      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8087        lt_cv_prog_compiler_c_o=yes
8088      fi
8089    fi
8090    chmod u+w . 2>&5
8091    $rm conftest*
8092    # SGI C++ compiler will create directory out/ii_files/ for
8093    # template instantiation
8094    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8095    $rm out/* && rmdir out
8096    cd ..
8097    rmdir conftest
8098    $rm conftest*
8099
8100 fi
8101 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8102 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8103
8104
8105 hard_links="nottested"
8106 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8107   # do not overwrite the value of need_locks provided by the user
8108   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8109 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8110   hard_links=yes
8111   $rm conftest*
8112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8113   touch conftest.a
8114   ln conftest.a conftest.b 2>&5 || hard_links=no
8115   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8116   { echo "$as_me:$LINENO: result: $hard_links" >&5
8117 echo "${ECHO_T}$hard_links" >&6; }
8118   if test "$hard_links" = no; then
8119     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8120 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8121     need_locks=warn
8122   fi
8123 else
8124   need_locks=no
8125 fi
8126
8127 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8128 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8129
8130   runpath_var=
8131   allow_undefined_flag=
8132   enable_shared_with_static_runtimes=no
8133   archive_cmds=
8134   archive_expsym_cmds=
8135   old_archive_From_new_cmds=
8136   old_archive_from_expsyms_cmds=
8137   export_dynamic_flag_spec=
8138   whole_archive_flag_spec=
8139   thread_safe_flag_spec=
8140   hardcode_libdir_flag_spec=
8141   hardcode_libdir_flag_spec_ld=
8142   hardcode_libdir_separator=
8143   hardcode_direct=no
8144   hardcode_minus_L=no
8145   hardcode_shlibpath_var=unsupported
8146   link_all_deplibs=unknown
8147   hardcode_automatic=no
8148   module_cmds=
8149   module_expsym_cmds=
8150   always_export_symbols=no
8151   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8152   # include_expsyms should be a list of space-separated symbols to be *always*
8153   # included in the symbol list
8154   include_expsyms=
8155   # exclude_expsyms can be an extended regexp of symbols to exclude
8156   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8157   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8158   # as well as any symbol that contains `d'.
8159   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8160   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8161   # platforms (ab)use it in PIC code, but their linkers get confused if
8162   # the symbol is explicitly referenced.  Since portable code cannot
8163   # rely on this symbol name, it's probably fine to never include it in
8164   # preloaded symbol tables.
8165   # Exclude shared library initialization/finalization symbols.
8166   extract_expsyms_cmds=
8167   # Just being paranoid about ensuring that cc_basename is set.
8168   for cc_temp in $compiler""; do
8169   case $cc_temp in
8170     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8171     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8172     \-*) ;;
8173     *) break;;
8174   esac
8175 done
8176 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8177
8178   case $host_os in
8179   cygwin* | mingw* | pw32*)
8180     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8181     # When not using gcc, we currently assume that we are using
8182     # Microsoft Visual C++.
8183     if test "$GCC" != yes; then
8184       with_gnu_ld=no
8185     fi
8186     ;;
8187   interix*)
8188     # we just hope/assume this is gcc and not c89 (= MSVC++)
8189     with_gnu_ld=yes
8190     ;;
8191   openbsd*)
8192     with_gnu_ld=no
8193     ;;
8194   esac
8195
8196   ld_shlibs=yes
8197   if test "$with_gnu_ld" = yes; then
8198     # If archive_cmds runs LD, not CC, wlarc should be empty
8199     wlarc='${wl}'
8200
8201     # Set some defaults for GNU ld with shared library support. These
8202     # are reset later if shared libraries are not supported. Putting them
8203     # here allows them to be overridden if necessary.
8204     runpath_var=LD_RUN_PATH
8205     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8206     export_dynamic_flag_spec='${wl}--export-dynamic'
8207     # ancient GNU ld didn't support --whole-archive et. al.
8208     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8209         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8210       else
8211         whole_archive_flag_spec=
8212     fi
8213     supports_anon_versioning=no
8214     case `$LD -v 2>/dev/null` in
8215       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8216       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8217       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8218       *\ 2.11.*) ;; # other 2.11 versions
8219       *) supports_anon_versioning=yes ;;
8220     esac
8221
8222     # See if GNU ld supports shared libraries.
8223     case $host_os in
8224     aix[3-9]*)
8225       # On AIX/PPC, the GNU linker is very broken
8226       if test "$host_cpu" != ia64; then
8227         ld_shlibs=no
8228         cat <<EOF 1>&2
8229
8230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support.  If you
8233 *** really care for shared libraries, you may want to modify your PATH
8234 *** so that a non-GNU linker is found, and then restart.
8235
8236 EOF
8237       fi
8238       ;;
8239
8240     amigaos*)
8241       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8242       hardcode_libdir_flag_spec='-L$libdir'
8243       hardcode_minus_L=yes
8244
8245       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8246       # that the semantics of dynamic libraries on AmigaOS, at least up
8247       # to version 4, is to share data among multiple programs linked
8248       # with the same dynamic library.  Since this doesn't match the
8249       # behavior of shared libraries on other platforms, we can't use
8250       # them.
8251       ld_shlibs=no
8252       ;;
8253
8254     beos*)
8255       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256         allow_undefined_flag=unsupported
8257         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8258         # support --undefined.  This deserves some investigation.  FIXME
8259         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     cygwin* | mingw* | pw32*)
8266       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8267       # as there is no search path for DLLs.
8268       hardcode_libdir_flag_spec='-L$libdir'
8269       allow_undefined_flag=unsupported
8270       always_export_symbols=no
8271       enable_shared_with_static_runtimes=yes
8272       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8273
8274       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8275         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8276         # If the export-symbols file already is a .def file (1st line
8277         # is EXPORTS), use it as is; otherwise, prepend...
8278         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279           cp $export_symbols $output_objdir/$soname.def;
8280         else
8281           echo EXPORTS > $output_objdir/$soname.def;
8282           cat $export_symbols >> $output_objdir/$soname.def;
8283         fi~
8284         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285       else
8286         ld_shlibs=no
8287       fi
8288       ;;
8289
8290     interix[3-9]*)
8291       hardcode_direct=no
8292       hardcode_shlibpath_var=no
8293       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8294       export_dynamic_flag_spec='${wl}-E'
8295       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8296       # Instead, shared libraries are loaded at an image base (0x10000000 by
8297       # default) and relocated if they conflict, which is a slow very memory
8298       # consuming and fragmenting process.  To avoid this, we pick a random,
8299       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8300       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8301       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8302       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8303       ;;
8304
8305     gnu* | linux* | k*bsd*-gnu)
8306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307         tmp_addflag=
8308         case $cc_basename,$host_cpu in
8309         pgcc*)                          # Portland Group C compiler
8310           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8311           tmp_addflag=' $pic_flag'
8312           ;;
8313         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8314           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8315           tmp_addflag=' $pic_flag -Mnomain' ;;
8316         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8317           tmp_addflag=' -i_dynamic' ;;
8318         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8319           tmp_addflag=' -i_dynamic -nofor_main' ;;
8320         ifc* | ifort*)                  # Intel Fortran compiler
8321           tmp_addflag=' -nofor_main' ;;
8322         esac
8323         case `$CC -V 2>&1 | sed 5q` in
8324         *Sun\ C*)                       # Sun C 5.9
8325           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8326           tmp_sharedflag='-G' ;;
8327         *Sun\ F*)                       # Sun Fortran 8.3
8328           tmp_sharedflag='-G' ;;
8329         *)
8330           tmp_sharedflag='-shared' ;;
8331         esac
8332         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333
8334         if test $supports_anon_versioning = yes; then
8335           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8336   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8337   $echo "local: *; };" >> $output_objdir/$libname.ver~
8338           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8339         fi
8340         link_all_deplibs=no
8341       else
8342         ld_shlibs=no
8343       fi
8344       ;;
8345
8346     netbsd* | netbsdelf*-gnu)
8347       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8348         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8349         wlarc=
8350       else
8351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353       fi
8354       ;;
8355
8356     solaris*)
8357       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8358         ld_shlibs=no
8359         cat <<EOF 1>&2
8360
8361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362 *** create shared libraries on Solaris systems.  Therefore, libtool
8363 *** is disabling shared libraries support.  We urge you to upgrade GNU
8364 *** binutils to release 2.9.1 or newer.  Another option is to modify
8365 *** your PATH or compiler configuration so that the native linker is
8366 *** used, and then restart.
8367
8368 EOF
8369       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372       else
8373         ld_shlibs=no
8374       fi
8375       ;;
8376
8377     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378       case `$LD -v 2>&1` in
8379         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8380         ld_shlibs=no
8381         cat <<_LT_EOF 1>&2
8382
8383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8385 *** is disabling shared libraries support.  We urge you to upgrade GNU
8386 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8387 *** your PATH or compiler configuration so that the native linker is
8388 *** used, and then restart.
8389
8390 _LT_EOF
8391         ;;
8392         *)
8393           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8395             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8396             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8397           else
8398             ld_shlibs=no
8399           fi
8400         ;;
8401       esac
8402       ;;
8403
8404     sunos4*)
8405       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406       wlarc=
8407       hardcode_direct=yes
8408       hardcode_shlibpath_var=no
8409       ;;
8410
8411     *)
8412       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8413         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415       else
8416         ld_shlibs=no
8417       fi
8418       ;;
8419     esac
8420
8421     if test "$ld_shlibs" = no; then
8422       runpath_var=
8423       hardcode_libdir_flag_spec=
8424       export_dynamic_flag_spec=
8425       whole_archive_flag_spec=
8426     fi
8427   else
8428     # PORTME fill in a description of your system's linker (not GNU ld)
8429     case $host_os in
8430     aix3*)
8431       allow_undefined_flag=unsupported
8432       always_export_symbols=yes
8433       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8434       # Note: this linker hardcodes the directories in LIBPATH if there
8435       # are no directories specified by -L.
8436       hardcode_minus_L=yes
8437       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438         # Neither direct hardcoding nor static linking is supported with a
8439         # broken collect2.
8440         hardcode_direct=unsupported
8441       fi
8442       ;;
8443
8444     aix[4-9]*)
8445       if test "$host_cpu" = ia64; then
8446         # On IA64, the linker does run time linking by default, so we don't
8447         # have to do anything special.
8448         aix_use_runtimelinking=no
8449         exp_sym_flag='-Bexport'
8450         no_entry_flag=""
8451       else
8452         # If we're using GNU nm, then we don't want the "-C" option.
8453         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8454         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8455           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8456         else
8457           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8458         fi
8459         aix_use_runtimelinking=no
8460
8461         # Test if we are trying to use run time linking or normal
8462         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8463         # need to do runtime linking.
8464         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8465           for ld_flag in $LDFLAGS; do
8466           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8467             aix_use_runtimelinking=yes
8468             break
8469           fi
8470           done
8471           ;;
8472         esac
8473
8474         exp_sym_flag='-bexport'
8475         no_entry_flag='-bnoentry'
8476       fi
8477
8478       # When large executables or shared objects are built, AIX ld can
8479       # have problems creating the table of contents.  If linking a library
8480       # or program results in "error TOC overflow" add -mminimal-toc to
8481       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8482       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8483
8484       archive_cmds=''
8485       hardcode_direct=yes
8486       hardcode_libdir_separator=':'
8487       link_all_deplibs=yes
8488
8489       if test "$GCC" = yes; then
8490         case $host_os in aix4.[012]|aix4.[012].*)
8491         # We only want to do this on AIX 4.2 and lower, the check
8492         # below for broken collect2 doesn't work under 4.3+
8493           collect2name=`${CC} -print-prog-name=collect2`
8494           if test -f "$collect2name" && \
8495            strings "$collect2name" | grep resolve_lib_name >/dev/null
8496           then
8497           # We have reworked collect2
8498           :
8499           else
8500           # We have old collect2
8501           hardcode_direct=unsupported
8502           # It fails to find uninstalled libraries when the uninstalled
8503           # path is not listed in the libpath.  Setting hardcode_minus_L
8504           # to unsupported forces relinking
8505           hardcode_minus_L=yes
8506           hardcode_libdir_flag_spec='-L$libdir'
8507           hardcode_libdir_separator=
8508           fi
8509           ;;
8510         esac
8511         shared_flag='-shared'
8512         if test "$aix_use_runtimelinking" = yes; then
8513           shared_flag="$shared_flag "'${wl}-G'
8514         fi
8515       else
8516         # not using gcc
8517         if test "$host_cpu" = ia64; then
8518         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8519         # chokes on -Wl,-G. The following line is correct:
8520           shared_flag='-G'
8521         else
8522           if test "$aix_use_runtimelinking" = yes; then
8523             shared_flag='${wl}-G'
8524           else
8525             shared_flag='${wl}-bM:SRE'
8526           fi
8527         fi
8528       fi
8529
8530       # It seems that -bexpall does not export symbols beginning with
8531       # underscore (_), so it is better to generate a list of symbols to export.
8532       always_export_symbols=yes
8533       if test "$aix_use_runtimelinking" = yes; then
8534         # Warning - without using the other runtime loading flags (-brtl),
8535         # -berok will link without error, but may produce a broken library.
8536         allow_undefined_flag='-berok'
8537        # Determine the default libpath from the value encoded in an empty executable.
8538        cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_link") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } && {
8567          test -z "$ac_c_werror_flag" ||
8568          test ! -s conftest.err
8569        } && test -s conftest$ac_exeext &&
8570        $as_test_x conftest$ac_exeext; then
8571
8572 lt_aix_libpath_sed='
8573     /Import File Strings/,/^$/ {
8574         /^0/ {
8575             s/^0  *\(.*\)$/\1/
8576             p
8577         }
8578     }'
8579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580 # Check for a 64-bit object if we didn't find anything.
8581 if test -z "$aix_libpath"; then
8582   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8583 fi
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588
8589 fi
8590
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592       conftest$ac_exeext conftest.$ac_ext
8593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8594
8595        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8596         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8597        else
8598         if test "$host_cpu" = ia64; then
8599           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8600           allow_undefined_flag="-z nodefs"
8601           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8602         else
8603          # Determine the default libpath from the value encoded in an empty executable.
8604          cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8610
8611 int
8612 main ()
8613 {
8614
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_link") 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } && {
8633          test -z "$ac_c_werror_flag" ||
8634          test ! -s conftest.err
8635        } && test -s conftest$ac_exeext &&
8636        $as_test_x conftest$ac_exeext; then
8637
8638 lt_aix_libpath_sed='
8639     /Import File Strings/,/^$/ {
8640         /^0/ {
8641             s/^0  *\(.*\)$/\1/
8642             p
8643         }
8644     }'
8645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646 # Check for a 64-bit object if we didn't find anything.
8647 if test -z "$aix_libpath"; then
8648   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8649 fi
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654
8655 fi
8656
8657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658       conftest$ac_exeext conftest.$ac_ext
8659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8660
8661          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8662           # Warning - without using the other run time loading flags,
8663           # -berok will link without error, but may produce a broken library.
8664           no_undefined_flag=' ${wl}-bernotok'
8665           allow_undefined_flag=' ${wl}-berok'
8666           # Exported symbols can be pulled into shared objects from archives
8667           whole_archive_flag_spec='$convenience'
8668           archive_cmds_need_lc=yes
8669           # This is similar to how AIX traditionally builds its shared libraries.
8670           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8671         fi
8672       fi
8673       ;;
8674
8675     amigaos*)
8676       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8677       hardcode_libdir_flag_spec='-L$libdir'
8678       hardcode_minus_L=yes
8679       # see comment about different semantics on the GNU ld section
8680       ld_shlibs=no
8681       ;;
8682
8683     bsdi[45]*)
8684       export_dynamic_flag_spec=-rdynamic
8685       ;;
8686
8687     cygwin* | mingw* | pw32*)
8688       # When not using gcc, we currently assume that we are using
8689       # Microsoft Visual C++.
8690       # hardcode_libdir_flag_spec is actually meaningless, as there is
8691       # no search path for DLLs.
8692       hardcode_libdir_flag_spec=' '
8693       allow_undefined_flag=unsupported
8694       # Tell ltmain to make .lib files, not .a files.
8695       libext=lib
8696       # Tell ltmain to make .dll files, not .so files.
8697       shrext_cmds=".dll"
8698       # FIXME: Setting linknames here is a bad hack.
8699       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700       # The linker will automatically build a .lib file if we build a DLL.
8701       old_archive_From_new_cmds='true'
8702       # FIXME: Should let the user specify the lib program.
8703       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8704       fix_srcfile_path='`cygpath -w "$srcfile"`'
8705       enable_shared_with_static_runtimes=yes
8706       ;;
8707
8708     darwin* | rhapsody*)
8709       case $host_os in
8710         rhapsody* | darwin1.[012])
8711          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8712          ;;
8713        *) # Darwin 1.3 on
8714          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8715            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8716          else
8717            case ${MACOSX_DEPLOYMENT_TARGET} in
8718              10.[012])
8719                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8720                ;;
8721              10.*)
8722                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8723                ;;
8724            esac
8725          fi
8726          ;;
8727       esac
8728       archive_cmds_need_lc=no
8729       hardcode_direct=no
8730       hardcode_automatic=yes
8731       hardcode_shlibpath_var=unsupported
8732       whole_archive_flag_spec=''
8733       link_all_deplibs=yes
8734     if test "$GCC" = yes ; then
8735         output_verbose_link_cmd='echo'
8736         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8737         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8738         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8739         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8740     else
8741       case $cc_basename in
8742         xlc*)
8743          output_verbose_link_cmd='echo'
8744          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8745          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8746           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8747          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8748           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8749           ;;
8750        *)
8751          ld_shlibs=no
8752           ;;
8753       esac
8754     fi
8755       ;;
8756
8757     dgux*)
8758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759       hardcode_libdir_flag_spec='-L$libdir'
8760       hardcode_shlibpath_var=no
8761       ;;
8762
8763     freebsd1*)
8764       ld_shlibs=no
8765       ;;
8766
8767     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8768     # support.  Future versions do this automatically, but an explicit c++rt0.o
8769     # does not break anything, and helps significantly (at the cost of a little
8770     # extra space).
8771     freebsd2.2*)
8772       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8773       hardcode_libdir_flag_spec='-R$libdir'
8774       hardcode_direct=yes
8775       hardcode_shlibpath_var=no
8776       ;;
8777
8778     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8779     freebsd2*)
8780       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8781       hardcode_direct=yes
8782       hardcode_minus_L=yes
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8787     freebsd* | dragonfly*)
8788       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8789       hardcode_libdir_flag_spec='-R$libdir'
8790       hardcode_direct=yes
8791       hardcode_shlibpath_var=no
8792       ;;
8793
8794     hpux9*)
8795       if test "$GCC" = yes; then
8796         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8797       else
8798         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8799       fi
8800       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8801       hardcode_libdir_separator=:
8802       hardcode_direct=yes
8803
8804       # hardcode_minus_L: Not really in the search PATH,
8805       # but as the default location of the library.
8806       hardcode_minus_L=yes
8807       export_dynamic_flag_spec='${wl}-E'
8808       ;;
8809
8810     hpux10*)
8811       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8813       else
8814         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8815       fi
8816       if test "$with_gnu_ld" = no; then
8817         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8818         hardcode_libdir_separator=:
8819
8820         hardcode_direct=yes
8821         export_dynamic_flag_spec='${wl}-E'
8822
8823         # hardcode_minus_L: Not really in the search PATH,
8824         # but as the default location of the library.
8825         hardcode_minus_L=yes
8826       fi
8827       ;;
8828
8829     hpux11*)
8830       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8831         case $host_cpu in
8832         hppa*64*)
8833           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834           ;;
8835         ia64*)
8836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8837           ;;
8838         *)
8839           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8840           ;;
8841         esac
8842       else
8843         case $host_cpu in
8844         hppa*64*)
8845           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846           ;;
8847         ia64*)
8848           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8849           ;;
8850         *)
8851           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8852           ;;
8853         esac
8854       fi
8855       if test "$with_gnu_ld" = no; then
8856         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8857         hardcode_libdir_separator=:
8858
8859         case $host_cpu in
8860         hppa*64*|ia64*)
8861           hardcode_libdir_flag_spec_ld='+b $libdir'
8862           hardcode_direct=no
8863           hardcode_shlibpath_var=no
8864           ;;
8865         *)
8866           hardcode_direct=yes
8867           export_dynamic_flag_spec='${wl}-E'
8868
8869           # hardcode_minus_L: Not really in the search PATH,
8870           # but as the default location of the library.
8871           hardcode_minus_L=yes
8872           ;;
8873         esac
8874       fi
8875       ;;
8876
8877     irix5* | irix6* | nonstopux*)
8878       if test "$GCC" = yes; then
8879         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8880       else
8881         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8882         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8883       fi
8884       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885       hardcode_libdir_separator=:
8886       link_all_deplibs=yes
8887       ;;
8888
8889     netbsd* | netbsdelf*-gnu)
8890       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8891         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8892       else
8893         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8894       fi
8895       hardcode_libdir_flag_spec='-R$libdir'
8896       hardcode_direct=yes
8897       hardcode_shlibpath_var=no
8898       ;;
8899
8900     newsos6)
8901       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902       hardcode_direct=yes
8903       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904       hardcode_libdir_separator=:
8905       hardcode_shlibpath_var=no
8906       ;;
8907
8908     openbsd*)
8909       if test -f /usr/libexec/ld.so; then
8910         hardcode_direct=yes
8911         hardcode_shlibpath_var=no
8912         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8913           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8915           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916           export_dynamic_flag_spec='${wl}-E'
8917         else
8918           case $host_os in
8919            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8920              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8921              hardcode_libdir_flag_spec='-R$libdir'
8922              ;;
8923            *)
8924              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8926              ;;
8927           esac
8928         fi
8929       else
8930         ld_shlibs=no
8931       fi
8932       ;;
8933
8934     os2*)
8935       hardcode_libdir_flag_spec='-L$libdir'
8936       hardcode_minus_L=yes
8937       allow_undefined_flag=unsupported
8938       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8939       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8940       ;;
8941
8942     osf3*)
8943       if test "$GCC" = yes; then
8944         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8945         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8946       else
8947         allow_undefined_flag=' -expect_unresolved \*'
8948         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8949       fi
8950       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951       hardcode_libdir_separator=:
8952       ;;
8953
8954     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8955       if test "$GCC" = yes; then
8956         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8957         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8958         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959       else
8960         allow_undefined_flag=' -expect_unresolved \*'
8961         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8962         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8963         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8964
8965         # Both c and cxx compiler support -rpath directly
8966         hardcode_libdir_flag_spec='-rpath $libdir'
8967       fi
8968       hardcode_libdir_separator=:
8969       ;;
8970
8971     solaris*)
8972       no_undefined_flag=' -z text'
8973       if test "$GCC" = yes; then
8974         wlarc='${wl}'
8975         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8978       else
8979         wlarc=''
8980         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8983       fi
8984       hardcode_libdir_flag_spec='-R$libdir'
8985       hardcode_shlibpath_var=no
8986       case $host_os in
8987       solaris2.[0-5] | solaris2.[0-5].*) ;;
8988       *)
8989         # The compiler driver will combine and reorder linker options,
8990         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8991         # but is careful enough not to reorder.
8992         # Supported since Solaris 2.6 (maybe 2.5.1?)
8993         if test "$GCC" = yes; then
8994           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8995         else
8996           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8997         fi
8998         ;;
8999       esac
9000       link_all_deplibs=yes
9001       ;;
9002
9003     sunos4*)
9004       if test "x$host_vendor" = xsequent; then
9005         # Use $CC to link under sequent, because it throws in some extra .o
9006         # files that make .init and .fini sections work.
9007         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9008       else
9009         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9010       fi
9011       hardcode_libdir_flag_spec='-L$libdir'
9012       hardcode_direct=yes
9013       hardcode_minus_L=yes
9014       hardcode_shlibpath_var=no
9015       ;;
9016
9017     sysv4)
9018       case $host_vendor in
9019         sni)
9020           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021           hardcode_direct=yes # is this really true???
9022         ;;
9023         siemens)
9024           ## LD is ld it makes a PLAMLIB
9025           ## CC just makes a GrossModule.
9026           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9027           reload_cmds='$CC -r -o $output$reload_objs'
9028           hardcode_direct=no
9029         ;;
9030         motorola)
9031           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9033         ;;
9034       esac
9035       runpath_var='LD_RUN_PATH'
9036       hardcode_shlibpath_var=no
9037       ;;
9038
9039     sysv4.3*)
9040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041       hardcode_shlibpath_var=no
9042       export_dynamic_flag_spec='-Bexport'
9043       ;;
9044
9045     sysv4*MP*)
9046       if test -d /usr/nec; then
9047         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048         hardcode_shlibpath_var=no
9049         runpath_var=LD_RUN_PATH
9050         hardcode_runpath_var=yes
9051         ld_shlibs=yes
9052       fi
9053       ;;
9054
9055     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9056       no_undefined_flag='${wl}-z,text'
9057       archive_cmds_need_lc=no
9058       hardcode_shlibpath_var=no
9059       runpath_var='LD_RUN_PATH'
9060
9061       if test "$GCC" = yes; then
9062         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064       else
9065         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067       fi
9068       ;;
9069
9070     sysv5* | sco3.2v5* | sco5v6*)
9071       # Note: We can NOT use -z defs as we might desire, because we do not
9072       # link with -lc, and that would cause any symbols used from libc to
9073       # always be unresolved, which means just about no library would
9074       # ever link correctly.  If we're not using GNU ld we use -z text
9075       # though, which does catch some bad symbols but isn't as heavy-handed
9076       # as -z defs.
9077       no_undefined_flag='${wl}-z,text'
9078       allow_undefined_flag='${wl}-z,nodefs'
9079       archive_cmds_need_lc=no
9080       hardcode_shlibpath_var=no
9081       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9082       hardcode_libdir_separator=':'
9083       link_all_deplibs=yes
9084       export_dynamic_flag_spec='${wl}-Bexport'
9085       runpath_var='LD_RUN_PATH'
9086
9087       if test "$GCC" = yes; then
9088         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090       else
9091         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9092         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093       fi
9094       ;;
9095
9096     uts4*)
9097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098       hardcode_libdir_flag_spec='-L$libdir'
9099       hardcode_shlibpath_var=no
9100       ;;
9101
9102     *)
9103       ld_shlibs=no
9104       ;;
9105     esac
9106   fi
9107
9108 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9109 echo "${ECHO_T}$ld_shlibs" >&6; }
9110 test "$ld_shlibs" = no && can_build_shared=no
9111
9112 #
9113 # Do we need to explicitly link libc?
9114 #
9115 case "x$archive_cmds_need_lc" in
9116 x|xyes)
9117   # Assume -lc should be added
9118   archive_cmds_need_lc=yes
9119
9120   if test "$enable_shared" = yes && test "$GCC" = yes; then
9121     case $archive_cmds in
9122     *'~'*)
9123       # FIXME: we may have to deal with multi-command sequences.
9124       ;;
9125     '$CC '*)
9126       # Test whether the compiler implicitly links with -lc since on some
9127       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9128       # to ld, don't add -lc before -lgcc.
9129       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9131       $rm conftest*
9132       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133
9134       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9135   (eval $ac_compile) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } 2>conftest.err; then
9139         soname=conftest
9140         lib=conftest
9141         libobjs=conftest.$ac_objext
9142         deplibs=
9143         wl=$lt_prog_compiler_wl
9144         pic_flag=$lt_prog_compiler_pic
9145         compiler_flags=-v
9146         linker_flags=-v
9147         verstring=
9148         output_objdir=.
9149         libname=conftest
9150         lt_save_allow_undefined_flag=$allow_undefined_flag
9151         allow_undefined_flag=
9152         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9153   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }
9157         then
9158           archive_cmds_need_lc=no
9159         else
9160           archive_cmds_need_lc=yes
9161         fi
9162         allow_undefined_flag=$lt_save_allow_undefined_flag
9163       else
9164         cat conftest.err 1>&5
9165       fi
9166       $rm conftest*
9167       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9168 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9169       ;;
9170     esac
9171   fi
9172   ;;
9173 esac
9174
9175 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9177 library_names_spec=
9178 libname_spec='lib$name'
9179 soname_spec=
9180 shrext_cmds=".so"
9181 postinstall_cmds=
9182 postuninstall_cmds=
9183 finish_cmds=
9184 finish_eval=
9185 shlibpath_var=
9186 shlibpath_overrides_runpath=unknown
9187 version_type=none
9188 dynamic_linker="$host_os ld.so"
9189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9190
9191 if test "$GCC" = yes; then
9192   case $host_os in
9193     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9194     *) lt_awk_arg="/^libraries:/" ;;
9195   esac
9196   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9197   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9198     # if the path contains ";" then we assume it to be the separator
9199     # otherwise default to the standard path separator (i.e. ":") - it is
9200     # assumed that no part of a normal pathname contains ";" but that should
9201     # okay in the real world where ";" in dirpaths is itself problematic.
9202     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9203   else
9204     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9205   fi
9206   # Ok, now we have the path, separated by spaces, we can step through it
9207   # and add multilib dir if necessary.
9208   lt_tmp_lt_search_path_spec=
9209   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9210   for lt_sys_path in $lt_search_path_spec; do
9211     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9212       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9213     else
9214       test -d "$lt_sys_path" && \
9215         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9216     fi
9217   done
9218   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9219 BEGIN {RS=" "; FS="/|\n";} {
9220   lt_foo="";
9221   lt_count=0;
9222   for (lt_i = NF; lt_i > 0; lt_i--) {
9223     if ($lt_i != "" && $lt_i != ".") {
9224       if ($lt_i == "..") {
9225         lt_count++;
9226       } else {
9227         if (lt_count == 0) {
9228           lt_foo="/" $lt_i lt_foo;
9229         } else {
9230           lt_count--;
9231         }
9232       }
9233     }
9234   }
9235   if (lt_foo != "") { lt_freq[lt_foo]++; }
9236   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9237 }'`
9238   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9239 else
9240   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9241 fi
9242 need_lib_prefix=unknown
9243 hardcode_into_libs=no
9244
9245 # when you set need_version to no, make sure it does not cause -set_version
9246 # flags to be left without arguments
9247 need_version=unknown
9248
9249 case $host_os in
9250 aix3*)
9251   version_type=linux
9252   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9253   shlibpath_var=LIBPATH
9254
9255   # AIX 3 has no versioning support, so we append a major version to the name.
9256   soname_spec='${libname}${release}${shared_ext}$major'
9257   ;;
9258
9259 aix[4-9]*)
9260   version_type=linux
9261   need_lib_prefix=no
9262   need_version=no
9263   hardcode_into_libs=yes
9264   if test "$host_cpu" = ia64; then
9265     # AIX 5 supports IA64
9266     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9267     shlibpath_var=LD_LIBRARY_PATH
9268   else
9269     # With GCC up to 2.95.x, collect2 would create an import file
9270     # for dependence libraries.  The import file would start with
9271     # the line `#! .'.  This would cause the generated library to
9272     # depend on `.', always an invalid library.  This was fixed in
9273     # development snapshots of GCC prior to 3.0.
9274     case $host_os in
9275       aix4 | aix4.[01] | aix4.[01].*)
9276       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9277            echo ' yes '
9278            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9279         :
9280       else
9281         can_build_shared=no
9282       fi
9283       ;;
9284     esac
9285     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9286     # soname into executable. Probably we can add versioning support to
9287     # collect2, so additional links can be useful in future.
9288     if test "$aix_use_runtimelinking" = yes; then
9289       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9290       # instead of lib<name>.a to let people know that these are not
9291       # typical AIX shared libraries.
9292       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293     else
9294       # We preserve .a as extension for shared libraries through AIX4.2
9295       # and later when we are not doing run time linking.
9296       library_names_spec='${libname}${release}.a $libname.a'
9297       soname_spec='${libname}${release}${shared_ext}$major'
9298     fi
9299     shlibpath_var=LIBPATH
9300   fi
9301   ;;
9302
9303 amigaos*)
9304   library_names_spec='$libname.ixlibrary $libname.a'
9305   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9306   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9307   ;;
9308
9309 beos*)
9310   library_names_spec='${libname}${shared_ext}'
9311   dynamic_linker="$host_os ld.so"
9312   shlibpath_var=LIBRARY_PATH
9313   ;;
9314
9315 bsdi[45]*)
9316   version_type=linux
9317   need_version=no
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319   soname_spec='${libname}${release}${shared_ext}$major'
9320   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9323   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9324   # the default ld.so.conf also contains /usr/contrib/lib and
9325   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9326   # libtool to hard-code these into programs
9327   ;;
9328
9329 cygwin* | mingw* | pw32*)
9330   version_type=windows
9331   shrext_cmds=".dll"
9332   need_version=no
9333   need_lib_prefix=no
9334
9335   case $GCC,$host_os in
9336   yes,cygwin* | yes,mingw* | yes,pw32*)
9337     library_names_spec='$libname.dll.a'
9338     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9339     postinstall_cmds='base_file=`basename \${file}`~
9340       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9341       dldir=$destdir/`dirname \$dlpath`~
9342       test -d \$dldir || mkdir -p \$dldir~
9343       $install_prog $dir/$dlname \$dldir/$dlname~
9344       chmod a+x \$dldir/$dlname'
9345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9346       dlpath=$dir/\$dldll~
9347        $rm \$dlpath'
9348     shlibpath_overrides_runpath=yes
9349
9350     case $host_os in
9351     cygwin*)
9352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9355       ;;
9356     mingw*)
9357       # MinGW DLLs use traditional 'lib' prefix
9358       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9359       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9360       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9361         # It is most probably a Windows format PATH printed by
9362         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9363         # path with ; separators, and with drive letters. We can handle the
9364         # drive letters (cygwin fileutils understands them), so leave them,
9365         # especially as we might pass files found there to a mingw objdump,
9366         # which wouldn't understand a cygwinified path. Ahh.
9367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9368       else
9369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9370       fi
9371       ;;
9372     pw32*)
9373       # pw32 DLLs use 'pw' prefix rather than 'lib'
9374       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375       ;;
9376     esac
9377     ;;
9378
9379   *)
9380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9381     ;;
9382   esac
9383   dynamic_linker='Win32 ld.exe'
9384   # FIXME: first we should search . and the directory the executable is in
9385   shlibpath_var=PATH
9386   ;;
9387
9388 darwin* | rhapsody*)
9389   dynamic_linker="$host_os dyld"
9390   version_type=darwin
9391   need_lib_prefix=no
9392   need_version=no
9393   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9394   soname_spec='${libname}${release}${major}$shared_ext'
9395   shlibpath_overrides_runpath=yes
9396   shlibpath_var=DYLD_LIBRARY_PATH
9397   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9398
9399   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9400   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9401   ;;
9402
9403 dgux*)
9404   version_type=linux
9405   need_lib_prefix=no
9406   need_version=no
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9408   soname_spec='${libname}${release}${shared_ext}$major'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   ;;
9411
9412 freebsd1*)
9413   dynamic_linker=no
9414   ;;
9415
9416 freebsd* | dragonfly*)
9417   # DragonFly does not have aout.  When/if they implement a new
9418   # versioning mechanism, adjust this.
9419   if test -x /usr/bin/objformat; then
9420     objformat=`/usr/bin/objformat`
9421   else
9422     case $host_os in
9423     freebsd[123]*) objformat=aout ;;
9424     *) objformat=elf ;;
9425     esac
9426   fi
9427   version_type=freebsd-$objformat
9428   case $version_type in
9429     freebsd-elf*)
9430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9431       need_version=no
9432       need_lib_prefix=no
9433       ;;
9434     freebsd-*)
9435       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9436       need_version=yes
9437       ;;
9438   esac
9439   shlibpath_var=LD_LIBRARY_PATH
9440   case $host_os in
9441   freebsd2*)
9442     shlibpath_overrides_runpath=yes
9443     ;;
9444   freebsd3.[01]* | freebsdelf3.[01]*)
9445     shlibpath_overrides_runpath=yes
9446     hardcode_into_libs=yes
9447     ;;
9448   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9449   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9450     shlibpath_overrides_runpath=no
9451     hardcode_into_libs=yes
9452     ;;
9453   *) # from 4.6 on, and DragonFly
9454     shlibpath_overrides_runpath=yes
9455     hardcode_into_libs=yes
9456     ;;
9457   esac
9458   ;;
9459
9460 gnu*)
9461   version_type=linux
9462   need_lib_prefix=no
9463   need_version=no
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   hardcode_into_libs=yes
9468   ;;
9469
9470 hpux9* | hpux10* | hpux11*)
9471   # Give a soname corresponding to the major version so that dld.sl refuses to
9472   # link against other versions.
9473   version_type=sunos
9474   need_lib_prefix=no
9475   need_version=no
9476   case $host_cpu in
9477   ia64*)
9478     shrext_cmds='.so'
9479     hardcode_into_libs=yes
9480     dynamic_linker="$host_os dld.so"
9481     shlibpath_var=LD_LIBRARY_PATH
9482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484     soname_spec='${libname}${release}${shared_ext}$major'
9485     if test "X$HPUX_IA64_MODE" = X32; then
9486       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9487     else
9488       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9489     fi
9490     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9491     ;;
9492    hppa*64*)
9493      shrext_cmds='.sl'
9494      hardcode_into_libs=yes
9495      dynamic_linker="$host_os dld.sl"
9496      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9497      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499      soname_spec='${libname}${release}${shared_ext}$major'
9500      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9501      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9502      ;;
9503    *)
9504     shrext_cmds='.sl'
9505     dynamic_linker="$host_os dld.sl"
9506     shlibpath_var=SHLIB_PATH
9507     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509     soname_spec='${libname}${release}${shared_ext}$major'
9510     ;;
9511   esac
9512   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9513   postinstall_cmds='chmod 555 $lib'
9514   ;;
9515
9516 interix[3-9]*)
9517   version_type=linux
9518   need_lib_prefix=no
9519   need_version=no
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9521   soname_spec='${libname}${release}${shared_ext}$major'
9522   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   shlibpath_overrides_runpath=no
9525   hardcode_into_libs=yes
9526   ;;
9527
9528 irix5* | irix6* | nonstopux*)
9529   case $host_os in
9530     nonstopux*) version_type=nonstopux ;;
9531     *)
9532         if test "$lt_cv_prog_gnu_ld" = yes; then
9533                 version_type=linux
9534         else
9535                 version_type=irix
9536         fi ;;
9537   esac
9538   need_lib_prefix=no
9539   need_version=no
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9542   case $host_os in
9543   irix5* | nonstopux*)
9544     libsuff= shlibsuff=
9545     ;;
9546   *)
9547     case $LD in # libtool.m4 will add one of these switches to LD
9548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9549       libsuff= shlibsuff= libmagic=32-bit;;
9550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9551       libsuff=32 shlibsuff=N32 libmagic=N32;;
9552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9554     *) libsuff= shlibsuff= libmagic=never-match;;
9555     esac
9556     ;;
9557   esac
9558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9559   shlibpath_overrides_runpath=no
9560   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9561   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9562   hardcode_into_libs=yes
9563   ;;
9564
9565 # No shared lib support for Linux oldld, aout, or coff.
9566 linux*oldld* | linux*aout* | linux*coff*)
9567   dynamic_linker=no
9568   ;;
9569
9570 # This must be Linux ELF.
9571 linux* | k*bsd*-gnu)
9572   version_type=linux
9573   need_lib_prefix=no
9574   need_version=no
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9578   shlibpath_var=LD_LIBRARY_PATH
9579   shlibpath_overrides_runpath=no
9580   # This implies no fast_install, which is unacceptable.
9581   # Some rework will be needed to allow for fast_install
9582   # before this can be enabled.
9583   hardcode_into_libs=yes
9584
9585   # Append ld.so.conf contents to the search path
9586   if test -f /etc/ld.so.conf; then
9587     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9588     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9589   fi
9590
9591   # We used to test for /lib/ld.so.1 and disable shared libraries on
9592   # powerpc, because MkLinux only supported shared libraries with the
9593   # GNU dynamic linker.  Since this was broken with cross compilers,
9594   # most powerpc-linux boxes support dynamic linking these days and
9595   # people can always --disable-shared, the test was removed, and we
9596   # assume the GNU/Linux dynamic linker is in use.
9597   dynamic_linker='GNU/Linux ld.so'
9598   ;;
9599
9600 netbsdelf*-gnu)
9601   version_type=linux
9602   need_lib_prefix=no
9603   need_version=no
9604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605   soname_spec='${libname}${release}${shared_ext}$major'
9606   shlibpath_var=LD_LIBRARY_PATH
9607   shlibpath_overrides_runpath=no
9608   hardcode_into_libs=yes
9609   dynamic_linker='NetBSD ld.elf_so'
9610   ;;
9611
9612 netbsd*)
9613   version_type=sunos
9614   need_lib_prefix=no
9615   need_version=no
9616   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9619     dynamic_linker='NetBSD (a.out) ld.so'
9620   else
9621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9622     soname_spec='${libname}${release}${shared_ext}$major'
9623     dynamic_linker='NetBSD ld.elf_so'
9624   fi
9625   shlibpath_var=LD_LIBRARY_PATH
9626   shlibpath_overrides_runpath=yes
9627   hardcode_into_libs=yes
9628   ;;
9629
9630 newsos6)
9631   version_type=linux
9632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633   shlibpath_var=LD_LIBRARY_PATH
9634   shlibpath_overrides_runpath=yes
9635   ;;
9636
9637 nto-qnx*)
9638   version_type=linux
9639   need_lib_prefix=no
9640   need_version=no
9641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642   soname_spec='${libname}${release}${shared_ext}$major'
9643   shlibpath_var=LD_LIBRARY_PATH
9644   shlibpath_overrides_runpath=yes
9645   ;;
9646
9647 openbsd*)
9648   version_type=sunos
9649   sys_lib_dlsearch_path_spec="/usr/lib"
9650   need_lib_prefix=no
9651   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9652   case $host_os in
9653     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9654     *)                         need_version=no  ;;
9655   esac
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9660     case $host_os in
9661       openbsd2.[89] | openbsd2.[89].*)
9662         shlibpath_overrides_runpath=no
9663         ;;
9664       *)
9665         shlibpath_overrides_runpath=yes
9666         ;;
9667       esac
9668   else
9669     shlibpath_overrides_runpath=yes
9670   fi
9671   ;;
9672
9673 os2*)
9674   libname_spec='$name'
9675   shrext_cmds=".dll"
9676   need_lib_prefix=no
9677   library_names_spec='$libname${shared_ext} $libname.a'
9678   dynamic_linker='OS/2 ld.exe'
9679   shlibpath_var=LIBPATH
9680   ;;
9681
9682 osf3* | osf4* | osf5*)
9683   version_type=osf
9684   need_lib_prefix=no
9685   need_version=no
9686   soname_spec='${libname}${release}${shared_ext}$major'
9687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9691   ;;
9692
9693 rdos*)
9694   dynamic_linker=no
9695   ;;
9696
9697 solaris*)
9698   version_type=linux
9699   need_lib_prefix=no
9700   need_version=no
9701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702   soname_spec='${libname}${release}${shared_ext}$major'
9703   shlibpath_var=LD_LIBRARY_PATH
9704   shlibpath_overrides_runpath=yes
9705   hardcode_into_libs=yes
9706   # ldd complains unless libraries are executable
9707   postinstall_cmds='chmod +x $lib'
9708   ;;
9709
9710 sunos4*)
9711   version_type=sunos
9712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9713   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9714   shlibpath_var=LD_LIBRARY_PATH
9715   shlibpath_overrides_runpath=yes
9716   if test "$with_gnu_ld" = yes; then
9717     need_lib_prefix=no
9718   fi
9719   need_version=yes
9720   ;;
9721
9722 sysv4 | sysv4.3*)
9723   version_type=linux
9724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725   soname_spec='${libname}${release}${shared_ext}$major'
9726   shlibpath_var=LD_LIBRARY_PATH
9727   case $host_vendor in
9728     sni)
9729       shlibpath_overrides_runpath=no
9730       need_lib_prefix=no
9731       export_dynamic_flag_spec='${wl}-Blargedynsym'
9732       runpath_var=LD_RUN_PATH
9733       ;;
9734     siemens)
9735       need_lib_prefix=no
9736       ;;
9737     motorola)
9738       need_lib_prefix=no
9739       need_version=no
9740       shlibpath_overrides_runpath=no
9741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742       ;;
9743   esac
9744   ;;
9745
9746 sysv4*MP*)
9747   if test -d /usr/nec ;then
9748     version_type=linux
9749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750     soname_spec='$libname${shared_ext}.$major'
9751     shlibpath_var=LD_LIBRARY_PATH
9752   fi
9753   ;;
9754
9755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756   version_type=freebsd-elf
9757   need_lib_prefix=no
9758   need_version=no
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760   soname_spec='${libname}${release}${shared_ext}$major'
9761   shlibpath_var=LD_LIBRARY_PATH
9762   hardcode_into_libs=yes
9763   if test "$with_gnu_ld" = yes; then
9764     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9765     shlibpath_overrides_runpath=no
9766   else
9767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768     shlibpath_overrides_runpath=yes
9769     case $host_os in
9770       sco3.2v5*)
9771         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9772         ;;
9773     esac
9774   fi
9775   sys_lib_dlsearch_path_spec='/usr/lib'
9776   ;;
9777
9778 uts4*)
9779   version_type=linux
9780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781   soname_spec='${libname}${release}${shared_ext}$major'
9782   shlibpath_var=LD_LIBRARY_PATH
9783   ;;
9784
9785 *)
9786   dynamic_linker=no
9787   ;;
9788 esac
9789 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9790 echo "${ECHO_T}$dynamic_linker" >&6; }
9791 test "$dynamic_linker" = no && can_build_shared=no
9792
9793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9797 fi
9798
9799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9804 fi
9805
9806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9807
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9811 fi
9812
9813 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9815 hardcode_action=
9816 if test -n "$hardcode_libdir_flag_spec" || \
9817    test -n "$runpath_var" || \
9818    test "X$hardcode_automatic" = "Xyes" ; then
9819
9820   # We can hardcode non-existant directories.
9821   if test "$hardcode_direct" != no &&
9822      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9823      # have to relink, otherwise we might link with an installed library
9824      # when we should be linking with a yet-to-be-installed one
9825      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9826      test "$hardcode_minus_L" != no; then
9827     # Linking always hardcodes the temporary library directory.
9828     hardcode_action=relink
9829   else
9830     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9831     hardcode_action=immediate
9832   fi
9833 else
9834   # We cannot hardcode anything, or else we can only hardcode existing
9835   # directories.
9836   hardcode_action=unsupported
9837 fi
9838 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9839 echo "${ECHO_T}$hardcode_action" >&6; }
9840
9841 if test "$hardcode_action" = relink; then
9842   # Fast installation is not supported
9843   enable_fast_install=no
9844 elif test "$shlibpath_overrides_runpath" = yes ||
9845      test "$enable_shared" = no; then
9846   # Fast installation is not necessary
9847   enable_fast_install=needless
9848 fi
9849
9850 striplib=
9851 old_striplib=
9852 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9853 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9854 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9855   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9856   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9857   { echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6; }
9859 else
9860 # FIXME - insert some real tests, host_os isn't really good enough
9861   case $host_os in
9862    darwin*)
9863        if test -n "$STRIP" ; then
9864          striplib="$STRIP -x"
9865          old_striplib="$STRIP -S"
9866          { echo "$as_me:$LINENO: result: yes" >&5
9867 echo "${ECHO_T}yes" >&6; }
9868        else
9869   { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9871 fi
9872        ;;
9873    *)
9874   { echo "$as_me:$LINENO: result: no" >&5
9875 echo "${ECHO_T}no" >&6; }
9876     ;;
9877   esac
9878 fi
9879
9880 if test "x$enable_dlopen" != xyes; then
9881   enable_dlopen=unknown
9882   enable_dlopen_self=unknown
9883   enable_dlopen_self_static=unknown
9884 else
9885   lt_cv_dlopen=no
9886   lt_cv_dlopen_libs=
9887
9888   case $host_os in
9889   beos*)
9890     lt_cv_dlopen="load_add_on"
9891     lt_cv_dlopen_libs=
9892     lt_cv_dlopen_self=yes
9893     ;;
9894
9895   mingw* | pw32*)
9896     lt_cv_dlopen="LoadLibrary"
9897     lt_cv_dlopen_libs=
9898    ;;
9899
9900   cygwin*)
9901     lt_cv_dlopen="dlopen"
9902     lt_cv_dlopen_libs=
9903    ;;
9904
9905   darwin*)
9906   # if libdl is installed we need to link against it
9907     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   ac_check_lib_save_LIBS=$LIBS
9913 LIBS="-ldl  $LIBS"
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920
9921 /* Override any GCC internal prototype to avoid an error.
9922    Use char because int might match the return type of a GCC
9923    builtin and then its argument prototype would still apply.  */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char dlopen ();
9928 int
9929 main ()
9930 {
9931 return dlopen ();
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9938 case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_link") 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } && {
9950          test -z "$ac_c_werror_flag" ||
9951          test ! -s conftest.err
9952        } && test -s conftest$ac_exeext &&
9953        $as_test_x conftest$ac_exeext; then
9954   ac_cv_lib_dl_dlopen=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959         ac_cv_lib_dl_dlopen=no
9960 fi
9961
9962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9963       conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9965 fi
9966 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9967 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9968 if test $ac_cv_lib_dl_dlopen = yes; then
9969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9970 else
9971
9972     lt_cv_dlopen="dyld"
9973     lt_cv_dlopen_libs=
9974     lt_cv_dlopen_self=yes
9975
9976 fi
9977
9978    ;;
9979
9980   *)
9981     { echo "$as_me:$LINENO: checking for shl_load" >&5
9982 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_shl_load+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h.  */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h.  */
9992 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9994 #define shl_load innocuous_shl_load
9995
9996 /* System header to define __stub macros and hopefully few prototypes,
9997     which can conflict with char shl_load (); below.
9998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999     <limits.h> exists even on freestanding compilers.  */
10000
10001 #ifdef __STDC__
10002 # include <limits.h>
10003 #else
10004 # include <assert.h>
10005 #endif
10006
10007 #undef shl_load
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010    Use char because int might match the return type of a GCC
10011    builtin and then its argument prototype would still apply.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char shl_load ();
10016 /* The GNU C library defines this for functions which it implements
10017     to always fail with ENOSYS.  Some functions are actually named
10018     something starting with __ and the normal name is an alias.  */
10019 #if defined __stub_shl_load || defined __stub___shl_load
10020 choke me
10021 #endif
10022
10023 int
10024 main ()
10025 {
10026 return shl_load ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_link") 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } && {
10045          test -z "$ac_c_werror_flag" ||
10046          test ! -s conftest.err
10047        } && test -s conftest$ac_exeext &&
10048        $as_test_x conftest$ac_exeext; then
10049   ac_cv_func_shl_load=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054         ac_cv_func_shl_load=no
10055 fi
10056
10057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058       conftest$ac_exeext conftest.$ac_ext
10059 fi
10060 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10061 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10062 if test $ac_cv_func_shl_load = yes; then
10063   lt_cv_dlopen="shl_load"
10064 else
10065   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10066 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldld  $LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char shl_load ();
10086 int
10087 main ()
10088 {
10089 return shl_load ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_link") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } && {
10108          test -z "$ac_c_werror_flag" ||
10109          test ! -s conftest.err
10110        } && test -s conftest$ac_exeext &&
10111        $as_test_x conftest$ac_exeext; then
10112   ac_cv_lib_dld_shl_load=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117         ac_cv_lib_dld_shl_load=no
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121       conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10126 if test $ac_cv_lib_dld_shl_load = yes; then
10127   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10128 else
10129   { echo "$as_me:$LINENO: checking for dlopen" >&5
10130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10131 if test "${ac_cv_func_dlopen+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10142 #define dlopen innocuous_dlopen
10143
10144 /* System header to define __stub macros and hopefully few prototypes,
10145     which can conflict with char dlopen (); below.
10146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147     <limits.h> exists even on freestanding compilers.  */
10148
10149 #ifdef __STDC__
10150 # include <limits.h>
10151 #else
10152 # include <assert.h>
10153 #endif
10154
10155 #undef dlopen
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158    Use char because int might match the return type of a GCC
10159    builtin and then its argument prototype would still apply.  */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char dlopen ();
10164 /* The GNU C library defines this for functions which it implements
10165     to always fail with ENOSYS.  Some functions are actually named
10166     something starting with __ and the normal name is an alias.  */
10167 #if defined __stub_dlopen || defined __stub___dlopen
10168 choke me
10169 #endif
10170
10171 int
10172 main ()
10173 {
10174 return dlopen ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186   (eval "$ac_link") 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } && {
10193          test -z "$ac_c_werror_flag" ||
10194          test ! -s conftest.err
10195        } && test -s conftest$ac_exeext &&
10196        $as_test_x conftest$ac_exeext; then
10197   ac_cv_func_dlopen=yes
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202         ac_cv_func_dlopen=no
10203 fi
10204
10205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10206       conftest$ac_exeext conftest.$ac_ext
10207 fi
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10209 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10210 if test $ac_cv_func_dlopen = yes; then
10211   lt_cv_dlopen="dlopen"
10212 else
10213   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10216   echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218   ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-ldl  $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h.  */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h.  */
10226
10227 /* Override any GCC internal prototype to avoid an error.
10228    Use char because int might match the return type of a GCC
10229    builtin and then its argument prototype would still apply.  */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 char dlopen ();
10234 int
10235 main ()
10236 {
10237 return dlopen ();
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_link") 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && {
10256          test -z "$ac_c_werror_flag" ||
10257          test ! -s conftest.err
10258        } && test -s conftest$ac_exeext &&
10259        $as_test_x conftest$ac_exeext; then
10260   ac_cv_lib_dl_dlopen=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265         ac_cv_lib_dl_dlopen=no
10266 fi
10267
10268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10269       conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10271 fi
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10274 if test $ac_cv_lib_dl_dlopen = yes; then
10275   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10276 else
10277   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10278 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10279 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lsvld  $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292    Use char because int might match the return type of a GCC
10293    builtin and then its argument prototype would still apply.  */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char dlopen ();
10298 int
10299 main ()
10300 {
10301 return dlopen ();
10302   ;
10303   return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310   *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313   (eval "$ac_link") 2>conftest.er1
10314   ac_status=$?
10315   grep -v '^ *+' conftest.er1 >conftest.err
10316   rm -f conftest.er1
10317   cat conftest.err >&5
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } && {
10320          test -z "$ac_c_werror_flag" ||
10321          test ! -s conftest.err
10322        } && test -s conftest$ac_exeext &&
10323        $as_test_x conftest$ac_exeext; then
10324   ac_cv_lib_svld_dlopen=yes
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329         ac_cv_lib_svld_dlopen=no
10330 fi
10331
10332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10333       conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10335 fi
10336 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10337 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10338 if test $ac_cv_lib_svld_dlopen = yes; then
10339   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10340 else
10341   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10342 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldld  $LIBS"
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 /* Override any GCC internal prototype to avoid an error.
10356    Use char because int might match the return type of a GCC
10357    builtin and then its argument prototype would still apply.  */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 char dld_link ();
10362 int
10363 main ()
10364 {
10365 return dld_link ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374   *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377   (eval "$ac_link") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && {
10384          test -z "$ac_c_werror_flag" ||
10385          test ! -s conftest.err
10386        } && test -s conftest$ac_exeext &&
10387        $as_test_x conftest$ac_exeext; then
10388   ac_cv_lib_dld_dld_link=yes
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393         ac_cv_lib_dld_dld_link=no
10394 fi
10395
10396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397       conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10399 fi
10400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10401 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10402 if test $ac_cv_lib_dld_dld_link = yes; then
10403   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10404 fi
10405
10406
10407 fi
10408
10409
10410 fi
10411
10412
10413 fi
10414
10415
10416 fi
10417
10418
10419 fi
10420
10421     ;;
10422   esac
10423
10424   if test "x$lt_cv_dlopen" != xno; then
10425     enable_dlopen=yes
10426   else
10427     enable_dlopen=no
10428   fi
10429
10430   case $lt_cv_dlopen in
10431   dlopen)
10432     save_CPPFLAGS="$CPPFLAGS"
10433     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10434
10435     save_LDFLAGS="$LDFLAGS"
10436     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10437
10438     save_LIBS="$LIBS"
10439     LIBS="$lt_cv_dlopen_libs $LIBS"
10440
10441     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10442 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10443 if test "${lt_cv_dlopen_self+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446           if test "$cross_compiling" = yes; then :
10447   lt_cv_dlopen_self=cross
10448 else
10449   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450   lt_status=$lt_dlunknown
10451   cat > conftest.$ac_ext <<EOF
10452 #line 10448 "configure"
10453 #include "confdefs.h"
10454
10455 #if HAVE_DLFCN_H
10456 #include <dlfcn.h>
10457 #endif
10458
10459 #include <stdio.h>
10460
10461 #ifdef RTLD_GLOBAL
10462 #  define LT_DLGLOBAL           RTLD_GLOBAL
10463 #else
10464 #  ifdef DL_GLOBAL
10465 #    define LT_DLGLOBAL         DL_GLOBAL
10466 #  else
10467 #    define LT_DLGLOBAL         0
10468 #  endif
10469 #endif
10470
10471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472    find out it does not work in some platform. */
10473 #ifndef LT_DLLAZY_OR_NOW
10474 #  ifdef RTLD_LAZY
10475 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10476 #  else
10477 #    ifdef DL_LAZY
10478 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10479 #    else
10480 #      ifdef RTLD_NOW
10481 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10482 #      else
10483 #        ifdef DL_NOW
10484 #          define LT_DLLAZY_OR_NOW      DL_NOW
10485 #        else
10486 #          define LT_DLLAZY_OR_NOW      0
10487 #        endif
10488 #      endif
10489 #    endif
10490 #  endif
10491 #endif
10492
10493 #ifdef __cplusplus
10494 extern "C" void exit (int);
10495 #endif
10496
10497 void fnord() { int i=42;}
10498 int main ()
10499 {
10500   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501   int status = $lt_dlunknown;
10502
10503   if (self)
10504     {
10505       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10506       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507       /* dlclose (self); */
10508     }
10509   else
10510     puts (dlerror ());
10511
10512     exit (status);
10513 }
10514 EOF
10515   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516   (eval $ac_link) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10520     (./conftest; exit; ) >&5 2>/dev/null
10521     lt_status=$?
10522     case x$lt_status in
10523       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10524       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10525       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10526     esac
10527   else :
10528     # compilation failed
10529     lt_cv_dlopen_self=no
10530   fi
10531 fi
10532 rm -fr conftest*
10533
10534
10535 fi
10536 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10537 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10538
10539     if test "x$lt_cv_dlopen_self" = xyes; then
10540       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10541       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10542 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10543 if test "${lt_cv_dlopen_self_static+set}" = set; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546           if test "$cross_compiling" = yes; then :
10547   lt_cv_dlopen_self_static=cross
10548 else
10549   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10550   lt_status=$lt_dlunknown
10551   cat > conftest.$ac_ext <<EOF
10552 #line 10548 "configure"
10553 #include "confdefs.h"
10554
10555 #if HAVE_DLFCN_H
10556 #include <dlfcn.h>
10557 #endif
10558
10559 #include <stdio.h>
10560
10561 #ifdef RTLD_GLOBAL
10562 #  define LT_DLGLOBAL           RTLD_GLOBAL
10563 #else
10564 #  ifdef DL_GLOBAL
10565 #    define LT_DLGLOBAL         DL_GLOBAL
10566 #  else
10567 #    define LT_DLGLOBAL         0
10568 #  endif
10569 #endif
10570
10571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10572    find out it does not work in some platform. */
10573 #ifndef LT_DLLAZY_OR_NOW
10574 #  ifdef RTLD_LAZY
10575 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10576 #  else
10577 #    ifdef DL_LAZY
10578 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10579 #    else
10580 #      ifdef RTLD_NOW
10581 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10582 #      else
10583 #        ifdef DL_NOW
10584 #          define LT_DLLAZY_OR_NOW      DL_NOW
10585 #        else
10586 #          define LT_DLLAZY_OR_NOW      0
10587 #        endif
10588 #      endif
10589 #    endif
10590 #  endif
10591 #endif
10592
10593 #ifdef __cplusplus
10594 extern "C" void exit (int);
10595 #endif
10596
10597 void fnord() { int i=42;}
10598 int main ()
10599 {
10600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10601   int status = $lt_dlunknown;
10602
10603   if (self)
10604     {
10605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10606       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10607       /* dlclose (self); */
10608     }
10609   else
10610     puts (dlerror ());
10611
10612     exit (status);
10613 }
10614 EOF
10615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616   (eval $ac_link) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10620     (./conftest; exit; ) >&5 2>/dev/null
10621     lt_status=$?
10622     case x$lt_status in
10623       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10624       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10625       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10626     esac
10627   else :
10628     # compilation failed
10629     lt_cv_dlopen_self_static=no
10630   fi
10631 fi
10632 rm -fr conftest*
10633
10634
10635 fi
10636 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10637 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10638     fi
10639
10640     CPPFLAGS="$save_CPPFLAGS"
10641     LDFLAGS="$save_LDFLAGS"
10642     LIBS="$save_LIBS"
10643     ;;
10644   esac
10645
10646   case $lt_cv_dlopen_self in
10647   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10648   *) enable_dlopen_self=unknown ;;
10649   esac
10650
10651   case $lt_cv_dlopen_self_static in
10652   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10653   *) enable_dlopen_self_static=unknown ;;
10654   esac
10655 fi
10656
10657
10658 # Report which library types will actually be built
10659 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10660 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10661 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10662 echo "${ECHO_T}$can_build_shared" >&6; }
10663
10664 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10665 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10666 test "$can_build_shared" = "no" && enable_shared=no
10667
10668 # On AIX, shared libraries and static libraries use the same namespace, and
10669 # are all built from PIC.
10670 case $host_os in
10671 aix3*)
10672   test "$enable_shared" = yes && enable_static=no
10673   if test -n "$RANLIB"; then
10674     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10675     postinstall_cmds='$RANLIB $lib'
10676   fi
10677   ;;
10678
10679 aix[4-9]*)
10680   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10681     test "$enable_shared" = yes && enable_static=no
10682   fi
10683     ;;
10684 esac
10685 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10686 echo "${ECHO_T}$enable_shared" >&6; }
10687
10688 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10689 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10690 # Make sure either enable_shared or enable_static is yes.
10691 test "$enable_shared" = yes || enable_static=yes
10692 { echo "$as_me:$LINENO: result: $enable_static" >&5
10693 echo "${ECHO_T}$enable_static" >&6; }
10694
10695 # The else clause should only fire when bootstrapping the
10696 # libtool distribution, otherwise you forgot to ship ltmain.sh
10697 # with your package, and you will get complaints that there are
10698 # no rules to generate ltmain.sh.
10699 if test -f "$ltmain"; then
10700   # See if we are running on zsh, and set the options which allow our commands through
10701   # without removal of \ escapes.
10702   if test -n "${ZSH_VERSION+set}" ; then
10703     setopt NO_GLOB_SUBST
10704   fi
10705   # Now quote all the things that may contain metacharacters while being
10706   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10707   # variables and quote the copies for generation of the libtool script.
10708   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10709     SED SHELL STRIP \
10710     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10711     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10712     deplibs_check_method reload_flag reload_cmds need_locks \
10713     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10714     lt_cv_sys_global_symbol_to_c_name_address \
10715     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10716     old_postinstall_cmds old_postuninstall_cmds \
10717     compiler \
10718     CC \
10719     LD \
10720     lt_prog_compiler_wl \
10721     lt_prog_compiler_pic \
10722     lt_prog_compiler_static \
10723     lt_prog_compiler_no_builtin_flag \
10724     export_dynamic_flag_spec \
10725     thread_safe_flag_spec \
10726     whole_archive_flag_spec \
10727     enable_shared_with_static_runtimes \
10728     old_archive_cmds \
10729     old_archive_from_new_cmds \
10730     predep_objects \
10731     postdep_objects \
10732     predeps \
10733     postdeps \
10734     compiler_lib_search_path \
10735     compiler_lib_search_dirs \
10736     archive_cmds \
10737     archive_expsym_cmds \
10738     postinstall_cmds \
10739     postuninstall_cmds \
10740     old_archive_from_expsyms_cmds \
10741     allow_undefined_flag \
10742     no_undefined_flag \
10743     export_symbols_cmds \
10744     hardcode_libdir_flag_spec \
10745     hardcode_libdir_flag_spec_ld \
10746     hardcode_libdir_separator \
10747     hardcode_automatic \
10748     module_cmds \
10749     module_expsym_cmds \
10750     lt_cv_prog_compiler_c_o \
10751     fix_srcfile_path \
10752     exclude_expsyms \
10753     include_expsyms; do
10754
10755     case $var in
10756     old_archive_cmds | \
10757     old_archive_from_new_cmds | \
10758     archive_cmds | \
10759     archive_expsym_cmds | \
10760     module_cmds | \
10761     module_expsym_cmds | \
10762     old_archive_from_expsyms_cmds | \
10763     export_symbols_cmds | \
10764     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10765     postinstall_cmds | postuninstall_cmds | \
10766     old_postinstall_cmds | old_postuninstall_cmds | \
10767     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10768       # Double-quote double-evaled strings.
10769       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10770       ;;
10771     *)
10772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10773       ;;
10774     esac
10775   done
10776
10777   case $lt_echo in
10778   *'\$0 --fallback-echo"')
10779     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10780     ;;
10781   esac
10782
10783 cfgfile="${ofile}T"
10784   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10785   $rm -f "$cfgfile"
10786   { echo "$as_me:$LINENO: creating $ofile" >&5
10787 echo "$as_me: creating $ofile" >&6;}
10788
10789   cat <<__EOF__ >> "$cfgfile"
10790 #! $SHELL
10791
10792 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10793 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10794 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10795 #
10796 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10797 # Free Software Foundation, Inc.
10798 #
10799 # This file is part of GNU Libtool:
10800 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10801 #
10802 # This program is free software; you can redistribute it and/or modify
10803 # it under the terms of the GNU General Public License as published by
10804 # the Free Software Foundation; either version 2 of the License, or
10805 # (at your option) any later version.
10806 #
10807 # This program is distributed in the hope that it will be useful, but
10808 # WITHOUT ANY WARRANTY; without even the implied warranty of
10809 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10810 # General Public License for more details.
10811 #
10812 # You should have received a copy of the GNU General Public License
10813 # along with this program; if not, write to the Free Software
10814 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10815 #
10816 # As a special exception to the GNU General Public License, if you
10817 # distribute this file as part of a program that contains a
10818 # configuration script generated by Autoconf, you may include it under
10819 # the same distribution terms that you use for the rest of that program.
10820
10821 # A sed program that does not truncate output.
10822 SED=$lt_SED
10823
10824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10825 Xsed="$SED -e 1s/^X//"
10826
10827 # The HP-UX ksh and POSIX shell print the target directory to stdout
10828 # if CDPATH is set.
10829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10830
10831 # The names of the tagged configurations supported by this script.
10832 available_tags=
10833
10834 # ### BEGIN LIBTOOL CONFIG
10835
10836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10837
10838 # Shell to use when invoking shell scripts.
10839 SHELL=$lt_SHELL
10840
10841 # Whether or not to build shared libraries.
10842 build_libtool_libs=$enable_shared
10843
10844 # Whether or not to build static libraries.
10845 build_old_libs=$enable_static
10846
10847 # Whether or not to add -lc for building shared libraries.
10848 build_libtool_need_lc=$archive_cmds_need_lc
10849
10850 # Whether or not to disallow shared libs when runtime libs are static
10851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10852
10853 # Whether or not to optimize for fast installation.
10854 fast_install=$enable_fast_install
10855
10856 # The host system.
10857 host_alias=$host_alias
10858 host=$host
10859 host_os=$host_os
10860
10861 # The build system.
10862 build_alias=$build_alias
10863 build=$build
10864 build_os=$build_os
10865
10866 # An echo program that does not interpret backslashes.
10867 echo=$lt_echo
10868
10869 # The archiver.
10870 AR=$lt_AR
10871 AR_FLAGS=$lt_AR_FLAGS
10872
10873 # A C compiler.
10874 LTCC=$lt_LTCC
10875
10876 # LTCC compiler flags.
10877 LTCFLAGS=$lt_LTCFLAGS
10878
10879 # A language-specific compiler.
10880 CC=$lt_compiler
10881
10882 # Is the compiler the GNU C compiler?
10883 with_gcc=$GCC
10884
10885 # An ERE matcher.
10886 EGREP=$lt_EGREP
10887
10888 # The linker used to build libraries.
10889 LD=$lt_LD
10890
10891 # Whether we need hard or soft links.
10892 LN_S=$lt_LN_S
10893
10894 # A BSD-compatible nm program.
10895 NM=$lt_NM
10896
10897 # A symbol stripping program
10898 STRIP=$lt_STRIP
10899
10900 # Used to examine libraries when file_magic_cmd begins "file"
10901 MAGIC_CMD=$MAGIC_CMD
10902
10903 # Used on cygwin: DLL creation program.
10904 DLLTOOL="$DLLTOOL"
10905
10906 # Used on cygwin: object dumper.
10907 OBJDUMP="$OBJDUMP"
10908
10909 # Used on cygwin: assembler.
10910 AS="$AS"
10911
10912 # The name of the directory that contains temporary libtool files.
10913 objdir=$objdir
10914
10915 # How to create reloadable object files.
10916 reload_flag=$lt_reload_flag
10917 reload_cmds=$lt_reload_cmds
10918
10919 # How to pass a linker flag through the compiler.
10920 wl=$lt_lt_prog_compiler_wl
10921
10922 # Object file suffix (normally "o").
10923 objext="$ac_objext"
10924
10925 # Old archive suffix (normally "a").
10926 libext="$libext"
10927
10928 # Shared library suffix (normally ".so").
10929 shrext_cmds='$shrext_cmds'
10930
10931 # Executable file suffix (normally "").
10932 exeext="$exeext"
10933
10934 # Additional compiler flags for building library objects.
10935 pic_flag=$lt_lt_prog_compiler_pic
10936 pic_mode=$pic_mode
10937
10938 # What is the maximum length of a command?
10939 max_cmd_len=$lt_cv_sys_max_cmd_len
10940
10941 # Does compiler simultaneously support -c and -o options?
10942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10943
10944 # Must we lock files when doing compilation?
10945 need_locks=$lt_need_locks
10946
10947 # Do we need the lib prefix for modules?
10948 need_lib_prefix=$need_lib_prefix
10949
10950 # Do we need a version for libraries?
10951 need_version=$need_version
10952
10953 # Whether dlopen is supported.
10954 dlopen_support=$enable_dlopen
10955
10956 # Whether dlopen of programs is supported.
10957 dlopen_self=$enable_dlopen_self
10958
10959 # Whether dlopen of statically linked programs is supported.
10960 dlopen_self_static=$enable_dlopen_self_static
10961
10962 # Compiler flag to prevent dynamic linking.
10963 link_static_flag=$lt_lt_prog_compiler_static
10964
10965 # Compiler flag to turn off builtin functions.
10966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10967
10968 # Compiler flag to allow reflexive dlopens.
10969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10970
10971 # Compiler flag to generate shared objects directly from archives.
10972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10973
10974 # Compiler flag to generate thread-safe objects.
10975 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10976
10977 # Library versioning type.
10978 version_type=$version_type
10979
10980 # Format of library name prefix.
10981 libname_spec=$lt_libname_spec
10982
10983 # List of archive names.  First name is the real one, the rest are links.
10984 # The last name is the one that the linker finds with -lNAME.
10985 library_names_spec=$lt_library_names_spec
10986
10987 # The coded name of the library, if different from the real name.
10988 soname_spec=$lt_soname_spec
10989
10990 # Commands used to build and install an old-style archive.
10991 RANLIB=$lt_RANLIB
10992 old_archive_cmds=$lt_old_archive_cmds
10993 old_postinstall_cmds=$lt_old_postinstall_cmds
10994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10995
10996 # Create an old-style archive from a shared archive.
10997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10998
10999 # Create a temporary old-style archive to link instead of a shared archive.
11000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11001
11002 # Commands used to build and install a shared archive.
11003 archive_cmds=$lt_archive_cmds
11004 archive_expsym_cmds=$lt_archive_expsym_cmds
11005 postinstall_cmds=$lt_postinstall_cmds
11006 postuninstall_cmds=$lt_postuninstall_cmds
11007
11008 # Commands used to build a loadable module (assumed same as above if empty)
11009 module_cmds=$lt_module_cmds
11010 module_expsym_cmds=$lt_module_expsym_cmds
11011
11012 # Commands to strip libraries.
11013 old_striplib=$lt_old_striplib
11014 striplib=$lt_striplib
11015
11016 # Dependencies to place before the objects being linked to create a
11017 # shared library.
11018 predep_objects=$lt_predep_objects
11019
11020 # Dependencies to place after the objects being linked to create a
11021 # shared library.
11022 postdep_objects=$lt_postdep_objects
11023
11024 # Dependencies to place before the objects being linked to create a
11025 # shared library.
11026 predeps=$lt_predeps
11027
11028 # Dependencies to place after the objects being linked to create a
11029 # shared library.
11030 postdeps=$lt_postdeps
11031
11032 # The directories searched by this compiler when creating a shared
11033 # library
11034 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11035
11036 # The library search path used internally by the compiler when linking
11037 # a shared library.
11038 compiler_lib_search_path=$lt_compiler_lib_search_path
11039
11040 # Method to check whether dependent libraries are shared objects.
11041 deplibs_check_method=$lt_deplibs_check_method
11042
11043 # Command to use when deplibs_check_method == file_magic.
11044 file_magic_cmd=$lt_file_magic_cmd
11045
11046 # Flag that allows shared libraries with undefined symbols to be built.
11047 allow_undefined_flag=$lt_allow_undefined_flag
11048
11049 # Flag that forces no undefined symbols.
11050 no_undefined_flag=$lt_no_undefined_flag
11051
11052 # Commands used to finish a libtool library installation in a directory.
11053 finish_cmds=$lt_finish_cmds
11054
11055 # Same as above, but a single script fragment to be evaled but not shown.
11056 finish_eval=$lt_finish_eval
11057
11058 # Take the output of nm and produce a listing of raw symbols and C names.
11059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11060
11061 # Transform the output of nm in a proper C declaration
11062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11063
11064 # Transform the output of nm in a C name address pair
11065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11066
11067 # This is the shared library runtime path variable.
11068 runpath_var=$runpath_var
11069
11070 # This is the shared library path variable.
11071 shlibpath_var=$shlibpath_var
11072
11073 # Is shlibpath searched before the hard-coded library search path?
11074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11075
11076 # How to hardcode a shared library path into an executable.
11077 hardcode_action=$hardcode_action
11078
11079 # Whether we should hardcode library paths into libraries.
11080 hardcode_into_libs=$hardcode_into_libs
11081
11082 # Flag to hardcode \$libdir into a binary during linking.
11083 # This must work even if \$libdir does not exist.
11084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11085
11086 # If ld is used when linking, flag to hardcode \$libdir into
11087 # a binary during linking. This must work even if \$libdir does
11088 # not exist.
11089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11090
11091 # Whether we need a single -rpath flag with a separated argument.
11092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11093
11094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11095 # resulting binary.
11096 hardcode_direct=$hardcode_direct
11097
11098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11099 # resulting binary.
11100 hardcode_minus_L=$hardcode_minus_L
11101
11102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11103 # the resulting binary.
11104 hardcode_shlibpath_var=$hardcode_shlibpath_var
11105
11106 # Set to yes if building a shared library automatically hardcodes DIR into the library
11107 # and all subsequent libraries and executables linked against it.
11108 hardcode_automatic=$hardcode_automatic
11109
11110 # Variables whose values should be saved in libtool wrapper scripts and
11111 # restored at relink time.
11112 variables_saved_for_relink="$variables_saved_for_relink"
11113
11114 # Whether libtool must link a program against all its dependency libraries.
11115 link_all_deplibs=$link_all_deplibs
11116
11117 # Compile-time system search path for libraries
11118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11119
11120 # Run-time system search path for libraries
11121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11122
11123 # Fix the shell variable \$srcfile for the compiler.
11124 fix_srcfile_path=$lt_fix_srcfile_path
11125
11126 # Set to yes if exported symbols are required.
11127 always_export_symbols=$always_export_symbols
11128
11129 # The commands to list exported symbols.
11130 export_symbols_cmds=$lt_export_symbols_cmds
11131
11132 # The commands to extract the exported symbol list from a shared archive.
11133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11134
11135 # Symbols that should not be listed in the preloaded symbols.
11136 exclude_expsyms=$lt_exclude_expsyms
11137
11138 # Symbols that must always be exported.
11139 include_expsyms=$lt_include_expsyms
11140
11141 # ### END LIBTOOL CONFIG
11142
11143 __EOF__
11144
11145
11146   case $host_os in
11147   aix3*)
11148     cat <<\EOF >> "$cfgfile"
11149
11150 # AIX sometimes has problems with the GCC collect2 program.  For some
11151 # reason, if we set the COLLECT_NAMES environment variable, the problems
11152 # vanish in a puff of smoke.
11153 if test "X${COLLECT_NAMES+set}" != Xset; then
11154   COLLECT_NAMES=
11155   export COLLECT_NAMES
11156 fi
11157 EOF
11158     ;;
11159   esac
11160
11161   # We use sed instead of cat because bash on DJGPP gets confused if
11162   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11163   # text mode, it properly converts lines to CR/LF.  This bash problem
11164   # is reportedly fixed, but why not run on old versions too?
11165   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11166
11167   mv -f "$cfgfile" "$ofile" || \
11168     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11169   chmod +x "$ofile"
11170
11171 else
11172   # If there is no Makefile yet, we rely on a make rule to execute
11173   # `config.status --recheck' to rerun these tests and create the
11174   # libtool script then.
11175   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11176   if test -f "$ltmain_in"; then
11177     test -f Makefile && make "$ltmain"
11178   fi
11179 fi
11180
11181
11182 ac_ext=c
11183 ac_cpp='$CPP $CPPFLAGS'
11184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11187
11188 CC="$lt_save_CC"
11189
11190
11191 # Check whether --with-tags was given.
11192 if test "${with_tags+set}" = set; then
11193   withval=$with_tags; tagnames="$withval"
11194 fi
11195
11196
11197 if test -f "$ltmain" && test -n "$tagnames"; then
11198   if test ! -f "${ofile}"; then
11199     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11200 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11201   fi
11202
11203   if test -z "$LTCC"; then
11204     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11205     if test -z "$LTCC"; then
11206       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11207 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11208     else
11209       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11210 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11211     fi
11212   fi
11213   if test -z "$LTCFLAGS"; then
11214     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11215   fi
11216
11217   # Extract list of available tagged configurations in $ofile.
11218   # Note that this assumes the entire list is on one line.
11219   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11220
11221   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11222   for tagname in $tagnames; do
11223     IFS="$lt_save_ifs"
11224     # Check whether tagname contains only valid characters
11225     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11226     "") ;;
11227     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11228 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11229    { (exit 1); exit 1; }; }
11230         ;;
11231     esac
11232
11233     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11234     then
11235       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11236 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11237    { (exit 1); exit 1; }; }
11238     fi
11239
11240     # Update the list of available tags.
11241     if test -n "$tagname"; then
11242       echo appending configuration tag \"$tagname\" to $ofile
11243
11244       case $tagname in
11245       CXX)
11246         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11247             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11248             (test "X$CXX" != "Xg++"))) ; then
11249           ac_ext=cpp
11250 ac_cpp='$CXXCPP $CPPFLAGS'
11251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11254
11255
11256
11257
11258 archive_cmds_need_lc_CXX=no
11259 allow_undefined_flag_CXX=
11260 always_export_symbols_CXX=no
11261 archive_expsym_cmds_CXX=
11262 export_dynamic_flag_spec_CXX=
11263 hardcode_direct_CXX=no
11264 hardcode_libdir_flag_spec_CXX=
11265 hardcode_libdir_flag_spec_ld_CXX=
11266 hardcode_libdir_separator_CXX=
11267 hardcode_minus_L_CXX=no
11268 hardcode_shlibpath_var_CXX=unsupported
11269 hardcode_automatic_CXX=no
11270 module_cmds_CXX=
11271 module_expsym_cmds_CXX=
11272 link_all_deplibs_CXX=unknown
11273 old_archive_cmds_CXX=$old_archive_cmds
11274 no_undefined_flag_CXX=
11275 whole_archive_flag_spec_CXX=
11276 enable_shared_with_static_runtimes_CXX=no
11277
11278 # Dependencies to place before and after the object being linked:
11279 predep_objects_CXX=
11280 postdep_objects_CXX=
11281 predeps_CXX=
11282 postdeps_CXX=
11283 compiler_lib_search_path_CXX=
11284 compiler_lib_search_dirs_CXX=
11285
11286 # Source file extension for C++ test sources.
11287 ac_ext=cpp
11288
11289 # Object file extension for compiled C++ test sources.
11290 objext=o
11291 objext_CXX=$objext
11292
11293 # Code to be used in simple compile tests
11294 lt_simple_compile_test_code="int some_variable = 0;"
11295
11296 # Code to be used in simple link tests
11297 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11298
11299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11300
11301 # If no C compiler was specified, use CC.
11302 LTCC=${LTCC-"$CC"}
11303
11304 # If no C compiler flags were specified, use CFLAGS.
11305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11306
11307 # Allow CC to be a program name with arguments.
11308 compiler=$CC
11309
11310
11311 # save warnings/boilerplate of simple test code
11312 ac_outfile=conftest.$ac_objext
11313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11315 _lt_compiler_boilerplate=`cat conftest.err`
11316 $rm conftest*
11317
11318 ac_outfile=conftest.$ac_objext
11319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11321 _lt_linker_boilerplate=`cat conftest.err`
11322 $rm -r conftest*
11323
11324
11325 # Allow CC to be a program name with arguments.
11326 lt_save_CC=$CC
11327 lt_save_LD=$LD
11328 lt_save_GCC=$GCC
11329 GCC=$GXX
11330 lt_save_with_gnu_ld=$with_gnu_ld
11331 lt_save_path_LD=$lt_cv_path_LD
11332 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11333   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11334 else
11335   $as_unset lt_cv_prog_gnu_ld
11336 fi
11337 if test -n "${lt_cv_path_LDCXX+set}"; then
11338   lt_cv_path_LD=$lt_cv_path_LDCXX
11339 else
11340   $as_unset lt_cv_path_LD
11341 fi
11342 test -z "${LDCXX+set}" || LD=$LDCXX
11343 CC=${CXX-"c++"}
11344 compiler=$CC
11345 compiler_CXX=$CC
11346 for cc_temp in $compiler""; do
11347   case $cc_temp in
11348     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11349     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11350     \-*) ;;
11351     *) break;;
11352   esac
11353 done
11354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11355
11356
11357 # We don't want -fno-exception wen compiling C++ code, so set the
11358 # no_builtin_flag separately
11359 if test "$GXX" = yes; then
11360   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11361 else
11362   lt_prog_compiler_no_builtin_flag_CXX=
11363 fi
11364
11365 if test "$GXX" = yes; then
11366   # Set up default GNU C++ configuration
11367
11368
11369 # Check whether --with-gnu-ld was given.
11370 if test "${with_gnu_ld+set}" = set; then
11371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11372 else
11373   with_gnu_ld=no
11374 fi
11375
11376 ac_prog=ld
11377 if test "$GCC" = yes; then
11378   # Check if gcc -print-prog-name=ld gives a path.
11379   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11380 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11381   case $host in
11382   *-*-mingw*)
11383     # gcc leaves a trailing carriage return which upsets mingw
11384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11385   *)
11386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11387   esac
11388   case $ac_prog in
11389     # Accept absolute paths.
11390     [\\/]* | ?:[\\/]*)
11391       re_direlt='/[^/][^/]*/\.\./'
11392       # Canonicalize the pathname of ld
11393       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11394       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11395         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11396       done
11397       test -z "$LD" && LD="$ac_prog"
11398       ;;
11399   "")
11400     # If it fails, then pretend we aren't using GCC.
11401     ac_prog=ld
11402     ;;
11403   *)
11404     # If it is relative, then search for the first ld in PATH.
11405     with_gnu_ld=unknown
11406     ;;
11407   esac
11408 elif test "$with_gnu_ld" = yes; then
11409   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11410 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11411 else
11412   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11413 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11414 fi
11415 if test "${lt_cv_path_LD+set}" = set; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   if test -z "$LD"; then
11419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11420   for ac_dir in $PATH; do
11421     IFS="$lt_save_ifs"
11422     test -z "$ac_dir" && ac_dir=.
11423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11424       lt_cv_path_LD="$ac_dir/$ac_prog"
11425       # Check to see if the program is GNU ld.  I'd rather use --version,
11426       # but apparently some variants of GNU ld only accept -v.
11427       # Break only if it was the GNU/non-GNU ld that we prefer.
11428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11429       *GNU* | *'with BFD'*)
11430         test "$with_gnu_ld" != no && break
11431         ;;
11432       *)
11433         test "$with_gnu_ld" != yes && break
11434         ;;
11435       esac
11436     fi
11437   done
11438   IFS="$lt_save_ifs"
11439 else
11440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11441 fi
11442 fi
11443
11444 LD="$lt_cv_path_LD"
11445 if test -n "$LD"; then
11446   { echo "$as_me:$LINENO: result: $LD" >&5
11447 echo "${ECHO_T}$LD" >&6; }
11448 else
11449   { echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6; }
11451 fi
11452 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11453 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11454    { (exit 1); exit 1; }; }
11455 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11456 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11457 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11461 case `$LD -v 2>&1 </dev/null` in
11462 *GNU* | *'with BFD'*)
11463   lt_cv_prog_gnu_ld=yes
11464   ;;
11465 *)
11466   lt_cv_prog_gnu_ld=no
11467   ;;
11468 esac
11469 fi
11470 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11471 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11472 with_gnu_ld=$lt_cv_prog_gnu_ld
11473
11474
11475
11476   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11477   # archiving commands below assume that GNU ld is being used.
11478   if test "$with_gnu_ld" = yes; then
11479     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11481
11482     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11483     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11484
11485     # If archive_cmds runs LD, not CC, wlarc should be empty
11486     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11487     #     investigate it a little bit more. (MM)
11488     wlarc='${wl}'
11489
11490     # ancient GNU ld didn't support --whole-archive et. al.
11491     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11492         grep 'no-whole-archive' > /dev/null; then
11493       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11494     else
11495       whole_archive_flag_spec_CXX=
11496     fi
11497   else
11498     with_gnu_ld=no
11499     wlarc=
11500
11501     # A generic and very simple default shared library creation
11502     # command for GNU C++ for the case where it uses the native
11503     # linker, instead of GNU ld.  If possible, this setting should
11504     # overridden to take advantage of the native linker features on
11505     # the platform it is being used on.
11506     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11507   fi
11508
11509   # Commands to make compiler produce verbose output that lists
11510   # what "hidden" libraries, object files and flags are used when
11511   # linking a shared library.
11512   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11513
11514 else
11515   GXX=no
11516   with_gnu_ld=no
11517   wlarc=
11518 fi
11519
11520 # PORTME: fill in a description of your system's C++ link characteristics
11521 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11522 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11523 ld_shlibs_CXX=yes
11524 case $host_os in
11525   aix3*)
11526     # FIXME: insert proper C++ library support
11527     ld_shlibs_CXX=no
11528     ;;
11529   aix[4-9]*)
11530     if test "$host_cpu" = ia64; then
11531       # On IA64, the linker does run time linking by default, so we don't
11532       # have to do anything special.
11533       aix_use_runtimelinking=no
11534       exp_sym_flag='-Bexport'
11535       no_entry_flag=""
11536     else
11537       aix_use_runtimelinking=no
11538
11539       # Test if we are trying to use run time linking or normal
11540       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11541       # need to do runtime linking.
11542       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11543         for ld_flag in $LDFLAGS; do
11544           case $ld_flag in
11545           *-brtl*)
11546             aix_use_runtimelinking=yes
11547             break
11548             ;;
11549           esac
11550         done
11551         ;;
11552       esac
11553
11554       exp_sym_flag='-bexport'
11555       no_entry_flag='-bnoentry'
11556     fi
11557
11558     # When large executables or shared objects are built, AIX ld can
11559     # have problems creating the table of contents.  If linking a library
11560     # or program results in "error TOC overflow" add -mminimal-toc to
11561     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11562     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11563
11564     archive_cmds_CXX=''
11565     hardcode_direct_CXX=yes
11566     hardcode_libdir_separator_CXX=':'
11567     link_all_deplibs_CXX=yes
11568
11569     if test "$GXX" = yes; then
11570       case $host_os in aix4.[012]|aix4.[012].*)
11571       # We only want to do this on AIX 4.2 and lower, the check
11572       # below for broken collect2 doesn't work under 4.3+
11573         collect2name=`${CC} -print-prog-name=collect2`
11574         if test -f "$collect2name" && \
11575            strings "$collect2name" | grep resolve_lib_name >/dev/null
11576         then
11577           # We have reworked collect2
11578           :
11579         else
11580           # We have old collect2
11581           hardcode_direct_CXX=unsupported
11582           # It fails to find uninstalled libraries when the uninstalled
11583           # path is not listed in the libpath.  Setting hardcode_minus_L
11584           # to unsupported forces relinking
11585           hardcode_minus_L_CXX=yes
11586           hardcode_libdir_flag_spec_CXX='-L$libdir'
11587           hardcode_libdir_separator_CXX=
11588         fi
11589         ;;
11590       esac
11591       shared_flag='-shared'
11592       if test "$aix_use_runtimelinking" = yes; then
11593         shared_flag="$shared_flag "'${wl}-G'
11594       fi
11595     else
11596       # not using gcc
11597       if test "$host_cpu" = ia64; then
11598         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11599         # chokes on -Wl,-G. The following line is correct:
11600         shared_flag='-G'
11601       else
11602         if test "$aix_use_runtimelinking" = yes; then
11603           shared_flag='${wl}-G'
11604         else
11605           shared_flag='${wl}-bM:SRE'
11606         fi
11607       fi
11608     fi
11609
11610     # It seems that -bexpall does not export symbols beginning with
11611     # underscore (_), so it is better to generate a list of symbols to export.
11612     always_export_symbols_CXX=yes
11613     if test "$aix_use_runtimelinking" = yes; then
11614       # Warning - without using the other runtime loading flags (-brtl),
11615       # -berok will link without error, but may produce a broken library.
11616       allow_undefined_flag_CXX='-berok'
11617       # Determine the default libpath from the value encoded in an empty executable.
11618       cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624
11625 int
11626 main ()
11627 {
11628
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_link") 2>conftest.er1
11641   ac_status=$?
11642   grep -v '^ *+' conftest.er1 >conftest.err
11643   rm -f conftest.er1
11644   cat conftest.err >&5
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } && {
11647          test -z "$ac_cxx_werror_flag" ||
11648          test ! -s conftest.err
11649        } && test -s conftest$ac_exeext &&
11650        $as_test_x conftest$ac_exeext; then
11651
11652 lt_aix_libpath_sed='
11653     /Import File Strings/,/^$/ {
11654         /^0/ {
11655             s/^0  *\(.*\)$/\1/
11656             p
11657         }
11658     }'
11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$aix_libpath"; then
11662   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 fi
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668
11669 fi
11670
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672       conftest$ac_exeext conftest.$ac_ext
11673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11674
11675       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11676
11677       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11678      else
11679       if test "$host_cpu" = ia64; then
11680         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11681         allow_undefined_flag_CXX="-z nodefs"
11682         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11683       else
11684         # Determine the default libpath from the value encoded in an empty executable.
11685         cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691
11692 int
11693 main ()
11694 {
11695
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (ac_try="$ac_link"
11702 case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707   (eval "$ac_link") 2>conftest.er1
11708   ac_status=$?
11709   grep -v '^ *+' conftest.er1 >conftest.err
11710   rm -f conftest.er1
11711   cat conftest.err >&5
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); } && {
11714          test -z "$ac_cxx_werror_flag" ||
11715          test ! -s conftest.err
11716        } && test -s conftest$ac_exeext &&
11717        $as_test_x conftest$ac_exeext; then
11718
11719 lt_aix_libpath_sed='
11720     /Import File Strings/,/^$/ {
11721         /^0/ {
11722             s/^0  *\(.*\)$/\1/
11723             p
11724         }
11725     }'
11726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11727 # Check for a 64-bit object if we didn't find anything.
11728 if test -z "$aix_libpath"; then
11729   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11730 fi
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11739       conftest$ac_exeext conftest.$ac_ext
11740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11741
11742         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11743         # Warning - without using the other run time loading flags,
11744         # -berok will link without error, but may produce a broken library.
11745         no_undefined_flag_CXX=' ${wl}-bernotok'
11746         allow_undefined_flag_CXX=' ${wl}-berok'
11747         # Exported symbols can be pulled into shared objects from archives
11748         whole_archive_flag_spec_CXX='$convenience'
11749         archive_cmds_need_lc_CXX=yes
11750         # This is similar to how AIX traditionally builds its shared libraries.
11751         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11752       fi
11753     fi
11754     ;;
11755
11756   beos*)
11757     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11758       allow_undefined_flag_CXX=unsupported
11759       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11760       # support --undefined.  This deserves some investigation.  FIXME
11761       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762     else
11763       ld_shlibs_CXX=no
11764     fi
11765     ;;
11766
11767   chorus*)
11768     case $cc_basename in
11769       *)
11770         # FIXME: insert proper C++ library support
11771         ld_shlibs_CXX=no
11772         ;;
11773     esac
11774     ;;
11775
11776   cygwin* | mingw* | pw32*)
11777     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11778     # as there is no search path for DLLs.
11779     hardcode_libdir_flag_spec_CXX='-L$libdir'
11780     allow_undefined_flag_CXX=unsupported
11781     always_export_symbols_CXX=no
11782     enable_shared_with_static_runtimes_CXX=yes
11783
11784     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11785       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11786       # If the export-symbols file already is a .def file (1st line
11787       # is EXPORTS), use it as is; otherwise, prepend...
11788       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11789         cp $export_symbols $output_objdir/$soname.def;
11790       else
11791         echo EXPORTS > $output_objdir/$soname.def;
11792         cat $export_symbols >> $output_objdir/$soname.def;
11793       fi~
11794       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11795     else
11796       ld_shlibs_CXX=no
11797     fi
11798   ;;
11799       darwin* | rhapsody*)
11800       archive_cmds_need_lc_CXX=no
11801       hardcode_direct_CXX=no
11802       hardcode_automatic_CXX=yes
11803       hardcode_shlibpath_var_CXX=unsupported
11804       whole_archive_flag_spec_CXX=''
11805       link_all_deplibs_CXX=yes
11806       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11807       if test "$GXX" = yes ; then
11808       output_verbose_link_cmd='echo'
11809       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11810       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11811       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11812       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11813       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11814         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11815         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11816       fi
11817       else
11818       case $cc_basename in
11819         xlc*)
11820          output_verbose_link_cmd='echo'
11821           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11822           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11823           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11824           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11825           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11826           ;;
11827        *)
11828          ld_shlibs_CXX=no
11829           ;;
11830       esac
11831       fi
11832         ;;
11833
11834   dgux*)
11835     case $cc_basename in
11836       ec++*)
11837         # FIXME: insert proper C++ library support
11838         ld_shlibs_CXX=no
11839         ;;
11840       ghcx*)
11841         # Green Hills C++ Compiler
11842         # FIXME: insert proper C++ library support
11843         ld_shlibs_CXX=no
11844         ;;
11845       *)
11846         # FIXME: insert proper C++ library support
11847         ld_shlibs_CXX=no
11848         ;;
11849     esac
11850     ;;
11851   freebsd[12]*)
11852     # C++ shared libraries reported to be fairly broken before switch to ELF
11853     ld_shlibs_CXX=no
11854     ;;
11855   freebsd-elf*)
11856     archive_cmds_need_lc_CXX=no
11857     ;;
11858   freebsd* | dragonfly*)
11859     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11860     # conventions
11861     ld_shlibs_CXX=yes
11862     ;;
11863   gnu*)
11864     ;;
11865   hpux9*)
11866     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11867     hardcode_libdir_separator_CXX=:
11868     export_dynamic_flag_spec_CXX='${wl}-E'
11869     hardcode_direct_CXX=yes
11870     hardcode_minus_L_CXX=yes # Not in the search PATH,
11871                                 # but as the default
11872                                 # location of the library.
11873
11874     case $cc_basename in
11875     CC*)
11876       # FIXME: insert proper C++ library support
11877       ld_shlibs_CXX=no
11878       ;;
11879     aCC*)
11880       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11881       # Commands to make compiler produce verbose output that lists
11882       # what "hidden" libraries, object files and flags are used when
11883       # linking a shared library.
11884       #
11885       # There doesn't appear to be a way to prevent this compiler from
11886       # explicitly linking system object files so we need to strip them
11887       # from the output so that they don't get included in the library
11888       # dependencies.
11889       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11890       ;;
11891     *)
11892       if test "$GXX" = yes; then
11893         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11894       else
11895         # FIXME: insert proper C++ library support
11896         ld_shlibs_CXX=no
11897       fi
11898       ;;
11899     esac
11900     ;;
11901   hpux10*|hpux11*)
11902     if test $with_gnu_ld = no; then
11903       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11904       hardcode_libdir_separator_CXX=:
11905
11906       case $host_cpu in
11907       hppa*64*|ia64*) ;;
11908       *)
11909         export_dynamic_flag_spec_CXX='${wl}-E'
11910         ;;
11911       esac
11912     fi
11913     case $host_cpu in
11914     hppa*64*|ia64*)
11915       hardcode_direct_CXX=no
11916       hardcode_shlibpath_var_CXX=no
11917       ;;
11918     *)
11919       hardcode_direct_CXX=yes
11920       hardcode_minus_L_CXX=yes # Not in the search PATH,
11921                                               # but as the default
11922                                               # location of the library.
11923       ;;
11924     esac
11925
11926     case $cc_basename in
11927       CC*)
11928         # FIXME: insert proper C++ library support
11929         ld_shlibs_CXX=no
11930         ;;
11931       aCC*)
11932         case $host_cpu in
11933         hppa*64*)
11934           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11935           ;;
11936         ia64*)
11937           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11938           ;;
11939         *)
11940           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11941           ;;
11942         esac
11943         # Commands to make compiler produce verbose output that lists
11944         # what "hidden" libraries, object files and flags are used when
11945         # linking a shared library.
11946         #
11947         # There doesn't appear to be a way to prevent this compiler from
11948         # explicitly linking system object files so we need to strip them
11949         # from the output so that they don't get included in the library
11950         # dependencies.
11951         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11952         ;;
11953       *)
11954         if test "$GXX" = yes; then
11955           if test $with_gnu_ld = no; then
11956             case $host_cpu in
11957             hppa*64*)
11958               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959               ;;
11960             ia64*)
11961               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962               ;;
11963             *)
11964               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965               ;;
11966             esac
11967           fi
11968         else
11969           # FIXME: insert proper C++ library support
11970           ld_shlibs_CXX=no
11971         fi
11972         ;;
11973     esac
11974     ;;
11975   interix[3-9]*)
11976     hardcode_direct_CXX=no
11977     hardcode_shlibpath_var_CXX=no
11978     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979     export_dynamic_flag_spec_CXX='${wl}-E'
11980     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11981     # Instead, shared libraries are loaded at an image base (0x10000000 by
11982     # default) and relocated if they conflict, which is a slow very memory
11983     # consuming and fragmenting process.  To avoid this, we pick a random,
11984     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11985     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11986     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11987     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11988     ;;
11989   irix5* | irix6*)
11990     case $cc_basename in
11991       CC*)
11992         # SGI C++
11993         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11994
11995         # Archives containing C++ object files must be created using
11996         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11997         # necessary to make sure instantiated templates are included
11998         # in the archive.
11999         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12000         ;;
12001       *)
12002         if test "$GXX" = yes; then
12003           if test "$with_gnu_ld" = no; then
12004             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12005           else
12006             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12007           fi
12008         fi
12009         link_all_deplibs_CXX=yes
12010         ;;
12011     esac
12012     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12013     hardcode_libdir_separator_CXX=:
12014     ;;
12015   linux* | k*bsd*-gnu)
12016     case $cc_basename in
12017       KCC*)
12018         # Kuck and Associates, Inc. (KAI) C++ Compiler
12019
12020         # KCC will only create a shared library if the output file
12021         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022         # to its proper name (with version) after linking.
12023         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12024         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12025         # Commands to make compiler produce verbose output that lists
12026         # what "hidden" libraries, object files and flags are used when
12027         # linking a shared library.
12028         #
12029         # There doesn't appear to be a way to prevent this compiler from
12030         # explicitly linking system object files so we need to strip them
12031         # from the output so that they don't get included in the library
12032         # dependencies.
12033         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12034
12035         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12036         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12037
12038         # Archives containing C++ object files must be created using
12039         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12040         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12041         ;;
12042       icpc*)
12043         # Intel C++
12044         with_gnu_ld=yes
12045         # version 8.0 and above of icpc choke on multiply defined symbols
12046         # if we add $predep_objects and $postdep_objects, however 7.1 and
12047         # earlier do not add the objects themselves.
12048         case `$CC -V 2>&1` in
12049         *"Version 7."*)
12050           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12052           ;;
12053         *)  # Version 8.0 or newer
12054           tmp_idyn=
12055           case $host_cpu in
12056             ia64*) tmp_idyn=' -i_dynamic';;
12057           esac
12058           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12060           ;;
12061         esac
12062         archive_cmds_need_lc_CXX=no
12063         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12065         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12066         ;;
12067       pgCC* | pgcpp*)
12068         # Portland Group C++ compiler
12069         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12070         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12071
12072         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12073         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12075         ;;
12076       cxx*)
12077         # Compaq C++
12078         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12080
12081         runpath_var=LD_RUN_PATH
12082         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12083         hardcode_libdir_separator_CXX=:
12084
12085         # Commands to make compiler produce verbose output that lists
12086         # what "hidden" libraries, object files and flags are used when
12087         # linking a shared library.
12088         #
12089         # There doesn't appear to be a way to prevent this compiler from
12090         # explicitly linking system object files so we need to strip them
12091         # from the output so that they don't get included in the library
12092         # dependencies.
12093         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12094         ;;
12095       *)
12096         case `$CC -V 2>&1 | sed 5q` in
12097         *Sun\ C*)
12098           # Sun C++ 5.9
12099           no_undefined_flag_CXX=' -zdefs'
12100           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12101           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12102           hardcode_libdir_flag_spec_CXX='-R$libdir'
12103           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12104
12105           # Not sure whether something based on
12106           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12107           # would be better.
12108           output_verbose_link_cmd='echo'
12109
12110           # Archives containing C++ object files must be created using
12111           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12112           # necessary to make sure instantiated templates are included
12113           # in the archive.
12114           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12115           ;;
12116         esac
12117         ;;
12118     esac
12119     ;;
12120   lynxos*)
12121     # FIXME: insert proper C++ library support
12122     ld_shlibs_CXX=no
12123     ;;
12124   m88k*)
12125     # FIXME: insert proper C++ library support
12126     ld_shlibs_CXX=no
12127     ;;
12128   mvs*)
12129     case $cc_basename in
12130       cxx*)
12131         # FIXME: insert proper C++ library support
12132         ld_shlibs_CXX=no
12133         ;;
12134       *)
12135         # FIXME: insert proper C++ library support
12136         ld_shlibs_CXX=no
12137         ;;
12138     esac
12139     ;;
12140   netbsd* | netbsdelf*-gnu)
12141     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12142       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12143       wlarc=
12144       hardcode_libdir_flag_spec_CXX='-R$libdir'
12145       hardcode_direct_CXX=yes
12146       hardcode_shlibpath_var_CXX=no
12147     fi
12148     # Workaround some broken pre-1.5 toolchains
12149     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12150     ;;
12151   openbsd2*)
12152     # C++ shared libraries are fairly broken
12153     ld_shlibs_CXX=no
12154     ;;
12155   openbsd*)
12156     if test -f /usr/libexec/ld.so; then
12157       hardcode_direct_CXX=yes
12158       hardcode_shlibpath_var_CXX=no
12159       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12160       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12162         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12163         export_dynamic_flag_spec_CXX='${wl}-E'
12164         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12165       fi
12166       output_verbose_link_cmd='echo'
12167     else
12168       ld_shlibs_CXX=no
12169     fi
12170     ;;
12171   osf3*)
12172     case $cc_basename in
12173       KCC*)
12174         # Kuck and Associates, Inc. (KAI) C++ Compiler
12175
12176         # KCC will only create a shared library if the output file
12177         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12178         # to its proper name (with version) after linking.
12179         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12180
12181         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182         hardcode_libdir_separator_CXX=:
12183
12184         # Archives containing C++ object files must be created using
12185         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12186         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12187
12188         ;;
12189       RCC*)
12190         # Rational C++ 2.4.1
12191         # FIXME: insert proper C++ library support
12192         ld_shlibs_CXX=no
12193         ;;
12194       cxx*)
12195         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12196         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12197
12198         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12199         hardcode_libdir_separator_CXX=:
12200
12201         # Commands to make compiler produce verbose output that lists
12202         # what "hidden" libraries, object files and flags are used when
12203         # linking a shared library.
12204         #
12205         # There doesn't appear to be a way to prevent this compiler from
12206         # explicitly linking system object files so we need to strip them
12207         # from the output so that they don't get included in the library
12208         # dependencies.
12209         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12210         ;;
12211       *)
12212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12213           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12214           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12215
12216           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12217           hardcode_libdir_separator_CXX=:
12218
12219           # Commands to make compiler produce verbose output that lists
12220           # what "hidden" libraries, object files and flags are used when
12221           # linking a shared library.
12222           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12223
12224         else
12225           # FIXME: insert proper C++ library support
12226           ld_shlibs_CXX=no
12227         fi
12228         ;;
12229     esac
12230     ;;
12231   osf4* | osf5*)
12232     case $cc_basename in
12233       KCC*)
12234         # Kuck and Associates, Inc. (KAI) C++ Compiler
12235
12236         # KCC will only create a shared library if the output file
12237         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12238         # to its proper name (with version) after linking.
12239         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12240
12241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242         hardcode_libdir_separator_CXX=:
12243
12244         # Archives containing C++ object files must be created using
12245         # the KAI C++ compiler.
12246         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12247         ;;
12248       RCC*)
12249         # Rational C++ 2.4.1
12250         # FIXME: insert proper C++ library support
12251         ld_shlibs_CXX=no
12252         ;;
12253       cxx*)
12254         allow_undefined_flag_CXX=' -expect_unresolved \*'
12255         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12256         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12257           echo "-hidden">> $lib.exp~
12258           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12259           $rm $lib.exp'
12260
12261         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12262         hardcode_libdir_separator_CXX=:
12263
12264         # Commands to make compiler produce verbose output that lists
12265         # what "hidden" libraries, object files and flags are used when
12266         # linking a shared library.
12267         #
12268         # There doesn't appear to be a way to prevent this compiler from
12269         # explicitly linking system object files so we need to strip them
12270         # from the output so that they don't get included in the library
12271         # dependencies.
12272         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12273         ;;
12274       *)
12275         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12276           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12277          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12278
12279           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280           hardcode_libdir_separator_CXX=:
12281
12282           # Commands to make compiler produce verbose output that lists
12283           # what "hidden" libraries, object files and flags are used when
12284           # linking a shared library.
12285           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12286
12287         else
12288           # FIXME: insert proper C++ library support
12289           ld_shlibs_CXX=no
12290         fi
12291         ;;
12292     esac
12293     ;;
12294   psos*)
12295     # FIXME: insert proper C++ library support
12296     ld_shlibs_CXX=no
12297     ;;
12298   sunos4*)
12299     case $cc_basename in
12300       CC*)
12301         # Sun C++ 4.x
12302         # FIXME: insert proper C++ library support
12303         ld_shlibs_CXX=no
12304         ;;
12305       lcc*)
12306         # Lucid
12307         # FIXME: insert proper C++ library support
12308         ld_shlibs_CXX=no
12309         ;;
12310       *)
12311         # FIXME: insert proper C++ library support
12312         ld_shlibs_CXX=no
12313         ;;
12314     esac
12315     ;;
12316   solaris*)
12317     case $cc_basename in
12318       CC*)
12319         # Sun C++ 4.2, 5.x and Centerline C++
12320         archive_cmds_need_lc_CXX=yes
12321         no_undefined_flag_CXX=' -zdefs'
12322         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12323         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12324         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12325
12326         hardcode_libdir_flag_spec_CXX='-R$libdir'
12327         hardcode_shlibpath_var_CXX=no
12328         case $host_os in
12329           solaris2.[0-5] | solaris2.[0-5].*) ;;
12330           *)
12331             # The compiler driver will combine and reorder linker options,
12332             # but understands `-z linker_flag'.
12333             # Supported since Solaris 2.6 (maybe 2.5.1?)
12334             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12335             ;;
12336         esac
12337         link_all_deplibs_CXX=yes
12338
12339         output_verbose_link_cmd='echo'
12340
12341         # Archives containing C++ object files must be created using
12342         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12343         # necessary to make sure instantiated templates are included
12344         # in the archive.
12345         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12346         ;;
12347       gcx*)
12348         # Green Hills C++ Compiler
12349         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12350
12351         # The C++ compiler must be used to create the archive.
12352         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12353         ;;
12354       *)
12355         # GNU C++ compiler with Solaris linker
12356         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12357           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12358           if $CC --version | grep -v '^2\.7' > /dev/null; then
12359             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12360             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12361                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12362
12363             # Commands to make compiler produce verbose output that lists
12364             # what "hidden" libraries, object files and flags are used when
12365             # linking a shared library.
12366             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12367           else
12368             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12369             # platform.
12370             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12372                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12373
12374             # Commands to make compiler produce verbose output that lists
12375             # what "hidden" libraries, object files and flags are used when
12376             # linking a shared library.
12377             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12378           fi
12379
12380           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12381           case $host_os in
12382           solaris2.[0-5] | solaris2.[0-5].*) ;;
12383           *)
12384             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12385             ;;
12386           esac
12387         fi
12388         ;;
12389     esac
12390     ;;
12391   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12392     no_undefined_flag_CXX='${wl}-z,text'
12393     archive_cmds_need_lc_CXX=no
12394     hardcode_shlibpath_var_CXX=no
12395     runpath_var='LD_RUN_PATH'
12396
12397     case $cc_basename in
12398       CC*)
12399         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12401         ;;
12402       *)
12403         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405         ;;
12406     esac
12407     ;;
12408   sysv5* | sco3.2v5* | sco5v6*)
12409     # Note: We can NOT use -z defs as we might desire, because we do not
12410     # link with -lc, and that would cause any symbols used from libc to
12411     # always be unresolved, which means just about no library would
12412     # ever link correctly.  If we're not using GNU ld we use -z text
12413     # though, which does catch some bad symbols but isn't as heavy-handed
12414     # as -z defs.
12415     # For security reasons, it is highly recommended that you always
12416     # use absolute paths for naming shared libraries, and exclude the
12417     # DT_RUNPATH tag from executables and libraries.  But doing so
12418     # requires that you compile everything twice, which is a pain.
12419     # So that behaviour is only enabled if SCOABSPATH is set to a
12420     # non-empty value in the environment.  Most likely only useful for
12421     # creating official distributions of packages.
12422     # This is a hack until libtool officially supports absolute path
12423     # names for shared libraries.
12424     no_undefined_flag_CXX='${wl}-z,text'
12425     allow_undefined_flag_CXX='${wl}-z,nodefs'
12426     archive_cmds_need_lc_CXX=no
12427     hardcode_shlibpath_var_CXX=no
12428     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12429     hardcode_libdir_separator_CXX=':'
12430     link_all_deplibs_CXX=yes
12431     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12432     runpath_var='LD_RUN_PATH'
12433
12434     case $cc_basename in
12435       CC*)
12436         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12438         ;;
12439       *)
12440         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12441         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12442         ;;
12443     esac
12444     ;;
12445   tandem*)
12446     case $cc_basename in
12447       NCC*)
12448         # NonStop-UX NCC 3.20
12449         # FIXME: insert proper C++ library support
12450         ld_shlibs_CXX=no
12451         ;;
12452       *)
12453         # FIXME: insert proper C++ library support
12454         ld_shlibs_CXX=no
12455         ;;
12456     esac
12457     ;;
12458   vxworks*)
12459     # FIXME: insert proper C++ library support
12460     ld_shlibs_CXX=no
12461     ;;
12462   *)
12463     # FIXME: insert proper C++ library support
12464     ld_shlibs_CXX=no
12465     ;;
12466 esac
12467 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12468 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12469 test "$ld_shlibs_CXX" = no && can_build_shared=no
12470
12471 GCC_CXX="$GXX"
12472 LD_CXX="$LD"
12473
12474 cat > conftest.$ac_ext <<EOF
12475 class Foo
12476 {
12477 public:
12478   Foo (void) { a = 0; }
12479 private:
12480   int a;
12481 };
12482 EOF
12483
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485   (eval $ac_compile) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; then
12489   # Parse the compiler output and extract the necessary
12490   # objects, libraries and library flags.
12491
12492   # Sentinel used to keep track of whether or not we are before
12493   # the conftest object file.
12494   pre_test_object_deps_done=no
12495
12496   # The `*' in the case matches for architectures that use `case' in
12497   # $output_verbose_cmd can trigger glob expansion during the loop
12498   # eval without this substitution.
12499   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12500
12501   for p in `eval $output_verbose_link_cmd`; do
12502     case $p in
12503
12504     -L* | -R* | -l*)
12505        # Some compilers place space between "-{L,R}" and the path.
12506        # Remove the space.
12507        if test $p = "-L" \
12508           || test $p = "-R"; then
12509          prev=$p
12510          continue
12511        else
12512          prev=
12513        fi
12514
12515        if test "$pre_test_object_deps_done" = no; then
12516          case $p in
12517          -L* | -R*)
12518            # Internal compiler library paths should come after those
12519            # provided the user.  The postdeps already come after the
12520            # user supplied libs so there is no need to process them.
12521            if test -z "$compiler_lib_search_path_CXX"; then
12522              compiler_lib_search_path_CXX="${prev}${p}"
12523            else
12524              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12525            fi
12526            ;;
12527          # The "-l" case would never come before the object being
12528          # linked, so don't bother handling this case.
12529          esac
12530        else
12531          if test -z "$postdeps_CXX"; then
12532            postdeps_CXX="${prev}${p}"
12533          else
12534            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12535          fi
12536        fi
12537        ;;
12538
12539     *.$objext)
12540        # This assumes that the test object file only shows up
12541        # once in the compiler output.
12542        if test "$p" = "conftest.$objext"; then
12543          pre_test_object_deps_done=yes
12544          continue
12545        fi
12546
12547        if test "$pre_test_object_deps_done" = no; then
12548          if test -z "$predep_objects_CXX"; then
12549            predep_objects_CXX="$p"
12550          else
12551            predep_objects_CXX="$predep_objects_CXX $p"
12552          fi
12553        else
12554          if test -z "$postdep_objects_CXX"; then
12555            postdep_objects_CXX="$p"
12556          else
12557            postdep_objects_CXX="$postdep_objects_CXX $p"
12558          fi
12559        fi
12560        ;;
12561
12562     *) ;; # Ignore the rest.
12563
12564     esac
12565   done
12566
12567   # Clean up.
12568   rm -f a.out a.exe
12569 else
12570   echo "libtool.m4: error: problem compiling CXX test program"
12571 fi
12572
12573 $rm -f confest.$objext
12574
12575 compiler_lib_search_dirs_CXX=
12576 if test -n "$compiler_lib_search_path_CXX"; then
12577   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12578 fi
12579
12580 # PORTME: override above test on systems where it is broken
12581 case $host_os in
12582 interix[3-9]*)
12583   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12584   # hack all around it, let's just trust "g++" to DTRT.
12585   predep_objects_CXX=
12586   postdep_objects_CXX=
12587   postdeps_CXX=
12588   ;;
12589
12590 linux*)
12591   case `$CC -V 2>&1 | sed 5q` in
12592   *Sun\ C*)
12593     # Sun C++ 5.9
12594     #
12595     # The more standards-conforming stlport4 library is
12596     # incompatible with the Cstd library. Avoid specifying
12597     # it if it's in CXXFLAGS. Ignore libCrun as
12598     # -library=stlport4 depends on it.
12599     case " $CXX $CXXFLAGS " in
12600     *" -library=stlport4 "*)
12601       solaris_use_stlport4=yes
12602       ;;
12603     esac
12604     if test "$solaris_use_stlport4" != yes; then
12605       postdeps_CXX='-library=Cstd -library=Crun'
12606     fi
12607     ;;
12608   esac
12609   ;;
12610
12611 solaris*)
12612   case $cc_basename in
12613   CC*)
12614     # The more standards-conforming stlport4 library is
12615     # incompatible with the Cstd library. Avoid specifying
12616     # it if it's in CXXFLAGS. Ignore libCrun as
12617     # -library=stlport4 depends on it.
12618     case " $CXX $CXXFLAGS " in
12619     *" -library=stlport4 "*)
12620       solaris_use_stlport4=yes
12621       ;;
12622     esac
12623
12624     # Adding this requires a known-good setup of shared libraries for
12625     # Sun compiler versions before 5.6, else PIC objects from an old
12626     # archive will be linked into the output, leading to subtle bugs.
12627     if test "$solaris_use_stlport4" != yes; then
12628       postdeps_CXX='-library=Cstd -library=Crun'
12629     fi
12630     ;;
12631   esac
12632   ;;
12633 esac
12634
12635 case " $postdeps_CXX " in
12636 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12637 esac
12638
12639 lt_prog_compiler_wl_CXX=
12640 lt_prog_compiler_pic_CXX=
12641 lt_prog_compiler_static_CXX=
12642
12643 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12644 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12645
12646   # C++ specific cases for pic, static, wl, etc.
12647   if test "$GXX" = yes; then
12648     lt_prog_compiler_wl_CXX='-Wl,'
12649     lt_prog_compiler_static_CXX='-static'
12650
12651     case $host_os in
12652     aix*)
12653       # All AIX code is PIC.
12654       if test "$host_cpu" = ia64; then
12655         # AIX 5 now supports IA64 processor
12656         lt_prog_compiler_static_CXX='-Bstatic'
12657       fi
12658       ;;
12659     amigaos*)
12660       # FIXME: we need at least 68020 code to build shared libraries, but
12661       # adding the `-m68020' flag to GCC prevents building anything better,
12662       # like `-m68040'.
12663       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12664       ;;
12665     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12666       # PIC is the default for these OSes.
12667       ;;
12668     mingw* | cygwin* | os2* | pw32*)
12669       # This hack is so that the source file can tell whether it is being
12670       # built for inclusion in a dll (and should export symbols for example).
12671       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12672       # (--disable-auto-import) libraries
12673       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12674       ;;
12675     darwin* | rhapsody*)
12676       # PIC is the default on this platform
12677       # Common symbols not allowed in MH_DYLIB files
12678       lt_prog_compiler_pic_CXX='-fno-common'
12679       ;;
12680     *djgpp*)
12681       # DJGPP does not support shared libraries at all
12682       lt_prog_compiler_pic_CXX=
12683       ;;
12684     interix[3-9]*)
12685       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12686       # Instead, we relocate shared libraries at runtime.
12687       ;;
12688     sysv4*MP*)
12689       if test -d /usr/nec; then
12690         lt_prog_compiler_pic_CXX=-Kconform_pic
12691       fi
12692       ;;
12693     hpux*)
12694       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12695       # not for PA HP-UX.
12696       case $host_cpu in
12697       hppa*64*|ia64*)
12698         ;;
12699       *)
12700         lt_prog_compiler_pic_CXX='-fPIC'
12701         ;;
12702       esac
12703       ;;
12704     *)
12705       lt_prog_compiler_pic_CXX='-fPIC'
12706       ;;
12707     esac
12708   else
12709     case $host_os in
12710       aix[4-9]*)
12711         # All AIX code is PIC.
12712         if test "$host_cpu" = ia64; then
12713           # AIX 5 now supports IA64 processor
12714           lt_prog_compiler_static_CXX='-Bstatic'
12715         else
12716           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12717         fi
12718         ;;
12719       chorus*)
12720         case $cc_basename in
12721         cxch68*)
12722           # Green Hills C++ Compiler
12723           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12724           ;;
12725         esac
12726         ;;
12727        darwin*)
12728          # PIC is the default on this platform
12729          # Common symbols not allowed in MH_DYLIB files
12730          case $cc_basename in
12731            xlc*)
12732            lt_prog_compiler_pic_CXX='-qnocommon'
12733            lt_prog_compiler_wl_CXX='-Wl,'
12734            ;;
12735          esac
12736        ;;
12737       dgux*)
12738         case $cc_basename in
12739           ec++*)
12740             lt_prog_compiler_pic_CXX='-KPIC'
12741             ;;
12742           ghcx*)
12743             # Green Hills C++ Compiler
12744             lt_prog_compiler_pic_CXX='-pic'
12745             ;;
12746           *)
12747             ;;
12748         esac
12749         ;;
12750       freebsd* | dragonfly*)
12751         # FreeBSD uses GNU C++
12752         ;;
12753       hpux9* | hpux10* | hpux11*)
12754         case $cc_basename in
12755           CC*)
12756             lt_prog_compiler_wl_CXX='-Wl,'
12757             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12758             if test "$host_cpu" != ia64; then
12759               lt_prog_compiler_pic_CXX='+Z'
12760             fi
12761             ;;
12762           aCC*)
12763             lt_prog_compiler_wl_CXX='-Wl,'
12764             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12765             case $host_cpu in
12766             hppa*64*|ia64*)
12767               # +Z the default
12768               ;;
12769             *)
12770               lt_prog_compiler_pic_CXX='+Z'
12771               ;;
12772             esac
12773             ;;
12774           *)
12775             ;;
12776         esac
12777         ;;
12778       interix*)
12779         # This is c89, which is MS Visual C++ (no shared libs)
12780         # Anyone wants to do a port?
12781         ;;
12782       irix5* | irix6* | nonstopux*)
12783         case $cc_basename in
12784           CC*)
12785             lt_prog_compiler_wl_CXX='-Wl,'
12786             lt_prog_compiler_static_CXX='-non_shared'
12787             # CC pic flag -KPIC is the default.
12788             ;;
12789           *)
12790             ;;
12791         esac
12792         ;;
12793       linux* | k*bsd*-gnu)
12794         case $cc_basename in
12795           KCC*)
12796             # KAI C++ Compiler
12797             lt_prog_compiler_wl_CXX='--backend -Wl,'
12798             lt_prog_compiler_pic_CXX='-fPIC'
12799             ;;
12800           icpc* | ecpc*)
12801             # Intel C++
12802             lt_prog_compiler_wl_CXX='-Wl,'
12803             lt_prog_compiler_pic_CXX='-KPIC'
12804             lt_prog_compiler_static_CXX='-static'
12805             ;;
12806           pgCC* | pgcpp*)
12807             # Portland Group C++ compiler.
12808             lt_prog_compiler_wl_CXX='-Wl,'
12809             lt_prog_compiler_pic_CXX='-fpic'
12810             lt_prog_compiler_static_CXX='-Bstatic'
12811             ;;
12812           cxx*)
12813             # Compaq C++
12814             # Make sure the PIC flag is empty.  It appears that all Alpha
12815             # Linux and Compaq Tru64 Unix objects are PIC.
12816             lt_prog_compiler_pic_CXX=
12817             lt_prog_compiler_static_CXX='-non_shared'
12818             ;;
12819           *)
12820             case `$CC -V 2>&1 | sed 5q` in
12821             *Sun\ C*)
12822               # Sun C++ 5.9
12823               lt_prog_compiler_pic_CXX='-KPIC'
12824               lt_prog_compiler_static_CXX='-Bstatic'
12825               lt_prog_compiler_wl_CXX='-Qoption ld '
12826               ;;
12827             esac
12828             ;;
12829         esac
12830         ;;
12831       lynxos*)
12832         ;;
12833       m88k*)
12834         ;;
12835       mvs*)
12836         case $cc_basename in
12837           cxx*)
12838             lt_prog_compiler_pic_CXX='-W c,exportall'
12839             ;;
12840           *)
12841             ;;
12842         esac
12843         ;;
12844       netbsd* | netbsdelf*-gnu)
12845         ;;
12846       osf3* | osf4* | osf5*)
12847         case $cc_basename in
12848           KCC*)
12849             lt_prog_compiler_wl_CXX='--backend -Wl,'
12850             ;;
12851           RCC*)
12852             # Rational C++ 2.4.1
12853             lt_prog_compiler_pic_CXX='-pic'
12854             ;;
12855           cxx*)
12856             # Digital/Compaq C++
12857             lt_prog_compiler_wl_CXX='-Wl,'
12858             # Make sure the PIC flag is empty.  It appears that all Alpha
12859             # Linux and Compaq Tru64 Unix objects are PIC.
12860             lt_prog_compiler_pic_CXX=
12861             lt_prog_compiler_static_CXX='-non_shared'
12862             ;;
12863           *)
12864             ;;
12865         esac
12866         ;;
12867       psos*)
12868         ;;
12869       solaris*)
12870         case $cc_basename in
12871           CC*)
12872             # Sun C++ 4.2, 5.x and Centerline C++
12873             lt_prog_compiler_pic_CXX='-KPIC'
12874             lt_prog_compiler_static_CXX='-Bstatic'
12875             lt_prog_compiler_wl_CXX='-Qoption ld '
12876             ;;
12877           gcx*)
12878             # Green Hills C++ Compiler
12879             lt_prog_compiler_pic_CXX='-PIC'
12880             ;;
12881           *)
12882             ;;
12883         esac
12884         ;;
12885       sunos4*)
12886         case $cc_basename in
12887           CC*)
12888             # Sun C++ 4.x
12889             lt_prog_compiler_pic_CXX='-pic'
12890             lt_prog_compiler_static_CXX='-Bstatic'
12891             ;;
12892           lcc*)
12893             # Lucid
12894             lt_prog_compiler_pic_CXX='-pic'
12895             ;;
12896           *)
12897             ;;
12898         esac
12899         ;;
12900       tandem*)
12901         case $cc_basename in
12902           NCC*)
12903             # NonStop-UX NCC 3.20
12904             lt_prog_compiler_pic_CXX='-KPIC'
12905             ;;
12906           *)
12907             ;;
12908         esac
12909         ;;
12910       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12911         case $cc_basename in
12912           CC*)
12913             lt_prog_compiler_wl_CXX='-Wl,'
12914             lt_prog_compiler_pic_CXX='-KPIC'
12915             lt_prog_compiler_static_CXX='-Bstatic'
12916             ;;
12917         esac
12918         ;;
12919       vxworks*)
12920         ;;
12921       *)
12922         lt_prog_compiler_can_build_shared_CXX=no
12923         ;;
12924     esac
12925   fi
12926
12927 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12928 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12929
12930 #
12931 # Check to make sure the PIC flag actually works.
12932 #
12933 if test -n "$lt_prog_compiler_pic_CXX"; then
12934
12935 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12936 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12937 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12938   echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940   lt_cv_prog_compiler_pic_works_CXX=no
12941   ac_outfile=conftest.$ac_objext
12942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12944    # Insert the option either (1) after the last *FLAGS variable, or
12945    # (2) before a word containing "conftest.", or (3) at the end.
12946    # Note that $ac_compile itself does not contain backslashes and begins
12947    # with a dollar sign (not a hyphen), so the echo should work correctly.
12948    # The option is referenced via a variable to avoid confusing sed.
12949    lt_compile=`echo "$ac_compile" | $SED \
12950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952    -e 's:$: $lt_compiler_flag:'`
12953    (eval echo "\"\$as_me:12949: $lt_compile\"" >&5)
12954    (eval "$lt_compile" 2>conftest.err)
12955    ac_status=$?
12956    cat conftest.err >&5
12957    echo "$as_me:12953: \$? = $ac_status" >&5
12958    if (exit $ac_status) && test -s "$ac_outfile"; then
12959      # The compiler can only warn and ignore the option if not recognized
12960      # So say no if there are warnings other than the usual output.
12961      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12962      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12963      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12964        lt_cv_prog_compiler_pic_works_CXX=yes
12965      fi
12966    fi
12967    $rm conftest*
12968
12969 fi
12970 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12971 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12972
12973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12974     case $lt_prog_compiler_pic_CXX in
12975      "" | " "*) ;;
12976      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12977      esac
12978 else
12979     lt_prog_compiler_pic_CXX=
12980      lt_prog_compiler_can_build_shared_CXX=no
12981 fi
12982
12983 fi
12984 case $host_os in
12985   # For platforms which do not support PIC, -DPIC is meaningless:
12986   *djgpp*)
12987     lt_prog_compiler_pic_CXX=
12988     ;;
12989   *)
12990     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12991     ;;
12992 esac
12993
12994 #
12995 # Check to make sure the static flag actually works.
12996 #
12997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12998 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12999 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13000 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   lt_cv_prog_compiler_static_works_CXX=no
13004    save_LDFLAGS="$LDFLAGS"
13005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13006    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13008      # The linker can only warn and ignore the option if not recognized
13009      # So say no if there are warnings
13010      if test -s conftest.err; then
13011        # Append any errors to the config.log.
13012        cat conftest.err 1>&5
13013        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13015        if diff conftest.exp conftest.er2 >/dev/null; then
13016          lt_cv_prog_compiler_static_works_CXX=yes
13017        fi
13018      else
13019        lt_cv_prog_compiler_static_works_CXX=yes
13020      fi
13021    fi
13022    $rm -r conftest*
13023    LDFLAGS="$save_LDFLAGS"
13024
13025 fi
13026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13027 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13028
13029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13030     :
13031 else
13032     lt_prog_compiler_static_CXX=
13033 fi
13034
13035
13036 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13039   echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041   lt_cv_prog_compiler_c_o_CXX=no
13042    $rm -r conftest 2>/dev/null
13043    mkdir conftest
13044    cd conftest
13045    mkdir out
13046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13047
13048    lt_compiler_flag="-o out/conftest2.$ac_objext"
13049    # Insert the option either (1) after the last *FLAGS variable, or
13050    # (2) before a word containing "conftest.", or (3) at the end.
13051    # Note that $ac_compile itself does not contain backslashes and begins
13052    # with a dollar sign (not a hyphen), so the echo should work correctly.
13053    lt_compile=`echo "$ac_compile" | $SED \
13054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056    -e 's:$: $lt_compiler_flag:'`
13057    (eval echo "\"\$as_me:13053: $lt_compile\"" >&5)
13058    (eval "$lt_compile" 2>out/conftest.err)
13059    ac_status=$?
13060    cat out/conftest.err >&5
13061    echo "$as_me:13057: \$? = $ac_status" >&5
13062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13063    then
13064      # The compiler can only warn and ignore the option if not recognized
13065      # So say no if there are warnings
13066      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13069        lt_cv_prog_compiler_c_o_CXX=yes
13070      fi
13071    fi
13072    chmod u+w . 2>&5
13073    $rm conftest*
13074    # SGI C++ compiler will create directory out/ii_files/ for
13075    # template instantiation
13076    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13077    $rm out/* && rmdir out
13078    cd ..
13079    rmdir conftest
13080    $rm conftest*
13081
13082 fi
13083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13085
13086
13087 hard_links="nottested"
13088 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13089   # do not overwrite the value of need_locks provided by the user
13090   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13092   hard_links=yes
13093   $rm conftest*
13094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13095   touch conftest.a
13096   ln conftest.a conftest.b 2>&5 || hard_links=no
13097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13098   { echo "$as_me:$LINENO: result: $hard_links" >&5
13099 echo "${ECHO_T}$hard_links" >&6; }
13100   if test "$hard_links" = no; then
13101     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13103     need_locks=warn
13104   fi
13105 else
13106   need_locks=no
13107 fi
13108
13109 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13111
13112   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13113   case $host_os in
13114   aix[4-9]*)
13115     # If we're using GNU nm, then we don't want the "-C" option.
13116     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13117     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13118       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13119     else
13120       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13121     fi
13122     ;;
13123   pw32*)
13124     export_symbols_cmds_CXX="$ltdll_cmds"
13125   ;;
13126   cygwin* | mingw*)
13127     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13128   ;;
13129   linux* | k*bsd*-gnu)
13130     link_all_deplibs_CXX=no
13131   ;;
13132   *)
13133     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13134   ;;
13135   esac
13136   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13137
13138 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13139 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13140 test "$ld_shlibs_CXX" = no && can_build_shared=no
13141
13142 #
13143 # Do we need to explicitly link libc?
13144 #
13145 case "x$archive_cmds_need_lc_CXX" in
13146 x|xyes)
13147   # Assume -lc should be added
13148   archive_cmds_need_lc_CXX=yes
13149
13150   if test "$enable_shared" = yes && test "$GCC" = yes; then
13151     case $archive_cmds_CXX in
13152     *'~'*)
13153       # FIXME: we may have to deal with multi-command sequences.
13154       ;;
13155     '$CC '*)
13156       # Test whether the compiler implicitly links with -lc since on some
13157       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13158       # to ld, don't add -lc before -lgcc.
13159       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13161       $rm conftest*
13162       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13163
13164       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165   (eval $ac_compile) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } 2>conftest.err; then
13169         soname=conftest
13170         lib=conftest
13171         libobjs=conftest.$ac_objext
13172         deplibs=
13173         wl=$lt_prog_compiler_wl_CXX
13174         pic_flag=$lt_prog_compiler_pic_CXX
13175         compiler_flags=-v
13176         linker_flags=-v
13177         verstring=
13178         output_objdir=.
13179         libname=conftest
13180         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13181         allow_undefined_flag_CXX=
13182         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13183   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }
13187         then
13188           archive_cmds_need_lc_CXX=no
13189         else
13190           archive_cmds_need_lc_CXX=yes
13191         fi
13192         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13193       else
13194         cat conftest.err 1>&5
13195       fi
13196       $rm conftest*
13197       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13198 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13199       ;;
13200     esac
13201   fi
13202   ;;
13203 esac
13204
13205 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13207 library_names_spec=
13208 libname_spec='lib$name'
13209 soname_spec=
13210 shrext_cmds=".so"
13211 postinstall_cmds=
13212 postuninstall_cmds=
13213 finish_cmds=
13214 finish_eval=
13215 shlibpath_var=
13216 shlibpath_overrides_runpath=unknown
13217 version_type=none
13218 dynamic_linker="$host_os ld.so"
13219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13220
13221 need_lib_prefix=unknown
13222 hardcode_into_libs=no
13223
13224 # when you set need_version to no, make sure it does not cause -set_version
13225 # flags to be left without arguments
13226 need_version=unknown
13227
13228 case $host_os in
13229 aix3*)
13230   version_type=linux
13231   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13232   shlibpath_var=LIBPATH
13233
13234   # AIX 3 has no versioning support, so we append a major version to the name.
13235   soname_spec='${libname}${release}${shared_ext}$major'
13236   ;;
13237
13238 aix[4-9]*)
13239   version_type=linux
13240   need_lib_prefix=no
13241   need_version=no
13242   hardcode_into_libs=yes
13243   if test "$host_cpu" = ia64; then
13244     # AIX 5 supports IA64
13245     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13246     shlibpath_var=LD_LIBRARY_PATH
13247   else
13248     # With GCC up to 2.95.x, collect2 would create an import file
13249     # for dependence libraries.  The import file would start with
13250     # the line `#! .'.  This would cause the generated library to
13251     # depend on `.', always an invalid library.  This was fixed in
13252     # development snapshots of GCC prior to 3.0.
13253     case $host_os in
13254       aix4 | aix4.[01] | aix4.[01].*)
13255       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13256            echo ' yes '
13257            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13258         :
13259       else
13260         can_build_shared=no
13261       fi
13262       ;;
13263     esac
13264     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13265     # soname into executable. Probably we can add versioning support to
13266     # collect2, so additional links can be useful in future.
13267     if test "$aix_use_runtimelinking" = yes; then
13268       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13269       # instead of lib<name>.a to let people know that these are not
13270       # typical AIX shared libraries.
13271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272     else
13273       # We preserve .a as extension for shared libraries through AIX4.2
13274       # and later when we are not doing run time linking.
13275       library_names_spec='${libname}${release}.a $libname.a'
13276       soname_spec='${libname}${release}${shared_ext}$major'
13277     fi
13278     shlibpath_var=LIBPATH
13279   fi
13280   ;;
13281
13282 amigaos*)
13283   library_names_spec='$libname.ixlibrary $libname.a'
13284   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13285   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13286   ;;
13287
13288 beos*)
13289   library_names_spec='${libname}${shared_ext}'
13290   dynamic_linker="$host_os ld.so"
13291   shlibpath_var=LIBRARY_PATH
13292   ;;
13293
13294 bsdi[45]*)
13295   version_type=linux
13296   need_version=no
13297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298   soname_spec='${libname}${release}${shared_ext}$major'
13299   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13300   shlibpath_var=LD_LIBRARY_PATH
13301   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13302   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13303   # the default ld.so.conf also contains /usr/contrib/lib and
13304   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13305   # libtool to hard-code these into programs
13306   ;;
13307
13308 cygwin* | mingw* | pw32*)
13309   version_type=windows
13310   shrext_cmds=".dll"
13311   need_version=no
13312   need_lib_prefix=no
13313
13314   case $GCC,$host_os in
13315   yes,cygwin* | yes,mingw* | yes,pw32*)
13316     library_names_spec='$libname.dll.a'
13317     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13318     postinstall_cmds='base_file=`basename \${file}`~
13319       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13320       dldir=$destdir/`dirname \$dlpath`~
13321       test -d \$dldir || mkdir -p \$dldir~
13322       $install_prog $dir/$dlname \$dldir/$dlname~
13323       chmod a+x \$dldir/$dlname'
13324     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13325       dlpath=$dir/\$dldll~
13326        $rm \$dlpath'
13327     shlibpath_overrides_runpath=yes
13328
13329     case $host_os in
13330     cygwin*)
13331       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13332       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13333       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13334       ;;
13335     mingw*)
13336       # MinGW DLLs use traditional 'lib' prefix
13337       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13338       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13339       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13340         # It is most probably a Windows format PATH printed by
13341         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13342         # path with ; separators, and with drive letters. We can handle the
13343         # drive letters (cygwin fileutils understands them), so leave them,
13344         # especially as we might pass files found there to a mingw objdump,
13345         # which wouldn't understand a cygwinified path. Ahh.
13346         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13347       else
13348         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13349       fi
13350       ;;
13351     pw32*)
13352       # pw32 DLLs use 'pw' prefix rather than 'lib'
13353       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354       ;;
13355     esac
13356     ;;
13357
13358   *)
13359     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13360     ;;
13361   esac
13362   dynamic_linker='Win32 ld.exe'
13363   # FIXME: first we should search . and the directory the executable is in
13364   shlibpath_var=PATH
13365   ;;
13366
13367 darwin* | rhapsody*)
13368   dynamic_linker="$host_os dyld"
13369   version_type=darwin
13370   need_lib_prefix=no
13371   need_version=no
13372   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13373   soname_spec='${libname}${release}${major}$shared_ext'
13374   shlibpath_overrides_runpath=yes
13375   shlibpath_var=DYLD_LIBRARY_PATH
13376   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13377
13378   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13379   ;;
13380
13381 dgux*)
13382   version_type=linux
13383   need_lib_prefix=no
13384   need_version=no
13385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13386   soname_spec='${libname}${release}${shared_ext}$major'
13387   shlibpath_var=LD_LIBRARY_PATH
13388   ;;
13389
13390 freebsd1*)
13391   dynamic_linker=no
13392   ;;
13393
13394 freebsd* | dragonfly*)
13395   # DragonFly does not have aout.  When/if they implement a new
13396   # versioning mechanism, adjust this.
13397   if test -x /usr/bin/objformat; then
13398     objformat=`/usr/bin/objformat`
13399   else
13400     case $host_os in
13401     freebsd[123]*) objformat=aout ;;
13402     *) objformat=elf ;;
13403     esac
13404   fi
13405   version_type=freebsd-$objformat
13406   case $version_type in
13407     freebsd-elf*)
13408       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13409       need_version=no
13410       need_lib_prefix=no
13411       ;;
13412     freebsd-*)
13413       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13414       need_version=yes
13415       ;;
13416   esac
13417   shlibpath_var=LD_LIBRARY_PATH
13418   case $host_os in
13419   freebsd2*)
13420     shlibpath_overrides_runpath=yes
13421     ;;
13422   freebsd3.[01]* | freebsdelf3.[01]*)
13423     shlibpath_overrides_runpath=yes
13424     hardcode_into_libs=yes
13425     ;;
13426   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13427   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13428     shlibpath_overrides_runpath=no
13429     hardcode_into_libs=yes
13430     ;;
13431   *) # from 4.6 on, and DragonFly
13432     shlibpath_overrides_runpath=yes
13433     hardcode_into_libs=yes
13434     ;;
13435   esac
13436   ;;
13437
13438 gnu*)
13439   version_type=linux
13440   need_lib_prefix=no
13441   need_version=no
13442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13443   soname_spec='${libname}${release}${shared_ext}$major'
13444   shlibpath_var=LD_LIBRARY_PATH
13445   hardcode_into_libs=yes
13446   ;;
13447
13448 hpux9* | hpux10* | hpux11*)
13449   # Give a soname corresponding to the major version so that dld.sl refuses to
13450   # link against other versions.
13451   version_type=sunos
13452   need_lib_prefix=no
13453   need_version=no
13454   case $host_cpu in
13455   ia64*)
13456     shrext_cmds='.so'
13457     hardcode_into_libs=yes
13458     dynamic_linker="$host_os dld.so"
13459     shlibpath_var=LD_LIBRARY_PATH
13460     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462     soname_spec='${libname}${release}${shared_ext}$major'
13463     if test "X$HPUX_IA64_MODE" = X32; then
13464       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13465     else
13466       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13467     fi
13468     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13469     ;;
13470    hppa*64*)
13471      shrext_cmds='.sl'
13472      hardcode_into_libs=yes
13473      dynamic_linker="$host_os dld.sl"
13474      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13475      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477      soname_spec='${libname}${release}${shared_ext}$major'
13478      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13479      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13480      ;;
13481    *)
13482     shrext_cmds='.sl'
13483     dynamic_linker="$host_os dld.sl"
13484     shlibpath_var=SHLIB_PATH
13485     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487     soname_spec='${libname}${release}${shared_ext}$major'
13488     ;;
13489   esac
13490   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13491   postinstall_cmds='chmod 555 $lib'
13492   ;;
13493
13494 interix[3-9]*)
13495   version_type=linux
13496   need_lib_prefix=no
13497   need_version=no
13498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13499   soname_spec='${libname}${release}${shared_ext}$major'
13500   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13501   shlibpath_var=LD_LIBRARY_PATH
13502   shlibpath_overrides_runpath=no
13503   hardcode_into_libs=yes
13504   ;;
13505
13506 irix5* | irix6* | nonstopux*)
13507   case $host_os in
13508     nonstopux*) version_type=nonstopux ;;
13509     *)
13510         if test "$lt_cv_prog_gnu_ld" = yes; then
13511                 version_type=linux
13512         else
13513                 version_type=irix
13514         fi ;;
13515   esac
13516   need_lib_prefix=no
13517   need_version=no
13518   soname_spec='${libname}${release}${shared_ext}$major'
13519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13520   case $host_os in
13521   irix5* | nonstopux*)
13522     libsuff= shlibsuff=
13523     ;;
13524   *)
13525     case $LD in # libtool.m4 will add one of these switches to LD
13526     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13527       libsuff= shlibsuff= libmagic=32-bit;;
13528     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13529       libsuff=32 shlibsuff=N32 libmagic=N32;;
13530     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13531       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13532     *) libsuff= shlibsuff= libmagic=never-match;;
13533     esac
13534     ;;
13535   esac
13536   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13537   shlibpath_overrides_runpath=no
13538   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13539   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13540   hardcode_into_libs=yes
13541   ;;
13542
13543 # No shared lib support for Linux oldld, aout, or coff.
13544 linux*oldld* | linux*aout* | linux*coff*)
13545   dynamic_linker=no
13546   ;;
13547
13548 # This must be Linux ELF.
13549 linux* | k*bsd*-gnu)
13550   version_type=linux
13551   need_lib_prefix=no
13552   need_version=no
13553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554   soname_spec='${libname}${release}${shared_ext}$major'
13555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13556   shlibpath_var=LD_LIBRARY_PATH
13557   shlibpath_overrides_runpath=no
13558   # This implies no fast_install, which is unacceptable.
13559   # Some rework will be needed to allow for fast_install
13560   # before this can be enabled.
13561   hardcode_into_libs=yes
13562
13563   # Append ld.so.conf contents to the search path
13564   if test -f /etc/ld.so.conf; then
13565     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13566     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13567   fi
13568
13569   # We used to test for /lib/ld.so.1 and disable shared libraries on
13570   # powerpc, because MkLinux only supported shared libraries with the
13571   # GNU dynamic linker.  Since this was broken with cross compilers,
13572   # most powerpc-linux boxes support dynamic linking these days and
13573   # people can always --disable-shared, the test was removed, and we
13574   # assume the GNU/Linux dynamic linker is in use.
13575   dynamic_linker='GNU/Linux ld.so'
13576   ;;
13577
13578 netbsdelf*-gnu)
13579   version_type=linux
13580   need_lib_prefix=no
13581   need_version=no
13582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583   soname_spec='${libname}${release}${shared_ext}$major'
13584   shlibpath_var=LD_LIBRARY_PATH
13585   shlibpath_overrides_runpath=no
13586   hardcode_into_libs=yes
13587   dynamic_linker='NetBSD ld.elf_so'
13588   ;;
13589
13590 netbsd*)
13591   version_type=sunos
13592   need_lib_prefix=no
13593   need_version=no
13594   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13596     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13597     dynamic_linker='NetBSD (a.out) ld.so'
13598   else
13599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13600     soname_spec='${libname}${release}${shared_ext}$major'
13601     dynamic_linker='NetBSD ld.elf_so'
13602   fi
13603   shlibpath_var=LD_LIBRARY_PATH
13604   shlibpath_overrides_runpath=yes
13605   hardcode_into_libs=yes
13606   ;;
13607
13608 newsos6)
13609   version_type=linux
13610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611   shlibpath_var=LD_LIBRARY_PATH
13612   shlibpath_overrides_runpath=yes
13613   ;;
13614
13615 nto-qnx*)
13616   version_type=linux
13617   need_lib_prefix=no
13618   need_version=no
13619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620   soname_spec='${libname}${release}${shared_ext}$major'
13621   shlibpath_var=LD_LIBRARY_PATH
13622   shlibpath_overrides_runpath=yes
13623   ;;
13624
13625 openbsd*)
13626   version_type=sunos
13627   sys_lib_dlsearch_path_spec="/usr/lib"
13628   need_lib_prefix=no
13629   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13630   case $host_os in
13631     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13632     *)                         need_version=no  ;;
13633   esac
13634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13635   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13636   shlibpath_var=LD_LIBRARY_PATH
13637   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13638     case $host_os in
13639       openbsd2.[89] | openbsd2.[89].*)
13640         shlibpath_overrides_runpath=no
13641         ;;
13642       *)
13643         shlibpath_overrides_runpath=yes
13644         ;;
13645       esac
13646   else
13647     shlibpath_overrides_runpath=yes
13648   fi
13649   ;;
13650
13651 os2*)
13652   libname_spec='$name'
13653   shrext_cmds=".dll"
13654   need_lib_prefix=no
13655   library_names_spec='$libname${shared_ext} $libname.a'
13656   dynamic_linker='OS/2 ld.exe'
13657   shlibpath_var=LIBPATH
13658   ;;
13659
13660 osf3* | osf4* | osf5*)
13661   version_type=osf
13662   need_lib_prefix=no
13663   need_version=no
13664   soname_spec='${libname}${release}${shared_ext}$major'
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   shlibpath_var=LD_LIBRARY_PATH
13667   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13668   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13669   ;;
13670
13671 rdos*)
13672   dynamic_linker=no
13673   ;;
13674
13675 solaris*)
13676   version_type=linux
13677   need_lib_prefix=no
13678   need_version=no
13679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13680   soname_spec='${libname}${release}${shared_ext}$major'
13681   shlibpath_var=LD_LIBRARY_PATH
13682   shlibpath_overrides_runpath=yes
13683   hardcode_into_libs=yes
13684   # ldd complains unless libraries are executable
13685   postinstall_cmds='chmod +x $lib'
13686   ;;
13687
13688 sunos4*)
13689   version_type=sunos
13690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13691   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13692   shlibpath_var=LD_LIBRARY_PATH
13693   shlibpath_overrides_runpath=yes
13694   if test "$with_gnu_ld" = yes; then
13695     need_lib_prefix=no
13696   fi
13697   need_version=yes
13698   ;;
13699
13700 sysv4 | sysv4.3*)
13701   version_type=linux
13702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703   soname_spec='${libname}${release}${shared_ext}$major'
13704   shlibpath_var=LD_LIBRARY_PATH
13705   case $host_vendor in
13706     sni)
13707       shlibpath_overrides_runpath=no
13708       need_lib_prefix=no
13709       export_dynamic_flag_spec='${wl}-Blargedynsym'
13710       runpath_var=LD_RUN_PATH
13711       ;;
13712     siemens)
13713       need_lib_prefix=no
13714       ;;
13715     motorola)
13716       need_lib_prefix=no
13717       need_version=no
13718       shlibpath_overrides_runpath=no
13719       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13720       ;;
13721   esac
13722   ;;
13723
13724 sysv4*MP*)
13725   if test -d /usr/nec ;then
13726     version_type=linux
13727     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13728     soname_spec='$libname${shared_ext}.$major'
13729     shlibpath_var=LD_LIBRARY_PATH
13730   fi
13731   ;;
13732
13733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13734   version_type=freebsd-elf
13735   need_lib_prefix=no
13736   need_version=no
13737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13738   soname_spec='${libname}${release}${shared_ext}$major'
13739   shlibpath_var=LD_LIBRARY_PATH
13740   hardcode_into_libs=yes
13741   if test "$with_gnu_ld" = yes; then
13742     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13743     shlibpath_overrides_runpath=no
13744   else
13745     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13746     shlibpath_overrides_runpath=yes
13747     case $host_os in
13748       sco3.2v5*)
13749         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13750         ;;
13751     esac
13752   fi
13753   sys_lib_dlsearch_path_spec='/usr/lib'
13754   ;;
13755
13756 uts4*)
13757   version_type=linux
13758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759   soname_spec='${libname}${release}${shared_ext}$major'
13760   shlibpath_var=LD_LIBRARY_PATH
13761   ;;
13762
13763 *)
13764   dynamic_linker=no
13765   ;;
13766 esac
13767 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13768 echo "${ECHO_T}$dynamic_linker" >&6; }
13769 test "$dynamic_linker" = no && can_build_shared=no
13770
13771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13775 fi
13776
13777 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13782 fi
13783
13784 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13785
13786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13787 if test "$GCC" = yes; then
13788   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13789 fi
13790
13791 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13793 hardcode_action_CXX=
13794 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13795    test -n "$runpath_var_CXX" || \
13796    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13797
13798   # We can hardcode non-existant directories.
13799   if test "$hardcode_direct_CXX" != no &&
13800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13801      # have to relink, otherwise we might link with an installed library
13802      # when we should be linking with a yet-to-be-installed one
13803      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13804      test "$hardcode_minus_L_CXX" != no; then
13805     # Linking always hardcodes the temporary library directory.
13806     hardcode_action_CXX=relink
13807   else
13808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13809     hardcode_action_CXX=immediate
13810   fi
13811 else
13812   # We cannot hardcode anything, or else we can only hardcode existing
13813   # directories.
13814   hardcode_action_CXX=unsupported
13815 fi
13816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13818
13819 if test "$hardcode_action_CXX" = relink; then
13820   # Fast installation is not supported
13821   enable_fast_install=no
13822 elif test "$shlibpath_overrides_runpath" = yes ||
13823      test "$enable_shared" = no; then
13824   # Fast installation is not necessary
13825   enable_fast_install=needless
13826 fi
13827
13828
13829 # The else clause should only fire when bootstrapping the
13830 # libtool distribution, otherwise you forgot to ship ltmain.sh
13831 # with your package, and you will get complaints that there are
13832 # no rules to generate ltmain.sh.
13833 if test -f "$ltmain"; then
13834   # See if we are running on zsh, and set the options which allow our commands through
13835   # without removal of \ escapes.
13836   if test -n "${ZSH_VERSION+set}" ; then
13837     setopt NO_GLOB_SUBST
13838   fi
13839   # Now quote all the things that may contain metacharacters while being
13840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13841   # variables and quote the copies for generation of the libtool script.
13842   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13843     SED SHELL STRIP \
13844     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13845     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13846     deplibs_check_method reload_flag reload_cmds need_locks \
13847     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13848     lt_cv_sys_global_symbol_to_c_name_address \
13849     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13850     old_postinstall_cmds old_postuninstall_cmds \
13851     compiler_CXX \
13852     CC_CXX \
13853     LD_CXX \
13854     lt_prog_compiler_wl_CXX \
13855     lt_prog_compiler_pic_CXX \
13856     lt_prog_compiler_static_CXX \
13857     lt_prog_compiler_no_builtin_flag_CXX \
13858     export_dynamic_flag_spec_CXX \
13859     thread_safe_flag_spec_CXX \
13860     whole_archive_flag_spec_CXX \
13861     enable_shared_with_static_runtimes_CXX \
13862     old_archive_cmds_CXX \
13863     old_archive_from_new_cmds_CXX \
13864     predep_objects_CXX \
13865     postdep_objects_CXX \
13866     predeps_CXX \
13867     postdeps_CXX \
13868     compiler_lib_search_path_CXX \
13869     compiler_lib_search_dirs_CXX \
13870     archive_cmds_CXX \
13871     archive_expsym_cmds_CXX \
13872     postinstall_cmds_CXX \
13873     postuninstall_cmds_CXX \
13874     old_archive_from_expsyms_cmds_CXX \
13875     allow_undefined_flag_CXX \
13876     no_undefined_flag_CXX \
13877     export_symbols_cmds_CXX \
13878     hardcode_libdir_flag_spec_CXX \
13879     hardcode_libdir_flag_spec_ld_CXX \
13880     hardcode_libdir_separator_CXX \
13881     hardcode_automatic_CXX \
13882     module_cmds_CXX \
13883     module_expsym_cmds_CXX \
13884     lt_cv_prog_compiler_c_o_CXX \
13885     fix_srcfile_path_CXX \
13886     exclude_expsyms_CXX \
13887     include_expsyms_CXX; do
13888
13889     case $var in
13890     old_archive_cmds_CXX | \
13891     old_archive_from_new_cmds_CXX | \
13892     archive_cmds_CXX | \
13893     archive_expsym_cmds_CXX | \
13894     module_cmds_CXX | \
13895     module_expsym_cmds_CXX | \
13896     old_archive_from_expsyms_cmds_CXX | \
13897     export_symbols_cmds_CXX | \
13898     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13899     postinstall_cmds | postuninstall_cmds | \
13900     old_postinstall_cmds | old_postuninstall_cmds | \
13901     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13902       # Double-quote double-evaled strings.
13903       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13904       ;;
13905     *)
13906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13907       ;;
13908     esac
13909   done
13910
13911   case $lt_echo in
13912   *'\$0 --fallback-echo"')
13913     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13914     ;;
13915   esac
13916
13917 cfgfile="$ofile"
13918
13919   cat <<__EOF__ >> "$cfgfile"
13920 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13921
13922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13923
13924 # Shell to use when invoking shell scripts.
13925 SHELL=$lt_SHELL
13926
13927 # Whether or not to build shared libraries.
13928 build_libtool_libs=$enable_shared
13929
13930 # Whether or not to build static libraries.
13931 build_old_libs=$enable_static
13932
13933 # Whether or not to add -lc for building shared libraries.
13934 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13935
13936 # Whether or not to disallow shared libs when runtime libs are static
13937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13938
13939 # Whether or not to optimize for fast installation.
13940 fast_install=$enable_fast_install
13941
13942 # The host system.
13943 host_alias=$host_alias
13944 host=$host
13945 host_os=$host_os
13946
13947 # The build system.
13948 build_alias=$build_alias
13949 build=$build
13950 build_os=$build_os
13951
13952 # An echo program that does not interpret backslashes.
13953 echo=$lt_echo
13954
13955 # The archiver.
13956 AR=$lt_AR
13957 AR_FLAGS=$lt_AR_FLAGS
13958
13959 # A C compiler.
13960 LTCC=$lt_LTCC
13961
13962 # LTCC compiler flags.
13963 LTCFLAGS=$lt_LTCFLAGS
13964
13965 # A language-specific compiler.
13966 CC=$lt_compiler_CXX
13967
13968 # Is the compiler the GNU C compiler?
13969 with_gcc=$GCC_CXX
13970
13971 # An ERE matcher.
13972 EGREP=$lt_EGREP
13973
13974 # The linker used to build libraries.
13975 LD=$lt_LD_CXX
13976
13977 # Whether we need hard or soft links.
13978 LN_S=$lt_LN_S
13979
13980 # A BSD-compatible nm program.
13981 NM=$lt_NM
13982
13983 # A symbol stripping program
13984 STRIP=$lt_STRIP
13985
13986 # Used to examine libraries when file_magic_cmd begins "file"
13987 MAGIC_CMD=$MAGIC_CMD
13988
13989 # Used on cygwin: DLL creation program.
13990 DLLTOOL="$DLLTOOL"
13991
13992 # Used on cygwin: object dumper.
13993 OBJDUMP="$OBJDUMP"
13994
13995 # Used on cygwin: assembler.
13996 AS="$AS"
13997
13998 # The name of the directory that contains temporary libtool files.
13999 objdir=$objdir
14000
14001 # How to create reloadable object files.
14002 reload_flag=$lt_reload_flag
14003 reload_cmds=$lt_reload_cmds
14004
14005 # How to pass a linker flag through the compiler.
14006 wl=$lt_lt_prog_compiler_wl_CXX
14007
14008 # Object file suffix (normally "o").
14009 objext="$ac_objext"
14010
14011 # Old archive suffix (normally "a").
14012 libext="$libext"
14013
14014 # Shared library suffix (normally ".so").
14015 shrext_cmds='$shrext_cmds'
14016
14017 # Executable file suffix (normally "").
14018 exeext="$exeext"
14019
14020 # Additional compiler flags for building library objects.
14021 pic_flag=$lt_lt_prog_compiler_pic_CXX
14022 pic_mode=$pic_mode
14023
14024 # What is the maximum length of a command?
14025 max_cmd_len=$lt_cv_sys_max_cmd_len
14026
14027 # Does compiler simultaneously support -c and -o options?
14028 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14029
14030 # Must we lock files when doing compilation?
14031 need_locks=$lt_need_locks
14032
14033 # Do we need the lib prefix for modules?
14034 need_lib_prefix=$need_lib_prefix
14035
14036 # Do we need a version for libraries?
14037 need_version=$need_version
14038
14039 # Whether dlopen is supported.
14040 dlopen_support=$enable_dlopen
14041
14042 # Whether dlopen of programs is supported.
14043 dlopen_self=$enable_dlopen_self
14044
14045 # Whether dlopen of statically linked programs is supported.
14046 dlopen_self_static=$enable_dlopen_self_static
14047
14048 # Compiler flag to prevent dynamic linking.
14049 link_static_flag=$lt_lt_prog_compiler_static_CXX
14050
14051 # Compiler flag to turn off builtin functions.
14052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14053
14054 # Compiler flag to allow reflexive dlopens.
14055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14056
14057 # Compiler flag to generate shared objects directly from archives.
14058 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14059
14060 # Compiler flag to generate thread-safe objects.
14061 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14062
14063 # Library versioning type.
14064 version_type=$version_type
14065
14066 # Format of library name prefix.
14067 libname_spec=$lt_libname_spec
14068
14069 # List of archive names.  First name is the real one, the rest are links.
14070 # The last name is the one that the linker finds with -lNAME.
14071 library_names_spec=$lt_library_names_spec
14072
14073 # The coded name of the library, if different from the real name.
14074 soname_spec=$lt_soname_spec
14075
14076 # Commands used to build and install an old-style archive.
14077 RANLIB=$lt_RANLIB
14078 old_archive_cmds=$lt_old_archive_cmds_CXX
14079 old_postinstall_cmds=$lt_old_postinstall_cmds
14080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14081
14082 # Create an old-style archive from a shared archive.
14083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14084
14085 # Create a temporary old-style archive to link instead of a shared archive.
14086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14087
14088 # Commands used to build and install a shared archive.
14089 archive_cmds=$lt_archive_cmds_CXX
14090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14091 postinstall_cmds=$lt_postinstall_cmds
14092 postuninstall_cmds=$lt_postuninstall_cmds
14093
14094 # Commands used to build a loadable module (assumed same as above if empty)
14095 module_cmds=$lt_module_cmds_CXX
14096 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14097
14098 # Commands to strip libraries.
14099 old_striplib=$lt_old_striplib
14100 striplib=$lt_striplib
14101
14102 # Dependencies to place before the objects being linked to create a
14103 # shared library.
14104 predep_objects=$lt_predep_objects_CXX
14105
14106 # Dependencies to place after the objects being linked to create a
14107 # shared library.
14108 postdep_objects=$lt_postdep_objects_CXX
14109
14110 # Dependencies to place before the objects being linked to create a
14111 # shared library.
14112 predeps=$lt_predeps_CXX
14113
14114 # Dependencies to place after the objects being linked to create a
14115 # shared library.
14116 postdeps=$lt_postdeps_CXX
14117
14118 # The directories searched by this compiler when creating a shared
14119 # library
14120 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14121
14122 # The library search path used internally by the compiler when linking
14123 # a shared library.
14124 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14125
14126 # Method to check whether dependent libraries are shared objects.
14127 deplibs_check_method=$lt_deplibs_check_method
14128
14129 # Command to use when deplibs_check_method == file_magic.
14130 file_magic_cmd=$lt_file_magic_cmd
14131
14132 # Flag that allows shared libraries with undefined symbols to be built.
14133 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14134
14135 # Flag that forces no undefined symbols.
14136 no_undefined_flag=$lt_no_undefined_flag_CXX
14137
14138 # Commands used to finish a libtool library installation in a directory.
14139 finish_cmds=$lt_finish_cmds
14140
14141 # Same as above, but a single script fragment to be evaled but not shown.
14142 finish_eval=$lt_finish_eval
14143
14144 # Take the output of nm and produce a listing of raw symbols and C names.
14145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14146
14147 # Transform the output of nm in a proper C declaration
14148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14149
14150 # Transform the output of nm in a C name address pair
14151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14152
14153 # This is the shared library runtime path variable.
14154 runpath_var=$runpath_var
14155
14156 # This is the shared library path variable.
14157 shlibpath_var=$shlibpath_var
14158
14159 # Is shlibpath searched before the hard-coded library search path?
14160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14161
14162 # How to hardcode a shared library path into an executable.
14163 hardcode_action=$hardcode_action_CXX
14164
14165 # Whether we should hardcode library paths into libraries.
14166 hardcode_into_libs=$hardcode_into_libs
14167
14168 # Flag to hardcode \$libdir into a binary during linking.
14169 # This must work even if \$libdir does not exist.
14170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14171
14172 # If ld is used when linking, flag to hardcode \$libdir into
14173 # a binary during linking. This must work even if \$libdir does
14174 # not exist.
14175 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14176
14177 # Whether we need a single -rpath flag with a separated argument.
14178 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14179
14180 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14181 # resulting binary.
14182 hardcode_direct=$hardcode_direct_CXX
14183
14184 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14185 # resulting binary.
14186 hardcode_minus_L=$hardcode_minus_L_CXX
14187
14188 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14189 # the resulting binary.
14190 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14191
14192 # Set to yes if building a shared library automatically hardcodes DIR into the library
14193 # and all subsequent libraries and executables linked against it.
14194 hardcode_automatic=$hardcode_automatic_CXX
14195
14196 # Variables whose values should be saved in libtool wrapper scripts and
14197 # restored at relink time.
14198 variables_saved_for_relink="$variables_saved_for_relink"
14199
14200 # Whether libtool must link a program against all its dependency libraries.
14201 link_all_deplibs=$link_all_deplibs_CXX
14202
14203 # Compile-time system search path for libraries
14204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14205
14206 # Run-time system search path for libraries
14207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14208
14209 # Fix the shell variable \$srcfile for the compiler.
14210 fix_srcfile_path=$lt_fix_srcfile_path
14211
14212 # Set to yes if exported symbols are required.
14213 always_export_symbols=$always_export_symbols_CXX
14214
14215 # The commands to list exported symbols.
14216 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14217
14218 # The commands to extract the exported symbol list from a shared archive.
14219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14220
14221 # Symbols that should not be listed in the preloaded symbols.
14222 exclude_expsyms=$lt_exclude_expsyms_CXX
14223
14224 # Symbols that must always be exported.
14225 include_expsyms=$lt_include_expsyms_CXX
14226
14227 # ### END LIBTOOL TAG CONFIG: $tagname
14228
14229 __EOF__
14230
14231
14232 else
14233   # If there is no Makefile yet, we rely on a make rule to execute
14234   # `config.status --recheck' to rerun these tests and create the
14235   # libtool script then.
14236   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14237   if test -f "$ltmain_in"; then
14238     test -f Makefile && make "$ltmain"
14239   fi
14240 fi
14241
14242
14243 ac_ext=c
14244 ac_cpp='$CPP $CPPFLAGS'
14245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14248
14249 CC=$lt_save_CC
14250 LDCXX=$LD
14251 LD=$lt_save_LD
14252 GCC=$lt_save_GCC
14253 with_gnu_ldcxx=$with_gnu_ld
14254 with_gnu_ld=$lt_save_with_gnu_ld
14255 lt_cv_path_LDCXX=$lt_cv_path_LD
14256 lt_cv_path_LD=$lt_save_path_LD
14257 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14258 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14259
14260         else
14261           tagname=""
14262         fi
14263         ;;
14264
14265       F77)
14266         if test -n "$F77" && test "X$F77" != "Xno"; then
14267
14268 ac_ext=f
14269 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14270 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14272
14273
14274 archive_cmds_need_lc_F77=no
14275 allow_undefined_flag_F77=
14276 always_export_symbols_F77=no
14277 archive_expsym_cmds_F77=
14278 export_dynamic_flag_spec_F77=
14279 hardcode_direct_F77=no
14280 hardcode_libdir_flag_spec_F77=
14281 hardcode_libdir_flag_spec_ld_F77=
14282 hardcode_libdir_separator_F77=
14283 hardcode_minus_L_F77=no
14284 hardcode_automatic_F77=no
14285 module_cmds_F77=
14286 module_expsym_cmds_F77=
14287 link_all_deplibs_F77=unknown
14288 old_archive_cmds_F77=$old_archive_cmds
14289 no_undefined_flag_F77=
14290 whole_archive_flag_spec_F77=
14291 enable_shared_with_static_runtimes_F77=no
14292
14293 # Source file extension for f77 test sources.
14294 ac_ext=f
14295
14296 # Object file extension for compiled f77 test sources.
14297 objext=o
14298 objext_F77=$objext
14299
14300 # Code to be used in simple compile tests
14301 lt_simple_compile_test_code="\
14302       subroutine t
14303       return
14304       end
14305 "
14306
14307 # Code to be used in simple link tests
14308 lt_simple_link_test_code="\
14309       program t
14310       end
14311 "
14312
14313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14314
14315 # If no C compiler was specified, use CC.
14316 LTCC=${LTCC-"$CC"}
14317
14318 # If no C compiler flags were specified, use CFLAGS.
14319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14320
14321 # Allow CC to be a program name with arguments.
14322 compiler=$CC
14323
14324
14325 # save warnings/boilerplate of simple test code
14326 ac_outfile=conftest.$ac_objext
14327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_compiler_boilerplate=`cat conftest.err`
14330 $rm conftest*
14331
14332 ac_outfile=conftest.$ac_objext
14333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335 _lt_linker_boilerplate=`cat conftest.err`
14336 $rm -r conftest*
14337
14338
14339 # Allow CC to be a program name with arguments.
14340 lt_save_CC="$CC"
14341 CC=${F77-"f77"}
14342 compiler=$CC
14343 compiler_F77=$CC
14344 for cc_temp in $compiler""; do
14345   case $cc_temp in
14346     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14347     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14348     \-*) ;;
14349     *) break;;
14350   esac
14351 done
14352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14353
14354
14355 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14357 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14358 echo "${ECHO_T}$can_build_shared" >&6; }
14359
14360 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14362 test "$can_build_shared" = "no" && enable_shared=no
14363
14364 # On AIX, shared libraries and static libraries use the same namespace, and
14365 # are all built from PIC.
14366 case $host_os in
14367 aix3*)
14368   test "$enable_shared" = yes && enable_static=no
14369   if test -n "$RANLIB"; then
14370     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14371     postinstall_cmds='$RANLIB $lib'
14372   fi
14373   ;;
14374 aix[4-9]*)
14375   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14376     test "$enable_shared" = yes && enable_static=no
14377   fi
14378   ;;
14379 esac
14380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14381 echo "${ECHO_T}$enable_shared" >&6; }
14382
14383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14385 # Make sure either enable_shared or enable_static is yes.
14386 test "$enable_shared" = yes || enable_static=yes
14387 { echo "$as_me:$LINENO: result: $enable_static" >&5
14388 echo "${ECHO_T}$enable_static" >&6; }
14389
14390 GCC_F77="$G77"
14391 LD_F77="$LD"
14392
14393 lt_prog_compiler_wl_F77=
14394 lt_prog_compiler_pic_F77=
14395 lt_prog_compiler_static_F77=
14396
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14399
14400   if test "$GCC" = yes; then
14401     lt_prog_compiler_wl_F77='-Wl,'
14402     lt_prog_compiler_static_F77='-static'
14403
14404     case $host_os in
14405       aix*)
14406       # All AIX code is PIC.
14407       if test "$host_cpu" = ia64; then
14408         # AIX 5 now supports IA64 processor
14409         lt_prog_compiler_static_F77='-Bstatic'
14410       fi
14411       ;;
14412
14413     amigaos*)
14414       # FIXME: we need at least 68020 code to build shared libraries, but
14415       # adding the `-m68020' flag to GCC prevents building anything better,
14416       # like `-m68040'.
14417       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14418       ;;
14419
14420     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14421       # PIC is the default for these OSes.
14422       ;;
14423
14424     mingw* | cygwin* | pw32* | os2*)
14425       # This hack is so that the source file can tell whether it is being
14426       # built for inclusion in a dll (and should export symbols for example).
14427       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14428       # (--disable-auto-import) libraries
14429       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14430       ;;
14431
14432     darwin* | rhapsody*)
14433       # PIC is the default on this platform
14434       # Common symbols not allowed in MH_DYLIB files
14435       lt_prog_compiler_pic_F77='-fno-common'
14436       ;;
14437
14438     interix[3-9]*)
14439       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14440       # Instead, we relocate shared libraries at runtime.
14441       ;;
14442
14443     msdosdjgpp*)
14444       # Just because we use GCC doesn't mean we suddenly get shared libraries
14445       # on systems that don't support them.
14446       lt_prog_compiler_can_build_shared_F77=no
14447       enable_shared=no
14448       ;;
14449
14450     sysv4*MP*)
14451       if test -d /usr/nec; then
14452         lt_prog_compiler_pic_F77=-Kconform_pic
14453       fi
14454       ;;
14455
14456     hpux*)
14457       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14458       # not for PA HP-UX.
14459       case $host_cpu in
14460       hppa*64*|ia64*)
14461         # +Z the default
14462         ;;
14463       *)
14464         lt_prog_compiler_pic_F77='-fPIC'
14465         ;;
14466       esac
14467       ;;
14468
14469     *)
14470       lt_prog_compiler_pic_F77='-fPIC'
14471       ;;
14472     esac
14473   else
14474     # PORTME Check for flag to pass linker flags through the system compiler.
14475     case $host_os in
14476     aix*)
14477       lt_prog_compiler_wl_F77='-Wl,'
14478       if test "$host_cpu" = ia64; then
14479         # AIX 5 now supports IA64 processor
14480         lt_prog_compiler_static_F77='-Bstatic'
14481       else
14482         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14483       fi
14484       ;;
14485       darwin*)
14486         # PIC is the default on this platform
14487         # Common symbols not allowed in MH_DYLIB files
14488        case $cc_basename in
14489          xlc*)
14490          lt_prog_compiler_pic_F77='-qnocommon'
14491          lt_prog_compiler_wl_F77='-Wl,'
14492          ;;
14493        esac
14494        ;;
14495
14496     mingw* | cygwin* | pw32* | os2*)
14497       # This hack is so that the source file can tell whether it is being
14498       # built for inclusion in a dll (and should export symbols for example).
14499       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14500       ;;
14501
14502     hpux9* | hpux10* | hpux11*)
14503       lt_prog_compiler_wl_F77='-Wl,'
14504       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14505       # not for PA HP-UX.
14506       case $host_cpu in
14507       hppa*64*|ia64*)
14508         # +Z the default
14509         ;;
14510       *)
14511         lt_prog_compiler_pic_F77='+Z'
14512         ;;
14513       esac
14514       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14515       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14516       ;;
14517
14518     irix5* | irix6* | nonstopux*)
14519       lt_prog_compiler_wl_F77='-Wl,'
14520       # PIC (with -KPIC) is the default.
14521       lt_prog_compiler_static_F77='-non_shared'
14522       ;;
14523
14524     newsos6)
14525       lt_prog_compiler_pic_F77='-KPIC'
14526       lt_prog_compiler_static_F77='-Bstatic'
14527       ;;
14528
14529     linux* | k*bsd*-gnu)
14530       case $cc_basename in
14531       icc* | ecc*)
14532         lt_prog_compiler_wl_F77='-Wl,'
14533         lt_prog_compiler_pic_F77='-KPIC'
14534         lt_prog_compiler_static_F77='-static'
14535         ;;
14536       pgcc* | pgf77* | pgf90* | pgf95*)
14537         # Portland Group compilers (*not* the Pentium gcc compiler,
14538         # which looks to be a dead project)
14539         lt_prog_compiler_wl_F77='-Wl,'
14540         lt_prog_compiler_pic_F77='-fpic'
14541         lt_prog_compiler_static_F77='-Bstatic'
14542         ;;
14543       ccc*)
14544         lt_prog_compiler_wl_F77='-Wl,'
14545         # All Alpha code is PIC.
14546         lt_prog_compiler_static_F77='-non_shared'
14547         ;;
14548       *)
14549         case `$CC -V 2>&1 | sed 5q` in
14550         *Sun\ C*)
14551           # Sun C 5.9
14552           lt_prog_compiler_pic_F77='-KPIC'
14553           lt_prog_compiler_static_F77='-Bstatic'
14554           lt_prog_compiler_wl_F77='-Wl,'
14555           ;;
14556         *Sun\ F*)
14557           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14558           lt_prog_compiler_pic_F77='-KPIC'
14559           lt_prog_compiler_static_F77='-Bstatic'
14560           lt_prog_compiler_wl_F77=''
14561           ;;
14562         esac
14563         ;;
14564       esac
14565       ;;
14566
14567     osf3* | osf4* | osf5*)
14568       lt_prog_compiler_wl_F77='-Wl,'
14569       # All OSF/1 code is PIC.
14570       lt_prog_compiler_static_F77='-non_shared'
14571       ;;
14572
14573     rdos*)
14574       lt_prog_compiler_static_F77='-non_shared'
14575       ;;
14576
14577     solaris*)
14578       lt_prog_compiler_pic_F77='-KPIC'
14579       lt_prog_compiler_static_F77='-Bstatic'
14580       case $cc_basename in
14581       f77* | f90* | f95*)
14582         lt_prog_compiler_wl_F77='-Qoption ld ';;
14583       *)
14584         lt_prog_compiler_wl_F77='-Wl,';;
14585       esac
14586       ;;
14587
14588     sunos4*)
14589       lt_prog_compiler_wl_F77='-Qoption ld '
14590       lt_prog_compiler_pic_F77='-PIC'
14591       lt_prog_compiler_static_F77='-Bstatic'
14592       ;;
14593
14594     sysv4 | sysv4.2uw2* | sysv4.3*)
14595       lt_prog_compiler_wl_F77='-Wl,'
14596       lt_prog_compiler_pic_F77='-KPIC'
14597       lt_prog_compiler_static_F77='-Bstatic'
14598       ;;
14599
14600     sysv4*MP*)
14601       if test -d /usr/nec ;then
14602         lt_prog_compiler_pic_F77='-Kconform_pic'
14603         lt_prog_compiler_static_F77='-Bstatic'
14604       fi
14605       ;;
14606
14607     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14608       lt_prog_compiler_wl_F77='-Wl,'
14609       lt_prog_compiler_pic_F77='-KPIC'
14610       lt_prog_compiler_static_F77='-Bstatic'
14611       ;;
14612
14613     unicos*)
14614       lt_prog_compiler_wl_F77='-Wl,'
14615       lt_prog_compiler_can_build_shared_F77=no
14616       ;;
14617
14618     uts4*)
14619       lt_prog_compiler_pic_F77='-pic'
14620       lt_prog_compiler_static_F77='-Bstatic'
14621       ;;
14622
14623     *)
14624       lt_prog_compiler_can_build_shared_F77=no
14625       ;;
14626     esac
14627   fi
14628
14629 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14630 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14631
14632 #
14633 # Check to make sure the PIC flag actually works.
14634 #
14635 if test -n "$lt_prog_compiler_pic_F77"; then
14636
14637 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14638 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14639 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   lt_cv_prog_compiler_pic_works_F77=no
14643   ac_outfile=conftest.$ac_objext
14644    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14645    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14646    # Insert the option either (1) after the last *FLAGS variable, or
14647    # (2) before a word containing "conftest.", or (3) at the end.
14648    # Note that $ac_compile itself does not contain backslashes and begins
14649    # with a dollar sign (not a hyphen), so the echo should work correctly.
14650    # The option is referenced via a variable to avoid confusing sed.
14651    lt_compile=`echo "$ac_compile" | $SED \
14652    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14653    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14654    -e 's:$: $lt_compiler_flag:'`
14655    (eval echo "\"\$as_me:14651: $lt_compile\"" >&5)
14656    (eval "$lt_compile" 2>conftest.err)
14657    ac_status=$?
14658    cat conftest.err >&5
14659    echo "$as_me:14655: \$? = $ac_status" >&5
14660    if (exit $ac_status) && test -s "$ac_outfile"; then
14661      # The compiler can only warn and ignore the option if not recognized
14662      # So say no if there are warnings other than the usual output.
14663      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14664      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14665      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14666        lt_cv_prog_compiler_pic_works_F77=yes
14667      fi
14668    fi
14669    $rm conftest*
14670
14671 fi
14672 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14673 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14674
14675 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14676     case $lt_prog_compiler_pic_F77 in
14677      "" | " "*) ;;
14678      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14679      esac
14680 else
14681     lt_prog_compiler_pic_F77=
14682      lt_prog_compiler_can_build_shared_F77=no
14683 fi
14684
14685 fi
14686 case $host_os in
14687   # For platforms which do not support PIC, -DPIC is meaningless:
14688   *djgpp*)
14689     lt_prog_compiler_pic_F77=
14690     ;;
14691   *)
14692     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14693     ;;
14694 esac
14695
14696 #
14697 # Check to make sure the static flag actually works.
14698 #
14699 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14700 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14701 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14702 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14703   echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705   lt_cv_prog_compiler_static_works_F77=no
14706    save_LDFLAGS="$LDFLAGS"
14707    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14708    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14709    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14710      # The linker can only warn and ignore the option if not recognized
14711      # So say no if there are warnings
14712      if test -s conftest.err; then
14713        # Append any errors to the config.log.
14714        cat conftest.err 1>&5
14715        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14716        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717        if diff conftest.exp conftest.er2 >/dev/null; then
14718          lt_cv_prog_compiler_static_works_F77=yes
14719        fi
14720      else
14721        lt_cv_prog_compiler_static_works_F77=yes
14722      fi
14723    fi
14724    $rm -r conftest*
14725    LDFLAGS="$save_LDFLAGS"
14726
14727 fi
14728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14729 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14730
14731 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14732     :
14733 else
14734     lt_prog_compiler_static_F77=
14735 fi
14736
14737
14738 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14739 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14740 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743   lt_cv_prog_compiler_c_o_F77=no
14744    $rm -r conftest 2>/dev/null
14745    mkdir conftest
14746    cd conftest
14747    mkdir out
14748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14749
14750    lt_compiler_flag="-o out/conftest2.$ac_objext"
14751    # Insert the option either (1) after the last *FLAGS variable, or
14752    # (2) before a word containing "conftest.", or (3) at the end.
14753    # Note that $ac_compile itself does not contain backslashes and begins
14754    # with a dollar sign (not a hyphen), so the echo should work correctly.
14755    lt_compile=`echo "$ac_compile" | $SED \
14756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14758    -e 's:$: $lt_compiler_flag:'`
14759    (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14760    (eval "$lt_compile" 2>out/conftest.err)
14761    ac_status=$?
14762    cat out/conftest.err >&5
14763    echo "$as_me:14759: \$? = $ac_status" >&5
14764    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14765    then
14766      # The compiler can only warn and ignore the option if not recognized
14767      # So say no if there are warnings
14768      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14769      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14770      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14771        lt_cv_prog_compiler_c_o_F77=yes
14772      fi
14773    fi
14774    chmod u+w . 2>&5
14775    $rm conftest*
14776    # SGI C++ compiler will create directory out/ii_files/ for
14777    # template instantiation
14778    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14779    $rm out/* && rmdir out
14780    cd ..
14781    rmdir conftest
14782    $rm conftest*
14783
14784 fi
14785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14786 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14787
14788
14789 hard_links="nottested"
14790 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14791   # do not overwrite the value of need_locks provided by the user
14792   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14793 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14794   hard_links=yes
14795   $rm conftest*
14796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14797   touch conftest.a
14798   ln conftest.a conftest.b 2>&5 || hard_links=no
14799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800   { echo "$as_me:$LINENO: result: $hard_links" >&5
14801 echo "${ECHO_T}$hard_links" >&6; }
14802   if test "$hard_links" = no; then
14803     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14804 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14805     need_locks=warn
14806   fi
14807 else
14808   need_locks=no
14809 fi
14810
14811 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14812 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14813
14814   runpath_var=
14815   allow_undefined_flag_F77=
14816   enable_shared_with_static_runtimes_F77=no
14817   archive_cmds_F77=
14818   archive_expsym_cmds_F77=
14819   old_archive_From_new_cmds_F77=
14820   old_archive_from_expsyms_cmds_F77=
14821   export_dynamic_flag_spec_F77=
14822   whole_archive_flag_spec_F77=
14823   thread_safe_flag_spec_F77=
14824   hardcode_libdir_flag_spec_F77=
14825   hardcode_libdir_flag_spec_ld_F77=
14826   hardcode_libdir_separator_F77=
14827   hardcode_direct_F77=no
14828   hardcode_minus_L_F77=no
14829   hardcode_shlibpath_var_F77=unsupported
14830   link_all_deplibs_F77=unknown
14831   hardcode_automatic_F77=no
14832   module_cmds_F77=
14833   module_expsym_cmds_F77=
14834   always_export_symbols_F77=no
14835   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14836   # include_expsyms should be a list of space-separated symbols to be *always*
14837   # included in the symbol list
14838   include_expsyms_F77=
14839   # exclude_expsyms can be an extended regexp of symbols to exclude
14840   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14841   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14842   # as well as any symbol that contains `d'.
14843   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14844   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14845   # platforms (ab)use it in PIC code, but their linkers get confused if
14846   # the symbol is explicitly referenced.  Since portable code cannot
14847   # rely on this symbol name, it's probably fine to never include it in
14848   # preloaded symbol tables.
14849   # Exclude shared library initialization/finalization symbols.
14850   extract_expsyms_cmds=
14851   # Just being paranoid about ensuring that cc_basename is set.
14852   for cc_temp in $compiler""; do
14853   case $cc_temp in
14854     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14855     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14856     \-*) ;;
14857     *) break;;
14858   esac
14859 done
14860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14861
14862   case $host_os in
14863   cygwin* | mingw* | pw32*)
14864     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14865     # When not using gcc, we currently assume that we are using
14866     # Microsoft Visual C++.
14867     if test "$GCC" != yes; then
14868       with_gnu_ld=no
14869     fi
14870     ;;
14871   interix*)
14872     # we just hope/assume this is gcc and not c89 (= MSVC++)
14873     with_gnu_ld=yes
14874     ;;
14875   openbsd*)
14876     with_gnu_ld=no
14877     ;;
14878   esac
14879
14880   ld_shlibs_F77=yes
14881   if test "$with_gnu_ld" = yes; then
14882     # If archive_cmds runs LD, not CC, wlarc should be empty
14883     wlarc='${wl}'
14884
14885     # Set some defaults for GNU ld with shared library support. These
14886     # are reset later if shared libraries are not supported. Putting them
14887     # here allows them to be overridden if necessary.
14888     runpath_var=LD_RUN_PATH
14889     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14890     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14891     # ancient GNU ld didn't support --whole-archive et. al.
14892     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14893         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14894       else
14895         whole_archive_flag_spec_F77=
14896     fi
14897     supports_anon_versioning=no
14898     case `$LD -v 2>/dev/null` in
14899       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14900       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14901       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14902       *\ 2.11.*) ;; # other 2.11 versions
14903       *) supports_anon_versioning=yes ;;
14904     esac
14905
14906     # See if GNU ld supports shared libraries.
14907     case $host_os in
14908     aix[3-9]*)
14909       # On AIX/PPC, the GNU linker is very broken
14910       if test "$host_cpu" != ia64; then
14911         ld_shlibs_F77=no
14912         cat <<EOF 1>&2
14913
14914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14915 *** to be unable to reliably create shared libraries on AIX.
14916 *** Therefore, libtool is disabling shared libraries support.  If you
14917 *** really care for shared libraries, you may want to modify your PATH
14918 *** so that a non-GNU linker is found, and then restart.
14919
14920 EOF
14921       fi
14922       ;;
14923
14924     amigaos*)
14925       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14926       hardcode_libdir_flag_spec_F77='-L$libdir'
14927       hardcode_minus_L_F77=yes
14928
14929       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14930       # that the semantics of dynamic libraries on AmigaOS, at least up
14931       # to version 4, is to share data among multiple programs linked
14932       # with the same dynamic library.  Since this doesn't match the
14933       # behavior of shared libraries on other platforms, we can't use
14934       # them.
14935       ld_shlibs_F77=no
14936       ;;
14937
14938     beos*)
14939       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14940         allow_undefined_flag_F77=unsupported
14941         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14942         # support --undefined.  This deserves some investigation.  FIXME
14943         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944       else
14945         ld_shlibs_F77=no
14946       fi
14947       ;;
14948
14949     cygwin* | mingw* | pw32*)
14950       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14951       # as there is no search path for DLLs.
14952       hardcode_libdir_flag_spec_F77='-L$libdir'
14953       allow_undefined_flag_F77=unsupported
14954       always_export_symbols_F77=no
14955       enable_shared_with_static_runtimes_F77=yes
14956       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14957
14958       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14959         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14960         # If the export-symbols file already is a .def file (1st line
14961         # is EXPORTS), use it as is; otherwise, prepend...
14962         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14963           cp $export_symbols $output_objdir/$soname.def;
14964         else
14965           echo EXPORTS > $output_objdir/$soname.def;
14966           cat $export_symbols >> $output_objdir/$soname.def;
14967         fi~
14968         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14969       else
14970         ld_shlibs_F77=no
14971       fi
14972       ;;
14973
14974     interix[3-9]*)
14975       hardcode_direct_F77=no
14976       hardcode_shlibpath_var_F77=no
14977       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14978       export_dynamic_flag_spec_F77='${wl}-E'
14979       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14980       # Instead, shared libraries are loaded at an image base (0x10000000 by
14981       # default) and relocated if they conflict, which is a slow very memory
14982       # consuming and fragmenting process.  To avoid this, we pick a random,
14983       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14984       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14985       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14986       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14987       ;;
14988
14989     gnu* | linux* | k*bsd*-gnu)
14990       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991         tmp_addflag=
14992         case $cc_basename,$host_cpu in
14993         pgcc*)                          # Portland Group C compiler
14994           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14995           tmp_addflag=' $pic_flag'
14996           ;;
14997         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14998           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14999           tmp_addflag=' $pic_flag -Mnomain' ;;
15000         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15001           tmp_addflag=' -i_dynamic' ;;
15002         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15003           tmp_addflag=' -i_dynamic -nofor_main' ;;
15004         ifc* | ifort*)                  # Intel Fortran compiler
15005           tmp_addflag=' -nofor_main' ;;
15006         esac
15007         case `$CC -V 2>&1 | sed 5q` in
15008         *Sun\ C*)                       # Sun C 5.9
15009           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15010           tmp_sharedflag='-G' ;;
15011         *Sun\ F*)                       # Sun Fortran 8.3
15012           tmp_sharedflag='-G' ;;
15013         *)
15014           tmp_sharedflag='-shared' ;;
15015         esac
15016         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15017
15018         if test $supports_anon_versioning = yes; then
15019           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15020   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15021   $echo "local: *; };" >> $output_objdir/$libname.ver~
15022           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15023         fi
15024         link_all_deplibs_F77=no
15025       else
15026         ld_shlibs_F77=no
15027       fi
15028       ;;
15029
15030     netbsd* | netbsdelf*-gnu)
15031       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15032         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15033         wlarc=
15034       else
15035         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15037       fi
15038       ;;
15039
15040     solaris*)
15041       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15042         ld_shlibs_F77=no
15043         cat <<EOF 1>&2
15044
15045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15046 *** create shared libraries on Solaris systems.  Therefore, libtool
15047 *** is disabling shared libraries support.  We urge you to upgrade GNU
15048 *** binutils to release 2.9.1 or newer.  Another option is to modify
15049 *** your PATH or compiler configuration so that the native linker is
15050 *** used, and then restart.
15051
15052 EOF
15053       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056       else
15057         ld_shlibs_F77=no
15058       fi
15059       ;;
15060
15061     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15062       case `$LD -v 2>&1` in
15063         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15064         ld_shlibs_F77=no
15065         cat <<_LT_EOF 1>&2
15066
15067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15068 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15069 *** is disabling shared libraries support.  We urge you to upgrade GNU
15070 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15071 *** your PATH or compiler configuration so that the native linker is
15072 *** used, and then restart.
15073
15074 _LT_EOF
15075         ;;
15076         *)
15077           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15079             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15080             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15081           else
15082             ld_shlibs_F77=no
15083           fi
15084         ;;
15085       esac
15086       ;;
15087
15088     sunos4*)
15089       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090       wlarc=
15091       hardcode_direct_F77=yes
15092       hardcode_shlibpath_var_F77=no
15093       ;;
15094
15095     *)
15096       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15099       else
15100         ld_shlibs_F77=no
15101       fi
15102       ;;
15103     esac
15104
15105     if test "$ld_shlibs_F77" = no; then
15106       runpath_var=
15107       hardcode_libdir_flag_spec_F77=
15108       export_dynamic_flag_spec_F77=
15109       whole_archive_flag_spec_F77=
15110     fi
15111   else
15112     # PORTME fill in a description of your system's linker (not GNU ld)
15113     case $host_os in
15114     aix3*)
15115       allow_undefined_flag_F77=unsupported
15116       always_export_symbols_F77=yes
15117       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15118       # Note: this linker hardcodes the directories in LIBPATH if there
15119       # are no directories specified by -L.
15120       hardcode_minus_L_F77=yes
15121       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15122         # Neither direct hardcoding nor static linking is supported with a
15123         # broken collect2.
15124         hardcode_direct_F77=unsupported
15125       fi
15126       ;;
15127
15128     aix[4-9]*)
15129       if test "$host_cpu" = ia64; then
15130         # On IA64, the linker does run time linking by default, so we don't
15131         # have to do anything special.
15132         aix_use_runtimelinking=no
15133         exp_sym_flag='-Bexport'
15134         no_entry_flag=""
15135       else
15136         # If we're using GNU nm, then we don't want the "-C" option.
15137         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15138         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15139           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15140         else
15141           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15142         fi
15143         aix_use_runtimelinking=no
15144
15145         # Test if we are trying to use run time linking or normal
15146         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15147         # need to do runtime linking.
15148         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15149           for ld_flag in $LDFLAGS; do
15150           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15151             aix_use_runtimelinking=yes
15152             break
15153           fi
15154           done
15155           ;;
15156         esac
15157
15158         exp_sym_flag='-bexport'
15159         no_entry_flag='-bnoentry'
15160       fi
15161
15162       # When large executables or shared objects are built, AIX ld can
15163       # have problems creating the table of contents.  If linking a library
15164       # or program results in "error TOC overflow" add -mminimal-toc to
15165       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15166       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15167
15168       archive_cmds_F77=''
15169       hardcode_direct_F77=yes
15170       hardcode_libdir_separator_F77=':'
15171       link_all_deplibs_F77=yes
15172
15173       if test "$GCC" = yes; then
15174         case $host_os in aix4.[012]|aix4.[012].*)
15175         # We only want to do this on AIX 4.2 and lower, the check
15176         # below for broken collect2 doesn't work under 4.3+
15177           collect2name=`${CC} -print-prog-name=collect2`
15178           if test -f "$collect2name" && \
15179            strings "$collect2name" | grep resolve_lib_name >/dev/null
15180           then
15181           # We have reworked collect2
15182           :
15183           else
15184           # We have old collect2
15185           hardcode_direct_F77=unsupported
15186           # It fails to find uninstalled libraries when the uninstalled
15187           # path is not listed in the libpath.  Setting hardcode_minus_L
15188           # to unsupported forces relinking
15189           hardcode_minus_L_F77=yes
15190           hardcode_libdir_flag_spec_F77='-L$libdir'
15191           hardcode_libdir_separator_F77=
15192           fi
15193           ;;
15194         esac
15195         shared_flag='-shared'
15196         if test "$aix_use_runtimelinking" = yes; then
15197           shared_flag="$shared_flag "'${wl}-G'
15198         fi
15199       else
15200         # not using gcc
15201         if test "$host_cpu" = ia64; then
15202         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15203         # chokes on -Wl,-G. The following line is correct:
15204           shared_flag='-G'
15205         else
15206           if test "$aix_use_runtimelinking" = yes; then
15207             shared_flag='${wl}-G'
15208           else
15209             shared_flag='${wl}-bM:SRE'
15210           fi
15211         fi
15212       fi
15213
15214       # It seems that -bexpall does not export symbols beginning with
15215       # underscore (_), so it is better to generate a list of symbols to export.
15216       always_export_symbols_F77=yes
15217       if test "$aix_use_runtimelinking" = yes; then
15218         # Warning - without using the other runtime loading flags (-brtl),
15219         # -berok will link without error, but may produce a broken library.
15220         allow_undefined_flag_F77='-berok'
15221        # Determine the default libpath from the value encoded in an empty executable.
15222        cat >conftest.$ac_ext <<_ACEOF
15223       program main
15224
15225       end
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_link") 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } && {
15241          test -z "$ac_f77_werror_flag" ||
15242          test ! -s conftest.err
15243        } && test -s conftest$ac_exeext &&
15244        $as_test_x conftest$ac_exeext; then
15245
15246 lt_aix_libpath_sed='
15247     /Import File Strings/,/^$/ {
15248         /^0/ {
15249             s/^0  *\(.*\)$/\1/
15250             p
15251         }
15252     }'
15253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254 # Check for a 64-bit object if we didn't find anything.
15255 if test -z "$aix_libpath"; then
15256   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15257 fi
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262
15263 fi
15264
15265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15266       conftest$ac_exeext conftest.$ac_ext
15267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15268
15269        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15270         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15271        else
15272         if test "$host_cpu" = ia64; then
15273           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15274           allow_undefined_flag_F77="-z nodefs"
15275           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15276         else
15277          # Determine the default libpath from the value encoded in an empty executable.
15278          cat >conftest.$ac_ext <<_ACEOF
15279       program main
15280
15281       end
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287   *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290   (eval "$ac_link") 2>conftest.er1
15291   ac_status=$?
15292   grep -v '^ *+' conftest.er1 >conftest.err
15293   rm -f conftest.er1
15294   cat conftest.err >&5
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); } && {
15297          test -z "$ac_f77_werror_flag" ||
15298          test ! -s conftest.err
15299        } && test -s conftest$ac_exeext &&
15300        $as_test_x conftest$ac_exeext; then
15301
15302 lt_aix_libpath_sed='
15303     /Import File Strings/,/^$/ {
15304         /^0/ {
15305             s/^0  *\(.*\)$/\1/
15306             p
15307         }
15308     }'
15309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15310 # Check for a 64-bit object if we didn't find anything.
15311 if test -z "$aix_libpath"; then
15312   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15313 fi
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322       conftest$ac_exeext conftest.$ac_ext
15323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15324
15325          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15326           # Warning - without using the other run time loading flags,
15327           # -berok will link without error, but may produce a broken library.
15328           no_undefined_flag_F77=' ${wl}-bernotok'
15329           allow_undefined_flag_F77=' ${wl}-berok'
15330           # Exported symbols can be pulled into shared objects from archives
15331           whole_archive_flag_spec_F77='$convenience'
15332           archive_cmds_need_lc_F77=yes
15333           # This is similar to how AIX traditionally builds its shared libraries.
15334           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15335         fi
15336       fi
15337       ;;
15338
15339     amigaos*)
15340       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15341       hardcode_libdir_flag_spec_F77='-L$libdir'
15342       hardcode_minus_L_F77=yes
15343       # see comment about different semantics on the GNU ld section
15344       ld_shlibs_F77=no
15345       ;;
15346
15347     bsdi[45]*)
15348       export_dynamic_flag_spec_F77=-rdynamic
15349       ;;
15350
15351     cygwin* | mingw* | pw32*)
15352       # When not using gcc, we currently assume that we are using
15353       # Microsoft Visual C++.
15354       # hardcode_libdir_flag_spec is actually meaningless, as there is
15355       # no search path for DLLs.
15356       hardcode_libdir_flag_spec_F77=' '
15357       allow_undefined_flag_F77=unsupported
15358       # Tell ltmain to make .lib files, not .a files.
15359       libext=lib
15360       # Tell ltmain to make .dll files, not .so files.
15361       shrext_cmds=".dll"
15362       # FIXME: Setting linknames here is a bad hack.
15363       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15364       # The linker will automatically build a .lib file if we build a DLL.
15365       old_archive_From_new_cmds_F77='true'
15366       # FIXME: Should let the user specify the lib program.
15367       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15368       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15369       enable_shared_with_static_runtimes_F77=yes
15370       ;;
15371
15372     darwin* | rhapsody*)
15373       case $host_os in
15374         rhapsody* | darwin1.[012])
15375          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15376          ;;
15377        *) # Darwin 1.3 on
15378          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15379            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15380          else
15381            case ${MACOSX_DEPLOYMENT_TARGET} in
15382              10.[012])
15383                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15384                ;;
15385              10.*)
15386                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15387                ;;
15388            esac
15389          fi
15390          ;;
15391       esac
15392       archive_cmds_need_lc_F77=no
15393       hardcode_direct_F77=no
15394       hardcode_automatic_F77=yes
15395       hardcode_shlibpath_var_F77=unsupported
15396       whole_archive_flag_spec_F77=''
15397       link_all_deplibs_F77=yes
15398     if test "$GCC" = yes ; then
15399         output_verbose_link_cmd='echo'
15400         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15401         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15402         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15403         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15404     else
15405       case $cc_basename in
15406         xlc*)
15407          output_verbose_link_cmd='echo'
15408          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15409          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15410           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15411          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15412           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15413           ;;
15414        *)
15415          ld_shlibs_F77=no
15416           ;;
15417       esac
15418     fi
15419       ;;
15420
15421     dgux*)
15422       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423       hardcode_libdir_flag_spec_F77='-L$libdir'
15424       hardcode_shlibpath_var_F77=no
15425       ;;
15426
15427     freebsd1*)
15428       ld_shlibs_F77=no
15429       ;;
15430
15431     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15432     # support.  Future versions do this automatically, but an explicit c++rt0.o
15433     # does not break anything, and helps significantly (at the cost of a little
15434     # extra space).
15435     freebsd2.2*)
15436       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15437       hardcode_libdir_flag_spec_F77='-R$libdir'
15438       hardcode_direct_F77=yes
15439       hardcode_shlibpath_var_F77=no
15440       ;;
15441
15442     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15443     freebsd2*)
15444       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15445       hardcode_direct_F77=yes
15446       hardcode_minus_L_F77=yes
15447       hardcode_shlibpath_var_F77=no
15448       ;;
15449
15450     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15451     freebsd* | dragonfly*)
15452       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15453       hardcode_libdir_flag_spec_F77='-R$libdir'
15454       hardcode_direct_F77=yes
15455       hardcode_shlibpath_var_F77=no
15456       ;;
15457
15458     hpux9*)
15459       if test "$GCC" = yes; then
15460         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15461       else
15462         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15463       fi
15464       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15465       hardcode_libdir_separator_F77=:
15466       hardcode_direct_F77=yes
15467
15468       # hardcode_minus_L: Not really in the search PATH,
15469       # but as the default location of the library.
15470       hardcode_minus_L_F77=yes
15471       export_dynamic_flag_spec_F77='${wl}-E'
15472       ;;
15473
15474     hpux10*)
15475       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15476         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15477       else
15478         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15479       fi
15480       if test "$with_gnu_ld" = no; then
15481         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15482         hardcode_libdir_separator_F77=:
15483
15484         hardcode_direct_F77=yes
15485         export_dynamic_flag_spec_F77='${wl}-E'
15486
15487         # hardcode_minus_L: Not really in the search PATH,
15488         # but as the default location of the library.
15489         hardcode_minus_L_F77=yes
15490       fi
15491       ;;
15492
15493     hpux11*)
15494       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15495         case $host_cpu in
15496         hppa*64*)
15497           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498           ;;
15499         ia64*)
15500           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15501           ;;
15502         *)
15503           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15504           ;;
15505         esac
15506       else
15507         case $host_cpu in
15508         hppa*64*)
15509           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510           ;;
15511         ia64*)
15512           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15513           ;;
15514         *)
15515           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15516           ;;
15517         esac
15518       fi
15519       if test "$with_gnu_ld" = no; then
15520         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15521         hardcode_libdir_separator_F77=:
15522
15523         case $host_cpu in
15524         hppa*64*|ia64*)
15525           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15526           hardcode_direct_F77=no
15527           hardcode_shlibpath_var_F77=no
15528           ;;
15529         *)
15530           hardcode_direct_F77=yes
15531           export_dynamic_flag_spec_F77='${wl}-E'
15532
15533           # hardcode_minus_L: Not really in the search PATH,
15534           # but as the default location of the library.
15535           hardcode_minus_L_F77=yes
15536           ;;
15537         esac
15538       fi
15539       ;;
15540
15541     irix5* | irix6* | nonstopux*)
15542       if test "$GCC" = yes; then
15543         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15544       else
15545         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15546         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15547       fi
15548       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549       hardcode_libdir_separator_F77=:
15550       link_all_deplibs_F77=yes
15551       ;;
15552
15553     netbsd* | netbsdelf*-gnu)
15554       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15555         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15556       else
15557         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15558       fi
15559       hardcode_libdir_flag_spec_F77='-R$libdir'
15560       hardcode_direct_F77=yes
15561       hardcode_shlibpath_var_F77=no
15562       ;;
15563
15564     newsos6)
15565       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15566       hardcode_direct_F77=yes
15567       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568       hardcode_libdir_separator_F77=:
15569       hardcode_shlibpath_var_F77=no
15570       ;;
15571
15572     openbsd*)
15573       if test -f /usr/libexec/ld.so; then
15574         hardcode_direct_F77=yes
15575         hardcode_shlibpath_var_F77=no
15576         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15578           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15579           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580           export_dynamic_flag_spec_F77='${wl}-E'
15581         else
15582           case $host_os in
15583            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15584              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15585              hardcode_libdir_flag_spec_F77='-R$libdir'
15586              ;;
15587            *)
15588              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15589              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15590              ;;
15591           esac
15592         fi
15593       else
15594         ld_shlibs_F77=no
15595       fi
15596       ;;
15597
15598     os2*)
15599       hardcode_libdir_flag_spec_F77='-L$libdir'
15600       hardcode_minus_L_F77=yes
15601       allow_undefined_flag_F77=unsupported
15602       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15603       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15604       ;;
15605
15606     osf3*)
15607       if test "$GCC" = yes; then
15608         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15609         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15610       else
15611         allow_undefined_flag_F77=' -expect_unresolved \*'
15612         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15613       fi
15614       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15615       hardcode_libdir_separator_F77=:
15616       ;;
15617
15618     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15619       if test "$GCC" = yes; then
15620         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15621         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15622         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15623       else
15624         allow_undefined_flag_F77=' -expect_unresolved \*'
15625         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15626         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15627         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15628
15629         # Both c and cxx compiler support -rpath directly
15630         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15631       fi
15632       hardcode_libdir_separator_F77=:
15633       ;;
15634
15635     solaris*)
15636       no_undefined_flag_F77=' -z text'
15637       if test "$GCC" = yes; then
15638         wlarc='${wl}'
15639         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15641           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15642       else
15643         wlarc=''
15644         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15645         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15646         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15647       fi
15648       hardcode_libdir_flag_spec_F77='-R$libdir'
15649       hardcode_shlibpath_var_F77=no
15650       case $host_os in
15651       solaris2.[0-5] | solaris2.[0-5].*) ;;
15652       *)
15653         # The compiler driver will combine and reorder linker options,
15654         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15655         # but is careful enough not to reorder.
15656         # Supported since Solaris 2.6 (maybe 2.5.1?)
15657         if test "$GCC" = yes; then
15658           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15659         else
15660           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15661         fi
15662         ;;
15663       esac
15664       link_all_deplibs_F77=yes
15665       ;;
15666
15667     sunos4*)
15668       if test "x$host_vendor" = xsequent; then
15669         # Use $CC to link under sequent, because it throws in some extra .o
15670         # files that make .init and .fini sections work.
15671         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15672       else
15673         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15674       fi
15675       hardcode_libdir_flag_spec_F77='-L$libdir'
15676       hardcode_direct_F77=yes
15677       hardcode_minus_L_F77=yes
15678       hardcode_shlibpath_var_F77=no
15679       ;;
15680
15681     sysv4)
15682       case $host_vendor in
15683         sni)
15684           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685           hardcode_direct_F77=yes # is this really true???
15686         ;;
15687         siemens)
15688           ## LD is ld it makes a PLAMLIB
15689           ## CC just makes a GrossModule.
15690           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15691           reload_cmds_F77='$CC -r -o $output$reload_objs'
15692           hardcode_direct_F77=no
15693         ;;
15694         motorola)
15695           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15697         ;;
15698       esac
15699       runpath_var='LD_RUN_PATH'
15700       hardcode_shlibpath_var_F77=no
15701       ;;
15702
15703     sysv4.3*)
15704       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705       hardcode_shlibpath_var_F77=no
15706       export_dynamic_flag_spec_F77='-Bexport'
15707       ;;
15708
15709     sysv4*MP*)
15710       if test -d /usr/nec; then
15711         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712         hardcode_shlibpath_var_F77=no
15713         runpath_var=LD_RUN_PATH
15714         hardcode_runpath_var=yes
15715         ld_shlibs_F77=yes
15716       fi
15717       ;;
15718
15719     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15720       no_undefined_flag_F77='${wl}-z,text'
15721       archive_cmds_need_lc_F77=no
15722       hardcode_shlibpath_var_F77=no
15723       runpath_var='LD_RUN_PATH'
15724
15725       if test "$GCC" = yes; then
15726         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728       else
15729         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731       fi
15732       ;;
15733
15734     sysv5* | sco3.2v5* | sco5v6*)
15735       # Note: We can NOT use -z defs as we might desire, because we do not
15736       # link with -lc, and that would cause any symbols used from libc to
15737       # always be unresolved, which means just about no library would
15738       # ever link correctly.  If we're not using GNU ld we use -z text
15739       # though, which does catch some bad symbols but isn't as heavy-handed
15740       # as -z defs.
15741       no_undefined_flag_F77='${wl}-z,text'
15742       allow_undefined_flag_F77='${wl}-z,nodefs'
15743       archive_cmds_need_lc_F77=no
15744       hardcode_shlibpath_var_F77=no
15745       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15746       hardcode_libdir_separator_F77=':'
15747       link_all_deplibs_F77=yes
15748       export_dynamic_flag_spec_F77='${wl}-Bexport'
15749       runpath_var='LD_RUN_PATH'
15750
15751       if test "$GCC" = yes; then
15752         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15754       else
15755         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757       fi
15758       ;;
15759
15760     uts4*)
15761       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762       hardcode_libdir_flag_spec_F77='-L$libdir'
15763       hardcode_shlibpath_var_F77=no
15764       ;;
15765
15766     *)
15767       ld_shlibs_F77=no
15768       ;;
15769     esac
15770   fi
15771
15772 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15773 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15774 test "$ld_shlibs_F77" = no && can_build_shared=no
15775
15776 #
15777 # Do we need to explicitly link libc?
15778 #
15779 case "x$archive_cmds_need_lc_F77" in
15780 x|xyes)
15781   # Assume -lc should be added
15782   archive_cmds_need_lc_F77=yes
15783
15784   if test "$enable_shared" = yes && test "$GCC" = yes; then
15785     case $archive_cmds_F77 in
15786     *'~'*)
15787       # FIXME: we may have to deal with multi-command sequences.
15788       ;;
15789     '$CC '*)
15790       # Test whether the compiler implicitly links with -lc since on some
15791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15792       # to ld, don't add -lc before -lgcc.
15793       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15795       $rm conftest*
15796       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15797
15798       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799   (eval $ac_compile) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); } 2>conftest.err; then
15803         soname=conftest
15804         lib=conftest
15805         libobjs=conftest.$ac_objext
15806         deplibs=
15807         wl=$lt_prog_compiler_wl_F77
15808         pic_flag=$lt_prog_compiler_pic_F77
15809         compiler_flags=-v
15810         linker_flags=-v
15811         verstring=
15812         output_objdir=.
15813         libname=conftest
15814         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15815         allow_undefined_flag_F77=
15816         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15817   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }
15821         then
15822           archive_cmds_need_lc_F77=no
15823         else
15824           archive_cmds_need_lc_F77=yes
15825         fi
15826         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15827       else
15828         cat conftest.err 1>&5
15829       fi
15830       $rm conftest*
15831       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15832 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15833       ;;
15834     esac
15835   fi
15836   ;;
15837 esac
15838
15839 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15841 library_names_spec=
15842 libname_spec='lib$name'
15843 soname_spec=
15844 shrext_cmds=".so"
15845 postinstall_cmds=
15846 postuninstall_cmds=
15847 finish_cmds=
15848 finish_eval=
15849 shlibpath_var=
15850 shlibpath_overrides_runpath=unknown
15851 version_type=none
15852 dynamic_linker="$host_os ld.so"
15853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15854
15855 need_lib_prefix=unknown
15856 hardcode_into_libs=no
15857
15858 # when you set need_version to no, make sure it does not cause -set_version
15859 # flags to be left without arguments
15860 need_version=unknown
15861
15862 case $host_os in
15863 aix3*)
15864   version_type=linux
15865   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15866   shlibpath_var=LIBPATH
15867
15868   # AIX 3 has no versioning support, so we append a major version to the name.
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   ;;
15871
15872 aix[4-9]*)
15873   version_type=linux
15874   need_lib_prefix=no
15875   need_version=no
15876   hardcode_into_libs=yes
15877   if test "$host_cpu" = ia64; then
15878     # AIX 5 supports IA64
15879     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15880     shlibpath_var=LD_LIBRARY_PATH
15881   else
15882     # With GCC up to 2.95.x, collect2 would create an import file
15883     # for dependence libraries.  The import file would start with
15884     # the line `#! .'.  This would cause the generated library to
15885     # depend on `.', always an invalid library.  This was fixed in
15886     # development snapshots of GCC prior to 3.0.
15887     case $host_os in
15888       aix4 | aix4.[01] | aix4.[01].*)
15889       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15890            echo ' yes '
15891            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15892         :
15893       else
15894         can_build_shared=no
15895       fi
15896       ;;
15897     esac
15898     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15899     # soname into executable. Probably we can add versioning support to
15900     # collect2, so additional links can be useful in future.
15901     if test "$aix_use_runtimelinking" = yes; then
15902       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15903       # instead of lib<name>.a to let people know that these are not
15904       # typical AIX shared libraries.
15905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906     else
15907       # We preserve .a as extension for shared libraries through AIX4.2
15908       # and later when we are not doing run time linking.
15909       library_names_spec='${libname}${release}.a $libname.a'
15910       soname_spec='${libname}${release}${shared_ext}$major'
15911     fi
15912     shlibpath_var=LIBPATH
15913   fi
15914   ;;
15915
15916 amigaos*)
15917   library_names_spec='$libname.ixlibrary $libname.a'
15918   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15919   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15920   ;;
15921
15922 beos*)
15923   library_names_spec='${libname}${shared_ext}'
15924   dynamic_linker="$host_os ld.so"
15925   shlibpath_var=LIBRARY_PATH
15926   ;;
15927
15928 bsdi[45]*)
15929   version_type=linux
15930   need_version=no
15931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932   soname_spec='${libname}${release}${shared_ext}$major'
15933   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15934   shlibpath_var=LD_LIBRARY_PATH
15935   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15936   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15937   # the default ld.so.conf also contains /usr/contrib/lib and
15938   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15939   # libtool to hard-code these into programs
15940   ;;
15941
15942 cygwin* | mingw* | pw32*)
15943   version_type=windows
15944   shrext_cmds=".dll"
15945   need_version=no
15946   need_lib_prefix=no
15947
15948   case $GCC,$host_os in
15949   yes,cygwin* | yes,mingw* | yes,pw32*)
15950     library_names_spec='$libname.dll.a'
15951     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15952     postinstall_cmds='base_file=`basename \${file}`~
15953       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15954       dldir=$destdir/`dirname \$dlpath`~
15955       test -d \$dldir || mkdir -p \$dldir~
15956       $install_prog $dir/$dlname \$dldir/$dlname~
15957       chmod a+x \$dldir/$dlname'
15958     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15959       dlpath=$dir/\$dldll~
15960        $rm \$dlpath'
15961     shlibpath_overrides_runpath=yes
15962
15963     case $host_os in
15964     cygwin*)
15965       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15966       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15968       ;;
15969     mingw*)
15970       # MinGW DLLs use traditional 'lib' prefix
15971       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15972       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15974         # It is most probably a Windows format PATH printed by
15975         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15976         # path with ; separators, and with drive letters. We can handle the
15977         # drive letters (cygwin fileutils understands them), so leave them,
15978         # especially as we might pass files found there to a mingw objdump,
15979         # which wouldn't understand a cygwinified path. Ahh.
15980         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15981       else
15982         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15983       fi
15984       ;;
15985     pw32*)
15986       # pw32 DLLs use 'pw' prefix rather than 'lib'
15987       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988       ;;
15989     esac
15990     ;;
15991
15992   *)
15993     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15994     ;;
15995   esac
15996   dynamic_linker='Win32 ld.exe'
15997   # FIXME: first we should search . and the directory the executable is in
15998   shlibpath_var=PATH
15999   ;;
16000
16001 darwin* | rhapsody*)
16002   dynamic_linker="$host_os dyld"
16003   version_type=darwin
16004   need_lib_prefix=no
16005   need_version=no
16006   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16007   soname_spec='${libname}${release}${major}$shared_ext'
16008   shlibpath_overrides_runpath=yes
16009   shlibpath_var=DYLD_LIBRARY_PATH
16010   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16011
16012   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16013   ;;
16014
16015 dgux*)
16016   version_type=linux
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16020   soname_spec='${libname}${release}${shared_ext}$major'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   ;;
16023
16024 freebsd1*)
16025   dynamic_linker=no
16026   ;;
16027
16028 freebsd* | dragonfly*)
16029   # DragonFly does not have aout.  When/if they implement a new
16030   # versioning mechanism, adjust this.
16031   if test -x /usr/bin/objformat; then
16032     objformat=`/usr/bin/objformat`
16033   else
16034     case $host_os in
16035     freebsd[123]*) objformat=aout ;;
16036     *) objformat=elf ;;
16037     esac
16038   fi
16039   version_type=freebsd-$objformat
16040   case $version_type in
16041     freebsd-elf*)
16042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16043       need_version=no
16044       need_lib_prefix=no
16045       ;;
16046     freebsd-*)
16047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16048       need_version=yes
16049       ;;
16050   esac
16051   shlibpath_var=LD_LIBRARY_PATH
16052   case $host_os in
16053   freebsd2*)
16054     shlibpath_overrides_runpath=yes
16055     ;;
16056   freebsd3.[01]* | freebsdelf3.[01]*)
16057     shlibpath_overrides_runpath=yes
16058     hardcode_into_libs=yes
16059     ;;
16060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16062     shlibpath_overrides_runpath=no
16063     hardcode_into_libs=yes
16064     ;;
16065   *) # from 4.6 on, and DragonFly
16066     shlibpath_overrides_runpath=yes
16067     hardcode_into_libs=yes
16068     ;;
16069   esac
16070   ;;
16071
16072 gnu*)
16073   version_type=linux
16074   need_lib_prefix=no
16075   need_version=no
16076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16077   soname_spec='${libname}${release}${shared_ext}$major'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   hardcode_into_libs=yes
16080   ;;
16081
16082 hpux9* | hpux10* | hpux11*)
16083   # Give a soname corresponding to the major version so that dld.sl refuses to
16084   # link against other versions.
16085   version_type=sunos
16086   need_lib_prefix=no
16087   need_version=no
16088   case $host_cpu in
16089   ia64*)
16090     shrext_cmds='.so'
16091     hardcode_into_libs=yes
16092     dynamic_linker="$host_os dld.so"
16093     shlibpath_var=LD_LIBRARY_PATH
16094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096     soname_spec='${libname}${release}${shared_ext}$major'
16097     if test "X$HPUX_IA64_MODE" = X32; then
16098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16099     else
16100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16101     fi
16102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16103     ;;
16104    hppa*64*)
16105      shrext_cmds='.sl'
16106      hardcode_into_libs=yes
16107      dynamic_linker="$host_os dld.sl"
16108      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16109      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111      soname_spec='${libname}${release}${shared_ext}$major'
16112      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16113      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16114      ;;
16115    *)
16116     shrext_cmds='.sl'
16117     dynamic_linker="$host_os dld.sl"
16118     shlibpath_var=SHLIB_PATH
16119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121     soname_spec='${libname}${release}${shared_ext}$major'
16122     ;;
16123   esac
16124   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16125   postinstall_cmds='chmod 555 $lib'
16126   ;;
16127
16128 interix[3-9]*)
16129   version_type=linux
16130   need_lib_prefix=no
16131   need_version=no
16132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16133   soname_spec='${libname}${release}${shared_ext}$major'
16134   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=no
16137   hardcode_into_libs=yes
16138   ;;
16139
16140 irix5* | irix6* | nonstopux*)
16141   case $host_os in
16142     nonstopux*) version_type=nonstopux ;;
16143     *)
16144         if test "$lt_cv_prog_gnu_ld" = yes; then
16145                 version_type=linux
16146         else
16147                 version_type=irix
16148         fi ;;
16149   esac
16150   need_lib_prefix=no
16151   need_version=no
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16154   case $host_os in
16155   irix5* | nonstopux*)
16156     libsuff= shlibsuff=
16157     ;;
16158   *)
16159     case $LD in # libtool.m4 will add one of these switches to LD
16160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16161       libsuff= shlibsuff= libmagic=32-bit;;
16162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16163       libsuff=32 shlibsuff=N32 libmagic=N32;;
16164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16166     *) libsuff= shlibsuff= libmagic=never-match;;
16167     esac
16168     ;;
16169   esac
16170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16171   shlibpath_overrides_runpath=no
16172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16174   hardcode_into_libs=yes
16175   ;;
16176
16177 # No shared lib support for Linux oldld, aout, or coff.
16178 linux*oldld* | linux*aout* | linux*coff*)
16179   dynamic_linker=no
16180   ;;
16181
16182 # This must be Linux ELF.
16183 linux* | k*bsd*-gnu)
16184   version_type=linux
16185   need_lib_prefix=no
16186   need_version=no
16187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188   soname_spec='${libname}${release}${shared_ext}$major'
16189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16190   shlibpath_var=LD_LIBRARY_PATH
16191   shlibpath_overrides_runpath=no
16192   # This implies no fast_install, which is unacceptable.
16193   # Some rework will be needed to allow for fast_install
16194   # before this can be enabled.
16195   hardcode_into_libs=yes
16196
16197   # Append ld.so.conf contents to the search path
16198   if test -f /etc/ld.so.conf; then
16199     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16200     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16201   fi
16202
16203   # We used to test for /lib/ld.so.1 and disable shared libraries on
16204   # powerpc, because MkLinux only supported shared libraries with the
16205   # GNU dynamic linker.  Since this was broken with cross compilers,
16206   # most powerpc-linux boxes support dynamic linking these days and
16207   # people can always --disable-shared, the test was removed, and we
16208   # assume the GNU/Linux dynamic linker is in use.
16209   dynamic_linker='GNU/Linux ld.so'
16210   ;;
16211
16212 netbsdelf*-gnu)
16213   version_type=linux
16214   need_lib_prefix=no
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   shlibpath_overrides_runpath=no
16220   hardcode_into_libs=yes
16221   dynamic_linker='NetBSD ld.elf_so'
16222   ;;
16223
16224 netbsd*)
16225   version_type=sunos
16226   need_lib_prefix=no
16227   need_version=no
16228   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16231     dynamic_linker='NetBSD (a.out) ld.so'
16232   else
16233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16234     soname_spec='${libname}${release}${shared_ext}$major'
16235     dynamic_linker='NetBSD ld.elf_so'
16236   fi
16237   shlibpath_var=LD_LIBRARY_PATH
16238   shlibpath_overrides_runpath=yes
16239   hardcode_into_libs=yes
16240   ;;
16241
16242 newsos6)
16243   version_type=linux
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   shlibpath_overrides_runpath=yes
16247   ;;
16248
16249 nto-qnx*)
16250   version_type=linux
16251   need_lib_prefix=no
16252   need_version=no
16253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254   soname_spec='${libname}${release}${shared_ext}$major'
16255   shlibpath_var=LD_LIBRARY_PATH
16256   shlibpath_overrides_runpath=yes
16257   ;;
16258
16259 openbsd*)
16260   version_type=sunos
16261   sys_lib_dlsearch_path_spec="/usr/lib"
16262   need_lib_prefix=no
16263   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16264   case $host_os in
16265     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16266     *)                         need_version=no  ;;
16267   esac
16268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16270   shlibpath_var=LD_LIBRARY_PATH
16271   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16272     case $host_os in
16273       openbsd2.[89] | openbsd2.[89].*)
16274         shlibpath_overrides_runpath=no
16275         ;;
16276       *)
16277         shlibpath_overrides_runpath=yes
16278         ;;
16279       esac
16280   else
16281     shlibpath_overrides_runpath=yes
16282   fi
16283   ;;
16284
16285 os2*)
16286   libname_spec='$name'
16287   shrext_cmds=".dll"
16288   need_lib_prefix=no
16289   library_names_spec='$libname${shared_ext} $libname.a'
16290   dynamic_linker='OS/2 ld.exe'
16291   shlibpath_var=LIBPATH
16292   ;;
16293
16294 osf3* | osf4* | osf5*)
16295   version_type=osf
16296   need_lib_prefix=no
16297   need_version=no
16298   soname_spec='${libname}${release}${shared_ext}$major'
16299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300   shlibpath_var=LD_LIBRARY_PATH
16301   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16302   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16303   ;;
16304
16305 rdos*)
16306   dynamic_linker=no
16307   ;;
16308
16309 solaris*)
16310   version_type=linux
16311   need_lib_prefix=no
16312   need_version=no
16313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314   soname_spec='${libname}${release}${shared_ext}$major'
16315   shlibpath_var=LD_LIBRARY_PATH
16316   shlibpath_overrides_runpath=yes
16317   hardcode_into_libs=yes
16318   # ldd complains unless libraries are executable
16319   postinstall_cmds='chmod +x $lib'
16320   ;;
16321
16322 sunos4*)
16323   version_type=sunos
16324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16326   shlibpath_var=LD_LIBRARY_PATH
16327   shlibpath_overrides_runpath=yes
16328   if test "$with_gnu_ld" = yes; then
16329     need_lib_prefix=no
16330   fi
16331   need_version=yes
16332   ;;
16333
16334 sysv4 | sysv4.3*)
16335   version_type=linux
16336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337   soname_spec='${libname}${release}${shared_ext}$major'
16338   shlibpath_var=LD_LIBRARY_PATH
16339   case $host_vendor in
16340     sni)
16341       shlibpath_overrides_runpath=no
16342       need_lib_prefix=no
16343       export_dynamic_flag_spec='${wl}-Blargedynsym'
16344       runpath_var=LD_RUN_PATH
16345       ;;
16346     siemens)
16347       need_lib_prefix=no
16348       ;;
16349     motorola)
16350       need_lib_prefix=no
16351       need_version=no
16352       shlibpath_overrides_runpath=no
16353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16354       ;;
16355   esac
16356   ;;
16357
16358 sysv4*MP*)
16359   if test -d /usr/nec ;then
16360     version_type=linux
16361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16362     soname_spec='$libname${shared_ext}.$major'
16363     shlibpath_var=LD_LIBRARY_PATH
16364   fi
16365   ;;
16366
16367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16368   version_type=freebsd-elf
16369   need_lib_prefix=no
16370   need_version=no
16371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16372   soname_spec='${libname}${release}${shared_ext}$major'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   hardcode_into_libs=yes
16375   if test "$with_gnu_ld" = yes; then
16376     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16377     shlibpath_overrides_runpath=no
16378   else
16379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16380     shlibpath_overrides_runpath=yes
16381     case $host_os in
16382       sco3.2v5*)
16383         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16384         ;;
16385     esac
16386   fi
16387   sys_lib_dlsearch_path_spec='/usr/lib'
16388   ;;
16389
16390 uts4*)
16391   version_type=linux
16392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393   soname_spec='${libname}${release}${shared_ext}$major'
16394   shlibpath_var=LD_LIBRARY_PATH
16395   ;;
16396
16397 *)
16398   dynamic_linker=no
16399   ;;
16400 esac
16401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16402 echo "${ECHO_T}$dynamic_linker" >&6; }
16403 test "$dynamic_linker" = no && can_build_shared=no
16404
16405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16406   echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16409 fi
16410
16411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16416 fi
16417
16418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16419
16420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16421 if test "$GCC" = yes; then
16422   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16423 fi
16424
16425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16427 hardcode_action_F77=
16428 if test -n "$hardcode_libdir_flag_spec_F77" || \
16429    test -n "$runpath_var_F77" || \
16430    test "X$hardcode_automatic_F77" = "Xyes" ; then
16431
16432   # We can hardcode non-existant directories.
16433   if test "$hardcode_direct_F77" != no &&
16434      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16435      # have to relink, otherwise we might link with an installed library
16436      # when we should be linking with a yet-to-be-installed one
16437      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16438      test "$hardcode_minus_L_F77" != no; then
16439     # Linking always hardcodes the temporary library directory.
16440     hardcode_action_F77=relink
16441   else
16442     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16443     hardcode_action_F77=immediate
16444   fi
16445 else
16446   # We cannot hardcode anything, or else we can only hardcode existing
16447   # directories.
16448   hardcode_action_F77=unsupported
16449 fi
16450 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16451 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16452
16453 if test "$hardcode_action_F77" = relink; then
16454   # Fast installation is not supported
16455   enable_fast_install=no
16456 elif test "$shlibpath_overrides_runpath" = yes ||
16457      test "$enable_shared" = no; then
16458   # Fast installation is not necessary
16459   enable_fast_install=needless
16460 fi
16461
16462
16463 # The else clause should only fire when bootstrapping the
16464 # libtool distribution, otherwise you forgot to ship ltmain.sh
16465 # with your package, and you will get complaints that there are
16466 # no rules to generate ltmain.sh.
16467 if test -f "$ltmain"; then
16468   # See if we are running on zsh, and set the options which allow our commands through
16469   # without removal of \ escapes.
16470   if test -n "${ZSH_VERSION+set}" ; then
16471     setopt NO_GLOB_SUBST
16472   fi
16473   # Now quote all the things that may contain metacharacters while being
16474   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16475   # variables and quote the copies for generation of the libtool script.
16476   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16477     SED SHELL STRIP \
16478     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16479     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16480     deplibs_check_method reload_flag reload_cmds need_locks \
16481     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16482     lt_cv_sys_global_symbol_to_c_name_address \
16483     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16484     old_postinstall_cmds old_postuninstall_cmds \
16485     compiler_F77 \
16486     CC_F77 \
16487     LD_F77 \
16488     lt_prog_compiler_wl_F77 \
16489     lt_prog_compiler_pic_F77 \
16490     lt_prog_compiler_static_F77 \
16491     lt_prog_compiler_no_builtin_flag_F77 \
16492     export_dynamic_flag_spec_F77 \
16493     thread_safe_flag_spec_F77 \
16494     whole_archive_flag_spec_F77 \
16495     enable_shared_with_static_runtimes_F77 \
16496     old_archive_cmds_F77 \
16497     old_archive_from_new_cmds_F77 \
16498     predep_objects_F77 \
16499     postdep_objects_F77 \
16500     predeps_F77 \
16501     postdeps_F77 \
16502     compiler_lib_search_path_F77 \
16503     compiler_lib_search_dirs_F77 \
16504     archive_cmds_F77 \
16505     archive_expsym_cmds_F77 \
16506     postinstall_cmds_F77 \
16507     postuninstall_cmds_F77 \
16508     old_archive_from_expsyms_cmds_F77 \
16509     allow_undefined_flag_F77 \
16510     no_undefined_flag_F77 \
16511     export_symbols_cmds_F77 \
16512     hardcode_libdir_flag_spec_F77 \
16513     hardcode_libdir_flag_spec_ld_F77 \
16514     hardcode_libdir_separator_F77 \
16515     hardcode_automatic_F77 \
16516     module_cmds_F77 \
16517     module_expsym_cmds_F77 \
16518     lt_cv_prog_compiler_c_o_F77 \
16519     fix_srcfile_path_F77 \
16520     exclude_expsyms_F77 \
16521     include_expsyms_F77; do
16522
16523     case $var in
16524     old_archive_cmds_F77 | \
16525     old_archive_from_new_cmds_F77 | \
16526     archive_cmds_F77 | \
16527     archive_expsym_cmds_F77 | \
16528     module_cmds_F77 | \
16529     module_expsym_cmds_F77 | \
16530     old_archive_from_expsyms_cmds_F77 | \
16531     export_symbols_cmds_F77 | \
16532     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16533     postinstall_cmds | postuninstall_cmds | \
16534     old_postinstall_cmds | old_postuninstall_cmds | \
16535     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16536       # Double-quote double-evaled strings.
16537       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16538       ;;
16539     *)
16540       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16541       ;;
16542     esac
16543   done
16544
16545   case $lt_echo in
16546   *'\$0 --fallback-echo"')
16547     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16548     ;;
16549   esac
16550
16551 cfgfile="$ofile"
16552
16553   cat <<__EOF__ >> "$cfgfile"
16554 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16555
16556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16557
16558 # Shell to use when invoking shell scripts.
16559 SHELL=$lt_SHELL
16560
16561 # Whether or not to build shared libraries.
16562 build_libtool_libs=$enable_shared
16563
16564 # Whether or not to build static libraries.
16565 build_old_libs=$enable_static
16566
16567 # Whether or not to add -lc for building shared libraries.
16568 build_libtool_need_lc=$archive_cmds_need_lc_F77
16569
16570 # Whether or not to disallow shared libs when runtime libs are static
16571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16572
16573 # Whether or not to optimize for fast installation.
16574 fast_install=$enable_fast_install
16575
16576 # The host system.
16577 host_alias=$host_alias
16578 host=$host
16579 host_os=$host_os
16580
16581 # The build system.
16582 build_alias=$build_alias
16583 build=$build
16584 build_os=$build_os
16585
16586 # An echo program that does not interpret backslashes.
16587 echo=$lt_echo
16588
16589 # The archiver.
16590 AR=$lt_AR
16591 AR_FLAGS=$lt_AR_FLAGS
16592
16593 # A C compiler.
16594 LTCC=$lt_LTCC
16595
16596 # LTCC compiler flags.
16597 LTCFLAGS=$lt_LTCFLAGS
16598
16599 # A language-specific compiler.
16600 CC=$lt_compiler_F77
16601
16602 # Is the compiler the GNU C compiler?
16603 with_gcc=$GCC_F77
16604
16605 # An ERE matcher.
16606 EGREP=$lt_EGREP
16607
16608 # The linker used to build libraries.
16609 LD=$lt_LD_F77
16610
16611 # Whether we need hard or soft links.
16612 LN_S=$lt_LN_S
16613
16614 # A BSD-compatible nm program.
16615 NM=$lt_NM
16616
16617 # A symbol stripping program
16618 STRIP=$lt_STRIP
16619
16620 # Used to examine libraries when file_magic_cmd begins "file"
16621 MAGIC_CMD=$MAGIC_CMD
16622
16623 # Used on cygwin: DLL creation program.
16624 DLLTOOL="$DLLTOOL"
16625
16626 # Used on cygwin: object dumper.
16627 OBJDUMP="$OBJDUMP"
16628
16629 # Used on cygwin: assembler.
16630 AS="$AS"
16631
16632 # The name of the directory that contains temporary libtool files.
16633 objdir=$objdir
16634
16635 # How to create reloadable object files.
16636 reload_flag=$lt_reload_flag
16637 reload_cmds=$lt_reload_cmds
16638
16639 # How to pass a linker flag through the compiler.
16640 wl=$lt_lt_prog_compiler_wl_F77
16641
16642 # Object file suffix (normally "o").
16643 objext="$ac_objext"
16644
16645 # Old archive suffix (normally "a").
16646 libext="$libext"
16647
16648 # Shared library suffix (normally ".so").
16649 shrext_cmds='$shrext_cmds'
16650
16651 # Executable file suffix (normally "").
16652 exeext="$exeext"
16653
16654 # Additional compiler flags for building library objects.
16655 pic_flag=$lt_lt_prog_compiler_pic_F77
16656 pic_mode=$pic_mode
16657
16658 # What is the maximum length of a command?
16659 max_cmd_len=$lt_cv_sys_max_cmd_len
16660
16661 # Does compiler simultaneously support -c and -o options?
16662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16663
16664 # Must we lock files when doing compilation?
16665 need_locks=$lt_need_locks
16666
16667 # Do we need the lib prefix for modules?
16668 need_lib_prefix=$need_lib_prefix
16669
16670 # Do we need a version for libraries?
16671 need_version=$need_version
16672
16673 # Whether dlopen is supported.
16674 dlopen_support=$enable_dlopen
16675
16676 # Whether dlopen of programs is supported.
16677 dlopen_self=$enable_dlopen_self
16678
16679 # Whether dlopen of statically linked programs is supported.
16680 dlopen_self_static=$enable_dlopen_self_static
16681
16682 # Compiler flag to prevent dynamic linking.
16683 link_static_flag=$lt_lt_prog_compiler_static_F77
16684
16685 # Compiler flag to turn off builtin functions.
16686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16687
16688 # Compiler flag to allow reflexive dlopens.
16689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16690
16691 # Compiler flag to generate shared objects directly from archives.
16692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16693
16694 # Compiler flag to generate thread-safe objects.
16695 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16696
16697 # Library versioning type.
16698 version_type=$version_type
16699
16700 # Format of library name prefix.
16701 libname_spec=$lt_libname_spec
16702
16703 # List of archive names.  First name is the real one, the rest are links.
16704 # The last name is the one that the linker finds with -lNAME.
16705 library_names_spec=$lt_library_names_spec
16706
16707 # The coded name of the library, if different from the real name.
16708 soname_spec=$lt_soname_spec
16709
16710 # Commands used to build and install an old-style archive.
16711 RANLIB=$lt_RANLIB
16712 old_archive_cmds=$lt_old_archive_cmds_F77
16713 old_postinstall_cmds=$lt_old_postinstall_cmds
16714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16715
16716 # Create an old-style archive from a shared archive.
16717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16718
16719 # Create a temporary old-style archive to link instead of a shared archive.
16720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16721
16722 # Commands used to build and install a shared archive.
16723 archive_cmds=$lt_archive_cmds_F77
16724 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16725 postinstall_cmds=$lt_postinstall_cmds
16726 postuninstall_cmds=$lt_postuninstall_cmds
16727
16728 # Commands used to build a loadable module (assumed same as above if empty)
16729 module_cmds=$lt_module_cmds_F77
16730 module_expsym_cmds=$lt_module_expsym_cmds_F77
16731
16732 # Commands to strip libraries.
16733 old_striplib=$lt_old_striplib
16734 striplib=$lt_striplib
16735
16736 # Dependencies to place before the objects being linked to create a
16737 # shared library.
16738 predep_objects=$lt_predep_objects_F77
16739
16740 # Dependencies to place after the objects being linked to create a
16741 # shared library.
16742 postdep_objects=$lt_postdep_objects_F77
16743
16744 # Dependencies to place before the objects being linked to create a
16745 # shared library.
16746 predeps=$lt_predeps_F77
16747
16748 # Dependencies to place after the objects being linked to create a
16749 # shared library.
16750 postdeps=$lt_postdeps_F77
16751
16752 # The directories searched by this compiler when creating a shared
16753 # library
16754 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16755
16756 # The library search path used internally by the compiler when linking
16757 # a shared library.
16758 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16759
16760 # Method to check whether dependent libraries are shared objects.
16761 deplibs_check_method=$lt_deplibs_check_method
16762
16763 # Command to use when deplibs_check_method == file_magic.
16764 file_magic_cmd=$lt_file_magic_cmd
16765
16766 # Flag that allows shared libraries with undefined symbols to be built.
16767 allow_undefined_flag=$lt_allow_undefined_flag_F77
16768
16769 # Flag that forces no undefined symbols.
16770 no_undefined_flag=$lt_no_undefined_flag_F77
16771
16772 # Commands used to finish a libtool library installation in a directory.
16773 finish_cmds=$lt_finish_cmds
16774
16775 # Same as above, but a single script fragment to be evaled but not shown.
16776 finish_eval=$lt_finish_eval
16777
16778 # Take the output of nm and produce a listing of raw symbols and C names.
16779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16780
16781 # Transform the output of nm in a proper C declaration
16782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16783
16784 # Transform the output of nm in a C name address pair
16785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16786
16787 # This is the shared library runtime path variable.
16788 runpath_var=$runpath_var
16789
16790 # This is the shared library path variable.
16791 shlibpath_var=$shlibpath_var
16792
16793 # Is shlibpath searched before the hard-coded library search path?
16794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16795
16796 # How to hardcode a shared library path into an executable.
16797 hardcode_action=$hardcode_action_F77
16798
16799 # Whether we should hardcode library paths into libraries.
16800 hardcode_into_libs=$hardcode_into_libs
16801
16802 # Flag to hardcode \$libdir into a binary during linking.
16803 # This must work even if \$libdir does not exist.
16804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16805
16806 # If ld is used when linking, flag to hardcode \$libdir into
16807 # a binary during linking. This must work even if \$libdir does
16808 # not exist.
16809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16810
16811 # Whether we need a single -rpath flag with a separated argument.
16812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16813
16814 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16815 # resulting binary.
16816 hardcode_direct=$hardcode_direct_F77
16817
16818 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16819 # resulting binary.
16820 hardcode_minus_L=$hardcode_minus_L_F77
16821
16822 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16823 # the resulting binary.
16824 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16825
16826 # Set to yes if building a shared library automatically hardcodes DIR into the library
16827 # and all subsequent libraries and executables linked against it.
16828 hardcode_automatic=$hardcode_automatic_F77
16829
16830 # Variables whose values should be saved in libtool wrapper scripts and
16831 # restored at relink time.
16832 variables_saved_for_relink="$variables_saved_for_relink"
16833
16834 # Whether libtool must link a program against all its dependency libraries.
16835 link_all_deplibs=$link_all_deplibs_F77
16836
16837 # Compile-time system search path for libraries
16838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16839
16840 # Run-time system search path for libraries
16841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16842
16843 # Fix the shell variable \$srcfile for the compiler.
16844 fix_srcfile_path=$lt_fix_srcfile_path
16845
16846 # Set to yes if exported symbols are required.
16847 always_export_symbols=$always_export_symbols_F77
16848
16849 # The commands to list exported symbols.
16850 export_symbols_cmds=$lt_export_symbols_cmds_F77
16851
16852 # The commands to extract the exported symbol list from a shared archive.
16853 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16854
16855 # Symbols that should not be listed in the preloaded symbols.
16856 exclude_expsyms=$lt_exclude_expsyms_F77
16857
16858 # Symbols that must always be exported.
16859 include_expsyms=$lt_include_expsyms_F77
16860
16861 # ### END LIBTOOL TAG CONFIG: $tagname
16862
16863 __EOF__
16864
16865
16866 else
16867   # If there is no Makefile yet, we rely on a make rule to execute
16868   # `config.status --recheck' to rerun these tests and create the
16869   # libtool script then.
16870   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16871   if test -f "$ltmain_in"; then
16872     test -f Makefile && make "$ltmain"
16873   fi
16874 fi
16875
16876
16877 ac_ext=c
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16882
16883 CC="$lt_save_CC"
16884
16885         else
16886           tagname=""
16887         fi
16888         ;;
16889
16890       GCJ)
16891         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16892
16893
16894 # Source file extension for Java test sources.
16895 ac_ext=java
16896
16897 # Object file extension for compiled Java test sources.
16898 objext=o
16899 objext_GCJ=$objext
16900
16901 # Code to be used in simple compile tests
16902 lt_simple_compile_test_code="class foo {}"
16903
16904 # Code to be used in simple link tests
16905 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16906
16907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16908
16909 # If no C compiler was specified, use CC.
16910 LTCC=${LTCC-"$CC"}
16911
16912 # If no C compiler flags were specified, use CFLAGS.
16913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16914
16915 # Allow CC to be a program name with arguments.
16916 compiler=$CC
16917
16918
16919 # save warnings/boilerplate of simple test code
16920 ac_outfile=conftest.$ac_objext
16921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923 _lt_compiler_boilerplate=`cat conftest.err`
16924 $rm conftest*
16925
16926 ac_outfile=conftest.$ac_objext
16927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16929 _lt_linker_boilerplate=`cat conftest.err`
16930 $rm -r conftest*
16931
16932
16933 # Allow CC to be a program name with arguments.
16934 lt_save_CC="$CC"
16935 CC=${GCJ-"gcj"}
16936 compiler=$CC
16937 compiler_GCJ=$CC
16938 for cc_temp in $compiler""; do
16939   case $cc_temp in
16940     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16941     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16942     \-*) ;;
16943     *) break;;
16944   esac
16945 done
16946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16947
16948
16949 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16950 archive_cmds_need_lc_GCJ=no
16951
16952 old_archive_cmds_GCJ=$old_archive_cmds
16953
16954
16955 lt_prog_compiler_no_builtin_flag_GCJ=
16956
16957 if test "$GCC" = yes; then
16958   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16959
16960
16961 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16962 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   lt_cv_prog_compiler_rtti_exceptions=no
16967   ac_outfile=conftest.$ac_objext
16968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16969    lt_compiler_flag="-fno-rtti -fno-exceptions"
16970    # Insert the option either (1) after the last *FLAGS variable, or
16971    # (2) before a word containing "conftest.", or (3) at the end.
16972    # Note that $ac_compile itself does not contain backslashes and begins
16973    # with a dollar sign (not a hyphen), so the echo should work correctly.
16974    # The option is referenced via a variable to avoid confusing sed.
16975    lt_compile=`echo "$ac_compile" | $SED \
16976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16978    -e 's:$: $lt_compiler_flag:'`
16979    (eval echo "\"\$as_me:16975: $lt_compile\"" >&5)
16980    (eval "$lt_compile" 2>conftest.err)
16981    ac_status=$?
16982    cat conftest.err >&5
16983    echo "$as_me:16979: \$? = $ac_status" >&5
16984    if (exit $ac_status) && test -s "$ac_outfile"; then
16985      # The compiler can only warn and ignore the option if not recognized
16986      # So say no if there are warnings other than the usual output.
16987      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16988      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16989      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16990        lt_cv_prog_compiler_rtti_exceptions=yes
16991      fi
16992    fi
16993    $rm conftest*
16994
16995 fi
16996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16997 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16998
16999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17000     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17001 else
17002     :
17003 fi
17004
17005 fi
17006
17007 lt_prog_compiler_wl_GCJ=
17008 lt_prog_compiler_pic_GCJ=
17009 lt_prog_compiler_static_GCJ=
17010
17011 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17012 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17013
17014   if test "$GCC" = yes; then
17015     lt_prog_compiler_wl_GCJ='-Wl,'
17016     lt_prog_compiler_static_GCJ='-static'
17017
17018     case $host_os in
17019       aix*)
17020       # All AIX code is PIC.
17021       if test "$host_cpu" = ia64; then
17022         # AIX 5 now supports IA64 processor
17023         lt_prog_compiler_static_GCJ='-Bstatic'
17024       fi
17025       ;;
17026
17027     amigaos*)
17028       # FIXME: we need at least 68020 code to build shared libraries, but
17029       # adding the `-m68020' flag to GCC prevents building anything better,
17030       # like `-m68040'.
17031       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17032       ;;
17033
17034     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17035       # PIC is the default for these OSes.
17036       ;;
17037
17038     mingw* | cygwin* | pw32* | os2*)
17039       # This hack is so that the source file can tell whether it is being
17040       # built for inclusion in a dll (and should export symbols for example).
17041       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17042       # (--disable-auto-import) libraries
17043
17044       ;;
17045
17046     darwin* | rhapsody*)
17047       # PIC is the default on this platform
17048       # Common symbols not allowed in MH_DYLIB files
17049       lt_prog_compiler_pic_GCJ='-fno-common'
17050       ;;
17051
17052     interix[3-9]*)
17053       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17054       # Instead, we relocate shared libraries at runtime.
17055       ;;
17056
17057     msdosdjgpp*)
17058       # Just because we use GCC doesn't mean we suddenly get shared libraries
17059       # on systems that don't support them.
17060       lt_prog_compiler_can_build_shared_GCJ=no
17061       enable_shared=no
17062       ;;
17063
17064     sysv4*MP*)
17065       if test -d /usr/nec; then
17066         lt_prog_compiler_pic_GCJ=-Kconform_pic
17067       fi
17068       ;;
17069
17070     hpux*)
17071       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17072       # not for PA HP-UX.
17073       case $host_cpu in
17074       hppa*64*|ia64*)
17075         # +Z the default
17076         ;;
17077       *)
17078         lt_prog_compiler_pic_GCJ='-fPIC'
17079         ;;
17080       esac
17081       ;;
17082
17083     *)
17084       lt_prog_compiler_pic_GCJ='-fPIC'
17085       ;;
17086     esac
17087   else
17088     # PORTME Check for flag to pass linker flags through the system compiler.
17089     case $host_os in
17090     aix*)
17091       lt_prog_compiler_wl_GCJ='-Wl,'
17092       if test "$host_cpu" = ia64; then
17093         # AIX 5 now supports IA64 processor
17094         lt_prog_compiler_static_GCJ='-Bstatic'
17095       else
17096         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17097       fi
17098       ;;
17099       darwin*)
17100         # PIC is the default on this platform
17101         # Common symbols not allowed in MH_DYLIB files
17102        case $cc_basename in
17103          xlc*)
17104          lt_prog_compiler_pic_GCJ='-qnocommon'
17105          lt_prog_compiler_wl_GCJ='-Wl,'
17106          ;;
17107        esac
17108        ;;
17109
17110     mingw* | cygwin* | pw32* | os2*)
17111       # This hack is so that the source file can tell whether it is being
17112       # built for inclusion in a dll (and should export symbols for example).
17113
17114       ;;
17115
17116     hpux9* | hpux10* | hpux11*)
17117       lt_prog_compiler_wl_GCJ='-Wl,'
17118       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119       # not for PA HP-UX.
17120       case $host_cpu in
17121       hppa*64*|ia64*)
17122         # +Z the default
17123         ;;
17124       *)
17125         lt_prog_compiler_pic_GCJ='+Z'
17126         ;;
17127       esac
17128       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17129       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17130       ;;
17131
17132     irix5* | irix6* | nonstopux*)
17133       lt_prog_compiler_wl_GCJ='-Wl,'
17134       # PIC (with -KPIC) is the default.
17135       lt_prog_compiler_static_GCJ='-non_shared'
17136       ;;
17137
17138     newsos6)
17139       lt_prog_compiler_pic_GCJ='-KPIC'
17140       lt_prog_compiler_static_GCJ='-Bstatic'
17141       ;;
17142
17143     linux* | k*bsd*-gnu)
17144       case $cc_basename in
17145       icc* | ecc*)
17146         lt_prog_compiler_wl_GCJ='-Wl,'
17147         lt_prog_compiler_pic_GCJ='-KPIC'
17148         lt_prog_compiler_static_GCJ='-static'
17149         ;;
17150       pgcc* | pgf77* | pgf90* | pgf95*)
17151         # Portland Group compilers (*not* the Pentium gcc compiler,
17152         # which looks to be a dead project)
17153         lt_prog_compiler_wl_GCJ='-Wl,'
17154         lt_prog_compiler_pic_GCJ='-fpic'
17155         lt_prog_compiler_static_GCJ='-Bstatic'
17156         ;;
17157       ccc*)
17158         lt_prog_compiler_wl_GCJ='-Wl,'
17159         # All Alpha code is PIC.
17160         lt_prog_compiler_static_GCJ='-non_shared'
17161         ;;
17162       *)
17163         case `$CC -V 2>&1 | sed 5q` in
17164         *Sun\ C*)
17165           # Sun C 5.9
17166           lt_prog_compiler_pic_GCJ='-KPIC'
17167           lt_prog_compiler_static_GCJ='-Bstatic'
17168           lt_prog_compiler_wl_GCJ='-Wl,'
17169           ;;
17170         *Sun\ F*)
17171           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17172           lt_prog_compiler_pic_GCJ='-KPIC'
17173           lt_prog_compiler_static_GCJ='-Bstatic'
17174           lt_prog_compiler_wl_GCJ=''
17175           ;;
17176         esac
17177         ;;
17178       esac
17179       ;;
17180
17181     osf3* | osf4* | osf5*)
17182       lt_prog_compiler_wl_GCJ='-Wl,'
17183       # All OSF/1 code is PIC.
17184       lt_prog_compiler_static_GCJ='-non_shared'
17185       ;;
17186
17187     rdos*)
17188       lt_prog_compiler_static_GCJ='-non_shared'
17189       ;;
17190
17191     solaris*)
17192       lt_prog_compiler_pic_GCJ='-KPIC'
17193       lt_prog_compiler_static_GCJ='-Bstatic'
17194       case $cc_basename in
17195       f77* | f90* | f95*)
17196         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17197       *)
17198         lt_prog_compiler_wl_GCJ='-Wl,';;
17199       esac
17200       ;;
17201
17202     sunos4*)
17203       lt_prog_compiler_wl_GCJ='-Qoption ld '
17204       lt_prog_compiler_pic_GCJ='-PIC'
17205       lt_prog_compiler_static_GCJ='-Bstatic'
17206       ;;
17207
17208     sysv4 | sysv4.2uw2* | sysv4.3*)
17209       lt_prog_compiler_wl_GCJ='-Wl,'
17210       lt_prog_compiler_pic_GCJ='-KPIC'
17211       lt_prog_compiler_static_GCJ='-Bstatic'
17212       ;;
17213
17214     sysv4*MP*)
17215       if test -d /usr/nec ;then
17216         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17217         lt_prog_compiler_static_GCJ='-Bstatic'
17218       fi
17219       ;;
17220
17221     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17222       lt_prog_compiler_wl_GCJ='-Wl,'
17223       lt_prog_compiler_pic_GCJ='-KPIC'
17224       lt_prog_compiler_static_GCJ='-Bstatic'
17225       ;;
17226
17227     unicos*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       lt_prog_compiler_can_build_shared_GCJ=no
17230       ;;
17231
17232     uts4*)
17233       lt_prog_compiler_pic_GCJ='-pic'
17234       lt_prog_compiler_static_GCJ='-Bstatic'
17235       ;;
17236
17237     *)
17238       lt_prog_compiler_can_build_shared_GCJ=no
17239       ;;
17240     esac
17241   fi
17242
17243 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17244 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17245
17246 #
17247 # Check to make sure the PIC flag actually works.
17248 #
17249 if test -n "$lt_prog_compiler_pic_GCJ"; then
17250
17251 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17253 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256   lt_cv_prog_compiler_pic_works_GCJ=no
17257   ac_outfile=conftest.$ac_objext
17258    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17259    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17260    # Insert the option either (1) after the last *FLAGS variable, or
17261    # (2) before a word containing "conftest.", or (3) at the end.
17262    # Note that $ac_compile itself does not contain backslashes and begins
17263    # with a dollar sign (not a hyphen), so the echo should work correctly.
17264    # The option is referenced via a variable to avoid confusing sed.
17265    lt_compile=`echo "$ac_compile" | $SED \
17266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17268    -e 's:$: $lt_compiler_flag:'`
17269    (eval echo "\"\$as_me:17265: $lt_compile\"" >&5)
17270    (eval "$lt_compile" 2>conftest.err)
17271    ac_status=$?
17272    cat conftest.err >&5
17273    echo "$as_me:17269: \$? = $ac_status" >&5
17274    if (exit $ac_status) && test -s "$ac_outfile"; then
17275      # The compiler can only warn and ignore the option if not recognized
17276      # So say no if there are warnings other than the usual output.
17277      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17278      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17279      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17280        lt_cv_prog_compiler_pic_works_GCJ=yes
17281      fi
17282    fi
17283    $rm conftest*
17284
17285 fi
17286 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17287 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17288
17289 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17290     case $lt_prog_compiler_pic_GCJ in
17291      "" | " "*) ;;
17292      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17293      esac
17294 else
17295     lt_prog_compiler_pic_GCJ=
17296      lt_prog_compiler_can_build_shared_GCJ=no
17297 fi
17298
17299 fi
17300 case $host_os in
17301   # For platforms which do not support PIC, -DPIC is meaningless:
17302   *djgpp*)
17303     lt_prog_compiler_pic_GCJ=
17304     ;;
17305   *)
17306     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17307     ;;
17308 esac
17309
17310 #
17311 # Check to make sure the static flag actually works.
17312 #
17313 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17314 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17315 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17316 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319   lt_cv_prog_compiler_static_works_GCJ=no
17320    save_LDFLAGS="$LDFLAGS"
17321    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17322    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17323    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17324      # The linker can only warn and ignore the option if not recognized
17325      # So say no if there are warnings
17326      if test -s conftest.err; then
17327        # Append any errors to the config.log.
17328        cat conftest.err 1>&5
17329        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17330        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17331        if diff conftest.exp conftest.er2 >/dev/null; then
17332          lt_cv_prog_compiler_static_works_GCJ=yes
17333        fi
17334      else
17335        lt_cv_prog_compiler_static_works_GCJ=yes
17336      fi
17337    fi
17338    $rm -r conftest*
17339    LDFLAGS="$save_LDFLAGS"
17340
17341 fi
17342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17343 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17344
17345 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17346     :
17347 else
17348     lt_prog_compiler_static_GCJ=
17349 fi
17350
17351
17352 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17354 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   lt_cv_prog_compiler_c_o_GCJ=no
17358    $rm -r conftest 2>/dev/null
17359    mkdir conftest
17360    cd conftest
17361    mkdir out
17362    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17363
17364    lt_compiler_flag="-o out/conftest2.$ac_objext"
17365    # Insert the option either (1) after the last *FLAGS variable, or
17366    # (2) before a word containing "conftest.", or (3) at the end.
17367    # Note that $ac_compile itself does not contain backslashes and begins
17368    # with a dollar sign (not a hyphen), so the echo should work correctly.
17369    lt_compile=`echo "$ac_compile" | $SED \
17370    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17372    -e 's:$: $lt_compiler_flag:'`
17373    (eval echo "\"\$as_me:17369: $lt_compile\"" >&5)
17374    (eval "$lt_compile" 2>out/conftest.err)
17375    ac_status=$?
17376    cat out/conftest.err >&5
17377    echo "$as_me:17373: \$? = $ac_status" >&5
17378    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17379    then
17380      # The compiler can only warn and ignore the option if not recognized
17381      # So say no if there are warnings
17382      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17383      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17384      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17385        lt_cv_prog_compiler_c_o_GCJ=yes
17386      fi
17387    fi
17388    chmod u+w . 2>&5
17389    $rm conftest*
17390    # SGI C++ compiler will create directory out/ii_files/ for
17391    # template instantiation
17392    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17393    $rm out/* && rmdir out
17394    cd ..
17395    rmdir conftest
17396    $rm conftest*
17397
17398 fi
17399 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17401
17402
17403 hard_links="nottested"
17404 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17405   # do not overwrite the value of need_locks provided by the user
17406   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17408   hard_links=yes
17409   $rm conftest*
17410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17411   touch conftest.a
17412   ln conftest.a conftest.b 2>&5 || hard_links=no
17413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17414   { echo "$as_me:$LINENO: result: $hard_links" >&5
17415 echo "${ECHO_T}$hard_links" >&6; }
17416   if test "$hard_links" = no; then
17417     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17419     need_locks=warn
17420   fi
17421 else
17422   need_locks=no
17423 fi
17424
17425 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17427
17428   runpath_var=
17429   allow_undefined_flag_GCJ=
17430   enable_shared_with_static_runtimes_GCJ=no
17431   archive_cmds_GCJ=
17432   archive_expsym_cmds_GCJ=
17433   old_archive_From_new_cmds_GCJ=
17434   old_archive_from_expsyms_cmds_GCJ=
17435   export_dynamic_flag_spec_GCJ=
17436   whole_archive_flag_spec_GCJ=
17437   thread_safe_flag_spec_GCJ=
17438   hardcode_libdir_flag_spec_GCJ=
17439   hardcode_libdir_flag_spec_ld_GCJ=
17440   hardcode_libdir_separator_GCJ=
17441   hardcode_direct_GCJ=no
17442   hardcode_minus_L_GCJ=no
17443   hardcode_shlibpath_var_GCJ=unsupported
17444   link_all_deplibs_GCJ=unknown
17445   hardcode_automatic_GCJ=no
17446   module_cmds_GCJ=
17447   module_expsym_cmds_GCJ=
17448   always_export_symbols_GCJ=no
17449   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17450   # include_expsyms should be a list of space-separated symbols to be *always*
17451   # included in the symbol list
17452   include_expsyms_GCJ=
17453   # exclude_expsyms can be an extended regexp of symbols to exclude
17454   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17455   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17456   # as well as any symbol that contains `d'.
17457   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17458   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17459   # platforms (ab)use it in PIC code, but their linkers get confused if
17460   # the symbol is explicitly referenced.  Since portable code cannot
17461   # rely on this symbol name, it's probably fine to never include it in
17462   # preloaded symbol tables.
17463   # Exclude shared library initialization/finalization symbols.
17464   extract_expsyms_cmds=
17465   # Just being paranoid about ensuring that cc_basename is set.
17466   for cc_temp in $compiler""; do
17467   case $cc_temp in
17468     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17469     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17470     \-*) ;;
17471     *) break;;
17472   esac
17473 done
17474 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17475
17476   case $host_os in
17477   cygwin* | mingw* | pw32*)
17478     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17479     # When not using gcc, we currently assume that we are using
17480     # Microsoft Visual C++.
17481     if test "$GCC" != yes; then
17482       with_gnu_ld=no
17483     fi
17484     ;;
17485   interix*)
17486     # we just hope/assume this is gcc and not c89 (= MSVC++)
17487     with_gnu_ld=yes
17488     ;;
17489   openbsd*)
17490     with_gnu_ld=no
17491     ;;
17492   esac
17493
17494   ld_shlibs_GCJ=yes
17495   if test "$with_gnu_ld" = yes; then
17496     # If archive_cmds runs LD, not CC, wlarc should be empty
17497     wlarc='${wl}'
17498
17499     # Set some defaults for GNU ld with shared library support. These
17500     # are reset later if shared libraries are not supported. Putting them
17501     # here allows them to be overridden if necessary.
17502     runpath_var=LD_RUN_PATH
17503     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17504     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17505     # ancient GNU ld didn't support --whole-archive et. al.
17506     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17507         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17508       else
17509         whole_archive_flag_spec_GCJ=
17510     fi
17511     supports_anon_versioning=no
17512     case `$LD -v 2>/dev/null` in
17513       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17514       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17515       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17516       *\ 2.11.*) ;; # other 2.11 versions
17517       *) supports_anon_versioning=yes ;;
17518     esac
17519
17520     # See if GNU ld supports shared libraries.
17521     case $host_os in
17522     aix[3-9]*)
17523       # On AIX/PPC, the GNU linker is very broken
17524       if test "$host_cpu" != ia64; then
17525         ld_shlibs_GCJ=no
17526         cat <<EOF 1>&2
17527
17528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17529 *** to be unable to reliably create shared libraries on AIX.
17530 *** Therefore, libtool is disabling shared libraries support.  If you
17531 *** really care for shared libraries, you may want to modify your PATH
17532 *** so that a non-GNU linker is found, and then restart.
17533
17534 EOF
17535       fi
17536       ;;
17537
17538     amigaos*)
17539       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17540       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541       hardcode_minus_L_GCJ=yes
17542
17543       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17544       # that the semantics of dynamic libraries on AmigaOS, at least up
17545       # to version 4, is to share data among multiple programs linked
17546       # with the same dynamic library.  Since this doesn't match the
17547       # behavior of shared libraries on other platforms, we can't use
17548       # them.
17549       ld_shlibs_GCJ=no
17550       ;;
17551
17552     beos*)
17553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17554         allow_undefined_flag_GCJ=unsupported
17555         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17556         # support --undefined.  This deserves some investigation.  FIXME
17557         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17558       else
17559         ld_shlibs_GCJ=no
17560       fi
17561       ;;
17562
17563     cygwin* | mingw* | pw32*)
17564       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17565       # as there is no search path for DLLs.
17566       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567       allow_undefined_flag_GCJ=unsupported
17568       always_export_symbols_GCJ=no
17569       enable_shared_with_static_runtimes_GCJ=yes
17570       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17571
17572       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17573         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17574         # If the export-symbols file already is a .def file (1st line
17575         # is EXPORTS), use it as is; otherwise, prepend...
17576         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17577           cp $export_symbols $output_objdir/$soname.def;
17578         else
17579           echo EXPORTS > $output_objdir/$soname.def;
17580           cat $export_symbols >> $output_objdir/$soname.def;
17581         fi~
17582         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17583       else
17584         ld_shlibs_GCJ=no
17585       fi
17586       ;;
17587
17588     interix[3-9]*)
17589       hardcode_direct_GCJ=no
17590       hardcode_shlibpath_var_GCJ=no
17591       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17592       export_dynamic_flag_spec_GCJ='${wl}-E'
17593       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17594       # Instead, shared libraries are loaded at an image base (0x10000000 by
17595       # default) and relocated if they conflict, which is a slow very memory
17596       # consuming and fragmenting process.  To avoid this, we pick a random,
17597       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17598       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17599       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17600       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17601       ;;
17602
17603     gnu* | linux* | k*bsd*-gnu)
17604       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17605         tmp_addflag=
17606         case $cc_basename,$host_cpu in
17607         pgcc*)                          # Portland Group C compiler
17608           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17609           tmp_addflag=' $pic_flag'
17610           ;;
17611         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17612           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17613           tmp_addflag=' $pic_flag -Mnomain' ;;
17614         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17615           tmp_addflag=' -i_dynamic' ;;
17616         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17617           tmp_addflag=' -i_dynamic -nofor_main' ;;
17618         ifc* | ifort*)                  # Intel Fortran compiler
17619           tmp_addflag=' -nofor_main' ;;
17620         esac
17621         case `$CC -V 2>&1 | sed 5q` in
17622         *Sun\ C*)                       # Sun C 5.9
17623           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17624           tmp_sharedflag='-G' ;;
17625         *Sun\ F*)                       # Sun Fortran 8.3
17626           tmp_sharedflag='-G' ;;
17627         *)
17628           tmp_sharedflag='-shared' ;;
17629         esac
17630         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17631
17632         if test $supports_anon_versioning = yes; then
17633           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17634   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17635   $echo "local: *; };" >> $output_objdir/$libname.ver~
17636           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17637         fi
17638         link_all_deplibs_GCJ=no
17639       else
17640         ld_shlibs_GCJ=no
17641       fi
17642       ;;
17643
17644     netbsd* | netbsdelf*-gnu)
17645       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17646         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17647         wlarc=
17648       else
17649         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651       fi
17652       ;;
17653
17654     solaris*)
17655       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17656         ld_shlibs_GCJ=no
17657         cat <<EOF 1>&2
17658
17659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17660 *** create shared libraries on Solaris systems.  Therefore, libtool
17661 *** is disabling shared libraries support.  We urge you to upgrade GNU
17662 *** binutils to release 2.9.1 or newer.  Another option is to modify
17663 *** your PATH or compiler configuration so that the native linker is
17664 *** used, and then restart.
17665
17666 EOF
17667       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17669         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17670       else
17671         ld_shlibs_GCJ=no
17672       fi
17673       ;;
17674
17675     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17676       case `$LD -v 2>&1` in
17677         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17678         ld_shlibs_GCJ=no
17679         cat <<_LT_EOF 1>&2
17680
17681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17682 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17683 *** is disabling shared libraries support.  We urge you to upgrade GNU
17684 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17685 *** your PATH or compiler configuration so that the native linker is
17686 *** used, and then restart.
17687
17688 _LT_EOF
17689         ;;
17690         *)
17691           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17693             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17694             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17695           else
17696             ld_shlibs_GCJ=no
17697           fi
17698         ;;
17699       esac
17700       ;;
17701
17702     sunos4*)
17703       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17704       wlarc=
17705       hardcode_direct_GCJ=yes
17706       hardcode_shlibpath_var_GCJ=no
17707       ;;
17708
17709     *)
17710       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17711         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17712         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17713       else
17714         ld_shlibs_GCJ=no
17715       fi
17716       ;;
17717     esac
17718
17719     if test "$ld_shlibs_GCJ" = no; then
17720       runpath_var=
17721       hardcode_libdir_flag_spec_GCJ=
17722       export_dynamic_flag_spec_GCJ=
17723       whole_archive_flag_spec_GCJ=
17724     fi
17725   else
17726     # PORTME fill in a description of your system's linker (not GNU ld)
17727     case $host_os in
17728     aix3*)
17729       allow_undefined_flag_GCJ=unsupported
17730       always_export_symbols_GCJ=yes
17731       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17732       # Note: this linker hardcodes the directories in LIBPATH if there
17733       # are no directories specified by -L.
17734       hardcode_minus_L_GCJ=yes
17735       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17736         # Neither direct hardcoding nor static linking is supported with a
17737         # broken collect2.
17738         hardcode_direct_GCJ=unsupported
17739       fi
17740       ;;
17741
17742     aix[4-9]*)
17743       if test "$host_cpu" = ia64; then
17744         # On IA64, the linker does run time linking by default, so we don't
17745         # have to do anything special.
17746         aix_use_runtimelinking=no
17747         exp_sym_flag='-Bexport'
17748         no_entry_flag=""
17749       else
17750         # If we're using GNU nm, then we don't want the "-C" option.
17751         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17752         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17753           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17754         else
17755           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17756         fi
17757         aix_use_runtimelinking=no
17758
17759         # Test if we are trying to use run time linking or normal
17760         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17761         # need to do runtime linking.
17762         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17763           for ld_flag in $LDFLAGS; do
17764           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17765             aix_use_runtimelinking=yes
17766             break
17767           fi
17768           done
17769           ;;
17770         esac
17771
17772         exp_sym_flag='-bexport'
17773         no_entry_flag='-bnoentry'
17774       fi
17775
17776       # When large executables or shared objects are built, AIX ld can
17777       # have problems creating the table of contents.  If linking a library
17778       # or program results in "error TOC overflow" add -mminimal-toc to
17779       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17780       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17781
17782       archive_cmds_GCJ=''
17783       hardcode_direct_GCJ=yes
17784       hardcode_libdir_separator_GCJ=':'
17785       link_all_deplibs_GCJ=yes
17786
17787       if test "$GCC" = yes; then
17788         case $host_os in aix4.[012]|aix4.[012].*)
17789         # We only want to do this on AIX 4.2 and lower, the check
17790         # below for broken collect2 doesn't work under 4.3+
17791           collect2name=`${CC} -print-prog-name=collect2`
17792           if test -f "$collect2name" && \
17793            strings "$collect2name" | grep resolve_lib_name >/dev/null
17794           then
17795           # We have reworked collect2
17796           :
17797           else
17798           # We have old collect2
17799           hardcode_direct_GCJ=unsupported
17800           # It fails to find uninstalled libraries when the uninstalled
17801           # path is not listed in the libpath.  Setting hardcode_minus_L
17802           # to unsupported forces relinking
17803           hardcode_minus_L_GCJ=yes
17804           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17805           hardcode_libdir_separator_GCJ=
17806           fi
17807           ;;
17808         esac
17809         shared_flag='-shared'
17810         if test "$aix_use_runtimelinking" = yes; then
17811           shared_flag="$shared_flag "'${wl}-G'
17812         fi
17813       else
17814         # not using gcc
17815         if test "$host_cpu" = ia64; then
17816         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17817         # chokes on -Wl,-G. The following line is correct:
17818           shared_flag='-G'
17819         else
17820           if test "$aix_use_runtimelinking" = yes; then
17821             shared_flag='${wl}-G'
17822           else
17823             shared_flag='${wl}-bM:SRE'
17824           fi
17825         fi
17826       fi
17827
17828       # It seems that -bexpall does not export symbols beginning with
17829       # underscore (_), so it is better to generate a list of symbols to export.
17830       always_export_symbols_GCJ=yes
17831       if test "$aix_use_runtimelinking" = yes; then
17832         # Warning - without using the other runtime loading flags (-brtl),
17833         # -berok will link without error, but may produce a broken library.
17834         allow_undefined_flag_GCJ='-berok'
17835        # Determine the default libpath from the value encoded in an empty executable.
17836        cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842
17843 int
17844 main ()
17845 {
17846
17847   ;
17848   return 0;
17849 }
17850 _ACEOF
17851 rm -f conftest.$ac_objext conftest$ac_exeext
17852 if { (ac_try="$ac_link"
17853 case "(($ac_try" in
17854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855   *) ac_try_echo=$ac_try;;
17856 esac
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858   (eval "$ac_link") 2>conftest.er1
17859   ac_status=$?
17860   grep -v '^ *+' conftest.er1 >conftest.err
17861   rm -f conftest.er1
17862   cat conftest.err >&5
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } && {
17865          test -z "$ac_c_werror_flag" ||
17866          test ! -s conftest.err
17867        } && test -s conftest$ac_exeext &&
17868        $as_test_x conftest$ac_exeext; then
17869
17870 lt_aix_libpath_sed='
17871     /Import File Strings/,/^$/ {
17872         /^0/ {
17873             s/^0  *\(.*\)$/\1/
17874             p
17875         }
17876     }'
17877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17878 # Check for a 64-bit object if we didn't find anything.
17879 if test -z "$aix_libpath"; then
17880   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17881 fi
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886
17887 fi
17888
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890       conftest$ac_exeext conftest.$ac_ext
17891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17892
17893        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17894         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17895        else
17896         if test "$host_cpu" = ia64; then
17897           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17898           allow_undefined_flag_GCJ="-z nodefs"
17899           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17900         else
17901          # Determine the default libpath from the value encoded in an empty executable.
17902          cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h.  */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h.  */
17908
17909 int
17910 main ()
17911 {
17912
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921   *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924   (eval "$ac_link") 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } && {
17931          test -z "$ac_c_werror_flag" ||
17932          test ! -s conftest.err
17933        } && test -s conftest$ac_exeext &&
17934        $as_test_x conftest$ac_exeext; then
17935
17936 lt_aix_libpath_sed='
17937     /Import File Strings/,/^$/ {
17938         /^0/ {
17939             s/^0  *\(.*\)$/\1/
17940             p
17941         }
17942     }'
17943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944 # Check for a 64-bit object if we didn't find anything.
17945 if test -z "$aix_libpath"; then
17946   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17947 fi
17948 else
17949   echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952
17953 fi
17954
17955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17956       conftest$ac_exeext conftest.$ac_ext
17957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17958
17959          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17960           # Warning - without using the other run time loading flags,
17961           # -berok will link without error, but may produce a broken library.
17962           no_undefined_flag_GCJ=' ${wl}-bernotok'
17963           allow_undefined_flag_GCJ=' ${wl}-berok'
17964           # Exported symbols can be pulled into shared objects from archives
17965           whole_archive_flag_spec_GCJ='$convenience'
17966           archive_cmds_need_lc_GCJ=yes
17967           # This is similar to how AIX traditionally builds its shared libraries.
17968           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17969         fi
17970       fi
17971       ;;
17972
17973     amigaos*)
17974       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17975       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17976       hardcode_minus_L_GCJ=yes
17977       # see comment about different semantics on the GNU ld section
17978       ld_shlibs_GCJ=no
17979       ;;
17980
17981     bsdi[45]*)
17982       export_dynamic_flag_spec_GCJ=-rdynamic
17983       ;;
17984
17985     cygwin* | mingw* | pw32*)
17986       # When not using gcc, we currently assume that we are using
17987       # Microsoft Visual C++.
17988       # hardcode_libdir_flag_spec is actually meaningless, as there is
17989       # no search path for DLLs.
17990       hardcode_libdir_flag_spec_GCJ=' '
17991       allow_undefined_flag_GCJ=unsupported
17992       # Tell ltmain to make .lib files, not .a files.
17993       libext=lib
17994       # Tell ltmain to make .dll files, not .so files.
17995       shrext_cmds=".dll"
17996       # FIXME: Setting linknames here is a bad hack.
17997       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17998       # The linker will automatically build a .lib file if we build a DLL.
17999       old_archive_From_new_cmds_GCJ='true'
18000       # FIXME: Should let the user specify the lib program.
18001       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18002       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18003       enable_shared_with_static_runtimes_GCJ=yes
18004       ;;
18005
18006     darwin* | rhapsody*)
18007       case $host_os in
18008         rhapsody* | darwin1.[012])
18009          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18010          ;;
18011        *) # Darwin 1.3 on
18012          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18013            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18014          else
18015            case ${MACOSX_DEPLOYMENT_TARGET} in
18016              10.[012])
18017                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18018                ;;
18019              10.*)
18020                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18021                ;;
18022            esac
18023          fi
18024          ;;
18025       esac
18026       archive_cmds_need_lc_GCJ=no
18027       hardcode_direct_GCJ=no
18028       hardcode_automatic_GCJ=yes
18029       hardcode_shlibpath_var_GCJ=unsupported
18030       whole_archive_flag_spec_GCJ=''
18031       link_all_deplibs_GCJ=yes
18032     if test "$GCC" = yes ; then
18033         output_verbose_link_cmd='echo'
18034         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18035         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18036         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18037         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18038     else
18039       case $cc_basename in
18040         xlc*)
18041          output_verbose_link_cmd='echo'
18042          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18043          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18044           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18045          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18046           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18047           ;;
18048        *)
18049          ld_shlibs_GCJ=no
18050           ;;
18051       esac
18052     fi
18053       ;;
18054
18055     dgux*)
18056       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18058       hardcode_shlibpath_var_GCJ=no
18059       ;;
18060
18061     freebsd1*)
18062       ld_shlibs_GCJ=no
18063       ;;
18064
18065     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18066     # support.  Future versions do this automatically, but an explicit c++rt0.o
18067     # does not break anything, and helps significantly (at the cost of a little
18068     # extra space).
18069     freebsd2.2*)
18070       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18071       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072       hardcode_direct_GCJ=yes
18073       hardcode_shlibpath_var_GCJ=no
18074       ;;
18075
18076     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18077     freebsd2*)
18078       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18079       hardcode_direct_GCJ=yes
18080       hardcode_minus_L_GCJ=yes
18081       hardcode_shlibpath_var_GCJ=no
18082       ;;
18083
18084     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18085     freebsd* | dragonfly*)
18086       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18087       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18088       hardcode_direct_GCJ=yes
18089       hardcode_shlibpath_var_GCJ=no
18090       ;;
18091
18092     hpux9*)
18093       if test "$GCC" = yes; then
18094         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18095       else
18096         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18097       fi
18098       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18099       hardcode_libdir_separator_GCJ=:
18100       hardcode_direct_GCJ=yes
18101
18102       # hardcode_minus_L: Not really in the search PATH,
18103       # but as the default location of the library.
18104       hardcode_minus_L_GCJ=yes
18105       export_dynamic_flag_spec_GCJ='${wl}-E'
18106       ;;
18107
18108     hpux10*)
18109       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18110         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18111       else
18112         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18113       fi
18114       if test "$with_gnu_ld" = no; then
18115         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18116         hardcode_libdir_separator_GCJ=:
18117
18118         hardcode_direct_GCJ=yes
18119         export_dynamic_flag_spec_GCJ='${wl}-E'
18120
18121         # hardcode_minus_L: Not really in the search PATH,
18122         # but as the default location of the library.
18123         hardcode_minus_L_GCJ=yes
18124       fi
18125       ;;
18126
18127     hpux11*)
18128       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18129         case $host_cpu in
18130         hppa*64*)
18131           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132           ;;
18133         ia64*)
18134           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18135           ;;
18136         *)
18137           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18138           ;;
18139         esac
18140       else
18141         case $host_cpu in
18142         hppa*64*)
18143           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144           ;;
18145         ia64*)
18146           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147           ;;
18148         *)
18149           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18150           ;;
18151         esac
18152       fi
18153       if test "$with_gnu_ld" = no; then
18154         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18155         hardcode_libdir_separator_GCJ=:
18156
18157         case $host_cpu in
18158         hppa*64*|ia64*)
18159           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18160           hardcode_direct_GCJ=no
18161           hardcode_shlibpath_var_GCJ=no
18162           ;;
18163         *)
18164           hardcode_direct_GCJ=yes
18165           export_dynamic_flag_spec_GCJ='${wl}-E'
18166
18167           # hardcode_minus_L: Not really in the search PATH,
18168           # but as the default location of the library.
18169           hardcode_minus_L_GCJ=yes
18170           ;;
18171         esac
18172       fi
18173       ;;
18174
18175     irix5* | irix6* | nonstopux*)
18176       if test "$GCC" = yes; then
18177         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18178       else
18179         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18180         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18181       fi
18182       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18183       hardcode_libdir_separator_GCJ=:
18184       link_all_deplibs_GCJ=yes
18185       ;;
18186
18187     netbsd* | netbsdelf*-gnu)
18188       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18189         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18190       else
18191         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18192       fi
18193       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18194       hardcode_direct_GCJ=yes
18195       hardcode_shlibpath_var_GCJ=no
18196       ;;
18197
18198     newsos6)
18199       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18200       hardcode_direct_GCJ=yes
18201       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18202       hardcode_libdir_separator_GCJ=:
18203       hardcode_shlibpath_var_GCJ=no
18204       ;;
18205
18206     openbsd*)
18207       if test -f /usr/libexec/ld.so; then
18208         hardcode_direct_GCJ=yes
18209         hardcode_shlibpath_var_GCJ=no
18210         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18212           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18213           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18214           export_dynamic_flag_spec_GCJ='${wl}-E'
18215         else
18216           case $host_os in
18217            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18218              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18220              ;;
18221            *)
18222              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18223              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18224              ;;
18225           esac
18226         fi
18227       else
18228         ld_shlibs_GCJ=no
18229       fi
18230       ;;
18231
18232     os2*)
18233       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18234       hardcode_minus_L_GCJ=yes
18235       allow_undefined_flag_GCJ=unsupported
18236       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18237       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18238       ;;
18239
18240     osf3*)
18241       if test "$GCC" = yes; then
18242         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18244       else
18245         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18246         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18247       fi
18248       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249       hardcode_libdir_separator_GCJ=:
18250       ;;
18251
18252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18253       if test "$GCC" = yes; then
18254         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18256         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18257       else
18258         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18259         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18260         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18261         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18262
18263         # Both c and cxx compiler support -rpath directly
18264         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18265       fi
18266       hardcode_libdir_separator_GCJ=:
18267       ;;
18268
18269     solaris*)
18270       no_undefined_flag_GCJ=' -z text'
18271       if test "$GCC" = yes; then
18272         wlarc='${wl}'
18273         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18276       else
18277         wlarc=''
18278         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18281       fi
18282       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18283       hardcode_shlibpath_var_GCJ=no
18284       case $host_os in
18285       solaris2.[0-5] | solaris2.[0-5].*) ;;
18286       *)
18287         # The compiler driver will combine and reorder linker options,
18288         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18289         # but is careful enough not to reorder.
18290         # Supported since Solaris 2.6 (maybe 2.5.1?)
18291         if test "$GCC" = yes; then
18292           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18293         else
18294           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18295         fi
18296         ;;
18297       esac
18298       link_all_deplibs_GCJ=yes
18299       ;;
18300
18301     sunos4*)
18302       if test "x$host_vendor" = xsequent; then
18303         # Use $CC to link under sequent, because it throws in some extra .o
18304         # files that make .init and .fini sections work.
18305         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18306       else
18307         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18308       fi
18309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310       hardcode_direct_GCJ=yes
18311       hardcode_minus_L_GCJ=yes
18312       hardcode_shlibpath_var_GCJ=no
18313       ;;
18314
18315     sysv4)
18316       case $host_vendor in
18317         sni)
18318           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18319           hardcode_direct_GCJ=yes # is this really true???
18320         ;;
18321         siemens)
18322           ## LD is ld it makes a PLAMLIB
18323           ## CC just makes a GrossModule.
18324           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18325           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18326           hardcode_direct_GCJ=no
18327         ;;
18328         motorola)
18329           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18331         ;;
18332       esac
18333       runpath_var='LD_RUN_PATH'
18334       hardcode_shlibpath_var_GCJ=no
18335       ;;
18336
18337     sysv4.3*)
18338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339       hardcode_shlibpath_var_GCJ=no
18340       export_dynamic_flag_spec_GCJ='-Bexport'
18341       ;;
18342
18343     sysv4*MP*)
18344       if test -d /usr/nec; then
18345         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346         hardcode_shlibpath_var_GCJ=no
18347         runpath_var=LD_RUN_PATH
18348         hardcode_runpath_var=yes
18349         ld_shlibs_GCJ=yes
18350       fi
18351       ;;
18352
18353     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18354       no_undefined_flag_GCJ='${wl}-z,text'
18355       archive_cmds_need_lc_GCJ=no
18356       hardcode_shlibpath_var_GCJ=no
18357       runpath_var='LD_RUN_PATH'
18358
18359       if test "$GCC" = yes; then
18360         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18361         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362       else
18363         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18365       fi
18366       ;;
18367
18368     sysv5* | sco3.2v5* | sco5v6*)
18369       # Note: We can NOT use -z defs as we might desire, because we do not
18370       # link with -lc, and that would cause any symbols used from libc to
18371       # always be unresolved, which means just about no library would
18372       # ever link correctly.  If we're not using GNU ld we use -z text
18373       # though, which does catch some bad symbols but isn't as heavy-handed
18374       # as -z defs.
18375       no_undefined_flag_GCJ='${wl}-z,text'
18376       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18377       archive_cmds_need_lc_GCJ=no
18378       hardcode_shlibpath_var_GCJ=no
18379       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18380       hardcode_libdir_separator_GCJ=':'
18381       link_all_deplibs_GCJ=yes
18382       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18383       runpath_var='LD_RUN_PATH'
18384
18385       if test "$GCC" = yes; then
18386         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388       else
18389         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391       fi
18392       ;;
18393
18394     uts4*)
18395       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18397       hardcode_shlibpath_var_GCJ=no
18398       ;;
18399
18400     *)
18401       ld_shlibs_GCJ=no
18402       ;;
18403     esac
18404   fi
18405
18406 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18407 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18408 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18409
18410 #
18411 # Do we need to explicitly link libc?
18412 #
18413 case "x$archive_cmds_need_lc_GCJ" in
18414 x|xyes)
18415   # Assume -lc should be added
18416   archive_cmds_need_lc_GCJ=yes
18417
18418   if test "$enable_shared" = yes && test "$GCC" = yes; then
18419     case $archive_cmds_GCJ in
18420     *'~'*)
18421       # FIXME: we may have to deal with multi-command sequences.
18422       ;;
18423     '$CC '*)
18424       # Test whether the compiler implicitly links with -lc since on some
18425       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18426       # to ld, don't add -lc before -lgcc.
18427       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18428 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18429       $rm conftest*
18430       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18431
18432       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433   (eval $ac_compile) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } 2>conftest.err; then
18437         soname=conftest
18438         lib=conftest
18439         libobjs=conftest.$ac_objext
18440         deplibs=
18441         wl=$lt_prog_compiler_wl_GCJ
18442         pic_flag=$lt_prog_compiler_pic_GCJ
18443         compiler_flags=-v
18444         linker_flags=-v
18445         verstring=
18446         output_objdir=.
18447         libname=conftest
18448         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18449         allow_undefined_flag_GCJ=
18450         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18451   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }
18455         then
18456           archive_cmds_need_lc_GCJ=no
18457         else
18458           archive_cmds_need_lc_GCJ=yes
18459         fi
18460         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18461       else
18462         cat conftest.err 1>&5
18463       fi
18464       $rm conftest*
18465       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18466 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18467       ;;
18468     esac
18469   fi
18470   ;;
18471 esac
18472
18473 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18474 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18475 library_names_spec=
18476 libname_spec='lib$name'
18477 soname_spec=
18478 shrext_cmds=".so"
18479 postinstall_cmds=
18480 postuninstall_cmds=
18481 finish_cmds=
18482 finish_eval=
18483 shlibpath_var=
18484 shlibpath_overrides_runpath=unknown
18485 version_type=none
18486 dynamic_linker="$host_os ld.so"
18487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18488
18489 need_lib_prefix=unknown
18490 hardcode_into_libs=no
18491
18492 # when you set need_version to no, make sure it does not cause -set_version
18493 # flags to be left without arguments
18494 need_version=unknown
18495
18496 case $host_os in
18497 aix3*)
18498   version_type=linux
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18500   shlibpath_var=LIBPATH
18501
18502   # AIX 3 has no versioning support, so we append a major version to the name.
18503   soname_spec='${libname}${release}${shared_ext}$major'
18504   ;;
18505
18506 aix[4-9]*)
18507   version_type=linux
18508   need_lib_prefix=no
18509   need_version=no
18510   hardcode_into_libs=yes
18511   if test "$host_cpu" = ia64; then
18512     # AIX 5 supports IA64
18513     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18514     shlibpath_var=LD_LIBRARY_PATH
18515   else
18516     # With GCC up to 2.95.x, collect2 would create an import file
18517     # for dependence libraries.  The import file would start with
18518     # the line `#! .'.  This would cause the generated library to
18519     # depend on `.', always an invalid library.  This was fixed in
18520     # development snapshots of GCC prior to 3.0.
18521     case $host_os in
18522       aix4 | aix4.[01] | aix4.[01].*)
18523       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18524            echo ' yes '
18525            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18526         :
18527       else
18528         can_build_shared=no
18529       fi
18530       ;;
18531     esac
18532     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18533     # soname into executable. Probably we can add versioning support to
18534     # collect2, so additional links can be useful in future.
18535     if test "$aix_use_runtimelinking" = yes; then
18536       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18537       # instead of lib<name>.a to let people know that these are not
18538       # typical AIX shared libraries.
18539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540     else
18541       # We preserve .a as extension for shared libraries through AIX4.2
18542       # and later when we are not doing run time linking.
18543       library_names_spec='${libname}${release}.a $libname.a'
18544       soname_spec='${libname}${release}${shared_ext}$major'
18545     fi
18546     shlibpath_var=LIBPATH
18547   fi
18548   ;;
18549
18550 amigaos*)
18551   library_names_spec='$libname.ixlibrary $libname.a'
18552   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18553   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18554   ;;
18555
18556 beos*)
18557   library_names_spec='${libname}${shared_ext}'
18558   dynamic_linker="$host_os ld.so"
18559   shlibpath_var=LIBRARY_PATH
18560   ;;
18561
18562 bsdi[45]*)
18563   version_type=linux
18564   need_version=no
18565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566   soname_spec='${libname}${release}${shared_ext}$major'
18567   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18568   shlibpath_var=LD_LIBRARY_PATH
18569   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18570   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18571   # the default ld.so.conf also contains /usr/contrib/lib and
18572   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18573   # libtool to hard-code these into programs
18574   ;;
18575
18576 cygwin* | mingw* | pw32*)
18577   version_type=windows
18578   shrext_cmds=".dll"
18579   need_version=no
18580   need_lib_prefix=no
18581
18582   case $GCC,$host_os in
18583   yes,cygwin* | yes,mingw* | yes,pw32*)
18584     library_names_spec='$libname.dll.a'
18585     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18586     postinstall_cmds='base_file=`basename \${file}`~
18587       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18588       dldir=$destdir/`dirname \$dlpath`~
18589       test -d \$dldir || mkdir -p \$dldir~
18590       $install_prog $dir/$dlname \$dldir/$dlname~
18591       chmod a+x \$dldir/$dlname'
18592     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18593       dlpath=$dir/\$dldll~
18594        $rm \$dlpath'
18595     shlibpath_overrides_runpath=yes
18596
18597     case $host_os in
18598     cygwin*)
18599       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18600       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18601       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18602       ;;
18603     mingw*)
18604       # MinGW DLLs use traditional 'lib' prefix
18605       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18607       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18608         # It is most probably a Windows format PATH printed by
18609         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18610         # path with ; separators, and with drive letters. We can handle the
18611         # drive letters (cygwin fileutils understands them), so leave them,
18612         # especially as we might pass files found there to a mingw objdump,
18613         # which wouldn't understand a cygwinified path. Ahh.
18614         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18615       else
18616         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18617       fi
18618       ;;
18619     pw32*)
18620       # pw32 DLLs use 'pw' prefix rather than 'lib'
18621       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622       ;;
18623     esac
18624     ;;
18625
18626   *)
18627     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18628     ;;
18629   esac
18630   dynamic_linker='Win32 ld.exe'
18631   # FIXME: first we should search . and the directory the executable is in
18632   shlibpath_var=PATH
18633   ;;
18634
18635 darwin* | rhapsody*)
18636   dynamic_linker="$host_os dyld"
18637   version_type=darwin
18638   need_lib_prefix=no
18639   need_version=no
18640   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18641   soname_spec='${libname}${release}${major}$shared_ext'
18642   shlibpath_overrides_runpath=yes
18643   shlibpath_var=DYLD_LIBRARY_PATH
18644   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18645
18646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18647   ;;
18648
18649 dgux*)
18650   version_type=linux
18651   need_lib_prefix=no
18652   need_version=no
18653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18654   soname_spec='${libname}${release}${shared_ext}$major'
18655   shlibpath_var=LD_LIBRARY_PATH
18656   ;;
18657
18658 freebsd1*)
18659   dynamic_linker=no
18660   ;;
18661
18662 freebsd* | dragonfly*)
18663   # DragonFly does not have aout.  When/if they implement a new
18664   # versioning mechanism, adjust this.
18665   if test -x /usr/bin/objformat; then
18666     objformat=`/usr/bin/objformat`
18667   else
18668     case $host_os in
18669     freebsd[123]*) objformat=aout ;;
18670     *) objformat=elf ;;
18671     esac
18672   fi
18673   version_type=freebsd-$objformat
18674   case $version_type in
18675     freebsd-elf*)
18676       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18677       need_version=no
18678       need_lib_prefix=no
18679       ;;
18680     freebsd-*)
18681       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18682       need_version=yes
18683       ;;
18684   esac
18685   shlibpath_var=LD_LIBRARY_PATH
18686   case $host_os in
18687   freebsd2*)
18688     shlibpath_overrides_runpath=yes
18689     ;;
18690   freebsd3.[01]* | freebsdelf3.[01]*)
18691     shlibpath_overrides_runpath=yes
18692     hardcode_into_libs=yes
18693     ;;
18694   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18695   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18696     shlibpath_overrides_runpath=no
18697     hardcode_into_libs=yes
18698     ;;
18699   *) # from 4.6 on, and DragonFly
18700     shlibpath_overrides_runpath=yes
18701     hardcode_into_libs=yes
18702     ;;
18703   esac
18704   ;;
18705
18706 gnu*)
18707   version_type=linux
18708   need_lib_prefix=no
18709   need_version=no
18710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18711   soname_spec='${libname}${release}${shared_ext}$major'
18712   shlibpath_var=LD_LIBRARY_PATH
18713   hardcode_into_libs=yes
18714   ;;
18715
18716 hpux9* | hpux10* | hpux11*)
18717   # Give a soname corresponding to the major version so that dld.sl refuses to
18718   # link against other versions.
18719   version_type=sunos
18720   need_lib_prefix=no
18721   need_version=no
18722   case $host_cpu in
18723   ia64*)
18724     shrext_cmds='.so'
18725     hardcode_into_libs=yes
18726     dynamic_linker="$host_os dld.so"
18727     shlibpath_var=LD_LIBRARY_PATH
18728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730     soname_spec='${libname}${release}${shared_ext}$major'
18731     if test "X$HPUX_IA64_MODE" = X32; then
18732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18733     else
18734       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18735     fi
18736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18737     ;;
18738    hppa*64*)
18739      shrext_cmds='.sl'
18740      hardcode_into_libs=yes
18741      dynamic_linker="$host_os dld.sl"
18742      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18743      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745      soname_spec='${libname}${release}${shared_ext}$major'
18746      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18747      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18748      ;;
18749    *)
18750     shrext_cmds='.sl'
18751     dynamic_linker="$host_os dld.sl"
18752     shlibpath_var=SHLIB_PATH
18753     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755     soname_spec='${libname}${release}${shared_ext}$major'
18756     ;;
18757   esac
18758   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18759   postinstall_cmds='chmod 555 $lib'
18760   ;;
18761
18762 interix[3-9]*)
18763   version_type=linux
18764   need_lib_prefix=no
18765   need_version=no
18766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18767   soname_spec='${libname}${release}${shared_ext}$major'
18768   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18769   shlibpath_var=LD_LIBRARY_PATH
18770   shlibpath_overrides_runpath=no
18771   hardcode_into_libs=yes
18772   ;;
18773
18774 irix5* | irix6* | nonstopux*)
18775   case $host_os in
18776     nonstopux*) version_type=nonstopux ;;
18777     *)
18778         if test "$lt_cv_prog_gnu_ld" = yes; then
18779                 version_type=linux
18780         else
18781                 version_type=irix
18782         fi ;;
18783   esac
18784   need_lib_prefix=no
18785   need_version=no
18786   soname_spec='${libname}${release}${shared_ext}$major'
18787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18788   case $host_os in
18789   irix5* | nonstopux*)
18790     libsuff= shlibsuff=
18791     ;;
18792   *)
18793     case $LD in # libtool.m4 will add one of these switches to LD
18794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18795       libsuff= shlibsuff= libmagic=32-bit;;
18796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18797       libsuff=32 shlibsuff=N32 libmagic=N32;;
18798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18800     *) libsuff= shlibsuff= libmagic=never-match;;
18801     esac
18802     ;;
18803   esac
18804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18805   shlibpath_overrides_runpath=no
18806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18808   hardcode_into_libs=yes
18809   ;;
18810
18811 # No shared lib support for Linux oldld, aout, or coff.
18812 linux*oldld* | linux*aout* | linux*coff*)
18813   dynamic_linker=no
18814   ;;
18815
18816 # This must be Linux ELF.
18817 linux* | k*bsd*-gnu)
18818   version_type=linux
18819   need_lib_prefix=no
18820   need_version=no
18821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18822   soname_spec='${libname}${release}${shared_ext}$major'
18823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18824   shlibpath_var=LD_LIBRARY_PATH
18825   shlibpath_overrides_runpath=no
18826   # This implies no fast_install, which is unacceptable.
18827   # Some rework will be needed to allow for fast_install
18828   # before this can be enabled.
18829   hardcode_into_libs=yes
18830
18831   # Append ld.so.conf contents to the search path
18832   if test -f /etc/ld.so.conf; then
18833     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18834     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18835   fi
18836
18837   # We used to test for /lib/ld.so.1 and disable shared libraries on
18838   # powerpc, because MkLinux only supported shared libraries with the
18839   # GNU dynamic linker.  Since this was broken with cross compilers,
18840   # most powerpc-linux boxes support dynamic linking these days and
18841   # people can always --disable-shared, the test was removed, and we
18842   # assume the GNU/Linux dynamic linker is in use.
18843   dynamic_linker='GNU/Linux ld.so'
18844   ;;
18845
18846 netbsdelf*-gnu)
18847   version_type=linux
18848   need_lib_prefix=no
18849   need_version=no
18850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18851   soname_spec='${libname}${release}${shared_ext}$major'
18852   shlibpath_var=LD_LIBRARY_PATH
18853   shlibpath_overrides_runpath=no
18854   hardcode_into_libs=yes
18855   dynamic_linker='NetBSD ld.elf_so'
18856   ;;
18857
18858 netbsd*)
18859   version_type=sunos
18860   need_lib_prefix=no
18861   need_version=no
18862   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865     dynamic_linker='NetBSD (a.out) ld.so'
18866   else
18867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868     soname_spec='${libname}${release}${shared_ext}$major'
18869     dynamic_linker='NetBSD ld.elf_so'
18870   fi
18871   shlibpath_var=LD_LIBRARY_PATH
18872   shlibpath_overrides_runpath=yes
18873   hardcode_into_libs=yes
18874   ;;
18875
18876 newsos6)
18877   version_type=linux
18878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879   shlibpath_var=LD_LIBRARY_PATH
18880   shlibpath_overrides_runpath=yes
18881   ;;
18882
18883 nto-qnx*)
18884   version_type=linux
18885   need_lib_prefix=no
18886   need_version=no
18887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888   soname_spec='${libname}${release}${shared_ext}$major'
18889   shlibpath_var=LD_LIBRARY_PATH
18890   shlibpath_overrides_runpath=yes
18891   ;;
18892
18893 openbsd*)
18894   version_type=sunos
18895   sys_lib_dlsearch_path_spec="/usr/lib"
18896   need_lib_prefix=no
18897   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18898   case $host_os in
18899     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18900     *)                         need_version=no  ;;
18901   esac
18902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18903   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18904   shlibpath_var=LD_LIBRARY_PATH
18905   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18906     case $host_os in
18907       openbsd2.[89] | openbsd2.[89].*)
18908         shlibpath_overrides_runpath=no
18909         ;;
18910       *)
18911         shlibpath_overrides_runpath=yes
18912         ;;
18913       esac
18914   else
18915     shlibpath_overrides_runpath=yes
18916   fi
18917   ;;
18918
18919 os2*)
18920   libname_spec='$name'
18921   shrext_cmds=".dll"
18922   need_lib_prefix=no
18923   library_names_spec='$libname${shared_ext} $libname.a'
18924   dynamic_linker='OS/2 ld.exe'
18925   shlibpath_var=LIBPATH
18926   ;;
18927
18928 osf3* | osf4* | osf5*)
18929   version_type=osf
18930   need_lib_prefix=no
18931   need_version=no
18932   soname_spec='${libname}${release}${shared_ext}$major'
18933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934   shlibpath_var=LD_LIBRARY_PATH
18935   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18936   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18937   ;;
18938
18939 rdos*)
18940   dynamic_linker=no
18941   ;;
18942
18943 solaris*)
18944   version_type=linux
18945   need_lib_prefix=no
18946   need_version=no
18947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948   soname_spec='${libname}${release}${shared_ext}$major'
18949   shlibpath_var=LD_LIBRARY_PATH
18950   shlibpath_overrides_runpath=yes
18951   hardcode_into_libs=yes
18952   # ldd complains unless libraries are executable
18953   postinstall_cmds='chmod +x $lib'
18954   ;;
18955
18956 sunos4*)
18957   version_type=sunos
18958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18960   shlibpath_var=LD_LIBRARY_PATH
18961   shlibpath_overrides_runpath=yes
18962   if test "$with_gnu_ld" = yes; then
18963     need_lib_prefix=no
18964   fi
18965   need_version=yes
18966   ;;
18967
18968 sysv4 | sysv4.3*)
18969   version_type=linux
18970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971   soname_spec='${libname}${release}${shared_ext}$major'
18972   shlibpath_var=LD_LIBRARY_PATH
18973   case $host_vendor in
18974     sni)
18975       shlibpath_overrides_runpath=no
18976       need_lib_prefix=no
18977       export_dynamic_flag_spec='${wl}-Blargedynsym'
18978       runpath_var=LD_RUN_PATH
18979       ;;
18980     siemens)
18981       need_lib_prefix=no
18982       ;;
18983     motorola)
18984       need_lib_prefix=no
18985       need_version=no
18986       shlibpath_overrides_runpath=no
18987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18988       ;;
18989   esac
18990   ;;
18991
18992 sysv4*MP*)
18993   if test -d /usr/nec ;then
18994     version_type=linux
18995     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18996     soname_spec='$libname${shared_ext}.$major'
18997     shlibpath_var=LD_LIBRARY_PATH
18998   fi
18999   ;;
19000
19001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19002   version_type=freebsd-elf
19003   need_lib_prefix=no
19004   need_version=no
19005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19006   soname_spec='${libname}${release}${shared_ext}$major'
19007   shlibpath_var=LD_LIBRARY_PATH
19008   hardcode_into_libs=yes
19009   if test "$with_gnu_ld" = yes; then
19010     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19011     shlibpath_overrides_runpath=no
19012   else
19013     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19014     shlibpath_overrides_runpath=yes
19015     case $host_os in
19016       sco3.2v5*)
19017         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19018         ;;
19019     esac
19020   fi
19021   sys_lib_dlsearch_path_spec='/usr/lib'
19022   ;;
19023
19024 uts4*)
19025   version_type=linux
19026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19027   soname_spec='${libname}${release}${shared_ext}$major'
19028   shlibpath_var=LD_LIBRARY_PATH
19029   ;;
19030
19031 *)
19032   dynamic_linker=no
19033   ;;
19034 esac
19035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19036 echo "${ECHO_T}$dynamic_linker" >&6; }
19037 test "$dynamic_linker" = no && can_build_shared=no
19038
19039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19043 fi
19044
19045 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19046 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19050 fi
19051
19052 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19053
19054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055 if test "$GCC" = yes; then
19056   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19057 fi
19058
19059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19061 hardcode_action_GCJ=
19062 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19063    test -n "$runpath_var_GCJ" || \
19064    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19065
19066   # We can hardcode non-existant directories.
19067   if test "$hardcode_direct_GCJ" != no &&
19068      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069      # have to relink, otherwise we might link with an installed library
19070      # when we should be linking with a yet-to-be-installed one
19071      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072      test "$hardcode_minus_L_GCJ" != no; then
19073     # Linking always hardcodes the temporary library directory.
19074     hardcode_action_GCJ=relink
19075   else
19076     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077     hardcode_action_GCJ=immediate
19078   fi
19079 else
19080   # We cannot hardcode anything, or else we can only hardcode existing
19081   # directories.
19082   hardcode_action_GCJ=unsupported
19083 fi
19084 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19085 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19086
19087 if test "$hardcode_action_GCJ" = relink; then
19088   # Fast installation is not supported
19089   enable_fast_install=no
19090 elif test "$shlibpath_overrides_runpath" = yes ||
19091      test "$enable_shared" = no; then
19092   # Fast installation is not necessary
19093   enable_fast_install=needless
19094 fi
19095
19096
19097 # The else clause should only fire when bootstrapping the
19098 # libtool distribution, otherwise you forgot to ship ltmain.sh
19099 # with your package, and you will get complaints that there are
19100 # no rules to generate ltmain.sh.
19101 if test -f "$ltmain"; then
19102   # See if we are running on zsh, and set the options which allow our commands through
19103   # without removal of \ escapes.
19104   if test -n "${ZSH_VERSION+set}" ; then
19105     setopt NO_GLOB_SUBST
19106   fi
19107   # Now quote all the things that may contain metacharacters while being
19108   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19109   # variables and quote the copies for generation of the libtool script.
19110   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19111     SED SHELL STRIP \
19112     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19113     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114     deplibs_check_method reload_flag reload_cmds need_locks \
19115     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19116     lt_cv_sys_global_symbol_to_c_name_address \
19117     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19118     old_postinstall_cmds old_postuninstall_cmds \
19119     compiler_GCJ \
19120     CC_GCJ \
19121     LD_GCJ \
19122     lt_prog_compiler_wl_GCJ \
19123     lt_prog_compiler_pic_GCJ \
19124     lt_prog_compiler_static_GCJ \
19125     lt_prog_compiler_no_builtin_flag_GCJ \
19126     export_dynamic_flag_spec_GCJ \
19127     thread_safe_flag_spec_GCJ \
19128     whole_archive_flag_spec_GCJ \
19129     enable_shared_with_static_runtimes_GCJ \
19130     old_archive_cmds_GCJ \
19131     old_archive_from_new_cmds_GCJ \
19132     predep_objects_GCJ \
19133     postdep_objects_GCJ \
19134     predeps_GCJ \
19135     postdeps_GCJ \
19136     compiler_lib_search_path_GCJ \
19137     compiler_lib_search_dirs_GCJ \
19138     archive_cmds_GCJ \
19139     archive_expsym_cmds_GCJ \
19140     postinstall_cmds_GCJ \
19141     postuninstall_cmds_GCJ \
19142     old_archive_from_expsyms_cmds_GCJ \
19143     allow_undefined_flag_GCJ \
19144     no_undefined_flag_GCJ \
19145     export_symbols_cmds_GCJ \
19146     hardcode_libdir_flag_spec_GCJ \
19147     hardcode_libdir_flag_spec_ld_GCJ \
19148     hardcode_libdir_separator_GCJ \
19149     hardcode_automatic_GCJ \
19150     module_cmds_GCJ \
19151     module_expsym_cmds_GCJ \
19152     lt_cv_prog_compiler_c_o_GCJ \
19153     fix_srcfile_path_GCJ \
19154     exclude_expsyms_GCJ \
19155     include_expsyms_GCJ; do
19156
19157     case $var in
19158     old_archive_cmds_GCJ | \
19159     old_archive_from_new_cmds_GCJ | \
19160     archive_cmds_GCJ | \
19161     archive_expsym_cmds_GCJ | \
19162     module_cmds_GCJ | \
19163     module_expsym_cmds_GCJ | \
19164     old_archive_from_expsyms_cmds_GCJ | \
19165     export_symbols_cmds_GCJ | \
19166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19167     postinstall_cmds | postuninstall_cmds | \
19168     old_postinstall_cmds | old_postuninstall_cmds | \
19169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19170       # Double-quote double-evaled strings.
19171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19172       ;;
19173     *)
19174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19175       ;;
19176     esac
19177   done
19178
19179   case $lt_echo in
19180   *'\$0 --fallback-echo"')
19181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19182     ;;
19183   esac
19184
19185 cfgfile="$ofile"
19186
19187   cat <<__EOF__ >> "$cfgfile"
19188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19189
19190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19191
19192 # Shell to use when invoking shell scripts.
19193 SHELL=$lt_SHELL
19194
19195 # Whether or not to build shared libraries.
19196 build_libtool_libs=$enable_shared
19197
19198 # Whether or not to build static libraries.
19199 build_old_libs=$enable_static
19200
19201 # Whether or not to add -lc for building shared libraries.
19202 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19203
19204 # Whether or not to disallow shared libs when runtime libs are static
19205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19206
19207 # Whether or not to optimize for fast installation.
19208 fast_install=$enable_fast_install
19209
19210 # The host system.
19211 host_alias=$host_alias
19212 host=$host
19213 host_os=$host_os
19214
19215 # The build system.
19216 build_alias=$build_alias
19217 build=$build
19218 build_os=$build_os
19219
19220 # An echo program that does not interpret backslashes.
19221 echo=$lt_echo
19222
19223 # The archiver.
19224 AR=$lt_AR
19225 AR_FLAGS=$lt_AR_FLAGS
19226
19227 # A C compiler.
19228 LTCC=$lt_LTCC
19229
19230 # LTCC compiler flags.
19231 LTCFLAGS=$lt_LTCFLAGS
19232
19233 # A language-specific compiler.
19234 CC=$lt_compiler_GCJ
19235
19236 # Is the compiler the GNU C compiler?
19237 with_gcc=$GCC_GCJ
19238
19239 # An ERE matcher.
19240 EGREP=$lt_EGREP
19241
19242 # The linker used to build libraries.
19243 LD=$lt_LD_GCJ
19244
19245 # Whether we need hard or soft links.
19246 LN_S=$lt_LN_S
19247
19248 # A BSD-compatible nm program.
19249 NM=$lt_NM
19250
19251 # A symbol stripping program
19252 STRIP=$lt_STRIP
19253
19254 # Used to examine libraries when file_magic_cmd begins "file"
19255 MAGIC_CMD=$MAGIC_CMD
19256
19257 # Used on cygwin: DLL creation program.
19258 DLLTOOL="$DLLTOOL"
19259
19260 # Used on cygwin: object dumper.
19261 OBJDUMP="$OBJDUMP"
19262
19263 # Used on cygwin: assembler.
19264 AS="$AS"
19265
19266 # The name of the directory that contains temporary libtool files.
19267 objdir=$objdir
19268
19269 # How to create reloadable object files.
19270 reload_flag=$lt_reload_flag
19271 reload_cmds=$lt_reload_cmds
19272
19273 # How to pass a linker flag through the compiler.
19274 wl=$lt_lt_prog_compiler_wl_GCJ
19275
19276 # Object file suffix (normally "o").
19277 objext="$ac_objext"
19278
19279 # Old archive suffix (normally "a").
19280 libext="$libext"
19281
19282 # Shared library suffix (normally ".so").
19283 shrext_cmds='$shrext_cmds'
19284
19285 # Executable file suffix (normally "").
19286 exeext="$exeext"
19287
19288 # Additional compiler flags for building library objects.
19289 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19290 pic_mode=$pic_mode
19291
19292 # What is the maximum length of a command?
19293 max_cmd_len=$lt_cv_sys_max_cmd_len
19294
19295 # Does compiler simultaneously support -c and -o options?
19296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19297
19298 # Must we lock files when doing compilation?
19299 need_locks=$lt_need_locks
19300
19301 # Do we need the lib prefix for modules?
19302 need_lib_prefix=$need_lib_prefix
19303
19304 # Do we need a version for libraries?
19305 need_version=$need_version
19306
19307 # Whether dlopen is supported.
19308 dlopen_support=$enable_dlopen
19309
19310 # Whether dlopen of programs is supported.
19311 dlopen_self=$enable_dlopen_self
19312
19313 # Whether dlopen of statically linked programs is supported.
19314 dlopen_self_static=$enable_dlopen_self_static
19315
19316 # Compiler flag to prevent dynamic linking.
19317 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19318
19319 # Compiler flag to turn off builtin functions.
19320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19321
19322 # Compiler flag to allow reflexive dlopens.
19323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19324
19325 # Compiler flag to generate shared objects directly from archives.
19326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19327
19328 # Compiler flag to generate thread-safe objects.
19329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19330
19331 # Library versioning type.
19332 version_type=$version_type
19333
19334 # Format of library name prefix.
19335 libname_spec=$lt_libname_spec
19336
19337 # List of archive names.  First name is the real one, the rest are links.
19338 # The last name is the one that the linker finds with -lNAME.
19339 library_names_spec=$lt_library_names_spec
19340
19341 # The coded name of the library, if different from the real name.
19342 soname_spec=$lt_soname_spec
19343
19344 # Commands used to build and install an old-style archive.
19345 RANLIB=$lt_RANLIB
19346 old_archive_cmds=$lt_old_archive_cmds_GCJ
19347 old_postinstall_cmds=$lt_old_postinstall_cmds
19348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19349
19350 # Create an old-style archive from a shared archive.
19351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19352
19353 # Create a temporary old-style archive to link instead of a shared archive.
19354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19355
19356 # Commands used to build and install a shared archive.
19357 archive_cmds=$lt_archive_cmds_GCJ
19358 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19359 postinstall_cmds=$lt_postinstall_cmds
19360 postuninstall_cmds=$lt_postuninstall_cmds
19361
19362 # Commands used to build a loadable module (assumed same as above if empty)
19363 module_cmds=$lt_module_cmds_GCJ
19364 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19365
19366 # Commands to strip libraries.
19367 old_striplib=$lt_old_striplib
19368 striplib=$lt_striplib
19369
19370 # Dependencies to place before the objects being linked to create a
19371 # shared library.
19372 predep_objects=$lt_predep_objects_GCJ
19373
19374 # Dependencies to place after the objects being linked to create a
19375 # shared library.
19376 postdep_objects=$lt_postdep_objects_GCJ
19377
19378 # Dependencies to place before the objects being linked to create a
19379 # shared library.
19380 predeps=$lt_predeps_GCJ
19381
19382 # Dependencies to place after the objects being linked to create a
19383 # shared library.
19384 postdeps=$lt_postdeps_GCJ
19385
19386 # The directories searched by this compiler when creating a shared
19387 # library
19388 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19389
19390 # The library search path used internally by the compiler when linking
19391 # a shared library.
19392 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19393
19394 # Method to check whether dependent libraries are shared objects.
19395 deplibs_check_method=$lt_deplibs_check_method
19396
19397 # Command to use when deplibs_check_method == file_magic.
19398 file_magic_cmd=$lt_file_magic_cmd
19399
19400 # Flag that allows shared libraries with undefined symbols to be built.
19401 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19402
19403 # Flag that forces no undefined symbols.
19404 no_undefined_flag=$lt_no_undefined_flag_GCJ
19405
19406 # Commands used to finish a libtool library installation in a directory.
19407 finish_cmds=$lt_finish_cmds
19408
19409 # Same as above, but a single script fragment to be evaled but not shown.
19410 finish_eval=$lt_finish_eval
19411
19412 # Take the output of nm and produce a listing of raw symbols and C names.
19413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19414
19415 # Transform the output of nm in a proper C declaration
19416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19417
19418 # Transform the output of nm in a C name address pair
19419 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19420
19421 # This is the shared library runtime path variable.
19422 runpath_var=$runpath_var
19423
19424 # This is the shared library path variable.
19425 shlibpath_var=$shlibpath_var
19426
19427 # Is shlibpath searched before the hard-coded library search path?
19428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19429
19430 # How to hardcode a shared library path into an executable.
19431 hardcode_action=$hardcode_action_GCJ
19432
19433 # Whether we should hardcode library paths into libraries.
19434 hardcode_into_libs=$hardcode_into_libs
19435
19436 # Flag to hardcode \$libdir into a binary during linking.
19437 # This must work even if \$libdir does not exist.
19438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19439
19440 # If ld is used when linking, flag to hardcode \$libdir into
19441 # a binary during linking. This must work even if \$libdir does
19442 # not exist.
19443 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19444
19445 # Whether we need a single -rpath flag with a separated argument.
19446 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19447
19448 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19449 # resulting binary.
19450 hardcode_direct=$hardcode_direct_GCJ
19451
19452 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19453 # resulting binary.
19454 hardcode_minus_L=$hardcode_minus_L_GCJ
19455
19456 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19457 # the resulting binary.
19458 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19459
19460 # Set to yes if building a shared library automatically hardcodes DIR into the library
19461 # and all subsequent libraries and executables linked against it.
19462 hardcode_automatic=$hardcode_automatic_GCJ
19463
19464 # Variables whose values should be saved in libtool wrapper scripts and
19465 # restored at relink time.
19466 variables_saved_for_relink="$variables_saved_for_relink"
19467
19468 # Whether libtool must link a program against all its dependency libraries.
19469 link_all_deplibs=$link_all_deplibs_GCJ
19470
19471 # Compile-time system search path for libraries
19472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19473
19474 # Run-time system search path for libraries
19475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19476
19477 # Fix the shell variable \$srcfile for the compiler.
19478 fix_srcfile_path=$lt_fix_srcfile_path
19479
19480 # Set to yes if exported symbols are required.
19481 always_export_symbols=$always_export_symbols_GCJ
19482
19483 # The commands to list exported symbols.
19484 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19485
19486 # The commands to extract the exported symbol list from a shared archive.
19487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19488
19489 # Symbols that should not be listed in the preloaded symbols.
19490 exclude_expsyms=$lt_exclude_expsyms_GCJ
19491
19492 # Symbols that must always be exported.
19493 include_expsyms=$lt_include_expsyms_GCJ
19494
19495 # ### END LIBTOOL TAG CONFIG: $tagname
19496
19497 __EOF__
19498
19499
19500 else
19501   # If there is no Makefile yet, we rely on a make rule to execute
19502   # `config.status --recheck' to rerun these tests and create the
19503   # libtool script then.
19504   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19505   if test -f "$ltmain_in"; then
19506     test -f Makefile && make "$ltmain"
19507   fi
19508 fi
19509
19510
19511 ac_ext=c
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517 CC="$lt_save_CC"
19518
19519         else
19520           tagname=""
19521         fi
19522         ;;
19523
19524       RC)
19525
19526
19527 # Source file extension for RC test sources.
19528 ac_ext=rc
19529
19530 # Object file extension for compiled RC test sources.
19531 objext=o
19532 objext_RC=$objext
19533
19534 # Code to be used in simple compile tests
19535 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19536
19537 # Code to be used in simple link tests
19538 lt_simple_link_test_code="$lt_simple_compile_test_code"
19539
19540 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19541
19542 # If no C compiler was specified, use CC.
19543 LTCC=${LTCC-"$CC"}
19544
19545 # If no C compiler flags were specified, use CFLAGS.
19546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19547
19548 # Allow CC to be a program name with arguments.
19549 compiler=$CC
19550
19551
19552 # save warnings/boilerplate of simple test code
19553 ac_outfile=conftest.$ac_objext
19554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556 _lt_compiler_boilerplate=`cat conftest.err`
19557 $rm conftest*
19558
19559 ac_outfile=conftest.$ac_objext
19560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19562 _lt_linker_boilerplate=`cat conftest.err`
19563 $rm -r conftest*
19564
19565
19566 # Allow CC to be a program name with arguments.
19567 lt_save_CC="$CC"
19568 CC=${RC-"windres"}
19569 compiler=$CC
19570 compiler_RC=$CC
19571 for cc_temp in $compiler""; do
19572   case $cc_temp in
19573     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19574     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19575     \-*) ;;
19576     *) break;;
19577   esac
19578 done
19579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19580
19581 lt_cv_prog_compiler_c_o_RC=yes
19582
19583 # The else clause should only fire when bootstrapping the
19584 # libtool distribution, otherwise you forgot to ship ltmain.sh
19585 # with your package, and you will get complaints that there are
19586 # no rules to generate ltmain.sh.
19587 if test -f "$ltmain"; then
19588   # See if we are running on zsh, and set the options which allow our commands through
19589   # without removal of \ escapes.
19590   if test -n "${ZSH_VERSION+set}" ; then
19591     setopt NO_GLOB_SUBST
19592   fi
19593   # Now quote all the things that may contain metacharacters while being
19594   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19595   # variables and quote the copies for generation of the libtool script.
19596   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19597     SED SHELL STRIP \
19598     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19599     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19600     deplibs_check_method reload_flag reload_cmds need_locks \
19601     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19602     lt_cv_sys_global_symbol_to_c_name_address \
19603     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19604     old_postinstall_cmds old_postuninstall_cmds \
19605     compiler_RC \
19606     CC_RC \
19607     LD_RC \
19608     lt_prog_compiler_wl_RC \
19609     lt_prog_compiler_pic_RC \
19610     lt_prog_compiler_static_RC \
19611     lt_prog_compiler_no_builtin_flag_RC \
19612     export_dynamic_flag_spec_RC \
19613     thread_safe_flag_spec_RC \
19614     whole_archive_flag_spec_RC \
19615     enable_shared_with_static_runtimes_RC \
19616     old_archive_cmds_RC \
19617     old_archive_from_new_cmds_RC \
19618     predep_objects_RC \
19619     postdep_objects_RC \
19620     predeps_RC \
19621     postdeps_RC \
19622     compiler_lib_search_path_RC \
19623     compiler_lib_search_dirs_RC \
19624     archive_cmds_RC \
19625     archive_expsym_cmds_RC \
19626     postinstall_cmds_RC \
19627     postuninstall_cmds_RC \
19628     old_archive_from_expsyms_cmds_RC \
19629     allow_undefined_flag_RC \
19630     no_undefined_flag_RC \
19631     export_symbols_cmds_RC \
19632     hardcode_libdir_flag_spec_RC \
19633     hardcode_libdir_flag_spec_ld_RC \
19634     hardcode_libdir_separator_RC \
19635     hardcode_automatic_RC \
19636     module_cmds_RC \
19637     module_expsym_cmds_RC \
19638     lt_cv_prog_compiler_c_o_RC \
19639     fix_srcfile_path_RC \
19640     exclude_expsyms_RC \
19641     include_expsyms_RC; do
19642
19643     case $var in
19644     old_archive_cmds_RC | \
19645     old_archive_from_new_cmds_RC | \
19646     archive_cmds_RC | \
19647     archive_expsym_cmds_RC | \
19648     module_cmds_RC | \
19649     module_expsym_cmds_RC | \
19650     old_archive_from_expsyms_cmds_RC | \
19651     export_symbols_cmds_RC | \
19652     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653     postinstall_cmds | postuninstall_cmds | \
19654     old_postinstall_cmds | old_postuninstall_cmds | \
19655     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656       # Double-quote double-evaled strings.
19657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19658       ;;
19659     *)
19660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19661       ;;
19662     esac
19663   done
19664
19665   case $lt_echo in
19666   *'\$0 --fallback-echo"')
19667     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19668     ;;
19669   esac
19670
19671 cfgfile="$ofile"
19672
19673   cat <<__EOF__ >> "$cfgfile"
19674 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19675
19676 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19677
19678 # Shell to use when invoking shell scripts.
19679 SHELL=$lt_SHELL
19680
19681 # Whether or not to build shared libraries.
19682 build_libtool_libs=$enable_shared
19683
19684 # Whether or not to build static libraries.
19685 build_old_libs=$enable_static
19686
19687 # Whether or not to add -lc for building shared libraries.
19688 build_libtool_need_lc=$archive_cmds_need_lc_RC
19689
19690 # Whether or not to disallow shared libs when runtime libs are static
19691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19692
19693 # Whether or not to optimize for fast installation.
19694 fast_install=$enable_fast_install
19695
19696 # The host system.
19697 host_alias=$host_alias
19698 host=$host
19699 host_os=$host_os
19700
19701 # The build system.
19702 build_alias=$build_alias
19703 build=$build
19704 build_os=$build_os
19705
19706 # An echo program that does not interpret backslashes.
19707 echo=$lt_echo
19708
19709 # The archiver.
19710 AR=$lt_AR
19711 AR_FLAGS=$lt_AR_FLAGS
19712
19713 # A C compiler.
19714 LTCC=$lt_LTCC
19715
19716 # LTCC compiler flags.
19717 LTCFLAGS=$lt_LTCFLAGS
19718
19719 # A language-specific compiler.
19720 CC=$lt_compiler_RC
19721
19722 # Is the compiler the GNU C compiler?
19723 with_gcc=$GCC_RC
19724
19725 # An ERE matcher.
19726 EGREP=$lt_EGREP
19727
19728 # The linker used to build libraries.
19729 LD=$lt_LD_RC
19730
19731 # Whether we need hard or soft links.
19732 LN_S=$lt_LN_S
19733
19734 # A BSD-compatible nm program.
19735 NM=$lt_NM
19736
19737 # A symbol stripping program
19738 STRIP=$lt_STRIP
19739
19740 # Used to examine libraries when file_magic_cmd begins "file"
19741 MAGIC_CMD=$MAGIC_CMD
19742
19743 # Used on cygwin: DLL creation program.
19744 DLLTOOL="$DLLTOOL"
19745
19746 # Used on cygwin: object dumper.
19747 OBJDUMP="$OBJDUMP"
19748
19749 # Used on cygwin: assembler.
19750 AS="$AS"
19751
19752 # The name of the directory that contains temporary libtool files.
19753 objdir=$objdir
19754
19755 # How to create reloadable object files.
19756 reload_flag=$lt_reload_flag
19757 reload_cmds=$lt_reload_cmds
19758
19759 # How to pass a linker flag through the compiler.
19760 wl=$lt_lt_prog_compiler_wl_RC
19761
19762 # Object file suffix (normally "o").
19763 objext="$ac_objext"
19764
19765 # Old archive suffix (normally "a").
19766 libext="$libext"
19767
19768 # Shared library suffix (normally ".so").
19769 shrext_cmds='$shrext_cmds'
19770
19771 # Executable file suffix (normally "").
19772 exeext="$exeext"
19773
19774 # Additional compiler flags for building library objects.
19775 pic_flag=$lt_lt_prog_compiler_pic_RC
19776 pic_mode=$pic_mode
19777
19778 # What is the maximum length of a command?
19779 max_cmd_len=$lt_cv_sys_max_cmd_len
19780
19781 # Does compiler simultaneously support -c and -o options?
19782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19783
19784 # Must we lock files when doing compilation?
19785 need_locks=$lt_need_locks
19786
19787 # Do we need the lib prefix for modules?
19788 need_lib_prefix=$need_lib_prefix
19789
19790 # Do we need a version for libraries?
19791 need_version=$need_version
19792
19793 # Whether dlopen is supported.
19794 dlopen_support=$enable_dlopen
19795
19796 # Whether dlopen of programs is supported.
19797 dlopen_self=$enable_dlopen_self
19798
19799 # Whether dlopen of statically linked programs is supported.
19800 dlopen_self_static=$enable_dlopen_self_static
19801
19802 # Compiler flag to prevent dynamic linking.
19803 link_static_flag=$lt_lt_prog_compiler_static_RC
19804
19805 # Compiler flag to turn off builtin functions.
19806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19807
19808 # Compiler flag to allow reflexive dlopens.
19809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19810
19811 # Compiler flag to generate shared objects directly from archives.
19812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19813
19814 # Compiler flag to generate thread-safe objects.
19815 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19816
19817 # Library versioning type.
19818 version_type=$version_type
19819
19820 # Format of library name prefix.
19821 libname_spec=$lt_libname_spec
19822
19823 # List of archive names.  First name is the real one, the rest are links.
19824 # The last name is the one that the linker finds with -lNAME.
19825 library_names_spec=$lt_library_names_spec
19826
19827 # The coded name of the library, if different from the real name.
19828 soname_spec=$lt_soname_spec
19829
19830 # Commands used to build and install an old-style archive.
19831 RANLIB=$lt_RANLIB
19832 old_archive_cmds=$lt_old_archive_cmds_RC
19833 old_postinstall_cmds=$lt_old_postinstall_cmds
19834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19835
19836 # Create an old-style archive from a shared archive.
19837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19838
19839 # Create a temporary old-style archive to link instead of a shared archive.
19840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19841
19842 # Commands used to build and install a shared archive.
19843 archive_cmds=$lt_archive_cmds_RC
19844 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19845 postinstall_cmds=$lt_postinstall_cmds
19846 postuninstall_cmds=$lt_postuninstall_cmds
19847
19848 # Commands used to build a loadable module (assumed same as above if empty)
19849 module_cmds=$lt_module_cmds_RC
19850 module_expsym_cmds=$lt_module_expsym_cmds_RC
19851
19852 # Commands to strip libraries.
19853 old_striplib=$lt_old_striplib
19854 striplib=$lt_striplib
19855
19856 # Dependencies to place before the objects being linked to create a
19857 # shared library.
19858 predep_objects=$lt_predep_objects_RC
19859
19860 # Dependencies to place after the objects being linked to create a
19861 # shared library.
19862 postdep_objects=$lt_postdep_objects_RC
19863
19864 # Dependencies to place before the objects being linked to create a
19865 # shared library.
19866 predeps=$lt_predeps_RC
19867
19868 # Dependencies to place after the objects being linked to create a
19869 # shared library.
19870 postdeps=$lt_postdeps_RC
19871
19872 # The directories searched by this compiler when creating a shared
19873 # library
19874 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19875
19876 # The library search path used internally by the compiler when linking
19877 # a shared library.
19878 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19879
19880 # Method to check whether dependent libraries are shared objects.
19881 deplibs_check_method=$lt_deplibs_check_method
19882
19883 # Command to use when deplibs_check_method == file_magic.
19884 file_magic_cmd=$lt_file_magic_cmd
19885
19886 # Flag that allows shared libraries with undefined symbols to be built.
19887 allow_undefined_flag=$lt_allow_undefined_flag_RC
19888
19889 # Flag that forces no undefined symbols.
19890 no_undefined_flag=$lt_no_undefined_flag_RC
19891
19892 # Commands used to finish a libtool library installation in a directory.
19893 finish_cmds=$lt_finish_cmds
19894
19895 # Same as above, but a single script fragment to be evaled but not shown.
19896 finish_eval=$lt_finish_eval
19897
19898 # Take the output of nm and produce a listing of raw symbols and C names.
19899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19900
19901 # Transform the output of nm in a proper C declaration
19902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19903
19904 # Transform the output of nm in a C name address pair
19905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19906
19907 # This is the shared library runtime path variable.
19908 runpath_var=$runpath_var
19909
19910 # This is the shared library path variable.
19911 shlibpath_var=$shlibpath_var
19912
19913 # Is shlibpath searched before the hard-coded library search path?
19914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19915
19916 # How to hardcode a shared library path into an executable.
19917 hardcode_action=$hardcode_action_RC
19918
19919 # Whether we should hardcode library paths into libraries.
19920 hardcode_into_libs=$hardcode_into_libs
19921
19922 # Flag to hardcode \$libdir into a binary during linking.
19923 # This must work even if \$libdir does not exist.
19924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19925
19926 # If ld is used when linking, flag to hardcode \$libdir into
19927 # a binary during linking. This must work even if \$libdir does
19928 # not exist.
19929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19930
19931 # Whether we need a single -rpath flag with a separated argument.
19932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19933
19934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19935 # resulting binary.
19936 hardcode_direct=$hardcode_direct_RC
19937
19938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19939 # resulting binary.
19940 hardcode_minus_L=$hardcode_minus_L_RC
19941
19942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19943 # the resulting binary.
19944 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19945
19946 # Set to yes if building a shared library automatically hardcodes DIR into the library
19947 # and all subsequent libraries and executables linked against it.
19948 hardcode_automatic=$hardcode_automatic_RC
19949
19950 # Variables whose values should be saved in libtool wrapper scripts and
19951 # restored at relink time.
19952 variables_saved_for_relink="$variables_saved_for_relink"
19953
19954 # Whether libtool must link a program against all its dependency libraries.
19955 link_all_deplibs=$link_all_deplibs_RC
19956
19957 # Compile-time system search path for libraries
19958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19959
19960 # Run-time system search path for libraries
19961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19962
19963 # Fix the shell variable \$srcfile for the compiler.
19964 fix_srcfile_path=$lt_fix_srcfile_path
19965
19966 # Set to yes if exported symbols are required.
19967 always_export_symbols=$always_export_symbols_RC
19968
19969 # The commands to list exported symbols.
19970 export_symbols_cmds=$lt_export_symbols_cmds_RC
19971
19972 # The commands to extract the exported symbol list from a shared archive.
19973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19974
19975 # Symbols that should not be listed in the preloaded symbols.
19976 exclude_expsyms=$lt_exclude_expsyms_RC
19977
19978 # Symbols that must always be exported.
19979 include_expsyms=$lt_include_expsyms_RC
19980
19981 # ### END LIBTOOL TAG CONFIG: $tagname
19982
19983 __EOF__
19984
19985
19986 else
19987   # If there is no Makefile yet, we rely on a make rule to execute
19988   # `config.status --recheck' to rerun these tests and create the
19989   # libtool script then.
19990   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19991   if test -f "$ltmain_in"; then
19992     test -f Makefile && make "$ltmain"
19993   fi
19994 fi
19995
19996
19997 ac_ext=c
19998 ac_cpp='$CPP $CPPFLAGS'
19999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002
20003 CC="$lt_save_CC"
20004
20005         ;;
20006
20007       *)
20008         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20009 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20010    { (exit 1); exit 1; }; }
20011         ;;
20012       esac
20013
20014       # Append the new tag name to the list of available tags.
20015       if test -n "$tagname" ; then
20016       available_tags="$available_tags $tagname"
20017     fi
20018     fi
20019   done
20020   IFS="$lt_save_ifs"
20021
20022   # Now substitute the updated list of available tags.
20023   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20024     mv "${ofile}T" "$ofile"
20025     chmod +x "$ofile"
20026   else
20027     rm -f "${ofile}T"
20028     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20029 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20030    { (exit 1); exit 1; }; }
20031   fi
20032 fi
20033
20034
20035
20036 # This can be used to rebuild libtool when needed
20037 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20038
20039 # Always use our own libtool.
20040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20041
20042 # Prevent multiple expansion
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055 # Check whether --with-system-libtool was given.
20056 if test "${with_system_libtool+set}" = set; then
20057   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20058 set dummy libtool; ac_word=$2
20059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20061 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   case $LIBTOOL in
20065   [\\/]* | ?:[\\/]*)
20066   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20067   ;;
20068   *)
20069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20070 as_dummy="$PATH:/usr/local/bin"
20071 for as_dir in $as_dummy
20072 do
20073   IFS=$as_save_IFS
20074   test -z "$as_dir" && as_dir=.
20075   for ac_exec_ext in '' $ac_executable_extensions; do
20076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20077     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20079     break 2
20080   fi
20081 done
20082 done
20083 IFS=$as_save_IFS
20084
20085   ;;
20086 esac
20087 fi
20088 LIBTOOL=$ac_cv_path_LIBTOOL
20089 if test -n "$LIBTOOL"; then
20090   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20091 echo "${ECHO_T}$LIBTOOL" >&6; }
20092 else
20093   { echo "$as_me:$LINENO: result: no" >&5
20094 echo "${ECHO_T}no" >&6; }
20095 fi
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108 else
20109
20110   LIBTOOL="`pwd`/libtool"
20111
20112
20113
20114
20115
20116
20117 fi
20118
20119
20120
20121
20122 # Check whether --enable-strict-dependencies was given.
20123 if test "${enable_strict_dependencies+set}" = set; then
20124   enableval=$enable_strict_dependencies;
20125 fi
20126
20127
20128 docdir='${datadir}/doc/freeradius'
20129 { echo "$as_me:$LINENO: checking docdir" >&5
20130 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20131
20132 # Check whether --with-docdir was given.
20133 if test "${with_docdir+set}" = set; then
20134   withval=$with_docdir;  case "$withval" in
20135     no)
20136         docdir=no
20137         ;;
20138     yes)
20139         ;;
20140     [\\/$]* | ?:[\\/]* )
20141         docdir="$withval"
20142         ;;
20143     *)
20144         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20145 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20146    { (exit 1); exit 1; }; }
20147         ;;
20148   esac
20149
20150 fi
20151
20152
20153 { echo "$as_me:$LINENO: result: $docdir" >&5
20154 echo "${ECHO_T}$docdir" >&6; }
20155 if test "x$docdir" = xno; then
20156         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20157 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20158 fi
20159
20160 logdir='${localstatedir}/log/radius'
20161 { echo "$as_me:$LINENO: checking logdir" >&5
20162 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20163
20164 # Check whether --with-logdir was given.
20165 if test "${with_logdir+set}" = set; then
20166   withval=$with_logdir;  case "$withval" in
20167     no)
20168         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20169 echo "$as_me: error: Need logdir" >&2;}
20170    { (exit 1); exit 1; }; }
20171         ;;
20172     yes)
20173         ;;
20174     [\\/$]* | ?:[\\/]* )
20175         logdir="$withval"
20176         ;;
20177     *)
20178         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20179 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20180    { (exit 1); exit 1; }; }
20181         ;;
20182   esac
20183
20184 fi
20185
20186
20187 { echo "$as_me:$LINENO: result: $logdir" >&5
20188 echo "${ECHO_T}$logdir" >&6; }
20189
20190 radacctdir='${logdir}/radacct'
20191 { echo "$as_me:$LINENO: checking radacctdir" >&5
20192 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20193
20194 # Check whether --with-radacctdir was given.
20195 if test "${with_radacctdir+set}" = set; then
20196   withval=$with_radacctdir;  case "$withval" in
20197     no)
20198         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20199 echo "$as_me: error: Need radacctdir" >&2;}
20200    { (exit 1); exit 1; }; }
20201         ;;
20202     yes)
20203         ;;
20204     [\\/$]* | ?:[\\/]* )
20205         radacctdir="$withval"
20206         ;;
20207     *)
20208         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20209 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20210    { (exit 1); exit 1; }; }
20211         ;;
20212   esac
20213
20214 fi
20215
20216
20217 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20218 echo "${ECHO_T}$radacctdir" >&6; }
20219
20220 raddbdir='${sysconfdir}/raddb'
20221 { echo "$as_me:$LINENO: checking raddbdir" >&5
20222 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20223
20224 # Check whether --with-raddbdir was given.
20225 if test "${with_raddbdir+set}" = set; then
20226   withval=$with_raddbdir;  case "$withval" in
20227     no)
20228         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20229 echo "$as_me: error: Need raddbdir" >&2;}
20230    { (exit 1); exit 1; }; }
20231         ;;
20232     yes)
20233         ;;
20234     [\\/$]* | ?:[\\/]* )
20235         raddbdir="$withval"
20236         ;;
20237     *)
20238         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20239 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20240    { (exit 1); exit 1; }; }
20241         ;;
20242   esac
20243
20244 fi
20245
20246
20247 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20248 echo "${ECHO_T}$raddbdir" >&6; }
20249
20250 ASCEND_BINARY=yes
20251
20252 # Check whether --with-ascend-binary was given.
20253 if test "${with_ascend_binary+set}" = set; then
20254   withval=$with_ascend_binary;  case "$withval" in
20255     yes)
20256         ;;
20257     *)
20258         ASCEND_BINARY=""
20259   esac
20260
20261 fi
20262
20263 if test "X$ASCEND_BINARY" = "Xyes"; then
20264
20265 cat >>confdefs.h <<\_ACEOF
20266 #define ASCEND_BINARY
20267 _ACEOF
20268
20269 fi
20270
20271 WITH_THREADS=yes
20272
20273 # Check whether --with-threads was given.
20274 if test "${with_threads+set}" = set; then
20275   withval=$with_threads;  case "$withval" in
20276     yes)
20277         ;;
20278     *)
20279         WITH_THREADS=""
20280   esac
20281
20282 fi
20283
20284
20285 WITH_VMPS=yes
20286
20287 # Check whether --with-vmps was given.
20288 if test "${with_vmps+set}" = set; then
20289   withval=$with_vmps;  case "$withval" in
20290     yes)
20291         ;;
20292     *)
20293         WITH_VMPS=no
20294   esac
20295
20296 fi
20297
20298 if test "x$WITH_VMPS" = "xyes"; then
20299
20300 cat >>confdefs.h <<\_ACEOF
20301 #define WITH_VMPS 1
20302 _ACEOF
20303
20304 fi
20305
20306 WITH_DHCP=yes
20307
20308 # Check whether --with-dhcp was given.
20309 if test "${with_dhcp+set}" = set; then
20310   withval=$with_dhcp;  case "$withval" in
20311     yes)
20312         ;;
20313     *)
20314         WITH_DHCP=no
20315   esac
20316
20317 fi
20318
20319 if test "x$WITH_DHCP" = "xyes"; then
20320
20321 cat >>confdefs.h <<\_ACEOF
20322 #define WITH_DHCP 1
20323 _ACEOF
20324
20325 fi
20326
20327
20328
20329
20330
20331 STATIC_MODULES=
20332
20333 # Check whether --with-static_modules was given.
20334 if test "${with_static_modules+set}" = set; then
20335   withval=$with_static_modules;
20336   for i in $withval; do
20337     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20338   done
20339
20340 fi
20341
20342
20343 MODULES=
20344
20345 # Check whether --with-modules was given.
20346 if test "${with_modules+set}" = set; then
20347   withval=$with_modules;
20348  for i in $withval; do
20349    MODULES="$MODULES $i"
20350  done
20351
20352 fi
20353
20354
20355 # Check whether --enable-developer was given.
20356 if test "${enable_developer+set}" = set; then
20357   enableval=$enable_developer;  case "$enableval" in
20358     no)
20359         developer=no
20360         ;;
20361     *)
20362         developer=yes
20363   esac
20364
20365 fi
20366
20367
20368 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20369     developer="yes"
20370 fi
20371
20372 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20373     developer="yes"
20374 fi
20375
20376 EXPERIMENTAL=
20377
20378 # Check whether --with-experimental-modules was given.
20379 if test "${with_experimental_modules+set}" = set; then
20380   withval=$with_experimental_modules;  case "$withval" in
20381     yes)
20382         EXPERIMENTAL=yes
20383         ;;
20384     *)
20385   esac
20386
20387 fi
20388
20389
20390 WITH_OPENSSL=yes
20391
20392 # Check whether --with-openssl was given.
20393 if test "${with_openssl+set}" = set; then
20394   withval=$with_openssl;  case "$withval" in
20395     no)
20396         WITH_OPENSSL=no
20397         ;;
20398     *)
20399         WITH_OPENSSL=yes
20400         ;;
20401   esac
20402
20403 fi
20404
20405
20406 OPENSSL_INCLUDE_DIR=
20407
20408 # Check whether --with-openssl-includes was given.
20409 if test "${with_openssl_includes+set}" = set; then
20410   withval=$with_openssl_includes;  case "$withval" in
20411     *) OPENSSL_INCLUDE_DIR="$withval"
20412         ;;
20413   esac
20414
20415 fi
20416
20417
20418 OPENSSL_LIB_DIR=
20419
20420 # Check whether --with-openssl-libraries was given.
20421 if test "${with_openssl_libraries+set}" = set; then
20422   withval=$with_openssl_libraries;  case "$withval" in
20423     *) OPENSSL_LIB_DIR="$withval"
20424         ;;
20425   esac
20426
20427 fi
20428
20429
20430
20431
20432 # Check whether --with-rlm-FOO-lib-dir was given.
20433 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20434   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20435     *)
20436         ;;
20437   esac
20438
20439 fi
20440
20441
20442
20443 # Check whether --with-rlm-FOO-include-dir was given.
20444 if test "${with_rlm_FOO_include_dir+set}" = set; then
20445   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20446     *)
20447         ;;
20448   esac
20449
20450 fi
20451
20452
20453
20454 WITH_UDPFROMTO=no
20455
20456 # Check whether --with-udpfromto was given.
20457 if test "${with_udpfromto+set}" = set; then
20458   withval=$with_udpfromto;  case "$withval" in
20459     yes)
20460         WITH_UDPFROMTO=yes
20461         ;;
20462     *)
20463         WITH_UDPFROMTO=no
20464   esac
20465
20466 fi
20467
20468
20469 if test "x$WITH_UDPFROMTO" = "xyes"; then
20470
20471 cat >>confdefs.h <<\_ACEOF
20472 #define WITH_UDPFROMTO
20473 _ACEOF
20474
20475 fi
20476
20477
20478 CHECKRAD=checkrad.pl
20479 # Extract the first word of "perl", so it can be a program name with args.
20480 set dummy perl; ac_word=$2
20481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20483 if test "${ac_cv_path_PERL+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   case $PERL in
20487   [\\/]* | ?:[\\/]*)
20488   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20489   ;;
20490   *)
20491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20492 for as_dir in $PATH
20493 do
20494   IFS=$as_save_IFS
20495   test -z "$as_dir" && as_dir=.
20496   for ac_exec_ext in '' $ac_executable_extensions; do
20497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20498     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20500     break 2
20501   fi
20502 done
20503 done
20504 IFS=$as_save_IFS
20505
20506   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20507   ;;
20508 esac
20509 fi
20510 PERL=$ac_cv_path_PERL
20511 if test -n "$PERL"; then
20512   { echo "$as_me:$LINENO: result: $PERL" >&5
20513 echo "${ECHO_T}$PERL" >&6; }
20514 else
20515   { echo "$as_me:$LINENO: result: no" >&5
20516 echo "${ECHO_T}no" >&6; }
20517 fi
20518
20519
20520 if test "x$ac_cv_path_PERL" = "x"; then
20521   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20522 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20523 fi
20524 # Extract the first word of "snmpget", so it can be a program name with args.
20525 set dummy snmpget; ac_word=$2
20526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20528 if test "${ac_cv_path_SNMPGET+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   case $SNMPGET in
20532   [\\/]* | ?:[\\/]*)
20533   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20534   ;;
20535   *)
20536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20537 for as_dir in $PATH
20538 do
20539   IFS=$as_save_IFS
20540   test -z "$as_dir" && as_dir=.
20541   for ac_exec_ext in '' $ac_executable_extensions; do
20542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20543     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20545     break 2
20546   fi
20547 done
20548 done
20549 IFS=$as_save_IFS
20550
20551   ;;
20552 esac
20553 fi
20554 SNMPGET=$ac_cv_path_SNMPGET
20555 if test -n "$SNMPGET"; then
20556   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20557 echo "${ECHO_T}$SNMPGET" >&6; }
20558 else
20559   { echo "$as_me:$LINENO: result: no" >&5
20560 echo "${ECHO_T}no" >&6; }
20561 fi
20562
20563
20564 if test "x$ac_cv_path_SNMPGET" = "x"; then
20565   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20566 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20567 fi
20568
20569 # Extract the first word of "snmpwalk", so it can be a program name with args.
20570 set dummy snmpwalk; ac_word=$2
20571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20573 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576   case $SNMPWALK in
20577   [\\/]* | ?:[\\/]*)
20578   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20579   ;;
20580   *)
20581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20582 for as_dir in $PATH
20583 do
20584   IFS=$as_save_IFS
20585   test -z "$as_dir" && as_dir=.
20586   for ac_exec_ext in '' $ac_executable_extensions; do
20587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20588     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20590     break 2
20591   fi
20592 done
20593 done
20594 IFS=$as_save_IFS
20595
20596   ;;
20597 esac
20598 fi
20599 SNMPWALK=$ac_cv_path_SNMPWALK
20600 if test -n "$SNMPWALK"; then
20601   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20602 echo "${ECHO_T}$SNMPWALK" >&6; }
20603 else
20604   { echo "$as_me:$LINENO: result: no" >&5
20605 echo "${ECHO_T}no" >&6; }
20606 fi
20607
20608
20609 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20610   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20611 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20612 fi
20613
20614 # Extract the first word of "rusers", so it can be a program name with args.
20615 set dummy rusers; ac_word=$2
20616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20618 if test "${ac_cv_path_RUSERS+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621   case $RUSERS in
20622   [\\/]* | ?:[\\/]*)
20623   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20624   ;;
20625   *)
20626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20627 for as_dir in $PATH
20628 do
20629   IFS=$as_save_IFS
20630   test -z "$as_dir" && as_dir=.
20631   for ac_exec_ext in '' $ac_executable_extensions; do
20632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20633     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20635     break 2
20636   fi
20637 done
20638 done
20639 IFS=$as_save_IFS
20640
20641   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20642   ;;
20643 esac
20644 fi
20645 RUSERS=$ac_cv_path_RUSERS
20646 if test -n "$RUSERS"; then
20647   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20648 echo "${ECHO_T}$RUSERS" >&6; }
20649 else
20650   { echo "$as_me:$LINENO: result: no" >&5
20651 echo "${ECHO_T}no" >&6; }
20652 fi
20653
20654
20655
20656 missing_dir=`cd $ac_aux_dir && pwd`
20657 # expand $ac_aux_dir to an absolute path
20658 am_aux_dir=`cd $ac_aux_dir && pwd`
20659
20660 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20661 # Use eval to expand $SHELL
20662 if eval "$MISSING --run true"; then
20663   am_missing_run="$MISSING --run "
20664 else
20665   am_missing_run=
20666   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20667 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20668 fi
20669
20670
20671 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20672
20673
20674 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20675
20676
20677 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20678
20679
20680 # Extract the first word of "locate", so it can be a program name with args.
20681 set dummy locate; ac_word=$2
20682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20684 if test "${ac_cv_path_LOCATE+set}" = set; then
20685   echo $ECHO_N "(cached) $ECHO_C" >&6
20686 else
20687   case $LOCATE in
20688   [\\/]* | ?:[\\/]*)
20689   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20690   ;;
20691   *)
20692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20693 for as_dir in $PATH
20694 do
20695   IFS=$as_save_IFS
20696   test -z "$as_dir" && as_dir=.
20697   for ac_exec_ext in '' $ac_executable_extensions; do
20698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20699     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20701     break 2
20702   fi
20703 done
20704 done
20705 IFS=$as_save_IFS
20706
20707   ;;
20708 esac
20709 fi
20710 LOCATE=$ac_cv_path_LOCATE
20711 if test -n "$LOCATE"; then
20712   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20713 echo "${ECHO_T}$LOCATE" >&6; }
20714 else
20715   { echo "$as_me:$LINENO: result: no" >&5
20716 echo "${ECHO_T}no" >&6; }
20717 fi
20718
20719
20720 # Extract the first word of "dirname", so it can be a program name with args.
20721 set dummy dirname; ac_word=$2
20722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20724 if test "${ac_cv_path_DIRNAME+set}" = set; then
20725   echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727   case $DIRNAME in
20728   [\\/]* | ?:[\\/]*)
20729   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20730   ;;
20731   *)
20732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20733 for as_dir in $PATH
20734 do
20735   IFS=$as_save_IFS
20736   test -z "$as_dir" && as_dir=.
20737   for ac_exec_ext in '' $ac_executable_extensions; do
20738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20739     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20741     break 2
20742   fi
20743 done
20744 done
20745 IFS=$as_save_IFS
20746
20747   ;;
20748 esac
20749 fi
20750 DIRNAME=$ac_cv_path_DIRNAME
20751 if test -n "$DIRNAME"; then
20752   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20753 echo "${ECHO_T}$DIRNAME" >&6; }
20754 else
20755   { echo "$as_me:$LINENO: result: no" >&5
20756 echo "${ECHO_T}no" >&6; }
20757 fi
20758
20759
20760 # Extract the first word of "grep", so it can be a program name with args.
20761 set dummy grep; ac_word=$2
20762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20764 if test "${ac_cv_path_GREP+set}" = set; then
20765   echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767   case $GREP in
20768   [\\/]* | ?:[\\/]*)
20769   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20770   ;;
20771   *)
20772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773 for as_dir in $PATH
20774 do
20775   IFS=$as_save_IFS
20776   test -z "$as_dir" && as_dir=.
20777   for ac_exec_ext in '' $ac_executable_extensions; do
20778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20779     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20781     break 2
20782   fi
20783 done
20784 done
20785 IFS=$as_save_IFS
20786
20787   ;;
20788 esac
20789 fi
20790 GREP=$ac_cv_path_GREP
20791 if test -n "$GREP"; then
20792   { echo "$as_me:$LINENO: result: $GREP" >&5
20793 echo "${ECHO_T}$GREP" >&6; }
20794 else
20795   { echo "$as_me:$LINENO: result: no" >&5
20796 echo "${ECHO_T}no" >&6; }
20797 fi
20798
20799
20800
20801
20802 old_CFLAGS=$CFLAGS
20803 if test "x$WITH_THREADS" = "xyes"; then
20804   if test $ac_cv_prog_suncc = "yes"; then
20805     CFLAGS="$CFLAGS -mt"
20806   fi
20807
20808
20809 for ac_header in pthread.h
20810 do
20811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20813   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 fi
20818 ac_res=`eval echo '${'$as_ac_Header'}'`
20819                { echo "$as_me:$LINENO: result: $ac_res" >&5
20820 echo "${ECHO_T}$ac_res" >&6; }
20821 else
20822   # Is the header compilable?
20823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831 $ac_includes_default
20832 #include <$ac_header>
20833 _ACEOF
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838   *) ac_try_echo=$ac_try;;
20839 esac
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841   (eval "$ac_compile") 2>conftest.er1
20842   ac_status=$?
20843   grep -v '^ *+' conftest.er1 >conftest.err
20844   rm -f conftest.er1
20845   cat conftest.err >&5
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } && {
20848          test -z "$ac_c_werror_flag" ||
20849          test ! -s conftest.err
20850        } && test -s conftest.$ac_objext; then
20851   ac_header_compiler=yes
20852 else
20853   echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856         ac_header_compiler=no
20857 fi
20858
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20861 echo "${ECHO_T}$ac_header_compiler" >&6; }
20862
20863 # Is the header present?
20864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872 #include <$ac_header>
20873 _ACEOF
20874 if { (ac_try="$ac_cpp conftest.$ac_ext"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } >/dev/null && {
20887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        }; then
20890   ac_header_preproc=yes
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895   ac_header_preproc=no
20896 fi
20897
20898 rm -f conftest.err conftest.$ac_ext
20899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20900 echo "${ECHO_T}$ac_header_preproc" >&6; }
20901
20902 # So?  What about this header?
20903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20904   yes:no: )
20905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20909     ac_header_preproc=yes
20910     ;;
20911   no:yes:* )
20912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20924
20925     ;;
20926 esac
20927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   eval "$as_ac_Header=\$ac_header_preproc"
20933 fi
20934 ac_res=`eval echo '${'$as_ac_Header'}'`
20935                { echo "$as_me:$LINENO: result: $ac_res" >&5
20936 echo "${ECHO_T}$ac_res" >&6; }
20937
20938 fi
20939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20940   cat >>confdefs.h <<_ACEOF
20941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20942 _ACEOF
20943
20944 else
20945    WITH_THREADS="no"
20946 fi
20947
20948 done
20949
20950
20951   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20952 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20954   echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956   ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-lpthread  $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964
20965 /* Override any GCC internal prototype to avoid an error.
20966    Use char because int might match the return type of a GCC
20967    builtin and then its argument prototype would still apply.  */
20968 #ifdef __cplusplus
20969 extern "C"
20970 #endif
20971 char pthread_create ();
20972 int
20973 main ()
20974 {
20975 return pthread_create ();
20976   ;
20977   return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_link") 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } && {
20994          test -z "$ac_c_werror_flag" ||
20995          test ! -s conftest.err
20996        } && test -s conftest$ac_exeext &&
20997        $as_test_x conftest$ac_exeext; then
20998   ac_cv_lib_pthread_pthread_create=yes
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003         ac_cv_lib_pthread_pthread_create=no
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21007       conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21009 fi
21010 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21011 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21012 if test $ac_cv_lib_pthread_pthread_create = yes; then
21013    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21014                   LIBS="$LIBS -lpthread"
21015 else
21016   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21017 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21018 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021   ac_check_lib_save_LIBS=$LIBS
21022 LIBS="-lc_r  $LIBS"
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029
21030 /* Override any GCC internal prototype to avoid an error.
21031    Use char because int might match the return type of a GCC
21032    builtin and then its argument prototype would still apply.  */
21033 #ifdef __cplusplus
21034 extern "C"
21035 #endif
21036 char pthread_create ();
21037 int
21038 main ()
21039 {
21040 return pthread_create ();
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (ac_try="$ac_link"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_link") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } && {
21059          test -z "$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        } && test -s conftest$ac_exeext &&
21062        $as_test_x conftest$ac_exeext; then
21063   ac_cv_lib_c_r_pthread_create=yes
21064 else
21065   echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068         ac_cv_lib_c_r_pthread_create=no
21069 fi
21070
21071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21072       conftest$ac_exeext conftest.$ac_ext
21073 LIBS=$ac_check_lib_save_LIBS
21074 fi
21075 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21076 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21077 if test $ac_cv_lib_c_r_pthread_create = yes; then
21078    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21079 else
21080    WITH_THREADS="no"
21081
21082 fi
21083
21084
21085 fi
21086
21087 fi
21088
21089 if test "x$WITH_THREADS" != "xyes"; then
21090   CFLAGS=$old_CFLAGS
21091   ac_cv_header_pthread_h="no"
21092   WITH_THREADS=no
21093 else
21094
21095   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21096 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21097 if test "${ac_cv_search_sem_init+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100   ac_func_search_save_LIBS=$LIBS
21101 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107
21108 /* Override any GCC internal prototype to avoid an error.
21109    Use char because int might match the return type of a GCC
21110    builtin and then its argument prototype would still apply.  */
21111 #ifdef __cplusplus
21112 extern "C"
21113 #endif
21114 char sem_init ();
21115 int
21116 main ()
21117 {
21118 return sem_init ();
21119   ;
21120   return 0;
21121 }
21122 _ACEOF
21123 for ac_lib in '' pthread sem posix4 rt semaphore; do
21124   if test -z "$ac_lib"; then
21125     ac_res="none required"
21126   else
21127     ac_res=-l$ac_lib
21128     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21129   fi
21130   rm -f conftest.$ac_objext conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_link") 2>conftest.er1
21138   ac_status=$?
21139   grep -v '^ *+' conftest.er1 >conftest.err
21140   rm -f conftest.er1
21141   cat conftest.err >&5
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); } && {
21144          test -z "$ac_c_werror_flag" ||
21145          test ! -s conftest.err
21146        } && test -s conftest$ac_exeext &&
21147        $as_test_x conftest$ac_exeext; then
21148   ac_cv_search_sem_init=$ac_res
21149 else
21150   echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153
21154 fi
21155
21156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21157       conftest$ac_exeext
21158   if test "${ac_cv_search_sem_init+set}" = set; then
21159   break
21160 fi
21161 done
21162 if test "${ac_cv_search_sem_init+set}" = set; then
21163   :
21164 else
21165   ac_cv_search_sem_init=no
21166 fi
21167 rm conftest.$ac_ext
21168 LIBS=$ac_func_search_save_LIBS
21169 fi
21170 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21171 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21172 ac_res=$ac_cv_search_sem_init
21173 if test "$ac_res" != no; then
21174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21175
21176 else
21177   { { 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
21178 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;}
21179    { (exit 1); exit 1; }; }
21180
21181 fi
21182
21183 fi
21184
21185
21186 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21187 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21188 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21189   echo $ECHO_N "(cached) $ECHO_C" >&6
21190 else
21191   ac_check_lib_save_LIBS=$LIBS
21192 LIBS="-lsocket  $LIBS"
21193 cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199
21200 /* Override any GCC internal prototype to avoid an error.
21201    Use char because int might match the return type of a GCC
21202    builtin and then its argument prototype would still apply.  */
21203 #ifdef __cplusplus
21204 extern "C"
21205 #endif
21206 char getsockname ();
21207 int
21208 main ()
21209 {
21210 return getsockname ();
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext conftest$ac_exeext
21216 if { (ac_try="$ac_link"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_link") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest$ac_exeext &&
21232        $as_test_x conftest$ac_exeext; then
21233   ac_cv_lib_socket_getsockname=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238         ac_cv_lib_socket_getsockname=no
21239 fi
21240
21241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21242       conftest$ac_exeext conftest.$ac_ext
21243 LIBS=$ac_check_lib_save_LIBS
21244 fi
21245 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21246 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21247 if test $ac_cv_lib_socket_getsockname = yes; then
21248   cat >>confdefs.h <<_ACEOF
21249 #define HAVE_LIBSOCKET 1
21250 _ACEOF
21251
21252   LIBS="-lsocket $LIBS"
21253
21254 fi
21255
21256
21257
21258 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21259 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21260 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21261   echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263   ac_check_lib_save_LIBS=$LIBS
21264 LIBS="-lresolv  $LIBS"
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271
21272 /* Override any GCC internal prototype to avoid an error.
21273    Use char because int might match the return type of a GCC
21274    builtin and then its argument prototype would still apply.  */
21275 #ifdef __cplusplus
21276 extern "C"
21277 #endif
21278 char inet_aton ();
21279 int
21280 main ()
21281 {
21282 return inet_aton ();
21283   ;
21284   return 0;
21285 }
21286 _ACEOF
21287 rm -f conftest.$ac_objext conftest$ac_exeext
21288 if { (ac_try="$ac_link"
21289 case "(($ac_try" in
21290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291   *) ac_try_echo=$ac_try;;
21292 esac
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294   (eval "$ac_link") 2>conftest.er1
21295   ac_status=$?
21296   grep -v '^ *+' conftest.er1 >conftest.err
21297   rm -f conftest.er1
21298   cat conftest.err >&5
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); } && {
21301          test -z "$ac_c_werror_flag" ||
21302          test ! -s conftest.err
21303        } && test -s conftest$ac_exeext &&
21304        $as_test_x conftest$ac_exeext; then
21305   ac_cv_lib_resolv_inet_aton=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310         ac_cv_lib_resolv_inet_aton=no
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21314       conftest$ac_exeext conftest.$ac_ext
21315 LIBS=$ac_check_lib_save_LIBS
21316 fi
21317 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21318 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21319 if test $ac_cv_lib_resolv_inet_aton = yes; then
21320   cat >>confdefs.h <<_ACEOF
21321 #define HAVE_LIBRESOLV 1
21322 _ACEOF
21323
21324   LIBS="-lresolv $LIBS"
21325
21326 fi
21327
21328
21329
21330 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21331 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21332 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335   ac_check_lib_save_LIBS=$LIBS
21336 LIBS="-lnsl  $LIBS"
21337 cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h.  */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h.  */
21343
21344 /* Override any GCC internal prototype to avoid an error.
21345    Use char because int might match the return type of a GCC
21346    builtin and then its argument prototype would still apply.  */
21347 #ifdef __cplusplus
21348 extern "C"
21349 #endif
21350 char inet_ntoa ();
21351 int
21352 main ()
21353 {
21354 return inet_ntoa ();
21355   ;
21356   return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest.$ac_objext conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_link") 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } && {
21373          test -z "$ac_c_werror_flag" ||
21374          test ! -s conftest.err
21375        } && test -s conftest$ac_exeext &&
21376        $as_test_x conftest$ac_exeext; then
21377   ac_cv_lib_nsl_inet_ntoa=yes
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382         ac_cv_lib_nsl_inet_ntoa=no
21383 fi
21384
21385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21386       conftest$ac_exeext conftest.$ac_ext
21387 LIBS=$ac_check_lib_save_LIBS
21388 fi
21389 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21390 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21391 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21392   cat >>confdefs.h <<_ACEOF
21393 #define HAVE_LIBNSL 1
21394 _ACEOF
21395
21396   LIBS="-lnsl $LIBS"
21397
21398 fi
21399
21400
21401 OPENSSL_LIBS=
21402 if test "x$WITH_OPENSSL" = xyes; then
21403   old_LIBS=$LIBS
21404   old_LDFLAGS="$LDFLAGS"
21405   if test "x$OPENSSL_LIB_DIR" != "x"; then
21406     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
21407   fi
21408   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21409 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21410 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   ac_check_lib_save_LIBS=$LIBS
21414 LIBS="-lcrypto  $LIBS"
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421
21422 /* Override any GCC internal prototype to avoid an error.
21423    Use char because int might match the return type of a GCC
21424    builtin and then its argument prototype would still apply.  */
21425 #ifdef __cplusplus
21426 extern "C"
21427 #endif
21428 char DH_new ();
21429 int
21430 main ()
21431 {
21432 return DH_new ();
21433   ;
21434   return 0;
21435 }
21436 _ACEOF
21437 rm -f conftest.$ac_objext conftest$ac_exeext
21438 if { (ac_try="$ac_link"
21439 case "(($ac_try" in
21440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441   *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444   (eval "$ac_link") 2>conftest.er1
21445   ac_status=$?
21446   grep -v '^ *+' conftest.er1 >conftest.err
21447   rm -f conftest.er1
21448   cat conftest.err >&5
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); } && {
21451          test -z "$ac_c_werror_flag" ||
21452          test ! -s conftest.err
21453        } && test -s conftest$ac_exeext &&
21454        $as_test_x conftest$ac_exeext; then
21455   ac_cv_lib_crypto_DH_new=yes
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460         ac_cv_lib_crypto_DH_new=no
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21464       conftest$ac_exeext conftest.$ac_ext
21465 LIBS=$ac_check_lib_save_LIBS
21466 fi
21467 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21468 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21469 if test $ac_cv_lib_crypto_DH_new = yes; then
21470
21471         LIBS="-lcrypto $LIBS"
21472
21473 cat >>confdefs.h <<\_ACEOF
21474 #define HAVE_LIBCRYPTO 1
21475 _ACEOF
21476
21477         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21478 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21479 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21480   echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482   ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-lssl  $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491 /* Override any GCC internal prototype to avoid an error.
21492    Use char because int might match the return type of a GCC
21493    builtin and then its argument prototype would still apply.  */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char SSL_new ();
21498 int
21499 main ()
21500 {
21501 return SSL_new ();
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_link") 2>conftest.er1
21514   ac_status=$?
21515   grep -v '^ *+' conftest.er1 >conftest.err
21516   rm -f conftest.er1
21517   cat conftest.err >&5
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } && {
21520          test -z "$ac_c_werror_flag" ||
21521          test ! -s conftest.err
21522        } && test -s conftest$ac_exeext &&
21523        $as_test_x conftest$ac_exeext; then
21524   ac_cv_lib_ssl_SSL_new=yes
21525 else
21526   echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529         ac_cv_lib_ssl_SSL_new=no
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21533       conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21535 fi
21536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21537 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21538 if test $ac_cv_lib_ssl_SSL_new = yes; then
21539
21540
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_LIBSSL 1
21543 _ACEOF
21544
21545                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21546                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21547                 fi
21548                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21549
21550 fi
21551
21552
21553 fi
21554
21555   LIBS=$old_LIBS
21556   LDFLAGS="$old_LDFLAGS"
21557 fi
21558
21559
21560 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21561 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21562 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21563   echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565   ac_check_lib_save_LIBS=$LIBS
21566 LIBS="-lws2_32  $LIBS"
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573
21574 /* Override any GCC internal prototype to avoid an error.
21575    Use char because int might match the return type of a GCC
21576    builtin and then its argument prototype would still apply.  */
21577 #ifdef __cplusplus
21578 extern "C"
21579 #endif
21580 char htonl ();
21581 int
21582 main ()
21583 {
21584 return htonl ();
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 rm -f conftest.$ac_objext conftest$ac_exeext
21590 if { (ac_try="$ac_link"
21591 case "(($ac_try" in
21592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593   *) ac_try_echo=$ac_try;;
21594 esac
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596   (eval "$ac_link") 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && {
21603          test -z "$ac_c_werror_flag" ||
21604          test ! -s conftest.err
21605        } && test -s conftest$ac_exeext &&
21606        $as_test_x conftest$ac_exeext; then
21607   ac_cv_lib_ws2_32_htonl=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         ac_cv_lib_ws2_32_htonl=no
21613 fi
21614
21615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21616       conftest$ac_exeext conftest.$ac_ext
21617 LIBS=$ac_check_lib_save_LIBS
21618 fi
21619 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21620 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21621 if test $ac_cv_lib_ws2_32_htonl = yes; then
21622   cat >>confdefs.h <<_ACEOF
21623 #define HAVE_LIBWS2_32 1
21624 _ACEOF
21625
21626   LIBS="-lws2_32 $LIBS"
21627
21628 fi
21629
21630
21631 PCAP_LIBS=
21632 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21633 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21634 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21635   echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637   ac_check_lib_save_LIBS=$LIBS
21638 LIBS="-lpcap  $LIBS"
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645
21646 /* Override any GCC internal prototype to avoid an error.
21647    Use char because int might match the return type of a GCC
21648    builtin and then its argument prototype would still apply.  */
21649 #ifdef __cplusplus
21650 extern "C"
21651 #endif
21652 char pcap_open_live ();
21653 int
21654 main ()
21655 {
21656 return pcap_open_live ();
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665   *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668   (eval "$ac_link") 2>conftest.er1
21669   ac_status=$?
21670   grep -v '^ *+' conftest.er1 >conftest.err
21671   rm -f conftest.er1
21672   cat conftest.err >&5
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } && {
21675          test -z "$ac_c_werror_flag" ||
21676          test ! -s conftest.err
21677        } && test -s conftest$ac_exeext &&
21678        $as_test_x conftest$ac_exeext; then
21679   ac_cv_lib_pcap_pcap_open_live=yes
21680 else
21681   echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684         ac_cv_lib_pcap_pcap_open_live=no
21685 fi
21686
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688       conftest$ac_exeext conftest.$ac_ext
21689 LIBS=$ac_check_lib_save_LIBS
21690 fi
21691 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21692 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21693 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21694    PCAP_LIBS="-lpcap"
21695
21696 cat >>confdefs.h <<\_ACEOF
21697 #define HAVE_LIBPCAP 1
21698 _ACEOF
21699
21700
21701 else
21702    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21703 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21704 fi
21705
21706
21707
21708   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21709 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21710 if test "${ac_cv_lib_readline+set}" = set; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713
21714     ORIG_LIBS=$LIBS
21715     for readline_lib in readline edit editline; do
21716       for termcap_lib in "" termcap curses ncurses; do
21717         if test -z "$termcap_lib"; then
21718           TRY_LIB="-l$readline_lib"
21719         else
21720           TRY_LIB="-l$readline_lib -l$termcap_lib"
21721         fi
21722         LIBS="$ORIG_LIBS $TRY_LIB"
21723         cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h.  */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h.  */
21729
21730 /* Override any GCC internal prototype to avoid an error.
21731    Use char because int might match the return type of a GCC
21732    builtin and then its argument prototype would still apply.  */
21733 #ifdef __cplusplus
21734 extern "C"
21735 #endif
21736 char readline ();
21737 int
21738 main ()
21739 {
21740 return readline ();
21741   ;
21742   return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest.$ac_objext conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749   *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752   (eval "$ac_link") 2>conftest.er1
21753   ac_status=$?
21754   grep -v '^ *+' conftest.er1 >conftest.err
21755   rm -f conftest.er1
21756   cat conftest.err >&5
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); } && {
21759          test -z "$ac_c_werror_flag" ||
21760          test ! -s conftest.err
21761        } && test -s conftest$ac_exeext &&
21762        $as_test_x conftest$ac_exeext; then
21763   ac_cv_lib_readline="$TRY_LIB"
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768
21769 fi
21770
21771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21772       conftest$ac_exeext conftest.$ac_ext
21773         if test -n "$ac_cv_lib_readline"; then
21774           LIBREADLINE="$TRY_LIB"
21775
21776           break
21777         fi
21778       done
21779       if test -n "$ac_cv_lib_readline"; then
21780         break
21781       fi
21782     done
21783     if test -z "$ac_cv_lib_readline"; then
21784       ac_cv_lib_readline="no"
21785     fi
21786     LIBS=$ORIG_LIBS
21787
21788 fi
21789 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21790 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21791
21792   if test "$ac_cv_lib_readline" != "no"; then
21793
21794 cat >>confdefs.h <<\_ACEOF
21795 #define HAVE_LIBREADLINE 1
21796 _ACEOF
21797
21798
21799
21800 for ac_header in readline.h readline/readline.h
21801 do
21802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807   echo $ECHO_N "(cached) $ECHO_C" >&6
21808 fi
21809 ac_res=`eval echo '${'$as_ac_Header'}'`
21810                { echo "$as_me:$LINENO: result: $ac_res" >&5
21811 echo "${ECHO_T}$ac_res" >&6; }
21812 else
21813   # Is the header compilable?
21814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h.  */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h.  */
21822 $ac_includes_default
21823 #include <$ac_header>
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_compile") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } && {
21839          test -z "$ac_c_werror_flag" ||
21840          test ! -s conftest.err
21841        } && test -s conftest.$ac_objext; then
21842   ac_header_compiler=yes
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847         ac_header_compiler=no
21848 fi
21849
21850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21852 echo "${ECHO_T}$ac_header_compiler" >&6; }
21853
21854 # Is the header present?
21855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863 #include <$ac_header>
21864 _ACEOF
21865 if { (ac_try="$ac_cpp conftest.$ac_ext"
21866 case "(($ac_try" in
21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } >/dev/null && {
21878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21879          test ! -s conftest.err
21880        }; then
21881   ac_header_preproc=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886   ac_header_preproc=no
21887 fi
21888
21889 rm -f conftest.err conftest.$ac_ext
21890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6; }
21892
21893 # So?  What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21895   yes:no: )
21896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21900     ac_header_preproc=yes
21901     ;;
21902   no:yes:* )
21903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21915
21916     ;;
21917 esac
21918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21921   echo $ECHO_N "(cached) $ECHO_C" >&6
21922 else
21923   eval "$as_ac_Header=\$ac_header_preproc"
21924 fi
21925 ac_res=`eval echo '${'$as_ac_Header'}'`
21926                { echo "$as_me:$LINENO: result: $ac_res" >&5
21927 echo "${ECHO_T}$ac_res" >&6; }
21928
21929 fi
21930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931   cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21933 _ACEOF
21934
21935 fi
21936
21937 done
21938
21939     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21940 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21941 if test "${ac_cv_lib_readline_history+set}" = set; then
21942   echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944
21945       ac_cv_lib_readline_history="no"
21946       cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952
21953 /* Override any GCC internal prototype to avoid an error.
21954    Use char because int might match the return type of a GCC
21955    builtin and then its argument prototype would still apply.  */
21956 #ifdef __cplusplus
21957 extern "C"
21958 #endif
21959 char add_history ();
21960 int
21961 main ()
21962 {
21963 return add_history ();
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_link") 2>conftest.er1
21976   ac_status=$?
21977   grep -v '^ *+' conftest.er1 >conftest.err
21978   rm -f conftest.er1
21979   cat conftest.err >&5
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); } && {
21982          test -z "$ac_c_werror_flag" ||
21983          test ! -s conftest.err
21984        } && test -s conftest$ac_exeext &&
21985        $as_test_x conftest$ac_exeext; then
21986   ac_cv_lib_readline_history="yes"
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991
21992 fi
21993
21994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21995       conftest$ac_exeext conftest.$ac_ext
21996
21997 fi
21998 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21999 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
22000     if test "$ac_cv_lib_readline_history" = "yes"; then
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define HAVE_READLINE_HISTORY 1
22004 _ACEOF
22005
22006
22007
22008 for ac_header in history.h readline/history.h
22009 do
22010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22015   echo $ECHO_N "(cached) $ECHO_C" >&6
22016 fi
22017 ac_res=`eval echo '${'$as_ac_Header'}'`
22018                { echo "$as_me:$LINENO: result: $ac_res" >&5
22019 echo "${ECHO_T}$ac_res" >&6; }
22020 else
22021   # Is the header compilable?
22022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 $ac_includes_default
22031 #include <$ac_header>
22032 _ACEOF
22033 rm -f conftest.$ac_objext
22034 if { (ac_try="$ac_compile"
22035 case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_compile") 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } && {
22047          test -z "$ac_c_werror_flag" ||
22048          test ! -s conftest.err
22049        } && test -s conftest.$ac_objext; then
22050   ac_header_compiler=yes
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055         ac_header_compiler=no
22056 fi
22057
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22060 echo "${ECHO_T}$ac_header_compiler" >&6; }
22061
22062 # Is the header present?
22063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071 #include <$ac_header>
22072 _ACEOF
22073 if { (ac_try="$ac_cpp conftest.$ac_ext"
22074 case "(($ac_try" in
22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076   *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22080   ac_status=$?
22081   grep -v '^ *+' conftest.er1 >conftest.err
22082   rm -f conftest.er1
22083   cat conftest.err >&5
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); } >/dev/null && {
22086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22087          test ! -s conftest.err
22088        }; then
22089   ac_header_preproc=yes
22090 else
22091   echo "$as_me: failed program was:" >&5
22092 sed 's/^/| /' conftest.$ac_ext >&5
22093
22094   ac_header_preproc=no
22095 fi
22096
22097 rm -f conftest.err conftest.$ac_ext
22098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22099 echo "${ECHO_T}$ac_header_preproc" >&6; }
22100
22101 # So?  What about this header?
22102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22103   yes:no: )
22104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22108     ac_header_preproc=yes
22109     ;;
22110   no:yes:* )
22111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22123
22124     ;;
22125 esac
22126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129   echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131   eval "$as_ac_Header=\$ac_header_preproc"
22132 fi
22133 ac_res=`eval echo '${'$as_ac_Header'}'`
22134                { echo "$as_me:$LINENO: result: $ac_res" >&5
22135 echo "${ECHO_T}$ac_res" >&6; }
22136
22137 fi
22138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22139   cat >>confdefs.h <<_ACEOF
22140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22141 _ACEOF
22142
22143 fi
22144
22145 done
22146
22147     fi
22148   fi
22149
22150
22151
22152 case "$host" in
22153 *-interix*)
22154         CFLAGS="$CFLAGS -D_ALL_SOURCE"
22155         ;;
22156 *-darwin*)
22157         CFLAGS="$CFLAGS -DDARWIN"
22158         LIBS="-framework DirectoryService $LIBS"
22159         ;;
22160 esac
22161
22162
22163
22164
22165
22166
22167 ac_header_dirent=no
22168 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22169   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22170 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22171 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173   echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175   cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 #include <sys/types.h>
22182 #include <$ac_hdr>
22183
22184 int
22185 main ()
22186 {
22187 if ((DIR *) 0)
22188 return 0;
22189   ;
22190   return 0;
22191 }
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197   *) ac_try_echo=$ac_try;;
22198 esac
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200   (eval "$ac_compile") 2>conftest.er1
22201   ac_status=$?
22202   grep -v '^ *+' conftest.er1 >conftest.err
22203   rm -f conftest.er1
22204   cat conftest.err >&5
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); } && {
22207          test -z "$ac_c_werror_flag" ||
22208          test ! -s conftest.err
22209        } && test -s conftest.$ac_objext; then
22210   eval "$as_ac_Header=yes"
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         eval "$as_ac_Header=no"
22216 fi
22217
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 fi
22220 ac_res=`eval echo '${'$as_ac_Header'}'`
22221                { echo "$as_me:$LINENO: result: $ac_res" >&5
22222 echo "${ECHO_T}$ac_res" >&6; }
22223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22224   cat >>confdefs.h <<_ACEOF
22225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22226 _ACEOF
22227
22228 ac_header_dirent=$ac_hdr; break
22229 fi
22230
22231 done
22232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22233 if test $ac_header_dirent = dirent.h; then
22234   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22236 if test "${ac_cv_search_opendir+set}" = set; then
22237   echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239   ac_func_search_save_LIBS=$LIBS
22240 cat >conftest.$ac_ext <<_ACEOF
22241 /* confdefs.h.  */
22242 _ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h.  */
22246
22247 /* Override any GCC internal prototype to avoid an error.
22248    Use char because int might match the return type of a GCC
22249    builtin and then its argument prototype would still apply.  */
22250 #ifdef __cplusplus
22251 extern "C"
22252 #endif
22253 char opendir ();
22254 int
22255 main ()
22256 {
22257 return opendir ();
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 for ac_lib in '' dir; do
22263   if test -z "$ac_lib"; then
22264     ac_res="none required"
22265   else
22266     ac_res=-l$ac_lib
22267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22268   fi
22269   rm -f conftest.$ac_objext conftest$ac_exeext
22270 if { (ac_try="$ac_link"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_link") 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && {
22283          test -z "$ac_c_werror_flag" ||
22284          test ! -s conftest.err
22285        } && test -s conftest$ac_exeext &&
22286        $as_test_x conftest$ac_exeext; then
22287   ac_cv_search_opendir=$ac_res
22288 else
22289   echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292
22293 fi
22294
22295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22296       conftest$ac_exeext
22297   if test "${ac_cv_search_opendir+set}" = set; then
22298   break
22299 fi
22300 done
22301 if test "${ac_cv_search_opendir+set}" = set; then
22302   :
22303 else
22304   ac_cv_search_opendir=no
22305 fi
22306 rm conftest.$ac_ext
22307 LIBS=$ac_func_search_save_LIBS
22308 fi
22309 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22310 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22311 ac_res=$ac_cv_search_opendir
22312 if test "$ac_res" != no; then
22313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22314
22315 fi
22316
22317 else
22318   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22319 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22320 if test "${ac_cv_search_opendir+set}" = set; then
22321   echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323   ac_func_search_save_LIBS=$LIBS
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330
22331 /* Override any GCC internal prototype to avoid an error.
22332    Use char because int might match the return type of a GCC
22333    builtin and then its argument prototype would still apply.  */
22334 #ifdef __cplusplus
22335 extern "C"
22336 #endif
22337 char opendir ();
22338 int
22339 main ()
22340 {
22341 return opendir ();
22342   ;
22343   return 0;
22344 }
22345 _ACEOF
22346 for ac_lib in '' x; do
22347   if test -z "$ac_lib"; then
22348     ac_res="none required"
22349   else
22350     ac_res=-l$ac_lib
22351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22352   fi
22353   rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (ac_try="$ac_link"
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_link") 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_exeext &&
22370        $as_test_x conftest$ac_exeext; then
22371   ac_cv_search_opendir=$ac_res
22372 else
22373   echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376
22377 fi
22378
22379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22380       conftest$ac_exeext
22381   if test "${ac_cv_search_opendir+set}" = set; then
22382   break
22383 fi
22384 done
22385 if test "${ac_cv_search_opendir+set}" = set; then
22386   :
22387 else
22388   ac_cv_search_opendir=no
22389 fi
22390 rm conftest.$ac_ext
22391 LIBS=$ac_func_search_save_LIBS
22392 fi
22393 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22394 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22395 ac_res=$ac_cv_search_opendir
22396 if test "$ac_res" != no; then
22397   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22398
22399 fi
22400
22401 fi
22402
22403 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22404 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22405 if test "${ac_cv_header_stdc+set}" = set; then
22406   echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408   cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h.  */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h.  */
22414 #include <stdlib.h>
22415 #include <stdarg.h>
22416 #include <string.h>
22417 #include <float.h>
22418
22419 int
22420 main ()
22421 {
22422
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext
22428 if { (ac_try="$ac_compile"
22429 case "(($ac_try" in
22430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431   *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434   (eval "$ac_compile") 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } && {
22441          test -z "$ac_c_werror_flag" ||
22442          test ! -s conftest.err
22443        } && test -s conftest.$ac_objext; then
22444   ac_cv_header_stdc=yes
22445 else
22446   echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22448
22449         ac_cv_header_stdc=no
22450 fi
22451
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453
22454 if test $ac_cv_header_stdc = yes; then
22455   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22456   cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462 #include <string.h>
22463
22464 _ACEOF
22465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22466   $EGREP "memchr" >/dev/null 2>&1; then
22467   :
22468 else
22469   ac_cv_header_stdc=no
22470 fi
22471 rm -f conftest*
22472
22473 fi
22474
22475 if test $ac_cv_header_stdc = yes; then
22476   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22477   cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483 #include <stdlib.h>
22484
22485 _ACEOF
22486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22487   $EGREP "free" >/dev/null 2>&1; then
22488   :
22489 else
22490   ac_cv_header_stdc=no
22491 fi
22492 rm -f conftest*
22493
22494 fi
22495
22496 if test $ac_cv_header_stdc = yes; then
22497   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22498   if test "$cross_compiling" = yes; then
22499   :
22500 else
22501   cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 #include <ctype.h>
22508 #include <stdlib.h>
22509 #if ((' ' & 0x0FF) == 0x020)
22510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22512 #else
22513 # define ISLOWER(c) \
22514                    (('a' <= (c) && (c) <= 'i') \
22515                      || ('j' <= (c) && (c) <= 'r') \
22516                      || ('s' <= (c) && (c) <= 'z'))
22517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22518 #endif
22519
22520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22521 int
22522 main ()
22523 {
22524   int i;
22525   for (i = 0; i < 256; i++)
22526     if (XOR (islower (i), ISLOWER (i))
22527         || toupper (i) != TOUPPER (i))
22528       return 2;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_link") 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22543   { (case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_try") 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   :
22553 else
22554   echo "$as_me: program exited with status $ac_status" >&5
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558 ( exit $ac_status )
22559 ac_cv_header_stdc=no
22560 fi
22561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22562 fi
22563
22564
22565 fi
22566 fi
22567 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22568 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22569 if test $ac_cv_header_stdc = yes; then
22570
22571 cat >>confdefs.h <<\_ACEOF
22572 #define STDC_HEADERS 1
22573 _ACEOF
22574
22575 fi
22576
22577 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22578 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22579 if test "${ac_cv_header_time+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 #include <sys/types.h>
22589 #include <sys/time.h>
22590 #include <time.h>
22591
22592 int
22593 main ()
22594 {
22595 if ((struct tm *) 0)
22596 return 0;
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605   *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608   (eval "$ac_compile") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } && {
22615          test -z "$ac_c_werror_flag" ||
22616          test ! -s conftest.err
22617        } && test -s conftest.$ac_objext; then
22618   ac_cv_header_time=yes
22619 else
22620   echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623         ac_cv_header_time=no
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 fi
22628 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22629 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22630 if test $ac_cv_header_time = yes; then
22631
22632 cat >>confdefs.h <<\_ACEOF
22633 #define TIME_WITH_SYS_TIME 1
22634 _ACEOF
22635
22636 fi
22637
22638 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22639 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22640 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22641   echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643   cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 #include <sys/types.h>
22650 #include <sys/wait.h>
22651 #ifndef WEXITSTATUS
22652 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22653 #endif
22654 #ifndef WIFEXITED
22655 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22656 #endif
22657
22658 int
22659 main ()
22660 {
22661   int s;
22662   wait (&s);
22663   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672   *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675   (eval "$ac_compile") 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } && {
22682          test -z "$ac_c_werror_flag" ||
22683          test ! -s conftest.err
22684        } && test -s conftest.$ac_objext; then
22685   ac_cv_header_sys_wait_h=yes
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         ac_cv_header_sys_wait_h=no
22691 fi
22692
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 fi
22695 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22696 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22697 if test $ac_cv_header_sys_wait_h = yes; then
22698
22699 cat >>confdefs.h <<\_ACEOF
22700 #define HAVE_SYS_WAIT_H 1
22701 _ACEOF
22702
22703 fi
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743 for ac_header in \
22744         unistd.h \
22745         crypt.h \
22746         errno.h \
22747         resource.h \
22748         sys/resource.h \
22749         getopt.h \
22750         malloc.h \
22751         utmp.h \
22752         utmpx.h \
22753         signal.h \
22754         sys/select.h \
22755         syslog.h \
22756         inttypes.h \
22757         stdint.h \
22758         stdio.h \
22759         netdb.h \
22760         semaphore.h \
22761         arpa/inet.h \
22762         netinet/in.h \
22763         sys/types.h \
22764         sys/socket.h \
22765         winsock.h \
22766         sys/time.h \
22767         sys/wait.h \
22768         sys/security.h \
22769         fcntl.h \
22770         sys/fcntl.h \
22771         sys/prctl.h \
22772         sys/un.h \
22773         glob.h \
22774         prot.h \
22775         pwd.h \
22776         grp.h \
22777         stddef.h \
22778         fnmatch.h \
22779         sia.h \
22780         siad.h
22781
22782 do
22783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22785   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22788   echo $ECHO_N "(cached) $ECHO_C" >&6
22789 fi
22790 ac_res=`eval echo '${'$as_ac_Header'}'`
22791                { echo "$as_me:$LINENO: result: $ac_res" >&5
22792 echo "${ECHO_T}$ac_res" >&6; }
22793 else
22794   # Is the header compilable?
22795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803 $ac_includes_default
22804 #include <$ac_header>
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (ac_try="$ac_compile"
22808 case "(($ac_try" in
22809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810   *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813   (eval "$ac_compile") 2>conftest.er1
22814   ac_status=$?
22815   grep -v '^ *+' conftest.er1 >conftest.err
22816   rm -f conftest.er1
22817   cat conftest.err >&5
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && {
22820          test -z "$ac_c_werror_flag" ||
22821          test ! -s conftest.err
22822        } && test -s conftest.$ac_objext; then
22823   ac_header_compiler=yes
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828         ac_header_compiler=no
22829 fi
22830
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22833 echo "${ECHO_T}$ac_header_compiler" >&6; }
22834
22835 # Is the header present?
22836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22838 cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844 #include <$ac_header>
22845 _ACEOF
22846 if { (ac_try="$ac_cpp conftest.$ac_ext"
22847 case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } >/dev/null && {
22859          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22860          test ! -s conftest.err
22861        }; then
22862   ac_header_preproc=yes
22863 else
22864   echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22866
22867   ac_header_preproc=no
22868 fi
22869
22870 rm -f conftest.err conftest.$ac_ext
22871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22872 echo "${ECHO_T}$ac_header_preproc" >&6; }
22873
22874 # So?  What about this header?
22875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22876   yes:no: )
22877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22881     ac_header_preproc=yes
22882     ;;
22883   no:yes:* )
22884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22896
22897     ;;
22898 esac
22899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22902   echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904   eval "$as_ac_Header=\$ac_header_preproc"
22905 fi
22906 ac_res=`eval echo '${'$as_ac_Header'}'`
22907                { echo "$as_me:$LINENO: result: $ac_res" >&5
22908 echo "${ECHO_T}$ac_res" >&6; }
22909
22910 fi
22911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22912   cat >>confdefs.h <<_ACEOF
22913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22914 _ACEOF
22915
22916 fi
22917
22918 done
22919
22920
22921
22922 for ac_header in net/if.h
22923 do
22924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22928   echo $ECHO_N "(cached) $ECHO_C" >&6
22929 else
22930   cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h.  */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h.  */
22936 #ifdef HAVE_SYS_SOCKET_H
22937 # include <sys/socket.h>
22938 # endif
22939
22940
22941 #include <$ac_header>
22942 _ACEOF
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947   *) ac_try_echo=$ac_try;;
22948 esac
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950   (eval "$ac_compile") 2>conftest.er1
22951   ac_status=$?
22952   grep -v '^ *+' conftest.er1 >conftest.err
22953   rm -f conftest.er1
22954   cat conftest.err >&5
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); } && {
22957          test -z "$ac_c_werror_flag" ||
22958          test ! -s conftest.err
22959        } && test -s conftest.$ac_objext; then
22960   eval "$as_ac_Header=yes"
22961 else
22962   echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22964
22965         eval "$as_ac_Header=no"
22966 fi
22967
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 fi
22970 ac_res=`eval echo '${'$as_ac_Header'}'`
22971                { echo "$as_me:$LINENO: result: $ac_res" >&5
22972 echo "${ECHO_T}$ac_res" >&6; }
22973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22974   cat >>confdefs.h <<_ACEOF
22975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22976 _ACEOF
22977
22978 fi
22979
22980 done
22981
22982
22983 REGEX=no
22984 if test "${ac_cv_header_regex_h+set}" = set; then
22985   { echo "$as_me:$LINENO: checking for regex.h" >&5
22986 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22987 if test "${ac_cv_header_regex_h+set}" = set; then
22988   echo $ECHO_N "(cached) $ECHO_C" >&6
22989 fi
22990 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22991 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22992 else
22993   # Is the header compilable?
22994 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22995 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22996 cat >conftest.$ac_ext <<_ACEOF
22997 /* confdefs.h.  */
22998 _ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h.  */
23002 $ac_includes_default
23003 #include <regex.h>
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_compile") 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } && {
23019          test -z "$ac_c_werror_flag" ||
23020          test ! -s conftest.err
23021        } && test -s conftest.$ac_objext; then
23022   ac_header_compiler=yes
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027         ac_header_compiler=no
23028 fi
23029
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23032 echo "${ECHO_T}$ac_header_compiler" >&6; }
23033
23034 # Is the header present?
23035 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23036 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23037 cat >conftest.$ac_ext <<_ACEOF
23038 /* confdefs.h.  */
23039 _ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h.  */
23043 #include <regex.h>
23044 _ACEOF
23045 if { (ac_try="$ac_cpp conftest.$ac_ext"
23046 case "(($ac_try" in
23047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048   *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23052   ac_status=$?
23053   grep -v '^ *+' conftest.er1 >conftest.err
23054   rm -f conftest.er1
23055   cat conftest.err >&5
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } >/dev/null && {
23058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23059          test ! -s conftest.err
23060        }; then
23061   ac_header_preproc=yes
23062 else
23063   echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066   ac_header_preproc=no
23067 fi
23068
23069 rm -f conftest.err conftest.$ac_ext
23070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23071 echo "${ECHO_T}$ac_header_preproc" >&6; }
23072
23073 # So?  What about this header?
23074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23075   yes:no: )
23076     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23077 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23078     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23079 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23080     ac_header_preproc=yes
23081     ;;
23082   no:yes:* )
23083     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23084 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23085     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23086 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23087     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23088 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23089     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23090 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23091     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23092 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23093     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23094 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23095
23096     ;;
23097 esac
23098 { echo "$as_me:$LINENO: checking for regex.h" >&5
23099 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23100 if test "${ac_cv_header_regex_h+set}" = set; then
23101   echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103   ac_cv_header_regex_h=$ac_header_preproc
23104 fi
23105 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23106 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23107
23108 fi
23109 if test $ac_cv_header_regex_h = yes; then
23110
23111 cat >>confdefs.h <<\_ACEOF
23112 #define HAVE_REGEX_H
23113 _ACEOF
23114
23115 fi
23116
23117
23118 if test "x$ac_cv_header_regex_h" = "xyes"; then
23119   REGEX_EXTENDED=no
23120   REGEX=yes
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 #include <regex.h>
23128      #ifdef REG_EXTENDED
23129        yes
23130      #endif
23131
23132 _ACEOF
23133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23134   $EGREP "yes" >/dev/null 2>&1; then
23135
23136 cat >>confdefs.h <<\_ACEOF
23137 #define HAVE_REG_EXTENDED
23138 _ACEOF
23139  REGEX_EXTENDED=yes
23140 fi
23141 rm -f conftest*
23142
23143 fi
23144
23145
23146
23147 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23148 then
23149
23150 cat >>confdefs.h <<\_ACEOF
23151 #define OSFC2
23152 _ACEOF
23153
23154 fi
23155
23156 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23157 then
23158
23159 cat >>confdefs.h <<\_ACEOF
23160 #define OSFSIA
23161 _ACEOF
23162
23163 fi
23164
23165 OPENSSL_INCLUDE="-DNO_OPENSSL"
23166 if test "x$WITH_OPENSSL" = xyes; then
23167   if test "x$OPENSSL_LIBS" = "x"; then
23168     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23169 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23170   else
23171     old_CPPFLAGS=$CPPFLAGS
23172     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23173         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23174     fi
23175         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23176
23177
23178
23179
23180
23181
23182 for ac_header in \
23183         openssl/ssl.h \
23184         openssl/crypto.h \
23185         openssl/err.h \
23186         openssl/evp.h \
23187         openssl/md5.h \
23188         openssl/md4.h \
23189         openssl/sha.h \
23190         openssl/ocsp.h \
23191         openssl/engine.h
23192 do
23193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23198   echo $ECHO_N "(cached) $ECHO_C" >&6
23199 fi
23200 ac_res=`eval echo '${'$as_ac_Header'}'`
23201                { echo "$as_me:$LINENO: result: $ac_res" >&5
23202 echo "${ECHO_T}$ac_res" >&6; }
23203 else
23204   # Is the header compilable?
23205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 $ac_includes_default
23214 #include <$ac_header>
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_compile") 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } && {
23230          test -z "$ac_c_werror_flag" ||
23231          test ! -s conftest.err
23232        } && test -s conftest.$ac_objext; then
23233   ac_header_compiler=yes
23234 else
23235   echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238         ac_header_compiler=no
23239 fi
23240
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23243 echo "${ECHO_T}$ac_header_compiler" >&6; }
23244
23245 # Is the header present?
23246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23248 cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 #include <$ac_header>
23255 _ACEOF
23256 if { (ac_try="$ac_cpp conftest.$ac_ext"
23257 case "(($ac_try" in
23258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259   *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } >/dev/null && {
23269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23270          test ! -s conftest.err
23271        }; then
23272   ac_header_preproc=yes
23273 else
23274   echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23276
23277   ac_header_preproc=no
23278 fi
23279
23280 rm -f conftest.err conftest.$ac_ext
23281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23282 echo "${ECHO_T}$ac_header_preproc" >&6; }
23283
23284 # So?  What about this header?
23285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23286   yes:no: )
23287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23291     ac_header_preproc=yes
23292     ;;
23293   no:yes:* )
23294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23306
23307     ;;
23308 esac
23309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23312   echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314   eval "$as_ac_Header=\$ac_header_preproc"
23315 fi
23316 ac_res=`eval echo '${'$as_ac_Header'}'`
23317                { echo "$as_me:$LINENO: result: $ac_res" >&5
23318 echo "${ECHO_T}$ac_res" >&6; }
23319
23320 fi
23321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23322   cat >>confdefs.h <<_ACEOF
23323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23324 _ACEOF
23325
23326 else
23327   OPENSSL_LIBS=
23328
23329 fi
23330
23331 done
23332
23333     if test "x$OPENSSL_LIBS" != "x"; then
23334         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23335 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23336         cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h.  */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h.  */
23342 #include <openssl/crypto.h>
23343              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23344              yes
23345              #endif
23346
23347 _ACEOF
23348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23349   $EGREP "yes" >/dev/null 2>&1; then
23350   goodssl="yes"
23351 fi
23352 rm -f conftest*
23353
23354         if test "x$goodssl" != "xyes"; then
23355             { echo "$as_me:$LINENO: result: no" >&5
23356 echo "${ECHO_T}no" >&6; }
23357             OPENSSL_LIBS=
23358         else
23359             { echo "$as_me:$LINENO: result: yes" >&5
23360 echo "${ECHO_T}yes" >&6; }
23361             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23362                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23363             else
23364                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23365             fi
23366         fi
23367     fi
23368     CPPFLAGS=$old_CPPFLAGS
23369   fi
23370 fi
23371
23372
23373 export OPENSSL_LIBS
23374
23375 if test "x$PCAP_LIBS" = x; then
23376     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23377 echo "$as_me: skipping test for pcap.h." >&6;}
23378 else
23379     if test "${ac_cv_header_pcap_h+set}" = set; then
23380   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23381 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23382 if test "${ac_cv_header_pcap_h+set}" = set; then
23383   echo $ECHO_N "(cached) $ECHO_C" >&6
23384 fi
23385 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23386 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23387 else
23388   # Is the header compilable?
23389 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23390 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 $ac_includes_default
23398 #include <pcap.h>
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404   *) ac_try_echo=$ac_try;;
23405 esac
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407   (eval "$ac_compile") 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } && {
23414          test -z "$ac_c_werror_flag" ||
23415          test ! -s conftest.err
23416        } && test -s conftest.$ac_objext; then
23417   ac_header_compiler=yes
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422         ac_header_compiler=no
23423 fi
23424
23425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23427 echo "${ECHO_T}$ac_header_compiler" >&6; }
23428
23429 # Is the header present?
23430 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23431 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23432 cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438 #include <pcap.h>
23439 _ACEOF
23440 if { (ac_try="$ac_cpp conftest.$ac_ext"
23441 case "(($ac_try" in
23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443   *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } >/dev/null && {
23453          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23454          test ! -s conftest.err
23455        }; then
23456   ac_header_preproc=yes
23457 else
23458   echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461   ac_header_preproc=no
23462 fi
23463
23464 rm -f conftest.err conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 echo "${ECHO_T}$ac_header_preproc" >&6; }
23467
23468 # So?  What about this header?
23469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23470   yes:no: )
23471     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23472 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23474 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23475     ac_header_preproc=yes
23476     ;;
23477   no:yes:* )
23478     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23479 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23480     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23481 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23482     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23483 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23485 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23487 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23489 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23490
23491     ;;
23492 esac
23493 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23494 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23495 if test "${ac_cv_header_pcap_h+set}" = set; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498   ac_cv_header_pcap_h=$ac_header_preproc
23499 fi
23500 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23501 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23502
23503 fi
23504 if test $ac_cv_header_pcap_h = yes; then
23505
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_PCAP_H 1
23508 _ACEOF
23509
23510 else
23511    PCAP_LIBS=
23512         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23513 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23514
23515 fi
23516
23517
23518
23519     { echo "$as_me:$LINENO: checking for pcap_fopen_offline in -lpcap" >&5
23520 echo $ECHO_N "checking for pcap_fopen_offline in -lpcap... $ECHO_C" >&6; }
23521 if test "${ac_cv_lib_pcap_pcap_fopen_offline+set}" = set; then
23522   echo $ECHO_N "(cached) $ECHO_C" >&6
23523 else
23524   ac_check_lib_save_LIBS=$LIBS
23525 LIBS="-lpcap  $LIBS"
23526 cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h.  */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h.  */
23532
23533 /* Override any GCC internal prototype to avoid an error.
23534    Use char because int might match the return type of a GCC
23535    builtin and then its argument prototype would still apply.  */
23536 #ifdef __cplusplus
23537 extern "C"
23538 #endif
23539 char pcap_fopen_offline ();
23540 int
23541 main ()
23542 {
23543 return pcap_fopen_offline ();
23544   ;
23545   return 0;
23546 }
23547 _ACEOF
23548 rm -f conftest.$ac_objext conftest$ac_exeext
23549 if { (ac_try="$ac_link"
23550 case "(($ac_try" in
23551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552   *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555   (eval "$ac_link") 2>conftest.er1
23556   ac_status=$?
23557   grep -v '^ *+' conftest.er1 >conftest.err
23558   rm -f conftest.er1
23559   cat conftest.err >&5
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); } && {
23562          test -z "$ac_c_werror_flag" ||
23563          test ! -s conftest.err
23564        } && test -s conftest$ac_exeext &&
23565        $as_test_x conftest$ac_exeext; then
23566   ac_cv_lib_pcap_pcap_fopen_offline=yes
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571         ac_cv_lib_pcap_pcap_fopen_offline=no
23572 fi
23573
23574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23575       conftest$ac_exeext conftest.$ac_ext
23576 LIBS=$ac_check_lib_save_LIBS
23577 fi
23578 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
23579 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
23580 if test $ac_cv_lib_pcap_pcap_fopen_offline = yes; then
23581
23582 cat >>confdefs.h <<\_ACEOF
23583 #define HAVE_PCAP_FOPEN_OFFLINE 1
23584 _ACEOF
23585
23586
23587 fi
23588
23589     { echo "$as_me:$LINENO: checking for pcap_dump_fopen in -lpcap" >&5
23590 echo $ECHO_N "checking for pcap_dump_fopen in -lpcap... $ECHO_C" >&6; }
23591 if test "${ac_cv_lib_pcap_pcap_dump_fopen+set}" = set; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594   ac_check_lib_save_LIBS=$LIBS
23595 LIBS="-lpcap  $LIBS"
23596 cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h.  */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h.  */
23602
23603 /* Override any GCC internal prototype to avoid an error.
23604    Use char because int might match the return type of a GCC
23605    builtin and then its argument prototype would still apply.  */
23606 #ifdef __cplusplus
23607 extern "C"
23608 #endif
23609 char pcap_dump_fopen ();
23610 int
23611 main ()
23612 {
23613 return pcap_dump_fopen ();
23614   ;
23615   return 0;
23616 }
23617 _ACEOF
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (ac_try="$ac_link"
23620 case "(($ac_try" in
23621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622   *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625   (eval "$ac_link") 2>conftest.er1
23626   ac_status=$?
23627   grep -v '^ *+' conftest.er1 >conftest.err
23628   rm -f conftest.er1
23629   cat conftest.err >&5
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); } && {
23632          test -z "$ac_c_werror_flag" ||
23633          test ! -s conftest.err
23634        } && test -s conftest$ac_exeext &&
23635        $as_test_x conftest$ac_exeext; then
23636   ac_cv_lib_pcap_pcap_dump_fopen=yes
23637 else
23638   echo "$as_me: failed program was:" >&5
23639 sed 's/^/| /' conftest.$ac_ext >&5
23640
23641         ac_cv_lib_pcap_pcap_dump_fopen=no
23642 fi
23643
23644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23645       conftest$ac_exeext conftest.$ac_ext
23646 LIBS=$ac_check_lib_save_LIBS
23647 fi
23648 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
23649 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
23650 if test $ac_cv_lib_pcap_pcap_dump_fopen = yes; then
23651
23652 cat >>confdefs.h <<\_ACEOF
23653 #define HAVE_PCAP_DUMP_FOPEN 1
23654 _ACEOF
23655
23656
23657 fi
23658
23659 fi
23660
23661
23662
23663 { echo "$as_me:$LINENO: checking for off_t" >&5
23664 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23665 if test "${ac_cv_type_off_t+set}" = set; then
23666   echo $ECHO_N "(cached) $ECHO_C" >&6
23667 else
23668   cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h.  */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h.  */
23674 $ac_includes_default
23675 typedef off_t ac__type_new_;
23676 int
23677 main ()
23678 {
23679 if ((ac__type_new_ *) 0)
23680   return 0;
23681 if (sizeof (ac__type_new_))
23682   return 0;
23683   ;
23684   return 0;
23685 }
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691   *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694   (eval "$ac_compile") 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && {
23701          test -z "$ac_c_werror_flag" ||
23702          test ! -s conftest.err
23703        } && test -s conftest.$ac_objext; then
23704   ac_cv_type_off_t=yes
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709         ac_cv_type_off_t=no
23710 fi
23711
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713 fi
23714 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23715 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23716 if test $ac_cv_type_off_t = yes; then
23717   :
23718 else
23719
23720 cat >>confdefs.h <<_ACEOF
23721 #define off_t long int
23722 _ACEOF
23723
23724 fi
23725
23726 { echo "$as_me:$LINENO: checking for pid_t" >&5
23727 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23728 if test "${ac_cv_type_pid_t+set}" = set; then
23729   echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731   cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h.  */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h.  */
23737 $ac_includes_default
23738 typedef pid_t ac__type_new_;
23739 int
23740 main ()
23741 {
23742 if ((ac__type_new_ *) 0)
23743   return 0;
23744 if (sizeof (ac__type_new_))
23745   return 0;
23746   ;
23747   return 0;
23748 }
23749 _ACEOF
23750 rm -f conftest.$ac_objext
23751 if { (ac_try="$ac_compile"
23752 case "(($ac_try" in
23753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754   *) ac_try_echo=$ac_try;;
23755 esac
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757   (eval "$ac_compile") 2>conftest.er1
23758   ac_status=$?
23759   grep -v '^ *+' conftest.er1 >conftest.err
23760   rm -f conftest.er1
23761   cat conftest.err >&5
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); } && {
23764          test -z "$ac_c_werror_flag" ||
23765          test ! -s conftest.err
23766        } && test -s conftest.$ac_objext; then
23767   ac_cv_type_pid_t=yes
23768 else
23769   echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772         ac_cv_type_pid_t=no
23773 fi
23774
23775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776 fi
23777 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23778 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23779 if test $ac_cv_type_pid_t = yes; then
23780   :
23781 else
23782
23783 cat >>confdefs.h <<_ACEOF
23784 #define pid_t int
23785 _ACEOF
23786
23787 fi
23788
23789 { echo "$as_me:$LINENO: checking for size_t" >&5
23790 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23791 if test "${ac_cv_type_size_t+set}" = set; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794   cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 $ac_includes_default
23801 typedef size_t ac__type_new_;
23802 int
23803 main ()
23804 {
23805 if ((ac__type_new_ *) 0)
23806   return 0;
23807 if (sizeof (ac__type_new_))
23808   return 0;
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext
23814 if { (ac_try="$ac_compile"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820   (eval "$ac_compile") 2>conftest.er1
23821   ac_status=$?
23822   grep -v '^ *+' conftest.er1 >conftest.err
23823   rm -f conftest.er1
23824   cat conftest.err >&5
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); } && {
23827          test -z "$ac_c_werror_flag" ||
23828          test ! -s conftest.err
23829        } && test -s conftest.$ac_objext; then
23830   ac_cv_type_size_t=yes
23831 else
23832   echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23834
23835         ac_cv_type_size_t=no
23836 fi
23837
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 fi
23840 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23841 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23842 if test $ac_cv_type_size_t = yes; then
23843   :
23844 else
23845
23846 cat >>confdefs.h <<_ACEOF
23847 #define size_t unsigned int
23848 _ACEOF
23849
23850 fi
23851
23852 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23853 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23854 if test "${ac_cv_type_uid_t+set}" = set; then
23855   echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857   cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863 #include <sys/types.h>
23864
23865 _ACEOF
23866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23867   $EGREP "uid_t" >/dev/null 2>&1; then
23868   ac_cv_type_uid_t=yes
23869 else
23870   ac_cv_type_uid_t=no
23871 fi
23872 rm -f conftest*
23873
23874 fi
23875 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23876 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23877 if test $ac_cv_type_uid_t = no; then
23878
23879 cat >>confdefs.h <<\_ACEOF
23880 #define uid_t int
23881 _ACEOF
23882
23883
23884 cat >>confdefs.h <<\_ACEOF
23885 #define gid_t int
23886 _ACEOF
23887
23888 fi
23889
23890
23891
23892   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23893 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23894 if test "${ac_cv_type_socklen_t+set}" = set; then
23895   echo $ECHO_N "(cached) $ECHO_C" >&6
23896 else
23897    ac_cv_type_socklen_t=no
23898       cat >conftest.$ac_ext <<_ACEOF
23899 /* confdefs.h.  */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h.  */
23904 #ifdef HAVE_SYS_TYPES_H
23905 #include <sys/types.h>
23906 #endif
23907 #ifdef HAVE_SYS_SOCKET_H
23908 #include <sys/socket.h>
23909 #endif
23910
23911 int
23912 main ()
23913 {
23914 socklen_t foo
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext
23920 if { (ac_try="$ac_compile"
23921 case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_compile") 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } && {
23933          test -z "$ac_c_werror_flag" ||
23934          test ! -s conftest.err
23935        } && test -s conftest.$ac_objext; then
23936   ac_cv_type_socklen_t=yes
23937 else
23938   echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23940
23941
23942 fi
23943
23944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945
23946
23947 fi
23948 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23949 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23950
23951   if test "$ac_cv_type_socklen_t" != "yes"; then
23952
23953 cat >>confdefs.h <<\_ACEOF
23954 #define socklen_t int
23955 _ACEOF
23956
23957   fi
23958
23959
23960
23961   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23962 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23963 if test "${ac_cv_type_uint8_t+set}" = set; then
23964   echo $ECHO_N "(cached) $ECHO_C" >&6
23965 else
23966    ac_cv_type_uint8_t=no
23967       cat >conftest.$ac_ext <<_ACEOF
23968 /* confdefs.h.  */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h.  */
23973 #ifdef HAVE_INTTYPES_H
23974 #include <inttypes.h>
23975 #endif
23976 #ifdef HAVE_STDINT_H
23977 #include <stdint.h>
23978 #endif
23979
23980 int
23981 main ()
23982 {
23983 uint8_t foo
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext
23989 if { (ac_try="$ac_compile"
23990 case "(($ac_try" in
23991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992   *) ac_try_echo=$ac_try;;
23993 esac
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995   (eval "$ac_compile") 2>conftest.er1
23996   ac_status=$?
23997   grep -v '^ *+' conftest.er1 >conftest.err
23998   rm -f conftest.er1
23999   cat conftest.err >&5
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); } && {
24002          test -z "$ac_c_werror_flag" ||
24003          test ! -s conftest.err
24004        } && test -s conftest.$ac_objext; then
24005   ac_cv_type_uint8_t=yes
24006 else
24007   echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24009
24010
24011 fi
24012
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24014
24015
24016 fi
24017 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
24018 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
24019
24020   if test "$ac_cv_type_uint8_t" != "yes"; then
24021
24022 cat >>confdefs.h <<\_ACEOF
24023 #define uint8_t unsigned char
24024 _ACEOF
24025
24026   fi
24027
24028
24029
24030   { echo "$as_me:$LINENO: checking for uint16_t" >&5
24031 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
24032 if test "${ac_cv_type_uint16_t+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035    ac_cv_type_uint16_t=no
24036       cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042 #ifdef HAVE_INTTYPES_H
24043 #include <inttypes.h>
24044 #endif
24045 #ifdef HAVE_STDINT_H
24046 #include <stdint.h>
24047 #endif
24048
24049 int
24050 main ()
24051 {
24052 uint16_t foo
24053   ;
24054   return 0;
24055 }
24056 _ACEOF
24057 rm -f conftest.$ac_objext
24058 if { (ac_try="$ac_compile"
24059 case "(($ac_try" in
24060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24061   *) ac_try_echo=$ac_try;;
24062 esac
24063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24064   (eval "$ac_compile") 2>conftest.er1
24065   ac_status=$?
24066   grep -v '^ *+' conftest.er1 >conftest.err
24067   rm -f conftest.er1
24068   cat conftest.err >&5
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); } && {
24071          test -z "$ac_c_werror_flag" ||
24072          test ! -s conftest.err
24073        } && test -s conftest.$ac_objext; then
24074   ac_cv_type_uint16_t=yes
24075 else
24076   echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078
24079
24080 fi
24081
24082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083
24084
24085 fi
24086 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24087 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24088
24089   if test "$ac_cv_type_uint16_t" != "yes"; then
24090
24091 cat >>confdefs.h <<\_ACEOF
24092 #define uint16_t unsigned short
24093 _ACEOF
24094
24095   fi
24096
24097
24098
24099   { echo "$as_me:$LINENO: checking for uint32_t" >&5
24100 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24101 if test "${ac_cv_type_uint32_t+set}" = set; then
24102   echo $ECHO_N "(cached) $ECHO_C" >&6
24103 else
24104    ac_cv_type_uint32_t=no
24105       cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h.  */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h.  */
24111 #ifdef HAVE_INTTYPES_H
24112 #include <inttypes.h>
24113 #endif
24114 #ifdef HAVE_STDINT_H
24115 #include <stdint.h>
24116 #endif
24117
24118 int
24119 main ()
24120 {
24121 uint32_t foo
24122   ;
24123   return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130   *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133   (eval "$ac_compile") 2>conftest.er1
24134   ac_status=$?
24135   grep -v '^ *+' conftest.er1 >conftest.err
24136   rm -f conftest.er1
24137   cat conftest.err >&5
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); } && {
24140          test -z "$ac_c_werror_flag" ||
24141          test ! -s conftest.err
24142        } && test -s conftest.$ac_objext; then
24143   ac_cv_type_uint32_t=yes
24144 else
24145   echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24147
24148
24149 fi
24150
24151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24152
24153
24154 fi
24155 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24156 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24157
24158   if test "$ac_cv_type_uint32_t" != "yes"; then
24159
24160 cat >>confdefs.h <<\_ACEOF
24161 #define uint32_t unsigned int
24162 _ACEOF
24163
24164   fi
24165
24166
24167 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24168 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24169 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24170   echo $ECHO_N "(cached) $ECHO_C" >&6
24171 else
24172   cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h.  */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h.  */
24178
24179 #ifdef HAVE_NETINET_IN_H
24180 #include <netinet/in.h>
24181 #endif
24182
24183
24184 typedef struct in6_addr ac__type_new_;
24185 int
24186 main ()
24187 {
24188 if ((ac__type_new_ *) 0)
24189   return 0;
24190 if (sizeof (ac__type_new_))
24191   return 0;
24192   ;
24193   return 0;
24194 }
24195 _ACEOF
24196 rm -f conftest.$ac_objext
24197 if { (ac_try="$ac_compile"
24198 case "(($ac_try" in
24199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24200   *) ac_try_echo=$ac_try;;
24201 esac
24202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24203   (eval "$ac_compile") 2>conftest.er1
24204   ac_status=$?
24205   grep -v '^ *+' conftest.er1 >conftest.err
24206   rm -f conftest.er1
24207   cat conftest.err >&5
24208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209   (exit $ac_status); } && {
24210          test -z "$ac_c_werror_flag" ||
24211          test ! -s conftest.err
24212        } && test -s conftest.$ac_objext; then
24213   ac_cv_type_struct_in6_addr=yes
24214 else
24215   echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218         ac_cv_type_struct_in6_addr=no
24219 fi
24220
24221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24222 fi
24223 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24224 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24225 if test $ac_cv_type_struct_in6_addr = yes; then
24226
24227 cat >>confdefs.h <<\_ACEOF
24228 #define HAVE_STRUCT_IN6_ADDR 1
24229 _ACEOF
24230
24231 fi
24232
24233
24234 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24235 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24236 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24237   echo $ECHO_N "(cached) $ECHO_C" >&6
24238 else
24239   cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245
24246 #ifdef HAVE_NETINET_IN_H
24247 #include <netinet/in.h>
24248 #endif
24249 #ifdef HAVE_SYS_SOCKET_H
24250 #include <sys/socket.h>
24251 #endif
24252
24253
24254 typedef struct sockaddr_storage ac__type_new_;
24255 int
24256 main ()
24257 {
24258 if ((ac__type_new_ *) 0)
24259   return 0;
24260 if (sizeof (ac__type_new_))
24261   return 0;
24262   ;
24263   return 0;
24264 }
24265 _ACEOF
24266 rm -f conftest.$ac_objext
24267 if { (ac_try="$ac_compile"
24268 case "(($ac_try" in
24269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270   *) ac_try_echo=$ac_try;;
24271 esac
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273   (eval "$ac_compile") 2>conftest.er1
24274   ac_status=$?
24275   grep -v '^ *+' conftest.er1 >conftest.err
24276   rm -f conftest.er1
24277   cat conftest.err >&5
24278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); } && {
24280          test -z "$ac_c_werror_flag" ||
24281          test ! -s conftest.err
24282        } && test -s conftest.$ac_objext; then
24283   ac_cv_type_struct_sockaddr_storage=yes
24284 else
24285   echo "$as_me: failed program was:" >&5
24286 sed 's/^/| /' conftest.$ac_ext >&5
24287
24288         ac_cv_type_struct_sockaddr_storage=no
24289 fi
24290
24291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292 fi
24293 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24294 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24295 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24296
24297 cat >>confdefs.h <<\_ACEOF
24298 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24299 _ACEOF
24300
24301 fi
24302
24303
24304 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24305 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24306 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24309   cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h.  */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h.  */
24315
24316 #ifdef HAVE_NETINET_IN_H
24317 #include <netinet/in.h>
24318 #endif
24319
24320
24321 typedef struct sockaddr_in6 ac__type_new_;
24322 int
24323 main ()
24324 {
24325 if ((ac__type_new_ *) 0)
24326   return 0;
24327 if (sizeof (ac__type_new_))
24328   return 0;
24329   ;
24330   return 0;
24331 }
24332 _ACEOF
24333 rm -f conftest.$ac_objext
24334 if { (ac_try="$ac_compile"
24335 case "(($ac_try" in
24336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337   *) ac_try_echo=$ac_try;;
24338 esac
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340   (eval "$ac_compile") 2>conftest.er1
24341   ac_status=$?
24342   grep -v '^ *+' conftest.er1 >conftest.err
24343   rm -f conftest.er1
24344   cat conftest.err >&5
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); } && {
24347          test -z "$ac_c_werror_flag" ||
24348          test ! -s conftest.err
24349        } && test -s conftest.$ac_objext; then
24350   ac_cv_type_struct_sockaddr_in6=yes
24351 else
24352   echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355         ac_cv_type_struct_sockaddr_in6=no
24356 fi
24357
24358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359 fi
24360 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24361 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24362 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24363
24364 cat >>confdefs.h <<\_ACEOF
24365 #define HAVE_STRUCT_SOCKADDR_IN6 1
24366 _ACEOF
24367
24368 fi
24369
24370
24371 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24372 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24373 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24374   echo $ECHO_N "(cached) $ECHO_C" >&6
24375 else
24376   cat >conftest.$ac_ext <<_ACEOF
24377 /* confdefs.h.  */
24378 _ACEOF
24379 cat confdefs.h >>conftest.$ac_ext
24380 cat >>conftest.$ac_ext <<_ACEOF
24381 /* end confdefs.h.  */
24382
24383 #ifdef HAVE_SYS_TYPES_H
24384 #include <sys/types.h>
24385 #endif
24386 #ifdef HAVE_SYS_SOCKET_H
24387 #include <sys/socket.h>
24388 #endif
24389 #ifdef HAVE_NETDB_H
24390 #include <netdb.h>
24391 #endif
24392
24393
24394 typedef struct addrinfo ac__type_new_;
24395 int
24396 main ()
24397 {
24398 if ((ac__type_new_ *) 0)
24399   return 0;
24400 if (sizeof (ac__type_new_))
24401   return 0;
24402   ;
24403   return 0;
24404 }
24405 _ACEOF
24406 rm -f conftest.$ac_objext
24407 if { (ac_try="$ac_compile"
24408 case "(($ac_try" in
24409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410   *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413   (eval "$ac_compile") 2>conftest.er1
24414   ac_status=$?
24415   grep -v '^ *+' conftest.er1 >conftest.err
24416   rm -f conftest.er1
24417   cat conftest.err >&5
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); } && {
24420          test -z "$ac_c_werror_flag" ||
24421          test ! -s conftest.err
24422        } && test -s conftest.$ac_objext; then
24423   ac_cv_type_struct_addrinfo=yes
24424 else
24425   echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24427
24428         ac_cv_type_struct_addrinfo=no
24429 fi
24430
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 fi
24433 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24434 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24435 if test $ac_cv_type_struct_addrinfo = yes; then
24436
24437 cat >>confdefs.h <<\_ACEOF
24438 #define HAVE_STRUCT_ADDRINFO 1
24439 _ACEOF
24440
24441 fi
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476 for ac_func in \
24477         getopt_long \
24478         lockf \
24479         strsignal \
24480         sigaction \
24481         sigprocmask \
24482         pthread_sigmask \
24483         snprintf \
24484         vsnprintf \
24485         setsid \
24486         strncasecmp \
24487         strcasecmp \
24488         localtime_r \
24489         ctime_r \
24490         gmtime_r \
24491         strsep \
24492         inet_aton \
24493         inet_pton \
24494         inet_ntop \
24495         setlinebuf \
24496         setvbuf \
24497         getusershell \
24498         initgroups \
24499         getaddrinfo \
24500         getnameinfo \
24501         closefrom \
24502         gettimeofday \
24503         getpeereid \
24504         setuid \
24505         setresuid \
24506         getresuid \
24507         strlcat \
24508         strlcpy
24509
24510 do
24511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24515   echo $ECHO_N "(cached) $ECHO_C" >&6
24516 else
24517   cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h.  */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h.  */
24523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24525 #define $ac_func innocuous_$ac_func
24526
24527 /* System header to define __stub macros and hopefully few prototypes,
24528     which can conflict with char $ac_func (); below.
24529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24530     <limits.h> exists even on freestanding compilers.  */
24531
24532 #ifdef __STDC__
24533 # include <limits.h>
24534 #else
24535 # include <assert.h>
24536 #endif
24537
24538 #undef $ac_func
24539
24540 /* Override any GCC internal prototype to avoid an error.
24541    Use char because int might match the return type of a GCC
24542    builtin and then its argument prototype would still apply.  */
24543 #ifdef __cplusplus
24544 extern "C"
24545 #endif
24546 char $ac_func ();
24547 /* The GNU C library defines this for functions which it implements
24548     to always fail with ENOSYS.  Some functions are actually named
24549     something starting with __ and the normal name is an alias.  */
24550 #if defined __stub_$ac_func || defined __stub___$ac_func
24551 choke me
24552 #endif
24553
24554 int
24555 main ()
24556 {
24557 return $ac_func ();
24558   ;
24559   return 0;
24560 }
24561 _ACEOF
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (ac_try="$ac_link"
24564 case "(($ac_try" in
24565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566   *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569   (eval "$ac_link") 2>conftest.er1
24570   ac_status=$?
24571   grep -v '^ *+' conftest.er1 >conftest.err
24572   rm -f conftest.er1
24573   cat conftest.err >&5
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } && {
24576          test -z "$ac_c_werror_flag" ||
24577          test ! -s conftest.err
24578        } && test -s conftest$ac_exeext &&
24579        $as_test_x conftest$ac_exeext; then
24580   eval "$as_ac_var=yes"
24581 else
24582   echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24584
24585         eval "$as_ac_var=no"
24586 fi
24587
24588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24589       conftest$ac_exeext conftest.$ac_ext
24590 fi
24591 ac_res=`eval echo '${'$as_ac_var'}'`
24592                { echo "$as_me:$LINENO: result: $ac_res" >&5
24593 echo "${ECHO_T}$ac_res" >&6; }
24594 if test `eval echo '${'$as_ac_var'}'` = yes; then
24595   cat >>confdefs.h <<_ACEOF
24596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24597 _ACEOF
24598
24599 fi
24600 done
24601
24602 for ac_func in \
24603         crypt \
24604         strncasecmp \
24605         strcasecmp \
24606         inet_aton \
24607         setlinebuf \
24608         getusershell \
24609         endusershell
24610
24611 do
24612 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24613 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24614 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24615   echo $ECHO_N "(cached) $ECHO_C" >&6
24616 else
24617   cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h.  */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h.  */
24623
24624 #include <stdio.h>
24625 #include <string.h>
24626 #ifdef HAVE_UNISTD_H
24627 #include <unistd.h>
24628 #endif
24629 #ifdef HAVE_CRYPT_H
24630 #include <crypt.h>
24631 #endif
24632 #ifdef HAVE_ERRNO_H
24633 #include <errno.h>
24634 #endif
24635 #ifdef HAVE_RESOURCE_H
24636 #include <resource.h>
24637 #endif
24638 #ifdef HAVE_GETOPT_H
24639 #include <getopt.h>
24640 #endif
24641 #ifdef HAVE_MALLOC_H
24642 #include <malloc.h>
24643 #endif
24644 #ifdef HAVE_UTMP_H
24645 #include <utmp.h>
24646 #endif
24647 #ifdef HAVE_UTMPX_H
24648 #include <utmpx.h>
24649 #endif
24650 #ifdef HAVE_SYS_SELECT_H
24651 #include <sys/select.h>
24652 #endif
24653 #ifdef HAVE_DLFCN_H
24654 #include <dlfcn.h>
24655 #endif
24656 #ifdef HAVE_REGEX_H
24657 #include <regex.h>
24658 #endif
24659 #ifdef HAVE_SYSLOG_H
24660 #include <syslog.h>
24661 #endif
24662 #ifdef HAVE_INTTYPES_H
24663 #include <inttypes.h>
24664 #endif
24665 #ifdef HAVE_STDINT_H
24666 #include <stdint.h>
24667 #endif
24668 #ifdef HAVE_ARPA_INET_H
24669 #include <arpa/inet.h>
24670 #endif
24671
24672 int
24673 main ()
24674 {
24675 char *(*pfn) = (char *(*)) $ac_func
24676   ;
24677   return 0;
24678 }
24679 _ACEOF
24680 rm -f conftest.$ac_objext
24681 if { (ac_try="$ac_compile"
24682 case "(($ac_try" in
24683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684   *) ac_try_echo=$ac_try;;
24685 esac
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687   (eval "$ac_compile") 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } && {
24694          test -z "$ac_c_werror_flag" ||
24695          test ! -s conftest.err
24696        } && test -s conftest.$ac_objext; then
24697   eval "radius_cv_decl_needed_$ac_func=no"
24698 else
24699   echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24701
24702         eval "radius_cv_decl_needed_$ac_func=yes"
24703 fi
24704
24705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706 fi
24707
24708 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24709   { echo "$as_me:$LINENO: result: yes" >&5
24710 echo "${ECHO_T}yes" >&6; }
24711   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24712   cat >>confdefs.h <<_ACEOF
24713 #define $radius_tr_decl 1
24714 _ACEOF
24715
24716 else
24717   { echo "$as_me:$LINENO: result: no" >&5
24718 echo "${ECHO_T}no" >&6; }
24719 fi
24720
24721 done
24722
24723
24724 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24725 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24726 if test "${ac_cv_type_signal+set}" = set; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729   cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735 #include <sys/types.h>
24736 #include <signal.h>
24737
24738 int
24739 main ()
24740 {
24741 return *(signal (0, 0)) (0) == 1;
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_type_signal=int
24764 else
24765   echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24767
24768         ac_cv_type_signal=void
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_type_signal" >&5
24774 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24775
24776 cat >>confdefs.h <<_ACEOF
24777 #define RETSIGTYPE $ac_cv_type_signal
24778 _ACEOF
24779
24780
24781
24782 if test "x$ac_cv_header_utmpx_h" = "xyes"
24783 then
24784
24785   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24786 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24787
24788
24789   cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h.  */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h.  */
24795
24796 #include <utmpx.h>
24797 #ifdef HAVE_STDDEF_H
24798 #include <stddef.h>
24799 #endif
24800 #ifndef offsetof
24801 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24802 #endif
24803
24804 int
24805 main ()
24806 {
24807  int foo = offsetof(struct utmpx, ut_xtime)
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819   (eval "$ac_compile") 2>conftest.er1
24820   ac_status=$?
24821   grep -v '^ *+' conftest.er1 >conftest.err
24822   rm -f conftest.er1
24823   cat conftest.err >&5
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); } && {
24826          test -z "$ac_c_werror_flag" ||
24827          test ! -s conftest.err
24828        } && test -s conftest.$ac_objext; then
24829   has_element=" "
24830 else
24831   echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24833
24834         has_element=
24835 fi
24836
24837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838
24839   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24840   if test "x$has_element" != "x"; then
24841     { echo "$as_me:$LINENO: result: yes" >&5
24842 echo "${ECHO_T}yes" >&6; }
24843     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24844   else
24845     { echo "$as_me:$LINENO: result: no" >&5
24846 echo "${ECHO_T}no" >&6; }
24847     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24848  fi
24849
24850  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24851  then
24852
24853 cat >>confdefs.h <<\_ACEOF
24854 #define ut_xtime ut_tv.tv_sec
24855 _ACEOF
24856
24857  fi
24858 fi
24859
24860
24861   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24862 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24863
24864
24865   cat >conftest.$ac_ext <<_ACEOF
24866 /* confdefs.h.  */
24867 _ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h.  */
24871
24872 #include <netinet/in.h>
24873 #ifdef HAVE_STDDEF_H
24874 #include <stddef.h>
24875 #endif
24876 #ifndef offsetof
24877 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24878 #endif
24879
24880 int
24881 main ()
24882 {
24883  int foo = offsetof(struct in_pktinfo, ipi_addr)
24884   ;
24885   return 0;
24886 }
24887 _ACEOF
24888 rm -f conftest.$ac_objext
24889 if { (ac_try="$ac_compile"
24890 case "(($ac_try" in
24891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892   *) ac_try_echo=$ac_try;;
24893 esac
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895   (eval "$ac_compile") 2>conftest.er1
24896   ac_status=$?
24897   grep -v '^ *+' conftest.er1 >conftest.err
24898   rm -f conftest.er1
24899   cat conftest.err >&5
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } && {
24902          test -z "$ac_c_werror_flag" ||
24903          test ! -s conftest.err
24904        } && test -s conftest.$ac_objext; then
24905   has_element=" "
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910         has_element=
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914
24915   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24916   if test "x$has_element" != "x"; then
24917     { echo "$as_me:$LINENO: result: yes" >&5
24918 echo "${ECHO_T}yes" >&6; }
24919     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24920   else
24921     { echo "$as_me:$LINENO: result: no" >&5
24922 echo "${ECHO_T}no" >&6; }
24923     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24924  fi
24925
24926 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24927 then
24928
24929 cat >>confdefs.h <<\_ACEOF
24930 #define HAVE_IP_PKTINFO
24931 _ACEOF
24932
24933 fi
24934
24935
24936   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24937 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24938
24939
24940   cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h.  */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h.  */
24946
24947 #include <netinet/in.h>
24948 #ifdef HAVE_STDDEF_H
24949 #include <stddef.h>
24950 #endif
24951 #ifndef offsetof
24952 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24953 #endif
24954
24955 int
24956 main ()
24957 {
24958  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24959   ;
24960   return 0;
24961 }
24962 _ACEOF
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970   (eval "$ac_compile") 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } && {
24977          test -z "$ac_c_werror_flag" ||
24978          test ! -s conftest.err
24979        } && test -s conftest.$ac_objext; then
24980   has_element=" "
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985         has_element=
24986 fi
24987
24988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24989
24990   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24991   if test "x$has_element" != "x"; then
24992     { echo "$as_me:$LINENO: result: yes" >&5
24993 echo "${ECHO_T}yes" >&6; }
24994     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24995   else
24996     { echo "$as_me:$LINENO: result: no" >&5
24997 echo "${ECHO_T}no" >&6; }
24998     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24999  fi
25000
25001 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25002 then
25003
25004 cat >>confdefs.h <<\_ACEOF
25005 #define HAVE_IN6_PKTINFO
25006 _ACEOF
25007
25008 fi
25009
25010
25011 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25012 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25013 if test "${ac_cv_c_const+set}" = set; then
25014   echo $ECHO_N "(cached) $ECHO_C" >&6
25015 else
25016   cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022
25023 int
25024 main ()
25025 {
25026 /* FIXME: Include the comments suggested by Paul. */
25027 #ifndef __cplusplus
25028   /* Ultrix mips cc rejects this.  */
25029   typedef int charset[2];
25030   const charset cs;
25031   /* SunOS 4.1.1 cc rejects this.  */
25032   char const *const *pcpcc;
25033   char **ppc;
25034   /* NEC SVR4.0.2 mips cc rejects this.  */
25035   struct point {int x, y;};
25036   static struct point const zero = {0,0};
25037   /* AIX XL C 1.02.0.0 rejects this.
25038      It does not let you subtract one const X* pointer from another in
25039      an arm of an if-expression whose if-part is not a constant
25040      expression */
25041   const char *g = "string";
25042   pcpcc = &g + (g ? g-g : 0);
25043   /* HPUX 7.0 cc rejects these. */
25044   ++pcpcc;
25045   ppc = (char**) pcpcc;
25046   pcpcc = (char const *const *) ppc;
25047   { /* SCO 3.2v4 cc rejects this.  */
25048     char *t;
25049     char const *s = 0 ? (char *) 0 : (char const *) 0;
25050
25051     *t++ = 0;
25052     if (s) return 0;
25053   }
25054   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25055     int x[] = {25, 17};
25056     const int *foo = &x[0];
25057     ++foo;
25058   }
25059   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25060     typedef const int *iptr;
25061     iptr p = 0;
25062     ++p;
25063   }
25064   { /* AIX XL C 1.02.0.0 rejects this saying
25065        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25066     struct s { int j; const int *ap[3]; };
25067     struct s *b; b->j = 5;
25068   }
25069   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25070     const int foo = 10;
25071     if (!foo) return 0;
25072   }
25073   return !cs[0] && !zero.x;
25074 #endif
25075
25076   ;
25077   return 0;
25078 }
25079 _ACEOF
25080 rm -f conftest.$ac_objext
25081 if { (ac_try="$ac_compile"
25082 case "(($ac_try" in
25083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084   *) ac_try_echo=$ac_try;;
25085 esac
25086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25087   (eval "$ac_compile") 2>conftest.er1
25088   ac_status=$?
25089   grep -v '^ *+' conftest.er1 >conftest.err
25090   rm -f conftest.er1
25091   cat conftest.err >&5
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); } && {
25094          test -z "$ac_c_werror_flag" ||
25095          test ! -s conftest.err
25096        } && test -s conftest.$ac_objext; then
25097   ac_cv_c_const=yes
25098 else
25099   echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25101
25102         ac_cv_c_const=no
25103 fi
25104
25105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106 fi
25107 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25108 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25109 if test $ac_cv_c_const = no; then
25110
25111 cat >>confdefs.h <<\_ACEOF
25112 #define const
25113 _ACEOF
25114
25115 fi
25116
25117
25118 { echo "$as_me:$LINENO: checking type of OS" >&5
25119 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25120 OS=`uname -s`
25121 { echo "$as_me:$LINENO: result: $OS" >&5
25122 echo "${ECHO_T}$OS" >&6; }
25123 if test "$OS" = "OS/2"; then
25124         LIBPREFIX=
25125 else
25126         LIBPREFIX=lib
25127 fi
25128
25129
25130 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25131 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25132 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25133   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25134   CFLAGS="$CFLAGS $devflags"
25135   INSTALLSTRIP=""
25136   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
25137 echo "${ECHO_T}yes.  Using $devflags" >&6; }
25138 else
25139   devflags=""
25140   CFLAGS="$CFLAGS -DNDEBUG"
25141   INSTALLSTRIP=""
25142   { echo "$as_me:$LINENO: result: no." >&5
25143 echo "${ECHO_T}no." >&6; }
25144 fi
25145
25146
25147     { echo "$as_me:$LINENO: checking for TLS" >&5
25148 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
25149     if test "$cross_compiling" = yes; then
25150   have_tls=no
25151 else
25152   cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
25159 _ACEOF
25160 rm -f conftest$ac_exeext
25161 if { (ac_try="$ac_link"
25162 case "(($ac_try" in
25163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164   *) ac_try_echo=$ac_try;;
25165 esac
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167   (eval "$ac_link") 2>&5
25168   ac_status=$?
25169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25171   { (case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176   (eval "$ac_try") 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; }; then
25180   have_tls=yes
25181 else
25182   echo "$as_me: program exited with status $ac_status" >&5
25183 echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25185
25186 ( exit $ac_status )
25187 have_tls=no
25188 fi
25189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25190 fi
25191
25192
25193     { echo "$as_me:$LINENO: result: $have_tls" >&5
25194 echo "${ECHO_T}$have_tls" >&6; }
25195     if test "$have_tls" = "yes"; then
25196
25197 cat >>confdefs.h <<\_ACEOF
25198 #define HAVE_THREAD_TLS 1
25199 _ACEOF
25200
25201     fi
25202
25203
25204
25205 old_LIBS="$LIBS"
25206 LIBS="$LIBS $LIBLTDL"
25207 { echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5
25208 echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; }
25209 if test "${ac_cv_func_lt_dladvise_init+set}" = set; then
25210   echo $ECHO_N "(cached) $ECHO_C" >&6
25211 else
25212   cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h.  */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h.  */
25218 /* Define lt_dladvise_init to an innocuous variant, in case <limits.h> declares lt_dladvise_init.
25219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25220 #define lt_dladvise_init innocuous_lt_dladvise_init
25221
25222 /* System header to define __stub macros and hopefully few prototypes,
25223     which can conflict with char lt_dladvise_init (); below.
25224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25225     <limits.h> exists even on freestanding compilers.  */
25226
25227 #ifdef __STDC__
25228 # include <limits.h>
25229 #else
25230 # include <assert.h>
25231 #endif
25232
25233 #undef lt_dladvise_init
25234
25235 /* Override any GCC internal prototype to avoid an error.
25236    Use char because int might match the return type of a GCC
25237    builtin and then its argument prototype would still apply.  */
25238 #ifdef __cplusplus
25239 extern "C"
25240 #endif
25241 char lt_dladvise_init ();
25242 /* The GNU C library defines this for functions which it implements
25243     to always fail with ENOSYS.  Some functions are actually named
25244     something starting with __ and the normal name is an alias.  */
25245 #if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init
25246 choke me
25247 #endif
25248
25249 int
25250 main ()
25251 {
25252 return lt_dladvise_init ();
25253   ;
25254   return 0;
25255 }
25256 _ACEOF
25257 rm -f conftest.$ac_objext conftest$ac_exeext
25258 if { (ac_try="$ac_link"
25259 case "(($ac_try" in
25260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25261   *) ac_try_echo=$ac_try;;
25262 esac
25263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25264   (eval "$ac_link") 2>conftest.er1
25265   ac_status=$?
25266   grep -v '^ *+' conftest.er1 >conftest.err
25267   rm -f conftest.er1
25268   cat conftest.err >&5
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); } && {
25271          test -z "$ac_c_werror_flag" ||
25272          test ! -s conftest.err
25273        } && test -s conftest$ac_exeext &&
25274        $as_test_x conftest$ac_exeext; then
25275   ac_cv_func_lt_dladvise_init=yes
25276 else
25277   echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25279
25280         ac_cv_func_lt_dladvise_init=no
25281 fi
25282
25283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25284       conftest$ac_exeext conftest.$ac_ext
25285 fi
25286 { echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5
25287 echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; }
25288 if test $ac_cv_func_lt_dladvise_init = yes; then
25289
25290 cat >>confdefs.h <<\_ACEOF
25291 #define HAVE_LT_DLADVISE_INIT
25292 _ACEOF
25293
25294 fi
25295
25296 LIBS="$old_LIBS"
25297
25298 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25299 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25300 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25301   echo $ECHO_N "(cached) $ECHO_C" >&6
25302 else
25303   ac_check_lib_save_LIBS=$LIBS
25304 LIBS="-lcrypt  $LIBS"
25305 cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311
25312 /* Override any GCC internal prototype to avoid an error.
25313    Use char because int might match the return type of a GCC
25314    builtin and then its argument prototype would still apply.  */
25315 #ifdef __cplusplus
25316 extern "C"
25317 #endif
25318 char crypt ();
25319 int
25320 main ()
25321 {
25322 return crypt ();
25323   ;
25324   return 0;
25325 }
25326 _ACEOF
25327 rm -f conftest.$ac_objext conftest$ac_exeext
25328 if { (ac_try="$ac_link"
25329 case "(($ac_try" in
25330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331   *) ac_try_echo=$ac_try;;
25332 esac
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334   (eval "$ac_link") 2>conftest.er1
25335   ac_status=$?
25336   grep -v '^ *+' conftest.er1 >conftest.err
25337   rm -f conftest.er1
25338   cat conftest.err >&5
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } && {
25341          test -z "$ac_c_werror_flag" ||
25342          test ! -s conftest.err
25343        } && test -s conftest$ac_exeext &&
25344        $as_test_x conftest$ac_exeext; then
25345   ac_cv_lib_crypt_crypt=yes
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350         ac_cv_lib_crypt_crypt=no
25351 fi
25352
25353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25354       conftest$ac_exeext conftest.$ac_ext
25355 LIBS=$ac_check_lib_save_LIBS
25356 fi
25357 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25358 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25359 if test $ac_cv_lib_crypt_crypt = yes; then
25360   CRYPTLIB="-lcrypt"
25361
25362 fi
25363
25364 if test "$CRYPTLIB" != ""; then
25365
25366 cat >>confdefs.h <<\_ACEOF
25367 #define HAVE_CRYPT
25368 _ACEOF
25369
25370 else
25371   { echo "$as_me:$LINENO: checking for crypt" >&5
25372 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25373 if test "${ac_cv_func_crypt+set}" = set; then
25374   echo $ECHO_N "(cached) $ECHO_C" >&6
25375 else
25376   cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h.  */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h.  */
25382 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25384 #define crypt innocuous_crypt
25385
25386 /* System header to define __stub macros and hopefully few prototypes,
25387     which can conflict with char crypt (); below.
25388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25389     <limits.h> exists even on freestanding compilers.  */
25390
25391 #ifdef __STDC__
25392 # include <limits.h>
25393 #else
25394 # include <assert.h>
25395 #endif
25396
25397 #undef crypt
25398
25399 /* Override any GCC internal prototype to avoid an error.
25400    Use char because int might match the return type of a GCC
25401    builtin and then its argument prototype would still apply.  */
25402 #ifdef __cplusplus
25403 extern "C"
25404 #endif
25405 char crypt ();
25406 /* The GNU C library defines this for functions which it implements
25407     to always fail with ENOSYS.  Some functions are actually named
25408     something starting with __ and the normal name is an alias.  */
25409 #if defined __stub_crypt || defined __stub___crypt
25410 choke me
25411 #endif
25412
25413 int
25414 main ()
25415 {
25416 return crypt ();
25417   ;
25418   return 0;
25419 }
25420 _ACEOF
25421 rm -f conftest.$ac_objext conftest$ac_exeext
25422 if { (ac_try="$ac_link"
25423 case "(($ac_try" in
25424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25425   *) ac_try_echo=$ac_try;;
25426 esac
25427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25428   (eval "$ac_link") 2>conftest.er1
25429   ac_status=$?
25430   grep -v '^ *+' conftest.er1 >conftest.err
25431   rm -f conftest.er1
25432   cat conftest.err >&5
25433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434   (exit $ac_status); } && {
25435          test -z "$ac_c_werror_flag" ||
25436          test ! -s conftest.err
25437        } && test -s conftest$ac_exeext &&
25438        $as_test_x conftest$ac_exeext; then
25439   ac_cv_func_crypt=yes
25440 else
25441   echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25443
25444         ac_cv_func_crypt=no
25445 fi
25446
25447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25448       conftest$ac_exeext conftest.$ac_ext
25449 fi
25450 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25451 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25452 if test $ac_cv_func_crypt = yes; then
25453
25454 cat >>confdefs.h <<\_ACEOF
25455 #define HAVE_CRYPT
25456 _ACEOF
25457
25458 fi
25459
25460 fi
25461
25462 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25463 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25464 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25465   echo $ECHO_N "(cached) $ECHO_C" >&6
25466 else
25467   ac_check_lib_save_LIBS=$LIBS
25468 LIBS="-lcipher  $LIBS"
25469 cat >conftest.$ac_ext <<_ACEOF
25470 /* confdefs.h.  */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h.  */
25475
25476 /* Override any GCC internal prototype to avoid an error.
25477    Use char because int might match the return type of a GCC
25478    builtin and then its argument prototype would still apply.  */
25479 #ifdef __cplusplus
25480 extern "C"
25481 #endif
25482 char setkey ();
25483 int
25484 main ()
25485 {
25486 return setkey ();
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495   *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498   (eval "$ac_link") 2>conftest.er1
25499   ac_status=$?
25500   grep -v '^ *+' conftest.er1 >conftest.err
25501   rm -f conftest.er1
25502   cat conftest.err >&5
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); } && {
25505          test -z "$ac_c_werror_flag" ||
25506          test ! -s conftest.err
25507        } && test -s conftest$ac_exeext &&
25508        $as_test_x conftest$ac_exeext; then
25509   ac_cv_lib_cipher_setkey=yes
25510 else
25511   echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514         ac_cv_lib_cipher_setkey=no
25515 fi
25516
25517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25518       conftest$ac_exeext conftest.$ac_ext
25519 LIBS=$ac_check_lib_save_LIBS
25520 fi
25521 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25522 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25523 if test $ac_cv_lib_cipher_setkey = yes; then
25524   CRYPTLIB="${CRYPTLIB} -lcipher"
25525
25526 fi
25527
25528
25529
25530
25531 cat >>confdefs.h <<\_ACEOF
25532 #define GNUSTYLE 1
25533 _ACEOF
25534
25535
25536 cat >>confdefs.h <<\_ACEOF
25537 #define SYSVSTYLE 2
25538 _ACEOF
25539
25540
25541 cat >>confdefs.h <<\_ACEOF
25542 #define BSDSTYLE 3
25543 _ACEOF
25544
25545 gethostbyaddrrstyle=""
25546 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25547 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25548 case "$host" in
25549 *-freebsd*)
25550         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25551 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25552 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25553   echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555   cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561
25562 #ifdef HAVE_NETDB_H
25563 #include <netdb.h>
25564 #endif
25565
25566
25567 int
25568 main ()
25569 {
25570 #ifndef gethostbyaddr_r
25571   (void) gethostbyaddr_r;
25572 #endif
25573
25574   ;
25575   return 0;
25576 }
25577 _ACEOF
25578 rm -f conftest.$ac_objext
25579 if { (ac_try="$ac_compile"
25580 case "(($ac_try" in
25581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25582   *) ac_try_echo=$ac_try;;
25583 esac
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585   (eval "$ac_compile") 2>conftest.er1
25586   ac_status=$?
25587   grep -v '^ *+' conftest.er1 >conftest.err
25588   rm -f conftest.er1
25589   cat conftest.err >&5
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); } && {
25592          test -z "$ac_c_werror_flag" ||
25593          test ! -s conftest.err
25594        } && test -s conftest.$ac_objext; then
25595   ac_cv_have_decl_gethostbyaddr_r=yes
25596 else
25597   echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600         ac_cv_have_decl_gethostbyaddr_r=no
25601 fi
25602
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25604 fi
25605 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25606 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25607 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25608
25609 cat >>confdefs.h <<_ACEOF
25610 #define HAVE_DECL_GETHOSTBYADDR_R 1
25611 _ACEOF
25612
25613
25614 else
25615   cat >>confdefs.h <<_ACEOF
25616 #define HAVE_DECL_GETHOSTBYADDR_R 0
25617 _ACEOF
25618
25619
25620
25621 cat >>confdefs.h <<\_ACEOF
25622 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25623 _ACEOF
25624
25625                 gethostbyaddrrstyle=BSD
25626                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25627 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25628
25629 fi
25630
25631
25632         ;;
25633 esac
25634 if test "x$gethostbyaddrrstyle" = "x"; then
25635         cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641
25642 #include <stdio.h>
25643 #include <netdb.h>
25644
25645 int
25646 main ()
25647 {
25648  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25649   ;
25650   return 0;
25651 }
25652 _ACEOF
25653 rm -f conftest.$ac_objext conftest$ac_exeext
25654 if { (ac_try="$ac_link"
25655 case "(($ac_try" in
25656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657   *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660   (eval "$ac_link") 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } && {
25667          test -z "$ac_c_werror_flag" ||
25668          test ! -s conftest.err
25669        } && test -s conftest$ac_exeext &&
25670        $as_test_x conftest$ac_exeext; then
25671
25672
25673 cat >>confdefs.h <<\_ACEOF
25674 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25675 _ACEOF
25676
25677         gethostbyaddrrstyle=GNU
25678
25679 else
25680   echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25682
25683
25684 fi
25685
25686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25687       conftest$ac_exeext conftest.$ac_ext
25688 fi
25689 if test "x$gethostbyaddrrstyle" = "x"; then
25690         cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h.  */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h.  */
25696
25697 #include <stdio.h>
25698 #include <netdb.h>
25699
25700 int
25701 main ()
25702 {
25703  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25704   ;
25705   return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext conftest$ac_exeext
25709 if { (ac_try="$ac_link"
25710 case "(($ac_try" in
25711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712   *) ac_try_echo=$ac_try;;
25713 esac
25714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25715   (eval "$ac_link") 2>conftest.er1
25716   ac_status=$?
25717   grep -v '^ *+' conftest.er1 >conftest.err
25718   rm -f conftest.er1
25719   cat conftest.err >&5
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); } && {
25722          test -z "$ac_c_werror_flag" ||
25723          test ! -s conftest.err
25724        } && test -s conftest$ac_exeext &&
25725        $as_test_x conftest$ac_exeext; then
25726
25727
25728 cat >>confdefs.h <<\_ACEOF
25729 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25730 _ACEOF
25731
25732                 gethostbyaddrrstyle=SYSV
25733
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738
25739 fi
25740
25741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25742       conftest$ac_exeext conftest.$ac_ext
25743 fi
25744 if test "x$gethostbyaddrrstyle" = "x"; then
25745         cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751
25752 #include <stdio.h>
25753 #include <netdb.h>
25754
25755 int
25756 main ()
25757 {
25758  gethostbyaddr(NULL, 0, 0)
25759   ;
25760   return 0;
25761 }
25762 _ACEOF
25763 rm -f conftest.$ac_objext conftest$ac_exeext
25764 if { (ac_try="$ac_link"
25765 case "(($ac_try" in
25766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25767   *) ac_try_echo=$ac_try;;
25768 esac
25769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25770   (eval "$ac_link") 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } && {
25777          test -z "$ac_c_werror_flag" ||
25778          test ! -s conftest.err
25779        } && test -s conftest$ac_exeext &&
25780        $as_test_x conftest$ac_exeext; then
25781
25782
25783 cat >>confdefs.h <<\_ACEOF
25784 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25785 _ACEOF
25786
25787                 gethostbyaddrrstyle=BSD
25788
25789 else
25790   echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25792
25793
25794 fi
25795
25796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797       conftest$ac_exeext conftest.$ac_ext
25798 fi
25799
25800 if test "x$gethostbyaddrrstyle" = "x"; then
25801         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25802 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25803 else
25804         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25805 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25806 fi
25807
25808 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25809         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25810 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25811 fi
25812
25813 gethostbynamerstyle=""
25814 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25815 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25816 cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h.  */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h.  */
25822
25823 #include <stdio.h>
25824 #include <netdb.h>
25825
25826 int
25827 main ()
25828 {
25829  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25830   ;
25831   return 0;
25832 }
25833 _ACEOF
25834 rm -f conftest.$ac_objext conftest$ac_exeext
25835 if { (ac_try="$ac_link"
25836 case "(($ac_try" in
25837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838   *) ac_try_echo=$ac_try;;
25839 esac
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841   (eval "$ac_link") 2>conftest.er1
25842   ac_status=$?
25843   grep -v '^ *+' conftest.er1 >conftest.err
25844   rm -f conftest.er1
25845   cat conftest.err >&5
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); } && {
25848          test -z "$ac_c_werror_flag" ||
25849          test ! -s conftest.err
25850        } && test -s conftest$ac_exeext &&
25851        $as_test_x conftest$ac_exeext; then
25852
25853
25854 cat >>confdefs.h <<\_ACEOF
25855 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25856 _ACEOF
25857
25858         gethostbynamerstyle=GNU
25859
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864
25865 fi
25866
25867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25868       conftest$ac_exeext conftest.$ac_ext
25869 if test "x$gethostbynamerstyle" = "x"; then
25870         cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h.  */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h.  */
25876
25877 #include <stdio.h>
25878 #include <netdb.h>
25879
25880 int
25881 main ()
25882 {
25883  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (ac_try="$ac_link"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895   (eval "$ac_link") 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } && {
25902          test -z "$ac_c_werror_flag" ||
25903          test ! -s conftest.err
25904        } && test -s conftest$ac_exeext &&
25905        $as_test_x conftest$ac_exeext; then
25906
25907
25908 cat >>confdefs.h <<\_ACEOF
25909 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25910 _ACEOF
25911
25912                 gethostbynamerstyle=SYSV
25913
25914 else
25915   echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25917
25918
25919 fi
25920
25921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25922       conftest$ac_exeext conftest.$ac_ext
25923 fi
25924 if test "x$gethostbynamerstyle" = "x"; then
25925         cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h.  */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h.  */
25931
25932 #include <stdio.h>
25933 #include <netdb.h>
25934
25935 int
25936 main ()
25937 {
25938  gethostbyname(NULL)
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_link") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_c_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest$ac_exeext &&
25960        $as_test_x conftest$ac_exeext; then
25961
25962
25963 cat >>confdefs.h <<\_ACEOF
25964 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25965 _ACEOF
25966
25967                 gethostbynamerstyle=BSD
25968
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973
25974 fi
25975
25976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25977       conftest$ac_exeext conftest.$ac_ext
25978 fi
25979
25980 if test "x$gethostbynamerstyle" = "x"; then
25981         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25982 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25983 else
25984         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25985 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25986 fi
25987
25988 if test "x$gethostbynamerstyle" = "xBSD"; then
25989         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25990 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25991 fi
25992
25993
25994 cat >>confdefs.h <<\_ACEOF
25995 #define POSIXSTYLE 1
25996 _ACEOF
25997
25998
25999 cat >>confdefs.h <<\_ACEOF
26000 #define SOLARISSTYLE 2
26001 _ACEOF
26002
26003 ctimerstyle=""
26004 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26005 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26006 cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012
26013 #include <time.h>
26014
26015 int
26016 main ()
26017 {
26018  ctime_r(NULL, NULL, 0)
26019   ;
26020   return 0;
26021 }
26022 _ACEOF
26023 rm -f conftest.$ac_objext conftest$ac_exeext
26024 if { (ac_try="$ac_link"
26025 case "(($ac_try" in
26026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26027   *) ac_try_echo=$ac_try;;
26028 esac
26029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26030   (eval "$ac_link") 2>conftest.er1
26031   ac_status=$?
26032   grep -v '^ *+' conftest.er1 >conftest.err
26033   rm -f conftest.er1
26034   cat conftest.err >&5
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); } && {
26037          test -z "$ac_c_werror_flag" ||
26038          test ! -s conftest.err
26039        } && test -s conftest$ac_exeext &&
26040        $as_test_x conftest$ac_exeext; then
26041
26042
26043 cat >>confdefs.h <<\_ACEOF
26044 #define CTIMERSTYLE SOLARISSTYLE
26045 _ACEOF
26046
26047         ctimerstyle="SOLARIS"
26048
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053
26054 fi
26055
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057       conftest$ac_exeext conftest.$ac_ext
26058 if test "x$ctimerstyle" = "x"; then
26059         cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065
26066 #include <time.h>
26067
26068 int
26069 main ()
26070 {
26071  ctime_r(NULL, NULL)
26072   ;
26073   return 0;
26074 }
26075 _ACEOF
26076 rm -f conftest.$ac_objext conftest$ac_exeext
26077 if { (ac_try="$ac_link"
26078 case "(($ac_try" in
26079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080   *) ac_try_echo=$ac_try;;
26081 esac
26082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083   (eval "$ac_link") 2>conftest.er1
26084   ac_status=$?
26085   grep -v '^ *+' conftest.er1 >conftest.err
26086   rm -f conftest.er1
26087   cat conftest.err >&5
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); } && {
26090          test -z "$ac_c_werror_flag" ||
26091          test ! -s conftest.err
26092        } && test -s conftest$ac_exeext &&
26093        $as_test_x conftest$ac_exeext; then
26094
26095
26096 cat >>confdefs.h <<\_ACEOF
26097 #define CTIMERSTYLE POSIXSTYLE
26098 _ACEOF
26099
26100                 ctimerstyle="POSIX"
26101
26102 else
26103   echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.$ac_ext >&5
26105
26106
26107 fi
26108
26109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26110       conftest$ac_exeext conftest.$ac_ext
26111 fi
26112
26113 if test "x$ctimerstyle" = "x"; then
26114         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26115 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26116 else
26117         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26118 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26119 fi
26120
26121 HOSTINFO=$host
26122
26123
26124
26125 top_builddir=`pwd`
26126 export top_builddir
26127 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26128 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26129
26130
26131
26132
26133
26134 mysubdirs="$LIBLTDLPATH"
26135 if test "x$EXPERIMENTAL" = "xyes"; then
26136   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26137     mysubdirs=`echo $mysubdirs $bar`
26138 else
26139         for bar in `cat "${srcdir}"/src/modules/stable`; do
26140     if test -f "${srcdir}"/src/modules/$bar/configure; then
26141       mysubdirs="$mysubdirs src/modules/$bar"
26142     fi
26143   done
26144 fi
26145
26146 if test "x$EXPERIMENTAL" = "xyes"; then
26147   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26148     MODULES="$MODULES $foo"
26149   done
26150 else
26151             for foo in `cat "${srcdir}"/src/modules/stable`; do
26152     MODULES="$MODULES $foo"
26153    done
26154 fi
26155
26156 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26157
26158
26159
26160
26161 ac_config_commands="$ac_config_commands stamp-h"
26162
26163 ac_config_commands="$ac_config_commands build-radpaths-h"
26164
26165 ac_config_commands="$ac_config_commands main-chmod"
26166
26167 ac_config_commands="$ac_config_commands scripts-chmod"
26168
26169
26170
26171
26172
26173 USE_SHARED_LIBS=$enable_shared
26174
26175 USE_STATIC_LIBS=$enable_static
26176
26177
26178
26179
26180
26181
26182
26183   unset ac_cv_env_LIBS_set
26184   unset ac_cv_env_LIBS_value
26185
26186   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
26187
26188 cat >confcache <<\_ACEOF
26189 # This file is a shell script that caches the results of configure
26190 # tests run on this system so they can be shared between configure
26191 # scripts and configure runs, see configure's option --config-cache.
26192 # It is not useful on other systems.  If it contains results you don't
26193 # want to keep, you may remove or edit it.
26194 #
26195 # config.status only pays attention to the cache file if you give it
26196 # the --recheck option to rerun configure.
26197 #
26198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26200 # following values.
26201
26202 _ACEOF
26203
26204 # The following way of writing the cache mishandles newlines in values,
26205 # but we know of no workaround that is simple, portable, and efficient.
26206 # So, we kill variables containing newlines.
26207 # Ultrix sh set writes to stderr and can't be redirected directly,
26208 # and sets the high bit in the cache file unless we assign to the vars.
26209 (
26210   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26211     eval ac_val=\$$ac_var
26212     case $ac_val in #(
26213     *${as_nl}*)
26214       case $ac_var in #(
26215       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26216 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26217       esac
26218       case $ac_var in #(
26219       _ | IFS | as_nl) ;; #(
26220       *) $as_unset $ac_var ;;
26221       esac ;;
26222     esac
26223   done
26224
26225   (set) 2>&1 |
26226     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26227     *${as_nl}ac_space=\ *)
26228       # `set' does not quote correctly, so add quotes (double-quote
26229       # substitution turns \\\\ into \\, and sed turns \\ into \).
26230       sed -n \
26231         "s/'/'\\\\''/g;
26232           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26233       ;; #(
26234     *)
26235       # `set' quotes correctly as required by POSIX, so do not add quotes.
26236       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26237       ;;
26238     esac |
26239     sort
26240 ) |
26241   sed '
26242      /^ac_cv_env_/b end
26243      t clear
26244      :clear
26245      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26246      t end
26247      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26248      :end' >>confcache
26249 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26250   if test -w "$cache_file"; then
26251     test "x$cache_file" != "x/dev/null" &&
26252       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26253 echo "$as_me: updating cache $cache_file" >&6;}
26254     cat confcache >$cache_file
26255   else
26256     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26257 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26258   fi
26259 fi
26260 rm -f confcache
26261
26262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26263 # Let make expand exec_prefix.
26264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26265
26266 DEFS=-DHAVE_CONFIG_H
26267
26268 ac_libobjs=
26269 ac_ltlibobjs=
26270 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26271   # 1. Remove the extension, and $U if already installed.
26272   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26273   ac_i=`echo "$ac_i" | sed "$ac_script"`
26274   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26275   #    will be set to the directory where LIBOBJS objects are built.
26276   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26277   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26278 done
26279 LIBOBJS=$ac_libobjs
26280
26281 LTLIBOBJS=$ac_ltlibobjs
26282
26283
26284
26285 : ${CONFIG_STATUS=./config.status}
26286 ac_clean_files_save=$ac_clean_files
26287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26288 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26289 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26290 cat >$CONFIG_STATUS <<_ACEOF
26291 #! $SHELL
26292 # Generated by $as_me.
26293 # Run this file to recreate the current configuration.
26294 # Compiler output produced by configure, useful for debugging
26295 # configure, is in config.log if it exists.
26296
26297 debug=false
26298 ac_cs_recheck=false
26299 ac_cs_silent=false
26300 SHELL=\${CONFIG_SHELL-$SHELL}
26301 _ACEOF
26302
26303 cat >>$CONFIG_STATUS <<\_ACEOF
26304 ## --------------------- ##
26305 ## M4sh Initialization.  ##
26306 ## --------------------- ##
26307
26308 # Be more Bourne compatible
26309 DUALCASE=1; export DUALCASE # for MKS sh
26310 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26311   emulate sh
26312   NULLCMD=:
26313   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26314   # is contrary to our usage.  Disable this feature.
26315   alias -g '${1+"$@"}'='"$@"'
26316   setopt NO_GLOB_SUBST
26317 else
26318   case `(set -o) 2>/dev/null` in
26319   *posix*) set -o posix ;;
26320 esac
26321
26322 fi
26323
26324
26325
26326
26327 # PATH needs CR
26328 # Avoid depending upon Character Ranges.
26329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26332 as_cr_digits='0123456789'
26333 as_cr_alnum=$as_cr_Letters$as_cr_digits
26334
26335 # The user is always right.
26336 if test "${PATH_SEPARATOR+set}" != set; then
26337   echo "#! /bin/sh" >conf$$.sh
26338   echo  "exit 0"   >>conf$$.sh
26339   chmod +x conf$$.sh
26340   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26341     PATH_SEPARATOR=';'
26342   else
26343     PATH_SEPARATOR=:
26344   fi
26345   rm -f conf$$.sh
26346 fi
26347
26348 # Support unset when possible.
26349 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26350   as_unset=unset
26351 else
26352   as_unset=false
26353 fi
26354
26355
26356 # IFS
26357 # We need space, tab and new line, in precisely that order.  Quoting is
26358 # there to prevent editors from complaining about space-tab.
26359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26360 # splitting by setting IFS to empty value.)
26361 as_nl='
26362 '
26363 IFS=" ""        $as_nl"
26364
26365 # Find who we are.  Look in the path if we contain no directory separator.
26366 case $0 in
26367   *[\\/]* ) as_myself=$0 ;;
26368   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26369 for as_dir in $PATH
26370 do
26371   IFS=$as_save_IFS
26372   test -z "$as_dir" && as_dir=.
26373   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26374 done
26375 IFS=$as_save_IFS
26376
26377      ;;
26378 esac
26379 # We did not find ourselves, most probably we were run as `sh COMMAND'
26380 # in which case we are not to be found in the path.
26381 if test "x$as_myself" = x; then
26382   as_myself=$0
26383 fi
26384 if test ! -f "$as_myself"; then
26385   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26386   { (exit 1); exit 1; }
26387 fi
26388
26389 # Work around bugs in pre-3.0 UWIN ksh.
26390 for as_var in ENV MAIL MAILPATH
26391 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26392 done
26393 PS1='$ '
26394 PS2='> '
26395 PS4='+ '
26396
26397 # NLS nuisances.
26398 for as_var in \
26399   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26400   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26401   LC_TELEPHONE LC_TIME
26402 do
26403   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26404     eval $as_var=C; export $as_var
26405   else
26406     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26407   fi
26408 done
26409
26410 # Required to use basename.
26411 if expr a : '\(a\)' >/dev/null 2>&1 &&
26412    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26413   as_expr=expr
26414 else
26415   as_expr=false
26416 fi
26417
26418 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26419   as_basename=basename
26420 else
26421   as_basename=false
26422 fi
26423
26424
26425 # Name of the executable.
26426 as_me=`$as_basename -- "$0" ||
26427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26428          X"$0" : 'X\(//\)$' \| \
26429          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26430 echo X/"$0" |
26431     sed '/^.*\/\([^/][^/]*\)\/*$/{
26432             s//\1/
26433             q
26434           }
26435           /^X\/\(\/\/\)$/{
26436             s//\1/
26437             q
26438           }
26439           /^X\/\(\/\).*/{
26440             s//\1/
26441             q
26442           }
26443           s/.*/./; q'`
26444
26445 # CDPATH.
26446 $as_unset CDPATH
26447
26448
26449
26450   as_lineno_1=$LINENO
26451   as_lineno_2=$LINENO
26452   test "x$as_lineno_1" != "x$as_lineno_2" &&
26453   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26454
26455   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26456   # uniformly replaced by the line number.  The first 'sed' inserts a
26457   # line-number line after each line using $LINENO; the second 'sed'
26458   # does the real work.  The second script uses 'N' to pair each
26459   # line-number line with the line containing $LINENO, and appends
26460   # trailing '-' during substitution so that $LINENO is not a special
26461   # case at line end.
26462   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26463   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26464   # E. McMahon (1931-1989) for sed's syntax.  :-)
26465   sed -n '
26466     p
26467     /[$]LINENO/=
26468   ' <$as_myself |
26469     sed '
26470       s/[$]LINENO.*/&-/
26471       t lineno
26472       b
26473       :lineno
26474       N
26475       :loop
26476       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26477       t loop
26478       s/-\n.*//
26479     ' >$as_me.lineno &&
26480   chmod +x "$as_me.lineno" ||
26481     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26482    { (exit 1); exit 1; }; }
26483
26484   # Don't try to exec as it changes $[0], causing all sort of problems
26485   # (the dirname of $[0] is not the place where we might find the
26486   # original and so on.  Autoconf is especially sensitive to this).
26487   . "./$as_me.lineno"
26488   # Exit status is that of the last command.
26489   exit
26490 }
26491
26492
26493 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26494   as_dirname=dirname
26495 else
26496   as_dirname=false
26497 fi
26498
26499 ECHO_C= ECHO_N= ECHO_T=
26500 case `echo -n x` in
26501 -n*)
26502   case `echo 'x\c'` in
26503   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26504   *)   ECHO_C='\c';;
26505   esac;;
26506 *)
26507   ECHO_N='-n';;
26508 esac
26509
26510 if expr a : '\(a\)' >/dev/null 2>&1 &&
26511    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26512   as_expr=expr
26513 else
26514   as_expr=false
26515 fi
26516
26517 rm -f conf$$ conf$$.exe conf$$.file
26518 if test -d conf$$.dir; then
26519   rm -f conf$$.dir/conf$$.file
26520 else
26521   rm -f conf$$.dir
26522   mkdir conf$$.dir
26523 fi
26524 echo >conf$$.file
26525 if ln -s conf$$.file conf$$ 2>/dev/null; then
26526   as_ln_s='ln -s'
26527   # ... but there are two gotchas:
26528   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26529   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26530   # In both cases, we have to default to `cp -p'.
26531   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26532     as_ln_s='cp -p'
26533 elif ln conf$$.file conf$$ 2>/dev/null; then
26534   as_ln_s=ln
26535 else
26536   as_ln_s='cp -p'
26537 fi
26538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26539 rmdir conf$$.dir 2>/dev/null
26540
26541 if mkdir -p . 2>/dev/null; then
26542   as_mkdir_p=:
26543 else
26544   test -d ./-p && rmdir ./-p
26545   as_mkdir_p=false
26546 fi
26547
26548 if test -x / >/dev/null 2>&1; then
26549   as_test_x='test -x'
26550 else
26551   if ls -dL / >/dev/null 2>&1; then
26552     as_ls_L_option=L
26553   else
26554     as_ls_L_option=
26555   fi
26556   as_test_x='
26557     eval sh -c '\''
26558       if test -d "$1"; then
26559         test -d "$1/.";
26560       else
26561         case $1 in
26562         -*)set "./$1";;
26563         esac;
26564         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26565         ???[sx]*):;;*)false;;esac;fi
26566     '\'' sh
26567   '
26568 fi
26569 as_executable_p=$as_test_x
26570
26571 # Sed expression to map a string onto a valid CPP name.
26572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26573
26574 # Sed expression to map a string onto a valid variable name.
26575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26576
26577
26578 exec 6>&1
26579
26580 # Save the log message, to keep $[0] and so on meaningful, and to
26581 # report actual input values of CONFIG_FILES etc. instead of their
26582 # values after options handling.
26583 ac_log="
26584 This file was extended by $as_me, which was
26585 generated by GNU Autoconf 2.61.  Invocation command line was
26586
26587   CONFIG_FILES    = $CONFIG_FILES
26588   CONFIG_HEADERS  = $CONFIG_HEADERS
26589   CONFIG_LINKS    = $CONFIG_LINKS
26590   CONFIG_COMMANDS = $CONFIG_COMMANDS
26591   $ $0 $@
26592
26593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26594 "
26595
26596 _ACEOF
26597
26598 cat >>$CONFIG_STATUS <<_ACEOF
26599 # Files that config.status was made for.
26600 config_files="$ac_config_files"
26601 config_headers="$ac_config_headers"
26602 config_commands="$ac_config_commands"
26603
26604 _ACEOF
26605
26606 cat >>$CONFIG_STATUS <<\_ACEOF
26607 ac_cs_usage="\
26608 \`$as_me' instantiates files from templates according to the
26609 current configuration.
26610
26611 Usage: $0 [OPTIONS] [FILE]...
26612
26613   -h, --help       print this help, then exit
26614   -V, --version    print version number and configuration settings, then exit
26615   -q, --quiet      do not print progress messages
26616   -d, --debug      don't remove temporary files
26617       --recheck    update $as_me by reconfiguring in the same conditions
26618   --file=FILE[:TEMPLATE]
26619                    instantiate the configuration file FILE
26620   --header=FILE[:TEMPLATE]
26621                    instantiate the configuration header FILE
26622
26623 Configuration files:
26624 $config_files
26625
26626 Configuration headers:
26627 $config_headers
26628
26629 Configuration commands:
26630 $config_commands
26631
26632 Report bugs to <bug-autoconf@gnu.org>."
26633
26634 _ACEOF
26635 cat >>$CONFIG_STATUS <<_ACEOF
26636 ac_cs_version="\\
26637 config.status
26638 configured by $0, generated by GNU Autoconf 2.61,
26639   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26640
26641 Copyright (C) 2006 Free Software Foundation, Inc.
26642 This config.status script is free software; the Free Software Foundation
26643 gives unlimited permission to copy, distribute and modify it."
26644
26645 ac_pwd='$ac_pwd'
26646 srcdir='$srcdir'
26647 _ACEOF
26648
26649 cat >>$CONFIG_STATUS <<\_ACEOF
26650 # If no file are specified by the user, then we need to provide default
26651 # value.  By we need to know if files were specified by the user.
26652 ac_need_defaults=:
26653 while test $# != 0
26654 do
26655   case $1 in
26656   --*=*)
26657     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26658     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26659     ac_shift=:
26660     ;;
26661   *)
26662     ac_option=$1
26663     ac_optarg=$2
26664     ac_shift=shift
26665     ;;
26666   esac
26667
26668   case $ac_option in
26669   # Handling of the options.
26670   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26671     ac_cs_recheck=: ;;
26672   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26673     echo "$ac_cs_version"; exit ;;
26674   --debug | --debu | --deb | --de | --d | -d )
26675     debug=: ;;
26676   --file | --fil | --fi | --f )
26677     $ac_shift
26678     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26679     ac_need_defaults=false;;
26680   --header | --heade | --head | --hea )
26681     $ac_shift
26682     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26683     ac_need_defaults=false;;
26684   --he | --h)
26685     # Conflict between --help and --header
26686     { echo "$as_me: error: ambiguous option: $1
26687 Try \`$0 --help' for more information." >&2
26688    { (exit 1); exit 1; }; };;
26689   --help | --hel | -h )
26690     echo "$ac_cs_usage"; exit ;;
26691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26692   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26693     ac_cs_silent=: ;;
26694
26695   # This is an error.
26696   -*) { echo "$as_me: error: unrecognized option: $1
26697 Try \`$0 --help' for more information." >&2
26698    { (exit 1); exit 1; }; } ;;
26699
26700   *) ac_config_targets="$ac_config_targets $1"
26701      ac_need_defaults=false ;;
26702
26703   esac
26704   shift
26705 done
26706
26707 ac_configure_extra_args=
26708
26709 if $ac_cs_silent; then
26710   exec 6>/dev/null
26711   ac_configure_extra_args="$ac_configure_extra_args --silent"
26712 fi
26713
26714 _ACEOF
26715 cat >>$CONFIG_STATUS <<_ACEOF
26716 if \$ac_cs_recheck; then
26717   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26718   CONFIG_SHELL=$SHELL
26719   export CONFIG_SHELL
26720   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26721 fi
26722
26723 _ACEOF
26724 cat >>$CONFIG_STATUS <<\_ACEOF
26725 exec 5>>config.log
26726 {
26727   echo
26728   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26729 ## Running $as_me. ##
26730 _ASBOX
26731   echo "$ac_log"
26732 } >&5
26733
26734 _ACEOF
26735 cat >>$CONFIG_STATUS <<_ACEOF
26736 _ACEOF
26737
26738 cat >>$CONFIG_STATUS <<\_ACEOF
26739
26740 # Handling of arguments.
26741 for ac_config_target in $ac_config_targets
26742 do
26743   case $ac_config_target in
26744     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26745     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26746     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26747     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26748     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26749     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26750     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26751     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26752     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26753     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26754     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26755     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26756     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26757     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26758     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26759     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26760     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26761     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26762     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26763
26764   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26765 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26766    { (exit 1); exit 1; }; };;
26767   esac
26768 done
26769
26770
26771 # If the user did not use the arguments to specify the items to instantiate,
26772 # then the envvar interface is used.  Set only those that are not.
26773 # We use the long form for the default assignment because of an extremely
26774 # bizarre bug on SunOS 4.1.3.
26775 if $ac_need_defaults; then
26776   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26777   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26778   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26779 fi
26780
26781 # Have a temporary directory for convenience.  Make it in the build tree
26782 # simply because there is no reason against having it here, and in addition,
26783 # creating and moving files from /tmp can sometimes cause problems.
26784 # Hook for its removal unless debugging.
26785 # Note that there is a small window in which the directory will not be cleaned:
26786 # after its creation but before its name has been assigned to `$tmp'.
26787 $debug ||
26788 {
26789   tmp=
26790   trap 'exit_status=$?
26791   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26792 ' 0
26793   trap '{ (exit 1); exit 1; }' 1 2 13 15
26794 }
26795 # Create a (secure) tmp directory for tmp files.
26796
26797 {
26798   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26799   test -n "$tmp" && test -d "$tmp"
26800 }  ||
26801 {
26802   tmp=./conf$$-$RANDOM
26803   (umask 077 && mkdir "$tmp")
26804 } ||
26805 {
26806    echo "$me: cannot create a temporary directory in ." >&2
26807    { (exit 1); exit 1; }
26808 }
26809
26810 #
26811 # Set up the sed scripts for CONFIG_FILES section.
26812 #
26813
26814 # No need to generate the scripts if there are no CONFIG_FILES.
26815 # This happens for instance when ./config.status config.h
26816 if test -n "$CONFIG_FILES"; then
26817
26818 _ACEOF
26819
26820
26821
26822 ac_delim='%!_!# '
26823 for ac_last_try in false false false false false :; do
26824   cat >conf$$subs.sed <<_ACEOF
26825 SHELL!$SHELL$ac_delim
26826 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26827 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26828 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26829 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26830 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26831 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26832 exec_prefix!$exec_prefix$ac_delim
26833 prefix!$prefix$ac_delim
26834 program_transform_name!$program_transform_name$ac_delim
26835 bindir!$bindir$ac_delim
26836 sbindir!$sbindir$ac_delim
26837 libexecdir!$libexecdir$ac_delim
26838 datarootdir!$datarootdir$ac_delim
26839 datadir!$datadir$ac_delim
26840 sysconfdir!$sysconfdir$ac_delim
26841 sharedstatedir!$sharedstatedir$ac_delim
26842 localstatedir!$localstatedir$ac_delim
26843 includedir!$includedir$ac_delim
26844 oldincludedir!$oldincludedir$ac_delim
26845 docdir!$docdir$ac_delim
26846 infodir!$infodir$ac_delim
26847 htmldir!$htmldir$ac_delim
26848 dvidir!$dvidir$ac_delim
26849 pdfdir!$pdfdir$ac_delim
26850 psdir!$psdir$ac_delim
26851 libdir!$libdir$ac_delim
26852 localedir!$localedir$ac_delim
26853 mandir!$mandir$ac_delim
26854 DEFS!$DEFS$ac_delim
26855 ECHO_C!$ECHO_C$ac_delim
26856 ECHO_N!$ECHO_N$ac_delim
26857 ECHO_T!$ECHO_T$ac_delim
26858 LIBS!$LIBS$ac_delim
26859 build_alias!$build_alias$ac_delim
26860 host_alias!$host_alias$ac_delim
26861 target_alias!$target_alias$ac_delim
26862 CC!$CC$ac_delim
26863 CFLAGS!$CFLAGS$ac_delim
26864 LDFLAGS!$LDFLAGS$ac_delim
26865 CPPFLAGS!$CPPFLAGS$ac_delim
26866 ac_ct_CC!$ac_ct_CC$ac_delim
26867 EXEEXT!$EXEEXT$ac_delim
26868 OBJEXT!$OBJEXT$ac_delim
26869 CXX!$CXX$ac_delim
26870 CXXFLAGS!$CXXFLAGS$ac_delim
26871 ac_ct_CXX!$ac_ct_CXX$ac_delim
26872 CPP!$CPP$ac_delim
26873 GREP!$GREP$ac_delim
26874 EGREP!$EGREP$ac_delim
26875 RANLIB!$RANLIB$ac_delim
26876 GMAKE!$GMAKE$ac_delim
26877 MAKE!$MAKE$ac_delim
26878 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26879 LIBTOOL!$LIBTOOL$ac_delim
26880 build!$build$ac_delim
26881 build_cpu!$build_cpu$ac_delim
26882 build_vendor!$build_vendor$ac_delim
26883 build_os!$build_os$ac_delim
26884 host!$host$ac_delim
26885 host_cpu!$host_cpu$ac_delim
26886 host_vendor!$host_vendor$ac_delim
26887 host_os!$host_os$ac_delim
26888 SED!$SED$ac_delim
26889 LN_S!$LN_S$ac_delim
26890 ECHO!$ECHO$ac_delim
26891 AR!$AR$ac_delim
26892 STRIP!$STRIP$ac_delim
26893 DSYMUTIL!$DSYMUTIL$ac_delim
26894 NMEDIT!$NMEDIT$ac_delim
26895 CXXCPP!$CXXCPP$ac_delim
26896 F77!$F77$ac_delim
26897 FFLAGS!$FFLAGS$ac_delim
26898 ac_ct_F77!$ac_ct_F77$ac_delim
26899 logdir!$logdir$ac_delim
26900 radacctdir!$radacctdir$ac_delim
26901 raddbdir!$raddbdir$ac_delim
26902 PERL!$PERL$ac_delim
26903 SNMPGET!$SNMPGET$ac_delim
26904 SNMPWALK!$SNMPWALK$ac_delim
26905 RUSERS!$RUSERS$ac_delim
26906 ACLOCAL!$ACLOCAL$ac_delim
26907 AUTOCONF!$AUTOCONF$ac_delim
26908 AUTOHEADER!$AUTOHEADER$ac_delim
26909 LOCATE!$LOCATE$ac_delim
26910 DIRNAME!$DIRNAME$ac_delim
26911 LIBREADLINE!$LIBREADLINE$ac_delim
26912 REGEX!$REGEX$ac_delim
26913 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26914 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26915 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26916 PCAP_LIBS!$PCAP_LIBS$ac_delim
26917 LIBPREFIX!$LIBPREFIX$ac_delim
26918 CRYPTLIB!$CRYPTLIB$ac_delim
26919 HOSTINFO!$HOSTINFO$ac_delim
26920 LIBLTDL!$LIBLTDL$ac_delim
26921 INCLTDL!$INCLTDL$ac_delim
26922 _ACEOF
26923
26924   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26925     break
26926   elif $ac_last_try; then
26927     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26928 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26929    { (exit 1); exit 1; }; }
26930   else
26931     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26932   fi
26933 done
26934
26935 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26936 if test -n "$ac_eof"; then
26937   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26938   ac_eof=`expr $ac_eof + 1`
26939 fi
26940
26941 cat >>$CONFIG_STATUS <<_ACEOF
26942 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26944 _ACEOF
26945 sed '
26946 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26947 s/^/s,@/; s/!/@,|#_!!_#|/
26948 :n
26949 t n
26950 s/'"$ac_delim"'$/,g/; t
26951 s/$/\\/; p
26952 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26953 ' >>$CONFIG_STATUS <conf$$subs.sed
26954 rm -f conf$$subs.sed
26955 cat >>$CONFIG_STATUS <<_ACEOF
26956 CEOF$ac_eof
26957 _ACEOF
26958
26959
26960 ac_delim='%!_!# '
26961 for ac_last_try in false false false false false :; do
26962   cat >conf$$subs.sed <<_ACEOF
26963 subdirs!$subdirs$ac_delim
26964 MODULES!$MODULES$ac_delim
26965 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26966 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26967 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26968 STATIC_MODULES!$STATIC_MODULES$ac_delim
26969 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26970 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26971 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26972 LIBOBJS!$LIBOBJS$ac_delim
26973 LTLIBOBJS!$LTLIBOBJS$ac_delim
26974 _ACEOF
26975
26976   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26977     break
26978   elif $ac_last_try; then
26979     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26980 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26981    { (exit 1); exit 1; }; }
26982   else
26983     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26984   fi
26985 done
26986
26987 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26988 if test -n "$ac_eof"; then
26989   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26990   ac_eof=`expr $ac_eof + 1`
26991 fi
26992
26993 cat >>$CONFIG_STATUS <<_ACEOF
26994 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26996 _ACEOF
26997 sed '
26998 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26999 s/^/s,@/; s/!/@,|#_!!_#|/
27000 :n
27001 t n
27002 s/'"$ac_delim"'$/,g/; t
27003 s/$/\\/; p
27004 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27005 ' >>$CONFIG_STATUS <conf$$subs.sed
27006 rm -f conf$$subs.sed
27007 cat >>$CONFIG_STATUS <<_ACEOF
27008 :end
27009 s/|#_!!_#|//g
27010 CEOF$ac_eof
27011 _ACEOF
27012
27013
27014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27016 # trailing colons and then remove the whole line if VPATH becomes empty
27017 # (actually we leave an empty line to preserve line numbers).
27018 if test "x$srcdir" = x.; then
27019   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27020 s/:*\$(srcdir):*/:/
27021 s/:*\${srcdir}:*/:/
27022 s/:*@srcdir@:*/:/
27023 s/^\([^=]*=[     ]*\):*/\1/
27024 s/:*$//
27025 s/^[^=]*=[       ]*$//
27026 }'
27027 fi
27028
27029 cat >>$CONFIG_STATUS <<\_ACEOF
27030 fi # test -n "$CONFIG_FILES"
27031
27032
27033 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27034 do
27035   case $ac_tag in
27036   :[FHLC]) ac_mode=$ac_tag; continue;;
27037   esac
27038   case $ac_mode$ac_tag in
27039   :[FHL]*:*);;
27040   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27041 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27042    { (exit 1); exit 1; }; };;
27043   :[FH]-) ac_tag=-:-;;
27044   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27045   esac
27046   ac_save_IFS=$IFS
27047   IFS=:
27048   set x $ac_tag
27049   IFS=$ac_save_IFS
27050   shift
27051   ac_file=$1
27052   shift
27053
27054   case $ac_mode in
27055   :L) ac_source=$1;;
27056   :[FH])
27057     ac_file_inputs=
27058     for ac_f
27059     do
27060       case $ac_f in
27061       -) ac_f="$tmp/stdin";;
27062       *) # Look for the file first in the build tree, then in the source tree
27063          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27064          # because $ac_f cannot contain `:'.
27065          test -f "$ac_f" ||
27066            case $ac_f in
27067            [\\/$]*) false;;
27068            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27069            esac ||
27070            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27071 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27072    { (exit 1); exit 1; }; };;
27073       esac
27074       ac_file_inputs="$ac_file_inputs $ac_f"
27075     done
27076
27077     # Let's still pretend it is `configure' which instantiates (i.e., don't
27078     # use $as_me), people would be surprised to read:
27079     #    /* config.h.  Generated by config.status.  */
27080     configure_input="Generated from "`IFS=:
27081           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27082     if test x"$ac_file" != x-; then
27083       configure_input="$ac_file.  $configure_input"
27084       { echo "$as_me:$LINENO: creating $ac_file" >&5
27085 echo "$as_me: creating $ac_file" >&6;}
27086     fi
27087
27088     case $ac_tag in
27089     *:-:* | *:-) cat >"$tmp/stdin";;
27090     esac
27091     ;;
27092   esac
27093
27094   ac_dir=`$as_dirname -- "$ac_file" ||
27095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27096          X"$ac_file" : 'X\(//\)[^/]' \| \
27097          X"$ac_file" : 'X\(//\)$' \| \
27098          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27099 echo X"$ac_file" |
27100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27101             s//\1/
27102             q
27103           }
27104           /^X\(\/\/\)[^/].*/{
27105             s//\1/
27106             q
27107           }
27108           /^X\(\/\/\)$/{
27109             s//\1/
27110             q
27111           }
27112           /^X\(\/\).*/{
27113             s//\1/
27114             q
27115           }
27116           s/.*/./; q'`
27117   { as_dir="$ac_dir"
27118   case $as_dir in #(
27119   -*) as_dir=./$as_dir;;
27120   esac
27121   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27122     as_dirs=
27123     while :; do
27124       case $as_dir in #(
27125       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27126       *) as_qdir=$as_dir;;
27127       esac
27128       as_dirs="'$as_qdir' $as_dirs"
27129       as_dir=`$as_dirname -- "$as_dir" ||
27130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27131          X"$as_dir" : 'X\(//\)[^/]' \| \
27132          X"$as_dir" : 'X\(//\)$' \| \
27133          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27134 echo X"$as_dir" |
27135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27136             s//\1/
27137             q
27138           }
27139           /^X\(\/\/\)[^/].*/{
27140             s//\1/
27141             q
27142           }
27143           /^X\(\/\/\)$/{
27144             s//\1/
27145             q
27146           }
27147           /^X\(\/\).*/{
27148             s//\1/
27149             q
27150           }
27151           s/.*/./; q'`
27152       test -d "$as_dir" && break
27153     done
27154     test -z "$as_dirs" || eval "mkdir $as_dirs"
27155   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27156 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27157    { (exit 1); exit 1; }; }; }
27158   ac_builddir=.
27159
27160 case "$ac_dir" in
27161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27162 *)
27163   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27164   # A ".." for each directory in $ac_dir_suffix.
27165   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27166   case $ac_top_builddir_sub in
27167   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27168   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27169   esac ;;
27170 esac
27171 ac_abs_top_builddir=$ac_pwd
27172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27173 # for backward compatibility:
27174 ac_top_builddir=$ac_top_build_prefix
27175
27176 case $srcdir in
27177   .)  # We are building in place.
27178     ac_srcdir=.
27179     ac_top_srcdir=$ac_top_builddir_sub
27180     ac_abs_top_srcdir=$ac_pwd ;;
27181   [\\/]* | ?:[\\/]* )  # Absolute name.
27182     ac_srcdir=$srcdir$ac_dir_suffix;
27183     ac_top_srcdir=$srcdir
27184     ac_abs_top_srcdir=$srcdir ;;
27185   *) # Relative name.
27186     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27187     ac_top_srcdir=$ac_top_build_prefix$srcdir
27188     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27189 esac
27190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27191
27192
27193   case $ac_mode in
27194   :F)
27195   #
27196   # CONFIG_FILE
27197   #
27198
27199 _ACEOF
27200
27201 cat >>$CONFIG_STATUS <<\_ACEOF
27202 # If the template does not know about datarootdir, expand it.
27203 # FIXME: This hack should be removed a few years after 2.60.
27204 ac_datarootdir_hack=; ac_datarootdir_seen=
27205
27206 case `sed -n '/datarootdir/ {
27207   p
27208   q
27209 }
27210 /@datadir@/p
27211 /@docdir@/p
27212 /@infodir@/p
27213 /@localedir@/p
27214 /@mandir@/p
27215 ' $ac_file_inputs` in
27216 *datarootdir*) ac_datarootdir_seen=yes;;
27217 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27218   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27219 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27220 _ACEOF
27221 cat >>$CONFIG_STATUS <<_ACEOF
27222   ac_datarootdir_hack='
27223   s&@datadir@&$datadir&g
27224   s&@docdir@&$docdir&g
27225   s&@infodir@&$infodir&g
27226   s&@localedir@&$localedir&g
27227   s&@mandir@&$mandir&g
27228     s&\\\${datarootdir}&$datarootdir&g' ;;
27229 esac
27230 _ACEOF
27231
27232 # Neutralize VPATH when `$srcdir' = `.'.
27233 # Shell code in configure.ac might set extrasub.
27234 # FIXME: do we really want to maintain this feature?
27235 cat >>$CONFIG_STATUS <<_ACEOF
27236   sed "$ac_vpsub
27237 $extrasub
27238 _ACEOF
27239 cat >>$CONFIG_STATUS <<\_ACEOF
27240 :t
27241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27242 s&@configure_input@&$configure_input&;t t
27243 s&@top_builddir@&$ac_top_builddir_sub&;t t
27244 s&@srcdir@&$ac_srcdir&;t t
27245 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27246 s&@top_srcdir@&$ac_top_srcdir&;t t
27247 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27248 s&@builddir@&$ac_builddir&;t t
27249 s&@abs_builddir@&$ac_abs_builddir&;t t
27250 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27251 $ac_datarootdir_hack
27252 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27253
27254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27255   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27256   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27257   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27258 which seems to be undefined.  Please make sure it is defined." >&5
27259 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27260 which seems to be undefined.  Please make sure it is defined." >&2;}
27261
27262   rm -f "$tmp/stdin"
27263   case $ac_file in
27264   -) cat "$tmp/out"; rm -f "$tmp/out";;
27265   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27266   esac
27267  ;;
27268   :H)
27269   #
27270   # CONFIG_HEADER
27271   #
27272 _ACEOF
27273
27274 # Transform confdefs.h into a sed script `conftest.defines', that
27275 # substitutes the proper values into config.h.in to produce config.h.
27276 rm -f conftest.defines conftest.tail
27277 # First, append a space to every undef/define line, to ease matching.
27278 echo 's/$/ /' >conftest.defines
27279 # Then, protect against being on the right side of a sed subst, or in
27280 # an unquoted here document, in config.status.  If some macros were
27281 # called several times there might be several #defines for the same
27282 # symbol, which is useless.  But do not sort them, since the last
27283 # AC_DEFINE must be honored.
27284 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27285 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27286 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27287 # PARAMS is the parameter list in the macro definition--in most cases, it's
27288 # just an empty string.
27289 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27290 ac_dB='\\)[      (].*,\\1define\\2'
27291 ac_dC=' '
27292 ac_dD=' ,'
27293
27294 uniq confdefs.h |
27295   sed -n '
27296         t rset
27297         :rset
27298         s/^[     ]*#[    ]*define[       ][      ]*//
27299         t ok
27300         d
27301         :ok
27302         s/[\\&,]/\\&/g
27303         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27304         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27305   ' >>conftest.defines
27306
27307 # Remove the space that was appended to ease matching.
27308 # Then replace #undef with comments.  This is necessary, for
27309 # example, in the case of _POSIX_SOURCE, which is predefined and required
27310 # on some systems where configure will not decide to define it.
27311 # (The regexp can be short, since the line contains either #define or #undef.)
27312 echo 's/ $//
27313 s,^[     #]*u.*,/* & */,' >>conftest.defines
27314
27315 # Break up conftest.defines:
27316 ac_max_sed_lines=50
27317
27318 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27319 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27320 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27321 # et cetera.
27322 ac_in='$ac_file_inputs'
27323 ac_out='"$tmp/out1"'
27324 ac_nxt='"$tmp/out2"'
27325
27326 while :
27327 do
27328   # Write a here document:
27329     cat >>$CONFIG_STATUS <<_ACEOF
27330     # First, check the format of the line:
27331     cat >"\$tmp/defines.sed" <<\\CEOF
27332 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27333 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27334 b
27335 :def
27336 _ACEOF
27337   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27338   echo 'CEOF
27339     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27340   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27341   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27342   grep . conftest.tail >/dev/null || break
27343   rm -f conftest.defines
27344   mv conftest.tail conftest.defines
27345 done
27346 rm -f conftest.defines conftest.tail
27347
27348 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27349 cat >>$CONFIG_STATUS <<\_ACEOF
27350   if test x"$ac_file" != x-; then
27351     echo "/* $configure_input  */" >"$tmp/config.h"
27352     cat "$ac_result" >>"$tmp/config.h"
27353     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27354       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27355 echo "$as_me: $ac_file is unchanged" >&6;}
27356     else
27357       rm -f $ac_file
27358       mv "$tmp/config.h" $ac_file
27359     fi
27360   else
27361     echo "/* $configure_input  */"
27362     cat "$ac_result"
27363   fi
27364   rm -f "$tmp/out12"
27365  ;;
27366
27367   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27368 echo "$as_me: executing $ac_file commands" >&6;}
27369  ;;
27370   esac
27371
27372
27373   case $ac_file$ac_mode in
27374     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27375     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27376     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
27377     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27378
27379   esac
27380 done # for ac_tag
27381
27382
27383 { (exit 0); exit 0; }
27384 _ACEOF
27385 chmod +x $CONFIG_STATUS
27386 ac_clean_files=$ac_clean_files_save
27387
27388
27389 # configure is writing to config.log, and then calls config.status.
27390 # config.status does its own redirection, appending to config.log.
27391 # Unfortunately, on DOS this fails, as config.log is still kept open
27392 # by configure, so config.status won't be able to write to it; its
27393 # output is simply discarded.  So we exec the FD to /dev/null,
27394 # effectively closing config.log, so it can be properly (re)opened and
27395 # appended to by config.status.  When coming back to configure, we
27396 # need to make the FD available again.
27397 if test "$no_create" != yes; then
27398   ac_cs_success=:
27399   ac_config_status_args=
27400   test "$silent" = yes &&
27401     ac_config_status_args="$ac_config_status_args --quiet"
27402   exec 5>/dev/null
27403   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27404   exec 5>>config.log
27405   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27406   # would make configure fail if this is the last instruction.
27407   $ac_cs_success || { (exit 1); exit 1; }
27408 fi
27409
27410 #
27411 # CONFIG_SUBDIRS section.
27412 #
27413 if test "$no_recursion" != yes; then
27414
27415   # Remove --cache-file and --srcdir arguments so they do not pile up.
27416   ac_sub_configure_args=
27417   ac_prev=
27418   eval "set x $ac_configure_args"
27419   shift
27420   for ac_arg
27421   do
27422     if test -n "$ac_prev"; then
27423       ac_prev=
27424       continue
27425     fi
27426     case $ac_arg in
27427     -cache-file | --cache-file | --cache-fil | --cache-fi \
27428     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27429       ac_prev=cache_file ;;
27430     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27431     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27432     | --c=*)
27433       ;;
27434     --config-cache | -C)
27435       ;;
27436     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27437       ac_prev=srcdir ;;
27438     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27439       ;;
27440     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27441       ac_prev=prefix ;;
27442     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27443       ;;
27444     *)
27445       case $ac_arg in
27446       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27447       esac
27448       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27449     esac
27450   done
27451
27452   # Always prepend --prefix to ensure using the same prefix
27453   # in subdir configurations.
27454   ac_arg="--prefix=$prefix"
27455   case $ac_arg in
27456   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27457   esac
27458   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27459
27460   # Pass --silent
27461   if test "$silent" = yes; then
27462     ac_sub_configure_args="--silent $ac_sub_configure_args"
27463   fi
27464
27465   ac_popdir=`pwd`
27466   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27467
27468     # Do not complain, so a configure script can configure whichever
27469     # parts of a large source tree are present.
27470     test -d "$srcdir/$ac_dir" || continue
27471
27472     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27473     echo "$as_me:$LINENO: $ac_msg" >&5
27474     echo "$ac_msg" >&6
27475     { as_dir="$ac_dir"
27476   case $as_dir in #(
27477   -*) as_dir=./$as_dir;;
27478   esac
27479   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27480     as_dirs=
27481     while :; do
27482       case $as_dir in #(
27483       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27484       *) as_qdir=$as_dir;;
27485       esac
27486       as_dirs="'$as_qdir' $as_dirs"
27487       as_dir=`$as_dirname -- "$as_dir" ||
27488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27489          X"$as_dir" : 'X\(//\)[^/]' \| \
27490          X"$as_dir" : 'X\(//\)$' \| \
27491          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27492 echo X"$as_dir" |
27493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27494             s//\1/
27495             q
27496           }
27497           /^X\(\/\/\)[^/].*/{
27498             s//\1/
27499             q
27500           }
27501           /^X\(\/\/\)$/{
27502             s//\1/
27503             q
27504           }
27505           /^X\(\/\).*/{
27506             s//\1/
27507             q
27508           }
27509           s/.*/./; q'`
27510       test -d "$as_dir" && break
27511     done
27512     test -z "$as_dirs" || eval "mkdir $as_dirs"
27513   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27514 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27515    { (exit 1); exit 1; }; }; }
27516     ac_builddir=.
27517
27518 case "$ac_dir" in
27519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27520 *)
27521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27522   # A ".." for each directory in $ac_dir_suffix.
27523   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27524   case $ac_top_builddir_sub in
27525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27527   esac ;;
27528 esac
27529 ac_abs_top_builddir=$ac_pwd
27530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27531 # for backward compatibility:
27532 ac_top_builddir=$ac_top_build_prefix
27533
27534 case $srcdir in
27535   .)  # We are building in place.
27536     ac_srcdir=.
27537     ac_top_srcdir=$ac_top_builddir_sub
27538     ac_abs_top_srcdir=$ac_pwd ;;
27539   [\\/]* | ?:[\\/]* )  # Absolute name.
27540     ac_srcdir=$srcdir$ac_dir_suffix;
27541     ac_top_srcdir=$srcdir
27542     ac_abs_top_srcdir=$srcdir ;;
27543   *) # Relative name.
27544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27545     ac_top_srcdir=$ac_top_build_prefix$srcdir
27546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27547 esac
27548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27549
27550
27551     cd "$ac_dir"
27552
27553     # Check for guested configure; otherwise get Cygnus style configure.
27554     if test -f "$ac_srcdir/configure.gnu"; then
27555       ac_sub_configure=$ac_srcdir/configure.gnu
27556     elif test -f "$ac_srcdir/configure"; then
27557       ac_sub_configure=$ac_srcdir/configure
27558     elif test -f "$ac_srcdir/configure.in"; then
27559       # This should be Cygnus configure.
27560       ac_sub_configure=$ac_aux_dir/configure
27561     else
27562       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27563 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27564       ac_sub_configure=
27565     fi
27566
27567     # The recursion is here.
27568     if test -n "$ac_sub_configure"; then
27569       # Make the cache file name correct relative to the subdirectory.
27570       case $cache_file in
27571       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27572       *) # Relative name.
27573         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27574       esac
27575
27576       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27577 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27578       # The eval makes quoting arguments work.
27579       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27580            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27581         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27582 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27583    { (exit 1); exit 1; }; }
27584     fi
27585
27586     cd "$ac_popdir"
27587   done
27588 fi
27589
27590