Print out DHCP attributes sent / received
[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 lt_ltdl_dir='libltdl'
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$lt_ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 ECHO=${lt_ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $ECHO works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<_LT_EOF
585 $*
586 _LT_EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$lt_ECHO"; then
595   if test "X${echo_test_string+set}" != Xset; then
596     # find a string as large as possible, as long as the shell can cope with it
597     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
600          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
601       then
602         break
603       fi
604     done
605   fi
606
607   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
608      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
609      test "X$echo_testing_string" = "X$echo_test_string"; then
610     :
611   else
612     # The Solaris, AIX, and Digital Unix default echo programs unquote
613     # backslashes.  This makes it impossible to quote backslashes using
614     #   echo "$something" | sed 's/\\/\\\\/g'
615     #
616     # So, first we look for a working echo in the user's PATH.
617
618     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619     for dir in $PATH /usr/ucb; do
620       IFS="$lt_save_ifs"
621       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624          test "X$echo_testing_string" = "X$echo_test_string"; then
625         ECHO="$dir/echo"
626         break
627       fi
628     done
629     IFS="$lt_save_ifs"
630
631     if test "X$ECHO" = Xecho; then
632       # We didn't find a better echo, so look for alternatives.
633       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
634          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
635          test "X$echo_testing_string" = "X$echo_test_string"; then
636         # This shell has a builtin print -r that does the trick.
637         ECHO='print -r'
638       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
639            test "X$CONFIG_SHELL" != X/bin/ksh; then
640         # If we have ksh, try running configure again with it.
641         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642         export ORIGINAL_CONFIG_SHELL
643         CONFIG_SHELL=/bin/ksh
644         export CONFIG_SHELL
645         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646       else
647         # Try using printf.
648         ECHO='printf %s\n'
649         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651            test "X$echo_testing_string" = "X$echo_test_string"; then
652           # Cool, printf works
653           :
654         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655              test "X$echo_testing_string" = 'X\t' &&
656              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657              test "X$echo_testing_string" = "X$echo_test_string"; then
658           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659           export CONFIG_SHELL
660           SHELL="$CONFIG_SHELL"
661           export SHELL
662           ECHO="$CONFIG_SHELL $0 --fallback-echo"
663         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664              test "X$echo_testing_string" = 'X\t' &&
665              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666              test "X$echo_testing_string" = "X$echo_test_string"; then
667           ECHO="$CONFIG_SHELL $0 --fallback-echo"
668         else
669           # maybe with a smaller string...
670           prev=:
671
672           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
674             then
675               break
676             fi
677             prev="$cmd"
678           done
679
680           if test "$prev" != 'sed 50q "$0"'; then
681             echo_test_string=`eval $prev`
682             export echo_test_string
683             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684           else
685             # Oops.  We lost completely, so just stick with echo.
686             ECHO=echo
687           fi
688         fi
689       fi
690     fi
691   fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 lt_ECHO=$ECHO
697 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 lt_dlopen_dir="$lt_ltdl_dir"
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="src/main/radiusd.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 CPPFLAGS
811 ac_ct_CC
812 EXEEXT
813 OBJEXT
814 CXX
815 CXXFLAGS
816 ac_ct_CXX
817 CPP
818 GREP
819 EGREP
820 GMAKE
821 MAKE
822 LIBLTDL
823 LTDLDEPS
824 LTDLINCL
825 INCLTDL
826 LTDL_SUBDIRS
827 LIBTOOL
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
836 SED
837 FGREP
838 LD
839 DUMPBIN
840 ac_ct_DUMPBIN
841 NM
842 LN_S
843 AR
844 STRIP
845 RANLIB
846 lt_ECHO
847 DSYMUTIL
848 NMEDIT
849 LIPO
850 OTOOL
851 OTOOL64
852 CXXCPP
853 LT_DLLOADERS
854 LIBADD_DLOPEN
855 LIBADD_SHL_LOAD
856 LIBADD_DLD_LINK
857 LT_DLPREOPEN
858 LIBADD_DL
859 sys_symbol_underscore
860 ARGZ_H
861 INSTALL_LTDL_TRUE
862 INSTALL_LTDL_FALSE
863 CONVENIENCE_LTDL_TRUE
864 CONVENIENCE_LTDL_FALSE
865 subdirs
866 LT_CONFIG_H
867 LTDLOPEN
868 logdir
869 radacctdir
870 raddbdir
871 PERL
872 SNMPGET
873 SNMPWALK
874 RUSERS
875 ACLOCAL
876 AUTOCONF
877 AUTOHEADER
878 LOCATE
879 DIRNAME
880 LIBREADLINE
881 REGEX
882 REGEX_EXTENDED
883 OPENSSL_INCLUDE
884 OPENSSL_LIBS
885 PCAP_LIBS
886 LIBPREFIX
887 CRYPTLIB
888 HOSTINFO
889 MODULES
890 INSTALLSTRIP
891 USE_SHARED_LIBS
892 USE_STATIC_LIBS
893 STATIC_MODULES
894 RADIUSD_MAJOR_VERSION
895 RADIUSD_MINOR_VERSION
896 RADIUSD_VERSION
897 LIBOBJS
898 LTLIBOBJS
899 ltdl_LIBOBJS
900 ltdl_LTLIBOBJS'
901 ac_subst_files=''
902       ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CC
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 CXX
911 CXXFLAGS
912 CCC
913 CPP
914 CXXCPP'
915 ac_subdirs_all='libltdl
916 $LTDL_SUBDIRS $mysubdirs'
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968   # If the previous option needs an argument, assign it.
969   if test -n "$ac_prev"; then
970     eval $ac_prev=\$ac_option
971     ac_prev=
972     continue
973   fi
974
975   case $ac_option in
976   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977   *)    ac_optarg=yes ;;
978   esac
979
980   # Accept the important Cygnus configure options, so we can diagnose typos.
981
982   case $ac_dashdash$ac_option in
983   --)
984     ac_dashdash=yes ;;
985
986   -bindir | --bindir | --bindi | --bind | --bin | --bi)
987     ac_prev=bindir ;;
988   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989     bindir=$ac_optarg ;;
990
991   -build | --build | --buil | --bui | --bu)
992     ac_prev=build_alias ;;
993   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994     build_alias=$ac_optarg ;;
995
996   -cache-file | --cache-file | --cache-fil | --cache-fi \
997   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998     ac_prev=cache_file ;;
999   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001     cache_file=$ac_optarg ;;
1002
1003   --config-cache | -C)
1004     cache_file=config.cache ;;
1005
1006   -datadir | --datadir | --datadi | --datad)
1007     ac_prev=datadir ;;
1008   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009     datadir=$ac_optarg ;;
1010
1011   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012   | --dataroo | --dataro | --datar)
1013     ac_prev=datarootdir ;;
1014   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016     datarootdir=$ac_optarg ;;
1017
1018   -disable-* | --disable-*)
1019     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023    { (exit 1); exit 1; }; }
1024     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025     eval enable_$ac_feature=no ;;
1026
1027   -docdir | --docdir | --docdi | --doc | --do)
1028     ac_prev=docdir ;;
1029   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030     docdir=$ac_optarg ;;
1031
1032   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033     ac_prev=dvidir ;;
1034   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035     dvidir=$ac_optarg ;;
1036
1037   -enable-* | --enable-*)
1038     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044     eval enable_$ac_feature=\$ac_optarg ;;
1045
1046   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048   | --exec | --exe | --ex)
1049     ac_prev=exec_prefix ;;
1050   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052   | --exec=* | --exe=* | --ex=*)
1053     exec_prefix=$ac_optarg ;;
1054
1055   -gas | --gas | --ga | --g)
1056     # Obsolete; use --with-gas.
1057     with_gas=yes ;;
1058
1059   -help | --help | --hel | --he | -h)
1060     ac_init_help=long ;;
1061   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062     ac_init_help=recursive ;;
1063   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064     ac_init_help=short ;;
1065
1066   -host | --host | --hos | --ho)
1067     ac_prev=host_alias ;;
1068   -host=* | --host=* | --hos=* | --ho=*)
1069     host_alias=$ac_optarg ;;
1070
1071   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072     ac_prev=htmldir ;;
1073   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074   | --ht=*)
1075     htmldir=$ac_optarg ;;
1076
1077   -includedir | --includedir | --includedi | --included | --include \
1078   | --includ | --inclu | --incl | --inc)
1079     ac_prev=includedir ;;
1080   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081   | --includ=* | --inclu=* | --incl=* | --inc=*)
1082     includedir=$ac_optarg ;;
1083
1084   -infodir | --infodir | --infodi | --infod | --info | --inf)
1085     ac_prev=infodir ;;
1086   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087     infodir=$ac_optarg ;;
1088
1089   -libdir | --libdir | --libdi | --libd)
1090     ac_prev=libdir ;;
1091   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092     libdir=$ac_optarg ;;
1093
1094   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095   | --libexe | --libex | --libe)
1096     ac_prev=libexecdir ;;
1097   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098   | --libexe=* | --libex=* | --libe=*)
1099     libexecdir=$ac_optarg ;;
1100
1101   -localedir | --localedir | --localedi | --localed | --locale)
1102     ac_prev=localedir ;;
1103   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104     localedir=$ac_optarg ;;
1105
1106   -localstatedir | --localstatedir | --localstatedi | --localstated \
1107   | --localstate | --localstat | --localsta | --localst | --locals)
1108     ac_prev=localstatedir ;;
1109   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111     localstatedir=$ac_optarg ;;
1112
1113   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114     ac_prev=mandir ;;
1115   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116     mandir=$ac_optarg ;;
1117
1118   -nfp | --nfp | --nf)
1119     # Obsolete; use --without-fp.
1120     with_fp=no ;;
1121
1122   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123   | --no-cr | --no-c | -n)
1124     no_create=yes ;;
1125
1126   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128     no_recursion=yes ;;
1129
1130   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132   | --oldin | --oldi | --old | --ol | --o)
1133     ac_prev=oldincludedir ;;
1134   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137     oldincludedir=$ac_optarg ;;
1138
1139   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140     ac_prev=prefix ;;
1141   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142     prefix=$ac_optarg ;;
1143
1144   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145   | --program-pre | --program-pr | --program-p)
1146     ac_prev=program_prefix ;;
1147   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149     program_prefix=$ac_optarg ;;
1150
1151   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152   | --program-suf | --program-su | --program-s)
1153     ac_prev=program_suffix ;;
1154   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156     program_suffix=$ac_optarg ;;
1157
1158   -program-transform-name | --program-transform-name \
1159   | --program-transform-nam | --program-transform-na \
1160   | --program-transform-n | --program-transform- \
1161   | --program-transform | --program-transfor \
1162   | --program-transfo | --program-transf \
1163   | --program-trans | --program-tran \
1164   | --progr-tra | --program-tr | --program-t)
1165     ac_prev=program_transform_name ;;
1166   -program-transform-name=* | --program-transform-name=* \
1167   | --program-transform-nam=* | --program-transform-na=* \
1168   | --program-transform-n=* | --program-transform-=* \
1169   | --program-transform=* | --program-transfor=* \
1170   | --program-transfo=* | --program-transf=* \
1171   | --program-trans=* | --program-tran=* \
1172   | --progr-tra=* | --program-tr=* | --program-t=*)
1173     program_transform_name=$ac_optarg ;;
1174
1175   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176     ac_prev=pdfdir ;;
1177   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178     pdfdir=$ac_optarg ;;
1179
1180   -psdir | --psdir | --psdi | --psd | --ps)
1181     ac_prev=psdir ;;
1182   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183     psdir=$ac_optarg ;;
1184
1185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186   | -silent | --silent | --silen | --sile | --sil)
1187     silent=yes ;;
1188
1189   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190     ac_prev=sbindir ;;
1191   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192   | --sbi=* | --sb=*)
1193     sbindir=$ac_optarg ;;
1194
1195   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197   | --sharedst | --shareds | --shared | --share | --shar \
1198   | --sha | --sh)
1199     ac_prev=sharedstatedir ;;
1200   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203   | --sha=* | --sh=*)
1204     sharedstatedir=$ac_optarg ;;
1205
1206   -site | --site | --sit)
1207     ac_prev=site ;;
1208   -site=* | --site=* | --sit=*)
1209     site=$ac_optarg ;;
1210
1211   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212     ac_prev=srcdir ;;
1213   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214     srcdir=$ac_optarg ;;
1215
1216   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217   | --syscon | --sysco | --sysc | --sys | --sy)
1218     ac_prev=sysconfdir ;;
1219   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221     sysconfdir=$ac_optarg ;;
1222
1223   -target | --target | --targe | --targ | --tar | --ta | --t)
1224     ac_prev=target_alias ;;
1225   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226     target_alias=$ac_optarg ;;
1227
1228   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229     verbose=yes ;;
1230
1231   -version | --version | --versio | --versi | --vers | -V)
1232     ac_init_version=: ;;
1233
1234   -with-* | --with-*)
1235     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       { echo "$as_me: error: invalid package name: $ac_package" >&2
1239    { (exit 1); exit 1; }; }
1240     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241     eval with_$ac_package=\$ac_optarg ;;
1242
1243   -without-* | --without-*)
1244     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       { echo "$as_me: error: invalid package name: $ac_package" >&2
1248    { (exit 1); exit 1; }; }
1249     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250     eval with_$ac_package=no ;;
1251
1252   --x)
1253     # Obsolete; use --with-x.
1254     with_x=yes ;;
1255
1256   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257   | --x-incl | --x-inc | --x-in | --x-i)
1258     ac_prev=x_includes ;;
1259   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261     x_includes=$ac_optarg ;;
1262
1263   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265     ac_prev=x_libraries ;;
1266   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268     x_libraries=$ac_optarg ;;
1269
1270   -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272    { (exit 1); exit 1; }; }
1273     ;;
1274
1275   *=*)
1276     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280    { (exit 1); exit 1; }; }
1281     eval $ac_envvar=\$ac_optarg
1282     export $ac_envvar ;;
1283
1284   *)
1285     # FIXME: should be removed in autoconf 3.0.
1286     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290     ;;
1291
1292   esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297   { echo "$as_me: error: missing argument to $ac_option" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300
1301 # Be sure to have absolute directory names.
1302 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303                 datadir sysconfdir sharedstatedir localstatedir includedir \
1304                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305                 libdir localedir mandir
1306 do
1307   eval ac_val=\$$ac_var
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313    { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328     If a cross compiler is detected then cross compile mode will be used." >&2
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   { echo "$as_me: error: Working directory cannot be determined" >&2
1344    { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   { echo "$as_me: error: pwd does not report name of working directory" >&2
1347    { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$0" : 'X\(//\)[^/]' \| \
1357          X"$0" : 'X\(//\)$' \| \
1358          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 echo X"$0" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392    { (exit 1); exit 1; }; }
1393         pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396   srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_env_${ac_var}_value=\$${ac_var}
1407   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415   # Omit some internal or obsolete options to make the list less imposing.
1416   # This message is too long to be a string in the A/UX 3.1 sh.
1417   cat <<_ACEOF
1418 \`configure' configures this package to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428   -h, --help              display this help and exit
1429       --help=short        display options specific to this package
1430       --help=recursive    display the short help of all the included packages
1431   -V, --version           display version information and exit
1432   -q, --quiet, --silent   do not print \`checking...' messages
1433       --cache-file=FILE   cache test results in FILE [disabled]
1434   -C, --config-cache      alias for \`--cache-file=config.cache'
1435   -n, --no-create         do not create output files
1436       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439   --prefix=PREFIX         install architecture-independent files in PREFIX
1440                           [$ac_default_prefix]
1441   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                           [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452   --bindir=DIR           user executables [EPREFIX/bin]
1453   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1454   --libexecdir=DIR       program executables [EPREFIX/libexec]
1455   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1456   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1457   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1458   --libdir=DIR           object code libraries [EPREFIX/lib]
1459   --includedir=DIR       C header files [PREFIX/include]
1460   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1461   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1462   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1463   --infodir=DIR          info documentation [DATAROOTDIR/info]
1464   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1465   --mandir=DIR           man documentation [DATAROOTDIR/man]
1466   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1467   --htmldir=DIR          html documentation [DOCDIR]
1468   --dvidir=DIR           dvi documentation [DOCDIR]
1469   --pdfdir=DIR           pdf documentation [DOCDIR]
1470   --psdir=DIR            ps documentation [DOCDIR]
1471 _ACEOF
1472
1473   cat <<\_ACEOF
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --disable-largefile     omit support for large files
1489   --enable-shared[=PKGS]  build shared libraries [default=yes]
1490   --enable-static[=PKGS]  build static libraries [default=yes]
1491   --enable-fast-install[=PKGS]
1492                           optimize for fast installation [default=yes]
1493   --disable-libtool-lock  avoid locking (might break parallel builds)
1494   --enable-ltdl-install   install libltdl
1495   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1496   --enable-developer               Enables features of interest to developers.
1497
1498 Optional Packages:
1499   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501   --with-system-libtool              try to use libtool installed in your system default=use our own
1502   --with-pic              try to use only PIC/non-PIC objects [default=use
1503                           both]
1504   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1505   --with-included-ltdl    use the GNU ltdl sources included here
1506   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1507   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1508   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1509   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1510   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1511   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1512   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1513   --with-threads          Use threads, if available.  (default=yes)
1514   --with-vmps             Compile in VMPS support. (default=yes)
1515   --with-dhcp             Compile in DHCP support. (default=no)
1516   --with-static-modules=QUOTED-MODULE-LIST
1517  --with-modules=QUOTED-MODULE-LIST
1518   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1519   --with-openssl                   Use OpenSSL. (default=yes)
1520   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1521   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1522   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1523   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1524   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1525
1526 Some influential environment variables:
1527   CC          C compiler command
1528   CFLAGS      C compiler flags
1529   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530               nonstandard directory <lib dir>
1531   LIBS        libraries to pass to the linker, e.g. -l<library>
1532   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533               you have headers in a nonstandard directory <include dir>
1534   CXX         C++ compiler command
1535   CXXFLAGS    C++ compiler flags
1536   CPP         C preprocessor
1537   CXXCPP      C++ preprocessor
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" || continue
1550     ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556   # A ".." for each directory in $ac_dir_suffix.
1557   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558   case $ac_top_builddir_sub in
1559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561   esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569   .)  # We are building in place.
1570     ac_srcdir=.
1571     ac_top_srcdir=$ac_top_builddir_sub
1572     ac_abs_top_srcdir=$ac_pwd ;;
1573   [\\/]* | ?:[\\/]* )  # Absolute name.
1574     ac_srcdir=$srcdir$ac_dir_suffix;
1575     ac_top_srcdir=$srcdir
1576     ac_abs_top_srcdir=$srcdir ;;
1577   *) # Relative name.
1578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579     ac_top_srcdir=$ac_top_build_prefix$srcdir
1580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584     cd "$ac_dir" || { ac_status=$?; continue; }
1585     # Check for guested configure.
1586     if test -f "$ac_srcdir/configure.gnu"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589     elif test -f "$ac_srcdir/configure"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure" --help=recursive
1592     else
1593       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594     fi || ac_status=$?
1595     cd "$ac_pwd" || { ac_status=$?; break; }
1596   done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601   cat <<\_ACEOF
1602 configure
1603 generated by GNU Autoconf 2.61
1604
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1615
1616 It was created by $as_me, which was
1617 generated by GNU Autoconf 2.61.  Invocation command line was
1618
1619   $ $0 $@
1620
1621 _ACEOF
1622 exec 5>>config.log
1623 {
1624 cat <<_ASUNAME
1625 ## --------- ##
1626 ## Platform. ##
1627 ## --------- ##
1628
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1637
1638 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1639 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1642 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1643 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1644 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1645
1646 _ASUNAME
1647
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   echo "PATH: $as_dir"
1654 done
1655 IFS=$as_save_IFS
1656
1657 } >&5
1658
1659 cat >&5 <<_ACEOF
1660
1661
1662 ## ----------- ##
1663 ## Core tests. ##
1664 ## ----------- ##
1665
1666 _ACEOF
1667
1668
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_configure_args=
1675 ac_configure_args0=
1676 ac_configure_args1=
1677 ac_must_keep_next=false
1678 for ac_pass in 1 2
1679 do
1680   for ac_arg
1681   do
1682     case $ac_arg in
1683     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685     | -silent | --silent | --silen | --sile | --sil)
1686       continue ;;
1687     *\'*)
1688       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689     esac
1690     case $ac_pass in
1691     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692     2)
1693       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694       if test $ac_must_keep_next = true; then
1695         ac_must_keep_next=false # Got value, back to normal.
1696       else
1697         case $ac_arg in
1698           *=* | --config-cache | -C | -disable-* | --disable-* \
1699           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701           | -with-* | --with-* | -without-* | --without-* | --x)
1702             case "$ac_configure_args0 " in
1703               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704             esac
1705             ;;
1706           -* ) ac_must_keep_next=true ;;
1707         esac
1708       fi
1709       ac_configure_args="$ac_configure_args '$ac_arg'"
1710       ;;
1711     esac
1712   done
1713 done
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log.  We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723   # Save into config.log some information that might help in debugging.
1724   {
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1731 _ASBOX
1732     echo
1733     # The following way of writing the cache mishandles newlines in values,
1734 (
1735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736     eval ac_val=\$$ac_var
1737     case $ac_val in #(
1738     *${as_nl}*)
1739       case $ac_var in #(
1740       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742       esac
1743       case $ac_var in #(
1744       _ | IFS | as_nl) ;; #(
1745       *) $as_unset $ac_var ;;
1746       esac ;;
1747     esac
1748   done
1749   (set) 2>&1 |
1750     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751     *${as_nl}ac_space=\ *)
1752       sed -n \
1753         "s/'\''/'\''\\\\'\'''\''/g;
1754           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755       ;; #(
1756     *)
1757       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758       ;;
1759     esac |
1760     sort
1761 )
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1768 _ASBOX
1769     echo
1770     for ac_var in $ac_subst_vars
1771     do
1772       eval ac_val=\$$ac_var
1773       case $ac_val in
1774       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775       esac
1776       echo "$ac_var='\''$ac_val'\''"
1777     done | sort
1778     echo
1779
1780     if test -n "$ac_subst_files"; then
1781       cat <<\_ASBOX
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1785 _ASBOX
1786       echo
1787       for ac_var in $ac_subst_files
1788       do
1789         eval ac_val=\$$ac_var
1790         case $ac_val in
1791         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792         esac
1793         echo "$ac_var='\''$ac_val'\''"
1794       done | sort
1795       echo
1796     fi
1797
1798     if test -s confdefs.h; then
1799       cat <<\_ASBOX
1800 ## ----------- ##
1801 ## confdefs.h. ##
1802 ## ----------- ##
1803 _ASBOX
1804       echo
1805       cat confdefs.h
1806       echo
1807     fi
1808     test "$ac_signal" != 0 &&
1809       echo "$as_me: caught signal $ac_signal"
1810     echo "$as_me: exit $exit_status"
1811   } >&5
1812   rm -f core *.core core.conftest.* &&
1813     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814     exit $exit_status
1815 ' 0
1816 for ac_signal in 1 2 13 15; do
1817   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 done
1819 ac_signal=0
1820
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1823
1824 # Predefined preprocessor variables.
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 _ACEOF
1849
1850
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854   set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857 else
1858   set x "$ac_default_prefix/share/config.site" \
1859         "$ac_default_prefix/etc/config.site"
1860 fi
1861 shift
1862 for ac_site_file
1863 do
1864   if test -r "$ac_site_file"; then
1865     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867     sed 's/^/| /' "$ac_site_file" >&5
1868     . "$ac_site_file"
1869   fi
1870 done
1871
1872 if test -r "$cache_file"; then
1873   # Some versions of bash will fail to source /dev/null (special
1874   # files actually), so we avoid doing that.
1875   if test -f "$cache_file"; then
1876     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1878     case $cache_file in
1879       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880       *)                      . "./$cache_file";;
1881     esac
1882   fi
1883 else
1884   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1886   >$cache_file
1887 fi
1888
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894   eval ac_new_set=\$ac_env_${ac_var}_set
1895   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896   eval ac_new_val=\$ac_env_${ac_var}_value
1897   case $ac_old_set,$ac_new_set in
1898     set,)
1899       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901       ac_cache_corrupted=: ;;
1902     ,set)
1903       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905       ac_cache_corrupted=: ;;
1906     ,);;
1907     *)
1908       if test "x$ac_old_val" != "x$ac_new_val"; then
1909         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1912 echo "$as_me:   former value:  $ac_old_val" >&2;}
1913         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1914 echo "$as_me:   current value: $ac_new_val" >&2;}
1915         ac_cache_corrupted=:
1916       fi;;
1917   esac
1918   # Pass precious variables to config.status.
1919   if test "$ac_new_set" = set; then
1920     case $ac_new_val in
1921     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922     *) ac_arg=$ac_var=$ac_new_val ;;
1923     esac
1924     case " $ac_configure_args " in
1925       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1926       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927     esac
1928   fi
1929 done
1930 if $ac_cache_corrupted; then
1931   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959
1960
1961 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1962
1963
1964 RADIUSD_VERSION=`cat VERSION`
1965 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1966 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1967 PACKAGE=freeradius
1968
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$CC"; then
1984   ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995     break 2
1996   fi
1997 done
1998 done
1999 IFS=$as_save_IFS
2000
2001 fi
2002 fi
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005   { echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6; }
2007 else
2008   { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2010 fi
2011
2012
2013 fi
2014 if test -z "$ac_cv_prog_CC"; then
2015   ac_ct_CC=$CC
2016   # Extract the first word of "gcc", so it can be a program name with args.
2017 set dummy gcc; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   if test -n "$ac_ct_CC"; then
2024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   for ac_exec_ext in '' $ac_executable_extensions; do
2032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033     ac_cv_prog_ac_ct_CC="gcc"
2034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035     break 2
2036   fi
2037 done
2038 done
2039 IFS=$as_save_IFS
2040
2041 fi
2042 fi
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6; }
2047 else
2048   { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2050 fi
2051
2052   if test "x$ac_ct_CC" = x; then
2053     CC=""
2054   else
2055     case $cross_compiling:$ac_tool_warned in
2056 yes:)
2057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet.  If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&5
2060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet.  If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2063 ac_tool_warned=yes ;;
2064 esac
2065     CC=$ac_ct_CC
2066   fi
2067 else
2068   CC="$ac_cv_prog_CC"
2069 fi
2070
2071 if test -z "$CC"; then
2072           if test -n "$ac_tool_prefix"; then
2073     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2074 set dummy ${ac_tool_prefix}cc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$CC"; then
2081   ac_cv_prog_CC="$CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090     ac_cv_prog_CC="${ac_tool_prefix}cc"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096 IFS=$as_save_IFS
2097
2098 fi
2099 fi
2100 CC=$ac_cv_prog_CC
2101 if test -n "$CC"; then
2102   { echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6; }
2104 else
2105   { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2107 fi
2108
2109
2110   fi
2111 fi
2112 if test -z "$CC"; then
2113   # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc; ac_word=$2
2115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   if test -n "$CC"; then
2121   ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123   ac_prog_rejected=no
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132        ac_prog_rejected=yes
2133        continue
2134      fi
2135     ac_cv_prog_CC="cc"
2136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137     break 2
2138   fi
2139 done
2140 done
2141 IFS=$as_save_IFS
2142
2143 if test $ac_prog_rejected = yes; then
2144   # We found a bogon in the path, so make sure we never use it.
2145   set dummy $ac_cv_prog_CC
2146   shift
2147   if test $# != 0; then
2148     # We chose a different compiler from the bogus one.
2149     # However, it has the same basename, so the bogon will be chosen
2150     # first if we set CC to just the basename; use the full file name.
2151     shift
2152     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2153   fi
2154 fi
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2161 else
2162   { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166
2167 fi
2168 if test -z "$CC"; then
2169   if test -n "$ac_tool_prefix"; then
2170   for ac_prog in cl.exe
2171   do
2172     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$CC"; then
2180   ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195 IFS=$as_save_IFS
2196
2197 fi
2198 fi
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201   { echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6; }
2203 else
2204   { echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6; }
2206 fi
2207
2208
2209     test -n "$CC" && break
2210   done
2211 fi
2212 if test -z "$CC"; then
2213   ac_ct_CC=$CC
2214   for ac_prog in cl.exe
2215 do
2216   # Extract the first word of "$ac_prog", so it can be a program name with args.
2217 set dummy $ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$ac_ct_CC"; then
2224   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233     ac_cv_prog_ac_ct_CC="$ac_prog"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239 IFS=$as_save_IFS
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6; }
2247 else
2248   { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 fi
2251
2252
2253   test -n "$ac_ct_CC" && break
2254 done
2255
2256   if test "x$ac_ct_CC" = x; then
2257     CC=""
2258   else
2259     case $cross_compiling:$ac_tool_warned in
2260 yes:)
2261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2262 whose name does not start with the host triplet.  If you think this
2263 configuration is useful to you, please write to autoconf@gnu.org." >&5
2264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2265 whose name does not start with the host triplet.  If you think this
2266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2267 ac_tool_warned=yes ;;
2268 esac
2269     CC=$ac_ct_CC
2270   fi
2271 fi
2272
2273 fi
2274
2275
2276 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: no acceptable C compiler found in \$PATH
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281
2282 # Provide some information about the compiler.
2283 echo "$as_me:$LINENO: checking for C compiler version" >&5
2284 ac_compiler=`set X $ac_compile; echo $2`
2285 { (ac_try="$ac_compiler --version >&5"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291   (eval "$ac_compiler --version >&5") 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }
2295 { (ac_try="$ac_compiler -v >&5"
2296 case "(($ac_try" in
2297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298   *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301   (eval "$ac_compiler -v >&5") 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }
2305 { (ac_try="$ac_compiler -V >&5"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311   (eval "$ac_compiler -V >&5") 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }
2315
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h.  */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h.  */
2322
2323 int
2324 main ()
2325 {
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 ac_clean_files_save=$ac_clean_files
2332 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2333 # Try to create an executable without -o first, disregard a.out.
2334 # It will help us diagnose broken compilers, and finding out an intuition
2335 # of exeext.
2336 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2337 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2338 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2339 #
2340 # List of possible output files, starting from the most likely.
2341 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2342 # only as a last resort.  b.out is created by i960 compilers.
2343 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2344 #
2345 # The IRIX 6 linker writes into existing files which may not be
2346 # executable, retaining their permissions.  Remove them first so a
2347 # subsequent execution test works.
2348 ac_rmfiles=
2349 for ac_file in $ac_files
2350 do
2351   case $ac_file in
2352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2353     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2354   esac
2355 done
2356 rm -f $ac_rmfiles
2357
2358 if { (ac_try="$ac_link_default"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364   (eval "$ac_link_default") 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }; then
2368   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2370 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2371 # so that the user can short-circuit this test for compilers unknown to
2372 # Autoconf.
2373 for ac_file in $ac_files ''
2374 do
2375   test -f "$ac_file" || continue
2376   case $ac_file in
2377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2378         ;;
2379     [ab].out )
2380         # We found the default executable, but exeext='' is most
2381         # certainly right.
2382         break;;
2383     *.* )
2384         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2385         then :; else
2386            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2387         fi
2388         # We set ac_cv_exeext here because the later test for it is not
2389         # safe: cross compilers may not add the suffix if given an `-o'
2390         # argument, so we may need to know it at that point already.
2391         # Even if this section looks crufty: it has the advantage of
2392         # actually working.
2393         break;;
2394     * )
2395         break;;
2396   esac
2397 done
2398 test "$ac_cv_exeext" = no && ac_cv_exeext=
2399
2400 else
2401   ac_file=''
2402 fi
2403
2404 { echo "$as_me:$LINENO: result: $ac_file" >&5
2405 echo "${ECHO_T}$ac_file" >&6; }
2406 if test -z "$ac_file"; then
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&2;}
2414    { (exit 77); exit 77; }; }
2415 fi
2416
2417 ac_exeext=$ac_cv_exeext
2418
2419 # Check that the compiler produces executables we can run.  If not, either
2420 # the compiler is broken, or we cross compile.
2421 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2422 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2423 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2424 # If not cross compiling, check that we can run a simple program.
2425 if test "$cross_compiling" != yes; then
2426   if { ac_try='./$ac_file'
2427   { (case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_try") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436     cross_compiling=no
2437   else
2438     if test "$cross_compiling" = maybe; then
2439         cross_compiling=yes
2440     else
2441         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2442 If you meant to cross compile, use \`--host'.
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot run C compiled programs.
2445 If you meant to cross compile, use \`--host'.
2446 See \`config.log' for more details." >&2;}
2447    { (exit 1); exit 1; }; }
2448     fi
2449   fi
2450 fi
2451 { echo "$as_me:$LINENO: result: yes" >&5
2452 echo "${ECHO_T}yes" >&6; }
2453
2454 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2455 ac_clean_files=$ac_clean_files_save
2456 # Check that the compiler produces executables we can run.  If not, either
2457 # the compiler is broken, or we cross compile.
2458 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2459 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2460 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2461 echo "${ECHO_T}$cross_compiling" >&6; }
2462
2463 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2464 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2465 if { (ac_try="$ac_link"
2466 case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_link") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; then
2475   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2477 # work properly (i.e., refer to `conftest.exe'), while it won't with
2478 # `rm'.
2479 for ac_file in conftest.exe conftest conftest.*; do
2480   test -f "$ac_file" || continue
2481   case $ac_file in
2482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2483     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484           break;;
2485     * ) break;;
2486   esac
2487 done
2488 else
2489   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2492 See \`config.log' for more details." >&2;}
2493    { (exit 1); exit 1; }; }
2494 fi
2495
2496 rm -f conftest$ac_cv_exeext
2497 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2498 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2499
2500 rm -f conftest.$ac_ext
2501 EXEEXT=$ac_cv_exeext
2502 ac_exeext=$EXEEXT
2503 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2504 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2505 if test "${ac_cv_objext+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.o conftest.obj
2524 if { (ac_try="$ac_compile"
2525 case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_compile") 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; then
2534   for ac_file in conftest.o conftest.obj conftest.*; do
2535   test -f "$ac_file" || continue;
2536   case $ac_file in
2537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2538     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2539        break;;
2540   esac
2541 done
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2549 See \`config.log' for more details." >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552
2553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2554 fi
2555 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2556 echo "${ECHO_T}$ac_cv_objext" >&6; }
2557 OBJEXT=$ac_cv_objext
2558 ac_objext=$OBJEXT
2559 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2560 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2561 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570
2571 int
2572 main ()
2573 {
2574 #ifndef __GNUC__
2575        choke me
2576 #endif
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2584 case "(($ac_try" in
2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586   *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589   (eval "$ac_compile") 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } && {
2596          test -z "$ac_c_werror_flag" ||
2597          test ! -s conftest.err
2598        } && test -s conftest.$ac_objext; then
2599   ac_compiler_gnu=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604         ac_compiler_gnu=no
2605 fi
2606
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2609
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2612 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2613 GCC=`test $ac_compiler_gnu = yes && echo yes`
2614 ac_test_CFLAGS=${CFLAGS+set}
2615 ac_save_CFLAGS=$CFLAGS
2616 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2617 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_g+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   ac_save_c_werror_flag=$ac_c_werror_flag
2622    ac_c_werror_flag=yes
2623    ac_cv_prog_cc_g=no
2624    CFLAGS="-g"
2625    cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (ac_try="$ac_compile"
2642 case "(($ac_try" in
2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644   *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647   (eval "$ac_compile") 2>conftest.er1
2648   ac_status=$?
2649   grep -v '^ *+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } && {
2654          test -z "$ac_c_werror_flag" ||
2655          test ! -s conftest.err
2656        } && test -s conftest.$ac_objext; then
2657   ac_cv_prog_cc_g=yes
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662         CFLAGS=""
2663       cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compile") 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } && {
2692          test -z "$ac_c_werror_flag" ||
2693          test ! -s conftest.err
2694        } && test -s conftest.$ac_objext; then
2695   :
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700         ac_c_werror_flag=$ac_save_c_werror_flag
2701          CFLAGS="-g"
2702          cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_compile") 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } && {
2731          test -z "$ac_c_werror_flag" ||
2732          test ! -s conftest.err
2733        } && test -s conftest.$ac_objext; then
2734   ac_cv_prog_cc_g=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
2740 fi
2741
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 fi
2747
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749    ac_c_werror_flag=$ac_save_c_werror_flag
2750 fi
2751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2753 if test "$ac_test_CFLAGS" = set; then
2754   CFLAGS=$ac_save_CFLAGS
2755 elif test $ac_cv_prog_cc_g = yes; then
2756   if test "$GCC" = yes; then
2757     CFLAGS="-g -O2"
2758   else
2759     CFLAGS="-g"
2760   fi
2761 else
2762   if test "$GCC" = yes; then
2763     CFLAGS="-O2"
2764   else
2765     CFLAGS=
2766   fi
2767 fi
2768 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2769 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_cc_c89+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   ac_cv_prog_cc_c89=no
2774 ac_save_CC=$CC
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #include <stdarg.h>
2782 #include <stdio.h>
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2786 struct buf { int x; };
2787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788 static char *e (p, i)
2789      char **p;
2790      int i;
2791 {
2792   return p[i];
2793 }
2794 static char *f (char * (*g) (char **, int), char **p, ...)
2795 {
2796   char *s;
2797   va_list v;
2798   va_start (v,p);
2799   s = g (p, va_arg (v,int));
2800   va_end (v);
2801   return s;
2802 }
2803
2804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2805    function prototypes and stuff, but not '\xHH' hex character constants.
2806    These don't provoke an error unfortunately, instead are silently treated
2807    as 'x'.  The following induces an error, until -std is added to get
2808    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2809    array size at least.  It's necessary to write '\x00'==0 to get something
2810    that's true only with -std.  */
2811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2812
2813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2814    inside strings and character constants.  */
2815 #define FOO(x) 'x'
2816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2817
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 int argc;
2823 char **argv;
2824 int
2825 main ()
2826 {
2827 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2833         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2834 do
2835   CC="$ac_save_CC $ac_arg"
2836   rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2838 case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843   (eval "$ac_compile") 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } && {
2850          test -z "$ac_c_werror_flag" ||
2851          test ! -s conftest.err
2852        } && test -s conftest.$ac_objext; then
2853   ac_cv_prog_cc_c89=$ac_arg
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858
2859 fi
2860
2861 rm -f core conftest.err conftest.$ac_objext
2862   test "x$ac_cv_prog_cc_c89" != "xno" && break
2863 done
2864 rm -f conftest.$ac_ext
2865 CC=$ac_save_CC
2866
2867 fi
2868 # AC_CACHE_VAL
2869 case "x$ac_cv_prog_cc_c89" in
2870   x)
2871     { echo "$as_me:$LINENO: result: none needed" >&5
2872 echo "${ECHO_T}none needed" >&6; } ;;
2873   xno)
2874     { echo "$as_me:$LINENO: result: unsupported" >&5
2875 echo "${ECHO_T}unsupported" >&6; } ;;
2876   *)
2877     CC="$CC $ac_cv_prog_cc_c89"
2878     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2880 esac
2881
2882
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888
2889 ac_ext=cpp
2890 ac_cpp='$CXXCPP $CPPFLAGS'
2891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2894 if test -z "$CXX"; then
2895   if test -n "$CCC"; then
2896     CXX=$CCC
2897   else
2898     if test -n "$ac_tool_prefix"; then
2899   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2900   do
2901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_CXX+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   if test -n "$CXX"; then
2909   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916   for ac_exec_ext in '' $ac_executable_extensions; do
2917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920     break 2
2921   fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 CXX=$ac_cv_prog_CXX
2929 if test -n "$CXX"; then
2930   { echo "$as_me:$LINENO: result: $CXX" >&5
2931 echo "${ECHO_T}$CXX" >&6; }
2932 else
2933   { echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6; }
2935 fi
2936
2937
2938     test -n "$CXX" && break
2939   done
2940 fi
2941 if test -z "$CXX"; then
2942   ac_ct_CXX=$CXX
2943   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2944 do
2945   # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952   if test -n "$ac_ct_CXX"; then
2953   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960   for ac_exec_ext in '' $ac_executable_extensions; do
2961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962     ac_cv_prog_ac_ct_CXX="$ac_prog"
2963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2973 if test -n "$ac_ct_CXX"; then
2974   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2975 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2976 else
2977   { echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6; }
2979 fi
2980
2981
2982   test -n "$ac_ct_CXX" && break
2983 done
2984
2985   if test "x$ac_ct_CXX" = x; then
2986     CXX="g++"
2987   else
2988     case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet.  If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&5
2993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet.  If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998     CXX=$ac_ct_CXX
2999   fi
3000 fi
3001
3002   fi
3003 fi
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3006 ac_compiler=`set X $ac_compile; echo $2`
3007 { (ac_try="$ac_compiler --version >&5"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compiler --version >&5") 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }
3017 { (ac_try="$ac_compiler -v >&5"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compiler -v >&5") 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }
3027 { (ac_try="$ac_compiler -V >&5"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compiler -V >&5") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }
3037
3038 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3041   echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049
3050 int
3051 main ()
3052 {
3053 #ifndef __GNUC__
3054        choke me
3055 #endif
3056
3057   ;
3058   return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_compile") 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } && {
3075          test -z "$ac_cxx_werror_flag" ||
3076          test ! -s conftest.err
3077        } && test -s conftest.$ac_objext; then
3078   ac_compiler_gnu=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         ac_compiler_gnu=no
3084 fi
3085
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3088
3089 fi
3090 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3091 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3092 GXX=`test $ac_compiler_gnu = yes && echo yes`
3093 ac_test_CXXFLAGS=${CXXFLAGS+set}
3094 ac_save_CXXFLAGS=$CXXFLAGS
3095 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3096 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_cxx_g+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3101    ac_cxx_werror_flag=yes
3102    ac_cv_prog_cxx_g=no
3103    CXXFLAGS="-g"
3104    cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } && {
3133          test -z "$ac_cxx_werror_flag" ||
3134          test ! -s conftest.err
3135        } && test -s conftest.$ac_objext; then
3136   ac_cv_prog_cxx_g=yes
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141         CXXFLAGS=""
3142       cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } && {
3171          test -z "$ac_cxx_werror_flag" ||
3172          test ! -s conftest.err
3173        } && test -s conftest.$ac_objext; then
3174   :
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3180          CXXFLAGS="-g"
3181          cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (ac_try="$ac_compile"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_compile") 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } && {
3210          test -z "$ac_cxx_werror_flag" ||
3211          test ! -s conftest.err
3212        } && test -s conftest.$ac_objext; then
3213   ac_cv_prog_cxx_g=yes
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3229 fi
3230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3232 if test "$ac_test_CXXFLAGS" = set; then
3233   CXXFLAGS=$ac_save_CXXFLAGS
3234 elif test $ac_cv_prog_cxx_g = yes; then
3235   if test "$GXX" = yes; then
3236     CXXFLAGS="-g -O2"
3237   else
3238     CXXFLAGS="-g"
3239   fi
3240 else
3241   if test "$GXX" = yes; then
3242     CXXFLAGS="-O2"
3243   else
3244     CXXFLAGS=
3245   fi
3246 fi
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253
3254
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3261 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3262 # On Suns, sometimes $CPP names a directory.
3263 if test -n "$CPP" && test -d "$CPP"; then
3264   CPP=
3265 fi
3266 if test -z "$CPP"; then
3267   if test "${ac_cv_prog_CPP+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270       # Double quotes because CPP needs to be expanded
3271     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3272     do
3273       ac_preproc_ok=false
3274 for ac_c_preproc_warn_flag in '' yes
3275 do
3276   # Use a header file that comes with gcc, so configuring glibc
3277   # with a fresh cross-compiler works.
3278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279   # <limits.h> exists even on freestanding compilers.
3280   # On the NeXT, cc -E runs the code through the compiler's parser,
3281   # not just through cpp. "Syntax error" is here to catch this case.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #ifdef __STDC__
3289 # include <limits.h>
3290 #else
3291 # include <assert.h>
3292 #endif
3293                      Syntax error
3294 _ACEOF
3295 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } >/dev/null && {
3308          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3309          test ! -s conftest.err
3310        }; then
3311   :
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316   # Broken: fails on valid input.
3317 continue
3318 fi
3319
3320 rm -f conftest.err conftest.$ac_ext
3321
3322   # OK, works on sane cases.  Now check whether nonexistent headers
3323   # can be detected and how.
3324   cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330 #include <ac_nonexistent.h>
3331 _ACEOF
3332 if { (ac_try="$ac_cpp conftest.$ac_ext"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3339   ac_status=$?
3340   grep -v '^ *+' conftest.er1 >conftest.err
3341   rm -f conftest.er1
3342   cat conftest.err >&5
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); } >/dev/null && {
3345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3346          test ! -s conftest.err
3347        }; then
3348   # Broken: success on invalid input.
3349 continue
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354   # Passes both tests.
3355 ac_preproc_ok=:
3356 break
3357 fi
3358
3359 rm -f conftest.err conftest.$ac_ext
3360
3361 done
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3365   break
3366 fi
3367
3368     done
3369     ac_cv_prog_CPP=$CPP
3370
3371 fi
3372   CPP=$ac_cv_prog_CPP
3373 else
3374   ac_cv_prog_CPP=$CPP
3375 fi
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3378 ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398                      Syntax error
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } >/dev/null && {
3413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3414          test ! -s conftest.err
3415        }; then
3416   :
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421   # Broken: fails on valid input.
3422 continue
3423 fi
3424
3425 rm -f conftest.err conftest.$ac_ext
3426
3427   # OK, works on sane cases.  Now check whether nonexistent headers
3428   # can be detected and how.
3429   cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435 #include <ac_nonexistent.h>
3436 _ACEOF
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } >/dev/null && {
3450          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3451          test ! -s conftest.err
3452        }; then
3453   # Broken: success on invalid input.
3454 continue
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459   # Passes both tests.
3460 ac_preproc_ok=:
3461 break
3462 fi
3463
3464 rm -f conftest.err conftest.$ac_ext
3465
3466 done
3467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468 rm -f conftest.err conftest.$ac_ext
3469 if $ac_preproc_ok; then
3470   :
3471 else
3472   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3473 See \`config.log' for more details." >&5
3474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&2;}
3476    { (exit 1); exit 1; }; }
3477 fi
3478
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485
3486 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3487 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3488 if test "${ac_cv_path_GREP+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   # Extract the first word of "grep ggrep" to use in msg output
3492 if test -z "$GREP"; then
3493 set dummy grep ggrep; ac_prog_name=$2
3494 if test "${ac_cv_path_GREP+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   ac_path_GREP_found=false
3498 # Loop through the user's path and test for each of PROGNAME-LIST
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3501 do
3502   IFS=$as_save_IFS
3503   test -z "$as_dir" && as_dir=.
3504   for ac_prog in grep ggrep; do
3505   for ac_exec_ext in '' $ac_executable_extensions; do
3506     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3507     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3508     # Check for GNU ac_path_GREP and select it if it is found.
3509   # Check for GNU $ac_path_GREP
3510 case `"$ac_path_GREP" --version 2>&1` in
3511 *GNU*)
3512   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3513 *)
3514   ac_count=0
3515   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3516   while :
3517   do
3518     cat "conftest.in" "conftest.in" >"conftest.tmp"
3519     mv "conftest.tmp" "conftest.in"
3520     cp "conftest.in" "conftest.nl"
3521     echo 'GREP' >> "conftest.nl"
3522     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3523     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3524     ac_count=`expr $ac_count + 1`
3525     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3526       # Best one so far, save it but keep looking for a better one
3527       ac_cv_path_GREP="$ac_path_GREP"
3528       ac_path_GREP_max=$ac_count
3529     fi
3530     # 10*(2^10) chars as input seems more than enough
3531     test $ac_count -gt 10 && break
3532   done
3533   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3534 esac
3535
3536
3537     $ac_path_GREP_found && break 3
3538   done
3539 done
3540
3541 done
3542 IFS=$as_save_IFS
3543
3544
3545 fi
3546
3547 GREP="$ac_cv_path_GREP"
3548 if test -z "$GREP"; then
3549   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3550 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3551    { (exit 1); exit 1; }; }
3552 fi
3553
3554 else
3555   ac_cv_path_GREP=$GREP
3556 fi
3557
3558
3559 fi
3560 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3561 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3562  GREP="$ac_cv_path_GREP"
3563
3564
3565 { echo "$as_me:$LINENO: checking for egrep" >&5
3566 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3567 if test "${ac_cv_path_EGREP+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3571    then ac_cv_path_EGREP="$GREP -E"
3572    else
3573      # Extract the first word of "egrep" to use in msg output
3574 if test -z "$EGREP"; then
3575 set dummy egrep; ac_prog_name=$2
3576 if test "${ac_cv_path_EGREP+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   ac_path_EGREP_found=false
3580 # Loop through the user's path and test for each of PROGNAME-LIST
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_prog in egrep; do
3587   for ac_exec_ext in '' $ac_executable_extensions; do
3588     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3589     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3590     # Check for GNU ac_path_EGREP and select it if it is found.
3591   # Check for GNU $ac_path_EGREP
3592 case `"$ac_path_EGREP" --version 2>&1` in
3593 *GNU*)
3594   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3595 *)
3596   ac_count=0
3597   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3598   while :
3599   do
3600     cat "conftest.in" "conftest.in" >"conftest.tmp"
3601     mv "conftest.tmp" "conftest.in"
3602     cp "conftest.in" "conftest.nl"
3603     echo 'EGREP' >> "conftest.nl"
3604     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606     ac_count=`expr $ac_count + 1`
3607     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3608       # Best one so far, save it but keep looking for a better one
3609       ac_cv_path_EGREP="$ac_path_EGREP"
3610       ac_path_EGREP_max=$ac_count
3611     fi
3612     # 10*(2^10) chars as input seems more than enough
3613     test $ac_count -gt 10 && break
3614   done
3615   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616 esac
3617
3618
3619     $ac_path_EGREP_found && break 3
3620   done
3621 done
3622
3623 done
3624 IFS=$as_save_IFS
3625
3626
3627 fi
3628
3629 EGREP="$ac_cv_path_EGREP"
3630 if test -z "$EGREP"; then
3631   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3632 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3633    { (exit 1); exit 1; }; }
3634 fi
3635
3636 else
3637   ac_cv_path_EGREP=$EGREP
3638 fi
3639
3640
3641    fi
3642 fi
3643 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3644 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3645  EGREP="$ac_cv_path_EGREP"
3646
3647
3648
3649 { echo "$as_me:$LINENO: checking for AIX" >&5
3650 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #ifdef _AIX
3658   yes
3659 #endif
3660
3661 _ACEOF
3662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663   $EGREP "yes" >/dev/null 2>&1; then
3664   { echo "$as_me:$LINENO: result: yes" >&5
3665 echo "${ECHO_T}yes" >&6; }
3666 cat >>confdefs.h <<\_ACEOF
3667 #define _ALL_SOURCE 1
3668 _ACEOF
3669
3670 else
3671   { echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6; }
3673 fi
3674 rm -f conftest*
3675
3676
3677
3678 if test $ac_cv_c_compiler_gnu = yes; then
3679     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3680 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3681 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684     ac_pattern="Autoconf.*'x'"
3685   cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h.  */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h.  */
3691 #include <sgtty.h>
3692 Autoconf TIOCGETP
3693 _ACEOF
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3696   ac_cv_prog_gcc_traditional=yes
3697 else
3698   ac_cv_prog_gcc_traditional=no
3699 fi
3700 rm -f conftest*
3701
3702
3703   if test $ac_cv_prog_gcc_traditional = no; then
3704     cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 #include <termio.h>
3711 Autoconf TCGETA
3712 _ACEOF
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3715   ac_cv_prog_gcc_traditional=yes
3716 fi
3717 rm -f conftest*
3718
3719   fi
3720 fi
3721 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3722 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3723   if test $ac_cv_prog_gcc_traditional = yes; then
3724     CC="$CC -traditional"
3725   fi
3726 fi
3727
3728 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3729 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_suncc+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   cat > conftest.c <<EOF
3734 #ifdef __SUNPRO_C
3735   yes;
3736 #endif
3737 EOF
3738 if { ac_try='${CC-cc} -E conftest.c'
3739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740   (eval $ac_try) 2>&5
3741   ac_status=$?
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3744   ac_cv_prog_suncc=yes
3745 else
3746   ac_cv_prog_suncc=no
3747 fi
3748 fi
3749 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3750 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3751
3752 # Check whether --enable-largefile was given.
3753 if test "${enable_largefile+set}" = set; then
3754   enableval=$enable_largefile;
3755 fi
3756
3757 if test "$enable_largefile" != no; then
3758
3759   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3760 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3761 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   ac_cv_sys_largefile_CC=no
3765      if test "$GCC" != yes; then
3766        ac_save_CC=$CC
3767        while :; do
3768          # IRIX 6.2 and later do not support large files by default,
3769          # so use the C compiler's -n32 option if that helps.
3770          cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776 #include <sys/types.h>
3777  /* Check that off_t can represent 2**63 - 1 correctly.
3778     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3779     since some C++ compilers masquerading as C compilers
3780     incorrectly reject 9223372036854775807.  */
3781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3782   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3783                        && LARGE_OFF_T % 2147483647 == 1)
3784                       ? 1 : -1];
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793          rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compile") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } && {
3807          test -z "$ac_c_werror_flag" ||
3808          test ! -s conftest.err
3809        } && test -s conftest.$ac_objext; then
3810   break
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext
3819          CC="$CC -n32"
3820          rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824   *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827   (eval "$ac_compile") 2>conftest.er1
3828   ac_status=$?
3829   grep -v '^ *+' conftest.er1 >conftest.err
3830   rm -f conftest.er1
3831   cat conftest.err >&5
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } && {
3834          test -z "$ac_c_werror_flag" ||
3835          test ! -s conftest.err
3836        } && test -s conftest.$ac_objext; then
3837   ac_cv_sys_largefile_CC=' -n32'; break
3838 else
3839   echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842
3843 fi
3844
3845 rm -f core conftest.err conftest.$ac_objext
3846          break
3847        done
3848        CC=$ac_save_CC
3849        rm -f conftest.$ac_ext
3850     fi
3851 fi
3852 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3853 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3854   if test "$ac_cv_sys_largefile_CC" != no; then
3855     CC=$CC$ac_cv_sys_largefile_CC
3856   fi
3857
3858   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3859 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3860 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   while :; do
3864   cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870 #include <sys/types.h>
3871  /* Check that off_t can represent 2**63 - 1 correctly.
3872     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3873     since some C++ compilers masquerading as C compilers
3874     incorrectly reject 9223372036854775807.  */
3875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3876   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3877                        && LARGE_OFF_T % 2147483647 == 1)
3878                       ? 1 : -1];
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894   (eval "$ac_compile") 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } && {
3901          test -z "$ac_c_werror_flag" ||
3902          test ! -s conftest.err
3903        } && test -s conftest.$ac_objext; then
3904   ac_cv_sys_file_offset_bits=no; break
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909
3910 fi
3911
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913   cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 #define _FILE_OFFSET_BITS 64
3920 #include <sys/types.h>
3921  /* Check that off_t can represent 2**63 - 1 correctly.
3922     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3923     since some C++ compilers masquerading as C compilers
3924     incorrectly reject 9223372036854775807.  */
3925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3926   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3927                        && LARGE_OFF_T % 2147483647 == 1)
3928                       ? 1 : -1];
3929 int
3930 main ()
3931 {
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944   (eval "$ac_compile") 2>conftest.er1
3945   ac_status=$?
3946   grep -v '^ *+' conftest.er1 >conftest.err
3947   rm -f conftest.er1
3948   cat conftest.err >&5
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); } && {
3951          test -z "$ac_c_werror_flag" ||
3952          test ! -s conftest.err
3953        } && test -s conftest.$ac_objext; then
3954   ac_cv_sys_file_offset_bits=64; break
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959
3960 fi
3961
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963   ac_cv_sys_file_offset_bits=unknown
3964   break
3965 done
3966 fi
3967 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3968 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3969 case $ac_cv_sys_file_offset_bits in #(
3970   no | unknown) ;;
3971   *)
3972 cat >>confdefs.h <<_ACEOF
3973 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3974 _ACEOF
3975 ;;
3976 esac
3977 rm -f conftest*
3978   if test $ac_cv_sys_file_offset_bits = unknown; then
3979     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3980 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3981 if test "${ac_cv_sys_large_files+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   while :; do
3985   cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #include <sys/types.h>
3992  /* Check that off_t can represent 2**63 - 1 correctly.
3993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3994     since some C++ compilers masquerading as C compilers
3995     incorrectly reject 9223372036854775807.  */
3996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3998                        && LARGE_OFF_T % 2147483647 == 1)
3999                       ? 1 : -1];
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015   (eval "$ac_compile") 2>conftest.er1
4016   ac_status=$?
4017   grep -v '^ *+' conftest.er1 >conftest.err
4018   rm -f conftest.er1
4019   cat conftest.err >&5
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } && {
4022          test -z "$ac_c_werror_flag" ||
4023          test ! -s conftest.err
4024        } && test -s conftest.$ac_objext; then
4025   ac_cv_sys_large_files=no; break
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030
4031 fi
4032
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #define _LARGE_FILES 1
4041 #include <sys/types.h>
4042  /* Check that off_t can represent 2**63 - 1 correctly.
4043     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044     since some C++ compilers masquerading as C compilers
4045     incorrectly reject 9223372036854775807.  */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048                        && LARGE_OFF_T % 2147483647 == 1)
4049                       ? 1 : -1];
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4060 case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065   (eval "$ac_compile") 2>conftest.er1
4066   ac_status=$?
4067   grep -v '^ *+' conftest.er1 >conftest.err
4068   rm -f conftest.er1
4069   cat conftest.err >&5
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } && {
4072          test -z "$ac_c_werror_flag" ||
4073          test ! -s conftest.err
4074        } && test -s conftest.$ac_objext; then
4075   ac_cv_sys_large_files=1; break
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080
4081 fi
4082
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084   ac_cv_sys_large_files=unknown
4085   break
4086 done
4087 fi
4088 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4089 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4090 case $ac_cv_sys_large_files in #(
4091   no | unknown) ;;
4092   *)
4093 cat >>confdefs.h <<_ACEOF
4094 #define _LARGE_FILES $ac_cv_sys_large_files
4095 _ACEOF
4096 ;;
4097 esac
4098 rm -f conftest*
4099   fi
4100 fi
4101
4102
4103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4105 if test "${ac_cv_header_stdc+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #include <stdlib.h>
4115 #include <stdarg.h>
4116 #include <string.h>
4117 #include <float.h>
4118
4119 int
4120 main ()
4121 {
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4129 case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_compile") 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } && {
4141          test -z "$ac_c_werror_flag" ||
4142          test ! -s conftest.err
4143        } && test -s conftest.$ac_objext; then
4144   ac_cv_header_stdc=yes
4145 else
4146   echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149         ac_cv_header_stdc=no
4150 fi
4151
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153
4154 if test $ac_cv_header_stdc = yes; then
4155   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <string.h>
4163
4164 _ACEOF
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166   $EGREP "memchr" >/dev/null 2>&1; then
4167   :
4168 else
4169   ac_cv_header_stdc=no
4170 fi
4171 rm -f conftest*
4172
4173 fi
4174
4175 if test $ac_cv_header_stdc = yes; then
4176   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4177   cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h.  */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h.  */
4183 #include <stdlib.h>
4184
4185 _ACEOF
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187   $EGREP "free" >/dev/null 2>&1; then
4188   :
4189 else
4190   ac_cv_header_stdc=no
4191 fi
4192 rm -f conftest*
4193
4194 fi
4195
4196 if test $ac_cv_header_stdc = yes; then
4197   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4198   if test "$cross_compiling" = yes; then
4199   :
4200 else
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #include <ctype.h>
4208 #include <stdlib.h>
4209 #if ((' ' & 0x0FF) == 0x020)
4210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4212 #else
4213 # define ISLOWER(c) \
4214                    (('a' <= (c) && (c) <= 'i') \
4215                      || ('j' <= (c) && (c) <= 'r') \
4216                      || ('s' <= (c) && (c) <= 'z'))
4217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4218 #endif
4219
4220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4221 int
4222 main ()
4223 {
4224   int i;
4225   for (i = 0; i < 256; i++)
4226     if (XOR (islower (i), ISLOWER (i))
4227         || toupper (i) != TOUPPER (i))
4228       return 2;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest$ac_exeext
4233 if { (ac_try="$ac_link"
4234 case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239   (eval "$ac_link") 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4243   { (case "(($ac_try" in
4244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245   *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248   (eval "$ac_try") 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   :
4253 else
4254   echo "$as_me: program exited with status $ac_status" >&5
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 ( exit $ac_status )
4259 ac_cv_header_stdc=no
4260 fi
4261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4262 fi
4263
4264
4265 fi
4266 fi
4267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4269 if test $ac_cv_header_stdc = yes; then
4270
4271 cat >>confdefs.h <<\_ACEOF
4272 #define STDC_HEADERS 1
4273 _ACEOF
4274
4275 fi
4276
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288                   inttypes.h stdint.h unistd.h
4289 do
4290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 $ac_includes_default
4303
4304 #include <$ac_header>
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_compile") 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && {
4320          test -z "$ac_c_werror_flag" ||
4321          test ! -s conftest.err
4322        } && test -s conftest.$ac_objext; then
4323   eval "$as_ac_Header=yes"
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         eval "$as_ac_Header=no"
4329 fi
4330
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 fi
4333 ac_res=`eval echo '${'$as_ac_Header'}'`
4334                { echo "$as_me:$LINENO: result: $ac_res" >&5
4335 echo "${ECHO_T}$ac_res" >&6; }
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337   cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 _ACEOF
4340
4341 fi
4342
4343 done
4344
4345
4346 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4348 if test "${ac_cv_c_bigendian+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   # See if sys/param.h defines the BYTE_ORDER macro.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 #include <sys/types.h>
4359 #include <sys/param.h>
4360
4361 int
4362 main ()
4363 {
4364 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4365         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4366  bogus endian macros
4367 #endif
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } && {
4387          test -z "$ac_c_werror_flag" ||
4388          test ! -s conftest.err
4389        } && test -s conftest.$ac_objext; then
4390   # It does; now see whether it defined to BIG_ENDIAN or not.
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 #include <sys/types.h>
4398 #include <sys/param.h>
4399
4400 int
4401 main ()
4402 {
4403 #if BYTE_ORDER != BIG_ENDIAN
4404  not big endian
4405 #endif
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418   (eval "$ac_compile") 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } && {
4425          test -z "$ac_c_werror_flag" ||
4426          test ! -s conftest.err
4427        } && test -s conftest.$ac_objext; then
4428   ac_cv_c_bigendian=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433         ac_cv_c_bigendian=no
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443   # try to guess the endianness by grepping values into an object file
4444   ac_cv_c_bigendian=unknown
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457 int
4458 main ()
4459 {
4460  _ascii (); _ebcdic ();
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4467 case "(($ac_try" in
4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469   *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472   (eval "$ac_compile") 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } && {
4479          test -z "$ac_c_werror_flag" ||
4480          test ! -s conftest.err
4481        } && test -s conftest.$ac_objext; then
4482   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4483   ac_cv_c_bigendian=yes
4484 fi
4485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4486   if test "$ac_cv_c_bigendian" = unknown; then
4487     ac_cv_c_bigendian=no
4488   else
4489     # finding both strings is unlikely to happen, but who knows?
4490     ac_cv_c_bigendian=unknown
4491   fi
4492 fi
4493 else
4494   echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497
4498 fi
4499
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 else
4502   cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h.  */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h.  */
4508 $ac_includes_default
4509 int
4510 main ()
4511 {
4512
4513   /* Are we little or big endian?  From Harbison&Steele.  */
4514   union
4515   {
4516     long int l;
4517     char c[sizeof (long int)];
4518   } u;
4519   u.l = 1;
4520   return u.c[sizeof (long int) - 1] == 1;
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_link") 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4537   { (case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_try") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   ac_cv_c_bigendian=no
4547 else
4548   echo "$as_me: program exited with status $ac_status" >&5
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ( exit $ac_status )
4553 ac_cv_c_bigendian=yes
4554 fi
4555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556 fi
4557
4558
4559 fi
4560
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 fi
4563 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4564 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4565 case $ac_cv_c_bigendian in
4566   yes)
4567
4568 cat >>confdefs.h <<\_ACEOF
4569 #define WORDS_BIGENDIAN 1
4570 _ACEOF
4571  ;;
4572   no)
4573      ;;
4574   *)
4575     { { echo "$as_me:$LINENO: error: unknown endianness
4576 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4577 echo "$as_me: error: unknown endianness
4578 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4579    { (exit 1); exit 1; }; } ;;
4580 esac
4581
4582
4583 # Extract the first word of "gmake", so it can be a program name with args.
4584 set dummy gmake; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_GMAKE+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   if test -n "$GMAKE"; then
4591   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_GMAKE="yes"
4601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4609 fi
4610 fi
4611 GMAKE=$ac_cv_prog_GMAKE
4612 if test -n "$GMAKE"; then
4613   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4614 echo "${ECHO_T}$GMAKE" >&6; }
4615 else
4616   { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4618 fi
4619
4620
4621 if test $GMAKE = no; then
4622   # Extract the first word of "make", so it can be a program name with args.
4623 set dummy make; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_path_MAKE+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   case $MAKE in
4630   [\\/]* | ?:[\\/]*)
4631   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4632   ;;
4633   *)
4634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639   for ac_exec_ext in '' $ac_executable_extensions; do
4640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643     break 2
4644   fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4650   ;;
4651 esac
4652 fi
4653 MAKE=$ac_cv_path_MAKE
4654 if test -n "$MAKE"; then
4655   { echo "$as_me:$LINENO: result: $MAKE" >&5
4656 echo "${ECHO_T}$MAKE" >&6; }
4657 else
4658   { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662
4663 else
4664   # Extract the first word of "gmake", so it can be a program name with args.
4665 set dummy gmake; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_path_MAKE+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   case $MAKE in
4672   [\\/]* | ?:[\\/]*)
4673   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4674   ;;
4675   *)
4676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4692   ;;
4693 esac
4694 fi
4695 MAKE=$ac_cv_path_MAKE
4696 if test -n "$MAKE"; then
4697   { echo "$as_me:$LINENO: result: $MAKE" >&5
4698 echo "${ECHO_T}$MAKE" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705 fi
4706 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4707 if test -z "$makever"; then
4708   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4709                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4710 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4711                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4712    { (exit 1); exit 1; }; }
4713 fi
4714
4715
4716
4717
4718
4719
4720
4721 if test -f $prefix/lib/libltdl.la; then
4722   lt_save_LDFLAGS="$LDFLAGS"
4723   LDFLAGS="-L$prefix/lib $LDFLAGS"
4724   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4725 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4726 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-lltdl  $LIBS"
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737
4738 /* Override any GCC internal prototype to avoid an error.
4739    Use char because int might match the return type of a GCC
4740    builtin and then its argument prototype would still apply.  */
4741 #ifdef __cplusplus
4742 extern "C"
4743 #endif
4744 char lt_dlinit ();
4745 int
4746 main ()
4747 {
4748 return lt_dlinit ();
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4755 case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760   (eval "$ac_link") 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } && {
4767          test -z "$ac_c_werror_flag" ||
4768          test ! -s conftest.err
4769        } && test -s conftest$ac_exeext &&
4770        $as_test_x conftest$ac_exeext; then
4771   ac_cv_lib_ltdl_lt_dlinit=yes
4772 else
4773   echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776         ac_cv_lib_ltdl_lt_dlinit=no
4777 fi
4778
4779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4780       conftest$ac_exeext conftest.$ac_ext
4781 LIBS=$ac_check_lib_save_LIBS
4782 fi
4783 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4784 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4785 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4786   lt_lib_ltdl=yes
4787 fi
4788
4789   LDFLAGS="$lt_save_LDFLAGS"
4790   if test x"${lt_lib_ltdl-no}" = xyes; then
4791     if test x"$enable_ltdl_install" != xyes; then
4792       # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
4793       { echo "$as_me:$LINENO: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&5
4794 echo "$as_me: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&2;}
4795       enable_ltdl_install=no
4796     fi
4797   elif test x"$enable_ltdl_install" = xno; then
4798     { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4799 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4800   fi
4801 fi
4802
4803 # If configure.ac declared an installable ltdl, and the user didn't override
4804 # with --disable-ltdl-install, we will install the shipped libltdl.
4805 case $enable_ltdl_install in
4806   no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4807       LIBLTDL="-lltdl"
4808       LTDLDEPS=
4809       LTDLINCL=
4810       ;;
4811   *)  enable_ltdl_install=yes
4812       ac_configure_args="$ac_configure_args --enable-ltdl-install"
4813       LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
4814       LTDLDEPS=$LIBLTDL
4815       LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
4816       ;;
4817 esac
4818
4819
4820
4821
4822
4823 # For backwards non-gettext consistent compatibility...
4824 INCLTDL="$LTDLINCL"
4825
4826
4827
4828 if test x"$enable_ltdl_install" = x"yes"; then
4829   LTDL_SUBDIRS=libltdl
4830 fi
4831
4832
4833
4834
4835 ac_aux_dir=
4836 for ac_dir in . "$srcdir"/.; do
4837   if test -f "$ac_dir/install-sh"; then
4838     ac_aux_dir=$ac_dir
4839     ac_install_sh="$ac_aux_dir/install-sh -c"
4840     break
4841   elif test -f "$ac_dir/install.sh"; then
4842     ac_aux_dir=$ac_dir
4843     ac_install_sh="$ac_aux_dir/install.sh -c"
4844     break
4845   elif test -f "$ac_dir/shtool"; then
4846     ac_aux_dir=$ac_dir
4847     ac_install_sh="$ac_aux_dir/shtool install -c"
4848     break
4849   fi
4850 done
4851 if test -z "$ac_aux_dir"; then
4852   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
4853 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
4854    { (exit 1); exit 1; }; }
4855 fi
4856
4857 # These three variables are undocumented and unsupported,
4858 # and are intended to be withdrawn in a future Autoconf release.
4859 # They can cause serious problems if a builder's source tree is in a directory
4860 # whose full name contains unusual characters.
4861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4863 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4864
4865
4866
4867 case `pwd` in
4868   *\ * | *\     *)
4869     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4870 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4871 esac
4872
4873
4874
4875 macro_version='2.2.4'
4876 macro_revision='1.2976'
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 ltmain="$ac_aux_dir/ltmain.sh"
4891
4892 # Make sure we can run config.sub.
4893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4894   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4895 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4896    { (exit 1); exit 1; }; }
4897
4898 { echo "$as_me:$LINENO: checking build system type" >&5
4899 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4900 if test "${ac_cv_build+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   ac_build_alias=$build_alias
4904 test "x$ac_build_alias" = x &&
4905   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4906 test "x$ac_build_alias" = x &&
4907   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4908 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4909    { (exit 1); exit 1; }; }
4910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4911   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4912 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4913    { (exit 1); exit 1; }; }
4914
4915 fi
4916 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4917 echo "${ECHO_T}$ac_cv_build" >&6; }
4918 case $ac_cv_build in
4919 *-*-*) ;;
4920 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4921 echo "$as_me: error: invalid value of canonical build" >&2;}
4922    { (exit 1); exit 1; }; };;
4923 esac
4924 build=$ac_cv_build
4925 ac_save_IFS=$IFS; IFS='-'
4926 set x $ac_cv_build
4927 shift
4928 build_cpu=$1
4929 build_vendor=$2
4930 shift; shift
4931 # Remember, the first character of IFS is used to create $*,
4932 # except with old shells:
4933 build_os=$*
4934 IFS=$ac_save_IFS
4935 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4936
4937
4938 { echo "$as_me:$LINENO: checking host system type" >&5
4939 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4940 if test "${ac_cv_host+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   if test "x$host_alias" = x; then
4944   ac_cv_host=$ac_cv_build
4945 else
4946   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4947     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4948 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4949    { (exit 1); exit 1; }; }
4950 fi
4951
4952 fi
4953 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4954 echo "${ECHO_T}$ac_cv_host" >&6; }
4955 case $ac_cv_host in
4956 *-*-*) ;;
4957 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4958 echo "$as_me: error: invalid value of canonical host" >&2;}
4959    { (exit 1); exit 1; }; };;
4960 esac
4961 host=$ac_cv_host
4962 ac_save_IFS=$IFS; IFS='-'
4963 set x $ac_cv_host
4964 shift
4965 host_cpu=$1
4966 host_vendor=$2
4967 shift; shift
4968 # Remember, the first character of IFS is used to create $*,
4969 # except with old shells:
4970 host_os=$*
4971 IFS=$ac_save_IFS
4972 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4973
4974
4975 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4976 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4977 if test "${ac_cv_path_SED+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4981      for ac_i in 1 2 3 4 5 6 7; do
4982        ac_script="$ac_script$as_nl$ac_script"
4983      done
4984      echo "$ac_script" | sed 99q >conftest.sed
4985      $as_unset ac_script || ac_script=
4986      # Extract the first word of "sed gsed" to use in msg output
4987 if test -z "$SED"; then
4988 set dummy sed gsed; ac_prog_name=$2
4989 if test "${ac_cv_path_SED+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   ac_path_SED_found=false
4993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_prog in sed gsed; do
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5002     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5003     # Check for GNU ac_path_SED and select it if it is found.
5004   # Check for GNU $ac_path_SED
5005 case `"$ac_path_SED" --version 2>&1` in
5006 *GNU*)
5007   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5008 *)
5009   ac_count=0
5010   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5011   while :
5012   do
5013     cat "conftest.in" "conftest.in" >"conftest.tmp"
5014     mv "conftest.tmp" "conftest.in"
5015     cp "conftest.in" "conftest.nl"
5016     echo '' >> "conftest.nl"
5017     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019     ac_count=`expr $ac_count + 1`
5020     if test $ac_count -gt ${ac_path_SED_max-0}; then
5021       # Best one so far, save it but keep looking for a better one
5022       ac_cv_path_SED="$ac_path_SED"
5023       ac_path_SED_max=$ac_count
5024     fi
5025     # 10*(2^10) chars as input seems more than enough
5026     test $ac_count -gt 10 && break
5027   done
5028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029 esac
5030
5031
5032     $ac_path_SED_found && break 3
5033   done
5034 done
5035
5036 done
5037 IFS=$as_save_IFS
5038
5039
5040 fi
5041
5042 SED="$ac_cv_path_SED"
5043 if test -z "$SED"; then
5044   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5045 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5046    { (exit 1); exit 1; }; }
5047 fi
5048
5049 else
5050   ac_cv_path_SED=$SED
5051 fi
5052
5053 fi
5054 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5055 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5056  SED="$ac_cv_path_SED"
5057   rm -f conftest.sed
5058
5059 test -z "$SED" && SED=sed
5060 Xsed="$SED -e 1s/^X//"
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072 { echo "$as_me:$LINENO: checking for fgrep" >&5
5073 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_FGREP+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5078    then ac_cv_path_FGREP="$GREP -F"
5079    else
5080      # Extract the first word of "fgrep" to use in msg output
5081 if test -z "$FGREP"; then
5082 set dummy fgrep; ac_prog_name=$2
5083 if test "${ac_cv_path_FGREP+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   ac_path_FGREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_prog in fgrep; do
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5096     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5097     # Check for GNU ac_path_FGREP and select it if it is found.
5098   # Check for GNU $ac_path_FGREP
5099 case `"$ac_path_FGREP" --version 2>&1` in
5100 *GNU*)
5101   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5102 *)
5103   ac_count=0
5104   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5105   while :
5106   do
5107     cat "conftest.in" "conftest.in" >"conftest.tmp"
5108     mv "conftest.tmp" "conftest.in"
5109     cp "conftest.in" "conftest.nl"
5110     echo 'FGREP' >> "conftest.nl"
5111     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113     ac_count=`expr $ac_count + 1`
5114     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5115       # Best one so far, save it but keep looking for a better one
5116       ac_cv_path_FGREP="$ac_path_FGREP"
5117       ac_path_FGREP_max=$ac_count
5118     fi
5119     # 10*(2^10) chars as input seems more than enough
5120     test $ac_count -gt 10 && break
5121   done
5122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5124
5125
5126     $ac_path_FGREP_found && break 3
5127   done
5128 done
5129
5130 done
5131 IFS=$as_save_IFS
5132
5133
5134 fi
5135
5136 FGREP="$ac_cv_path_FGREP"
5137 if test -z "$FGREP"; then
5138   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5139 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5140    { (exit 1); exit 1; }; }
5141 fi
5142
5143 else
5144   ac_cv_path_FGREP=$FGREP
5145 fi
5146
5147
5148    fi
5149 fi
5150 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5151 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5152  FGREP="$ac_cv_path_FGREP"
5153
5154
5155 test -z "$GREP" && GREP=grep
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 # Check whether --with-gnu-ld was given.
5176 if test "${with_gnu_ld+set}" = set; then
5177   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5178 else
5179   with_gnu_ld=no
5180 fi
5181
5182 ac_prog=ld
5183 if test "$GCC" = yes; then
5184   # Check if gcc -print-prog-name=ld gives a path.
5185   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5186 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5187   case $host in
5188   *-*-mingw*)
5189     # gcc leaves a trailing carriage return which upsets mingw
5190     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5191   *)
5192     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5193   esac
5194   case $ac_prog in
5195     # Accept absolute paths.
5196     [\\/]* | ?:[\\/]*)
5197       re_direlt='/[^/][^/]*/\.\./'
5198       # Canonicalize the pathname of ld
5199       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5200       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5201         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5202       done
5203       test -z "$LD" && LD="$ac_prog"
5204       ;;
5205   "")
5206     # If it fails, then pretend we aren't using GCC.
5207     ac_prog=ld
5208     ;;
5209   *)
5210     # If it is relative, then search for the first ld in PATH.
5211     with_gnu_ld=unknown
5212     ;;
5213   esac
5214 elif test "$with_gnu_ld" = yes; then
5215   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5216 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5217 else
5218   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5219 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5220 fi
5221 if test "${lt_cv_path_LD+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   if test -z "$LD"; then
5225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5226   for ac_dir in $PATH; do
5227     IFS="$lt_save_ifs"
5228     test -z "$ac_dir" && ac_dir=.
5229     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230       lt_cv_path_LD="$ac_dir/$ac_prog"
5231       # Check to see if the program is GNU ld.  I'd rather use --version,
5232       # but apparently some variants of GNU ld only accept -v.
5233       # Break only if it was the GNU/non-GNU ld that we prefer.
5234       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5235       *GNU* | *'with BFD'*)
5236         test "$with_gnu_ld" != no && break
5237         ;;
5238       *)
5239         test "$with_gnu_ld" != yes && break
5240         ;;
5241       esac
5242     fi
5243   done
5244   IFS="$lt_save_ifs"
5245 else
5246   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5247 fi
5248 fi
5249
5250 LD="$lt_cv_path_LD"
5251 if test -n "$LD"; then
5252   { echo "$as_me:$LINENO: result: $LD" >&5
5253 echo "${ECHO_T}$LD" >&6; }
5254 else
5255   { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5257 fi
5258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5260    { (exit 1); exit 1; }; }
5261 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5263 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5267 case `$LD -v 2>&1 </dev/null` in
5268 *GNU* | *'with BFD'*)
5269   lt_cv_prog_gnu_ld=yes
5270   ;;
5271 *)
5272   lt_cv_prog_gnu_ld=no
5273   ;;
5274 esac
5275 fi
5276 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5277 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5278 with_gnu_ld=$lt_cv_prog_gnu_ld
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5289 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5290 if test "${lt_cv_path_NM+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   if test -n "$NM"; then
5294   # Let the user override the test.
5295   lt_cv_path_NM="$NM"
5296 else
5297   lt_nm_to_check="${ac_tool_prefix}nm"
5298   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5299     lt_nm_to_check="$lt_nm_to_check nm"
5300   fi
5301   for lt_tmp_nm in $lt_nm_to_check; do
5302     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5303     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5304       IFS="$lt_save_ifs"
5305       test -z "$ac_dir" && ac_dir=.
5306       tmp_nm="$ac_dir/$lt_tmp_nm"
5307       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5308         # Check to see if the nm accepts a BSD-compat flag.
5309         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5310         #   nm: unknown option "B" ignored
5311         # Tru64's nm complains that /dev/null is an invalid object file
5312         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5313         */dev/null* | *'Invalid file or object type'*)
5314           lt_cv_path_NM="$tmp_nm -B"
5315           break
5316           ;;
5317         *)
5318           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5319           */dev/null*)
5320             lt_cv_path_NM="$tmp_nm -p"
5321             break
5322             ;;
5323           *)
5324             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5325             continue # so that we can try to find one that supports BSD flags
5326             ;;
5327           esac
5328           ;;
5329         esac
5330       fi
5331     done
5332     IFS="$lt_save_ifs"
5333   done
5334   : ${lt_cv_path_NM=no}
5335 fi
5336 fi
5337 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5338 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5339 if test "$lt_cv_path_NM" != "no"; then
5340   NM="$lt_cv_path_NM"
5341 else
5342   # Didn't find any BSD compatible name lister, look for dumpbin.
5343   if test -n "$ac_tool_prefix"; then
5344   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5345   do
5346     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5350 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   if test -n "$DUMPBIN"; then
5354   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361   for ac_exec_ext in '' $ac_executable_extensions; do
5362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368 done
5369 IFS=$as_save_IFS
5370
5371 fi
5372 fi
5373 DUMPBIN=$ac_cv_prog_DUMPBIN
5374 if test -n "$DUMPBIN"; then
5375   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5376 echo "${ECHO_T}$DUMPBIN" >&6; }
5377 else
5378   { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5380 fi
5381
5382
5383     test -n "$DUMPBIN" && break
5384   done
5385 fi
5386 if test -z "$DUMPBIN"; then
5387   ac_ct_DUMPBIN=$DUMPBIN
5388   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5389 do
5390   # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5394 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   if test -n "$ac_ct_DUMPBIN"; then
5398   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405   for ac_exec_ext in '' $ac_executable_extensions; do
5406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418 if test -n "$ac_ct_DUMPBIN"; then
5419   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5420 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5421 else
5422   { echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6; }
5424 fi
5425
5426
5427   test -n "$ac_ct_DUMPBIN" && break
5428 done
5429
5430   if test "x$ac_ct_DUMPBIN" = x; then
5431     DUMPBIN=":"
5432   else
5433     case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5436 whose name does not start with the host triplet.  If you think this
5437 configuration is useful to you, please write to autoconf@gnu.org." >&5
5438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5439 whose name does not start with the host triplet.  If you think this
5440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443     DUMPBIN=$ac_ct_DUMPBIN
5444   fi
5445 fi
5446
5447
5448   if test "$DUMPBIN" != ":"; then
5449     NM="$DUMPBIN"
5450   fi
5451 fi
5452 test -z "$NM" && NM=nm
5453
5454
5455
5456
5457
5458
5459 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5460 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5461 if test "${lt_cv_nm_interface+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   lt_cv_nm_interface="BSD nm"
5465   echo "int some_variable = 0;" > conftest.$ac_ext
5466   (eval echo "\"\$as_me:5466: $ac_compile\"" >&5)
5467   (eval "$ac_compile" 2>conftest.err)
5468   cat conftest.err >&5
5469   (eval echo "\"\$as_me:5469: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5470   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5471   cat conftest.err >&5
5472   (eval echo "\"\$as_me:5472: output\"" >&5)
5473   cat conftest.out >&5
5474   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5475     lt_cv_nm_interface="MS dumpbin"
5476   fi
5477   rm -f conftest*
5478 fi
5479 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5480 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5481
5482 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5484 LN_S=$as_ln_s
5485 if test "$LN_S" = "ln -s"; then
5486   { echo "$as_me:$LINENO: result: yes" >&5
5487 echo "${ECHO_T}yes" >&6; }
5488 else
5489   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5490 echo "${ECHO_T}no, using $LN_S" >&6; }
5491 fi
5492
5493 # find the maximum length of command line arguments
5494 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5495 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5496 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499     i=0
5500   teststring="ABCD"
5501
5502   case $build_os in
5503   msdosdjgpp*)
5504     # On DJGPP, this test can blow up pretty badly due to problems in libc
5505     # (any single argument exceeding 2000 bytes causes a buffer overrun
5506     # during glob expansion).  Even if it were fixed, the result of this
5507     # check would be larger than it should be.
5508     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5509     ;;
5510
5511   gnu*)
5512     # Under GNU Hurd, this test is not required because there is
5513     # no limit to the length of command line arguments.
5514     # Libtool will interpret -1 as no limit whatsoever
5515     lt_cv_sys_max_cmd_len=-1;
5516     ;;
5517
5518   cygwin* | mingw*)
5519     # On Win9x/ME, this test blows up -- it succeeds, but takes
5520     # about 5 minutes as the teststring grows exponentially.
5521     # Worse, since 9x/ME are not pre-emptively multitasking,
5522     # you end up with a "frozen" computer, even though with patience
5523     # the test eventually succeeds (with a max line length of 256k).
5524     # Instead, let's just punt: use the minimum linelength reported by
5525     # all of the supported platforms: 8192 (on NT/2K/XP).
5526     lt_cv_sys_max_cmd_len=8192;
5527     ;;
5528
5529   amigaos*)
5530     # On AmigaOS with pdksh, this test takes hours, literally.
5531     # So we just punt and use a minimum line length of 8192.
5532     lt_cv_sys_max_cmd_len=8192;
5533     ;;
5534
5535   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5536     # This has been around since 386BSD, at least.  Likely further.
5537     if test -x /sbin/sysctl; then
5538       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5539     elif test -x /usr/sbin/sysctl; then
5540       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5541     else
5542       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5543     fi
5544     # And add a safety zone
5545     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5546     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5547     ;;
5548
5549   interix*)
5550     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5551     lt_cv_sys_max_cmd_len=196608
5552     ;;
5553
5554   osf*)
5555     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5556     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5557     # nice to cause kernel panics so lets avoid the loop below.
5558     # First set a reasonable default.
5559     lt_cv_sys_max_cmd_len=16384
5560     #
5561     if test -x /sbin/sysconfig; then
5562       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5563         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5564       esac
5565     fi
5566     ;;
5567   sco3.2v5*)
5568     lt_cv_sys_max_cmd_len=102400
5569     ;;
5570   sysv5* | sco5v6* | sysv4.2uw2*)
5571     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5572     if test -n "$kargmax"; then
5573       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5574     else
5575       lt_cv_sys_max_cmd_len=32768
5576     fi
5577     ;;
5578   *)
5579     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5580     if test -n "$lt_cv_sys_max_cmd_len"; then
5581       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5582       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5583     else
5584       # Make teststring a little bigger before we do anything with it.
5585       # a 1K string should be a reasonable start.
5586       for i in 1 2 3 4 5 6 7 8 ; do
5587         teststring=$teststring$teststring
5588       done
5589       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5590       # If test is not a shell built-in, we'll probably end up computing a
5591       # maximum length that is only half of the actual maximum length, but
5592       # we can't tell.
5593       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5594                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5595               test $i != 17 # 1/2 MB should be enough
5596       do
5597         i=`expr $i + 1`
5598         teststring=$teststring$teststring
5599       done
5600       # Only check the string length outside the loop.
5601       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5602       teststring=
5603       # Add a significant safety factor because C++ compilers can tack on
5604       # massive amounts of additional arguments before passing them to the
5605       # linker.  It appears as though 1/2 is a usable value.
5606       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5607     fi
5608     ;;
5609   esac
5610
5611 fi
5612
5613 if test -n $lt_cv_sys_max_cmd_len ; then
5614   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5615 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5616 else
5617   { echo "$as_me:$LINENO: result: none" >&5
5618 echo "${ECHO_T}none" >&6; }
5619 fi
5620 max_cmd_len=$lt_cv_sys_max_cmd_len
5621
5622
5623
5624
5625
5626
5627 : ${CP="cp -f"}
5628 : ${MV="mv -f"}
5629 : ${RM="rm -f"}
5630
5631 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5632 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5633 # Try some XSI features
5634 xsi_shell=no
5635 ( _lt_dummy="a/b/c"
5636   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5637       = c,a/b,, \
5638     && eval 'test $(( 1 + 1 )) -eq 2 \
5639     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5640   && xsi_shell=yes
5641 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5642 echo "${ECHO_T}$xsi_shell" >&6; }
5643
5644
5645 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5646 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5647 lt_shell_append=no
5648 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5649     >/dev/null 2>&1 \
5650   && lt_shell_append=yes
5651 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5652 echo "${ECHO_T}$lt_shell_append" >&6; }
5653
5654
5655 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5656   lt_unset=unset
5657 else
5658   lt_unset=false
5659 fi
5660
5661
5662
5663
5664
5665 # test EBCDIC or ASCII
5666 case `echo X|tr X '\101'` in
5667  A) # ASCII based system
5668     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5669   lt_SP2NL='tr \040 \012'
5670   lt_NL2SP='tr \015\012 \040\040'
5671   ;;
5672  *) # EBCDIC based system
5673   lt_SP2NL='tr \100 \n'
5674   lt_NL2SP='tr \r\n \100\100'
5675   ;;
5676 esac
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5687 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5688 if test "${lt_cv_ld_reload_flag+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   lt_cv_ld_reload_flag='-r'
5692 fi
5693 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5694 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5695 reload_flag=$lt_cv_ld_reload_flag
5696 case $reload_flag in
5697 "" | " "*) ;;
5698 *) reload_flag=" $reload_flag" ;;
5699 esac
5700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5701 case $host_os in
5702   darwin*)
5703     if test "$GCC" = yes; then
5704       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5705     else
5706       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707     fi
5708     ;;
5709 esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5721 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5722 if test "${lt_cv_deplibs_check_method+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   lt_cv_file_magic_cmd='$MAGIC_CMD'
5726 lt_cv_file_magic_test_file=
5727 lt_cv_deplibs_check_method='unknown'
5728 # Need to set the preceding variable on all platforms that support
5729 # interlibrary dependencies.
5730 # 'none' -- dependencies not supported.
5731 # `unknown' -- same as none, but documents that we really don't know.
5732 # 'pass_all' -- all dependencies passed with no checks.
5733 # 'test_compile' -- check by making test program.
5734 # 'file_magic [[regex]]' -- check by looking for files in library path
5735 # which responds to the $file_magic_cmd with a given extended regex.
5736 # If you have `file' or equivalent on your system and you're not sure
5737 # whether `pass_all' will *always* work, you probably want this one.
5738
5739 case $host_os in
5740 aix[4-9]*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 beos*)
5745   lt_cv_deplibs_check_method=pass_all
5746   ;;
5747
5748 bsdi[45]*)
5749   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5750   lt_cv_file_magic_cmd='/usr/bin/file -L'
5751   lt_cv_file_magic_test_file=/shlib/libc.so
5752   ;;
5753
5754 cygwin*)
5755   # func_win32_libid is a shell function defined in ltmain.sh
5756   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5757   lt_cv_file_magic_cmd='func_win32_libid'
5758   ;;
5759
5760 mingw* | pw32*)
5761   # Base MSYS/MinGW do not provide the 'file' command needed by
5762   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5763   # unless we find 'file', for example because we are cross-compiling.
5764   if ( file / ) >/dev/null 2>&1; then
5765     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5766     lt_cv_file_magic_cmd='func_win32_libid'
5767   else
5768     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5769     lt_cv_file_magic_cmd='$OBJDUMP -f'
5770   fi
5771   ;;
5772
5773 darwin* | rhapsody*)
5774   lt_cv_deplibs_check_method=pass_all
5775   ;;
5776
5777 freebsd* | dragonfly*)
5778   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5779     case $host_cpu in
5780     i*86 )
5781       # Not sure whether the presence of OpenBSD here was a mistake.
5782       # Let's accept both of them until this is cleared up.
5783       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5784       lt_cv_file_magic_cmd=/usr/bin/file
5785       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5786       ;;
5787     esac
5788   else
5789     lt_cv_deplibs_check_method=pass_all
5790   fi
5791   ;;
5792
5793 gnu*)
5794   lt_cv_deplibs_check_method=pass_all
5795   ;;
5796
5797 hpux10.20* | hpux11*)
5798   lt_cv_file_magic_cmd=/usr/bin/file
5799   case $host_cpu in
5800   ia64*)
5801     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5802     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5803     ;;
5804   hppa*64*)
5805     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]'
5806     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5807     ;;
5808   *)
5809     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5810     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5811     ;;
5812   esac
5813   ;;
5814
5815 interix[3-9]*)
5816   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5817   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5818   ;;
5819
5820 irix5* | irix6* | nonstopux*)
5821   case $LD in
5822   *-32|*"-32 ") libmagic=32-bit;;
5823   *-n32|*"-n32 ") libmagic=N32;;
5824   *-64|*"-64 ") libmagic=64-bit;;
5825   *) libmagic=never-match;;
5826   esac
5827   lt_cv_deplibs_check_method=pass_all
5828   ;;
5829
5830 # This must be Linux ELF.
5831 linux* | k*bsd*-gnu)
5832   lt_cv_deplibs_check_method=pass_all
5833   ;;
5834
5835 netbsd*)
5836   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5837     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5838   else
5839     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5840   fi
5841   ;;
5842
5843 newos6*)
5844   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5845   lt_cv_file_magic_cmd=/usr/bin/file
5846   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5847   ;;
5848
5849 *nto* | *qnx*)
5850   lt_cv_deplibs_check_method=pass_all
5851   ;;
5852
5853 openbsd*)
5854   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5855     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5856   else
5857     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5858   fi
5859   ;;
5860
5861 osf3* | osf4* | osf5*)
5862   lt_cv_deplibs_check_method=pass_all
5863   ;;
5864
5865 rdos*)
5866   lt_cv_deplibs_check_method=pass_all
5867   ;;
5868
5869 solaris*)
5870   lt_cv_deplibs_check_method=pass_all
5871   ;;
5872
5873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5874   lt_cv_deplibs_check_method=pass_all
5875   ;;
5876
5877 sysv4 | sysv4.3*)
5878   case $host_vendor in
5879   motorola)
5880     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]'
5881     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5882     ;;
5883   ncr)
5884     lt_cv_deplibs_check_method=pass_all
5885     ;;
5886   sequent)
5887     lt_cv_file_magic_cmd='/bin/file'
5888     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5889     ;;
5890   sni)
5891     lt_cv_file_magic_cmd='/bin/file'
5892     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5893     lt_cv_file_magic_test_file=/lib/libc.so
5894     ;;
5895   siemens)
5896     lt_cv_deplibs_check_method=pass_all
5897     ;;
5898   pc)
5899     lt_cv_deplibs_check_method=pass_all
5900     ;;
5901   esac
5902   ;;
5903
5904 tpf*)
5905   lt_cv_deplibs_check_method=pass_all
5906   ;;
5907 esac
5908
5909 fi
5910 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5911 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5912 file_magic_cmd=$lt_cv_file_magic_cmd
5913 deplibs_check_method=$lt_cv_deplibs_check_method
5914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927 if test -n "$ac_tool_prefix"; then
5928   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}ar; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_prog_AR+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$AR"; then
5936   ac_cv_prog_AR="$AR" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945     ac_cv_prog_AR="${ac_tool_prefix}ar"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951 IFS=$as_save_IFS
5952
5953 fi
5954 fi
5955 AR=$ac_cv_prog_AR
5956 if test -n "$AR"; then
5957   { echo "$as_me:$LINENO: result: $AR" >&5
5958 echo "${ECHO_T}$AR" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5962 fi
5963
5964
5965 fi
5966 if test -z "$ac_cv_prog_AR"; then
5967   ac_ct_AR=$AR
5968   # Extract the first word of "ar", so it can be a program name with args.
5969 set dummy ar; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   if test -n "$ac_ct_AR"; then
5976   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983   for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_prog_ac_ct_AR="ar"
5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5996 if test -n "$ac_ct_AR"; then
5997   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5998 echo "${ECHO_T}$ac_ct_AR" >&6; }
5999 else
6000   { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002 fi
6003
6004   if test "x$ac_ct_AR" = x; then
6005     AR="false"
6006   else
6007     case $cross_compiling:$ac_tool_warned in
6008 yes:)
6009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6010 whose name does not start with the host triplet.  If you think this
6011 configuration is useful to you, please write to autoconf@gnu.org." >&5
6012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6013 whose name does not start with the host triplet.  If you think this
6014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6015 ac_tool_warned=yes ;;
6016 esac
6017     AR=$ac_ct_AR
6018   fi
6019 else
6020   AR="$ac_cv_prog_AR"
6021 fi
6022
6023 test -z "$AR" && AR=ar
6024 test -z "$AR_FLAGS" && AR_FLAGS=cru
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 if test -n "$ac_tool_prefix"; then
6037   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}strip; ac_word=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_prog_STRIP+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   if test -n "$STRIP"; then
6045   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052   for ac_exec_ext in '' $ac_executable_extensions; do
6053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 STRIP=$ac_cv_prog_STRIP
6065 if test -n "$STRIP"; then
6066   { echo "$as_me:$LINENO: result: $STRIP" >&5
6067 echo "${ECHO_T}$STRIP" >&6; }
6068 else
6069   { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if test -z "$ac_cv_prog_STRIP"; then
6076   ac_ct_STRIP=$STRIP
6077   # Extract the first word of "strip", so it can be a program name with args.
6078 set dummy strip; ac_word=$2
6079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   if test -n "$ac_ct_STRIP"; then
6085   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092   for ac_exec_ext in '' $ac_executable_extensions; do
6093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094     ac_cv_prog_ac_ct_STRIP="strip"
6095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6105 if test -n "$ac_ct_STRIP"; then
6106   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6107 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6108 else
6109   { echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6; }
6111 fi
6112
6113   if test "x$ac_ct_STRIP" = x; then
6114     STRIP=":"
6115   else
6116     case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6119 whose name does not start with the host triplet.  If you think this
6120 configuration is useful to you, please write to autoconf@gnu.org." >&5
6121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet.  If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     STRIP=$ac_ct_STRIP
6127   fi
6128 else
6129   STRIP="$ac_cv_prog_STRIP"
6130 fi
6131
6132 test -z "$STRIP" && STRIP=:
6133
6134
6135
6136
6137
6138
6139 if test -n "$ac_tool_prefix"; then
6140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   if test -n "$RANLIB"; then
6148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155   for ac_exec_ext in '' $ac_executable_extensions; do
6156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6170 echo "${ECHO_T}$RANLIB" >&6; }
6171 else
6172   { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6174 fi
6175
6176
6177 fi
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179   ac_ct_RANLIB=$RANLIB
6180   # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   if test -n "$ac_ct_RANLIB"; then
6188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_prog_ac_ct_RANLIB="ranlib"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6210 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216   if test "x$ac_ct_RANLIB" = x; then
6217     RANLIB=":"
6218   else
6219     case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet.  If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet.  If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229     RANLIB=$ac_ct_RANLIB
6230   fi
6231 else
6232   RANLIB="$ac_cv_prog_RANLIB"
6233 fi
6234
6235 test -z "$RANLIB" && RANLIB=:
6236
6237
6238
6239
6240
6241
6242 # Determine commands to create old-style static archives.
6243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6244 old_postinstall_cmds='chmod 644 $oldlib'
6245 old_postuninstall_cmds=
6246
6247 if test -n "$RANLIB"; then
6248   case $host_os in
6249   openbsd*)
6250     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6251     ;;
6252   *)
6253     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6254     ;;
6255   esac
6256   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6257 fi
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 # If no C compiler was specified, use CC.
6293 LTCC=${LTCC-"$CC"}
6294
6295 # If no C compiler flags were specified, use CFLAGS.
6296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6297
6298 # Allow CC to be a program name with arguments.
6299 compiler=$CC
6300
6301
6302 # Check for command to grab the raw symbol name followed by C symbol from nm.
6303 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6304 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6305 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308
6309 # These are sane defaults that work on at least a few old systems.
6310 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6311
6312 # Character class describing NM global symbol codes.
6313 symcode='[BCDEGRST]'
6314
6315 # Regexp to match symbols that can be accessed directly from C.
6316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6317
6318 # Define system-specific variables.
6319 case $host_os in
6320 aix*)
6321   symcode='[BCDT]'
6322   ;;
6323 cygwin* | mingw* | pw32*)
6324   symcode='[ABCDGISTW]'
6325   ;;
6326 hpux*)
6327   if test "$host_cpu" = ia64; then
6328     symcode='[ABCDEGRST]'
6329   fi
6330   ;;
6331 irix* | nonstopux*)
6332   symcode='[BCDEGRST]'
6333   ;;
6334 osf*)
6335   symcode='[BCDEGQRST]'
6336   ;;
6337 solaris*)
6338   symcode='[BDRT]'
6339   ;;
6340 sco3.2v5*)
6341   symcode='[DT]'
6342   ;;
6343 sysv4.2uw2*)
6344   symcode='[DT]'
6345   ;;
6346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6347   symcode='[ABDT]'
6348   ;;
6349 sysv4)
6350   symcode='[DFNSTU]'
6351   ;;
6352 esac
6353
6354 # If we're using GNU nm, then use its standard symbol codes.
6355 case `$NM -V 2>&1` in
6356 *GNU* | *'with BFD'*)
6357   symcode='[ABCDGIRSTW]' ;;
6358 esac
6359
6360 # Transform an extracted symbol line into a proper C declaration.
6361 # Some systems (esp. on ia64) link data and code symbols differently,
6362 # so use this general approach.
6363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6364
6365 # Transform an extracted symbol line into symbol name and symbol address
6366 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6367 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6368
6369 # Handle CRLF in mingw tool chain
6370 opt_cr=
6371 case $build_os in
6372 mingw*)
6373   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6374   ;;
6375 esac
6376
6377 # Try without a prefix underscore, then with it.
6378 for ac_symprfx in "" "_"; do
6379
6380   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6381   symxfrm="\\1 $ac_symprfx\\2 \\2"
6382
6383   # Write the raw and C identifiers.
6384   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6385     # Fake it for dumpbin and say T for any non-static function
6386     # and D for any global variable.
6387     # Also find C++ and __fastcall symbols from MSVC++,
6388     # which start with @ or ?.
6389     lt_cv_sys_global_symbol_pipe="$AWK '"\
6390 "     {last_section=section; section=\$ 3};"\
6391 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6392 "     \$ 0!~/External *\|/{next};"\
6393 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6394 "     {if(hide[section]) next};"\
6395 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6396 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6397 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6398 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6399 "     ' prfx=^$ac_symprfx"
6400   else
6401     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6402   fi
6403
6404   # Check to see that the pipe works correctly.
6405   pipe_works=no
6406
6407   rm -f conftest*
6408   cat > conftest.$ac_ext <<_LT_EOF
6409 #ifdef __cplusplus
6410 extern "C" {
6411 #endif
6412 char nm_test_var;
6413 void nm_test_func(void);
6414 void nm_test_func(void){}
6415 #ifdef __cplusplus
6416 }
6417 #endif
6418 int main(){nm_test_var='a';nm_test_func();return(0);}
6419 _LT_EOF
6420
6421   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; then
6426     # Now try to grab the symbols.
6427     nlist=conftest.nm
6428     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6429   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } && test -s "$nlist"; then
6433       # Try sorting and uniquifying the output.
6434       if sort "$nlist" | uniq > "$nlist"T; then
6435         mv -f "$nlist"T "$nlist"
6436       else
6437         rm -f "$nlist"T
6438       fi
6439
6440       # Make sure that we snagged all the symbols we need.
6441       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6442         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6443           cat <<_LT_EOF > conftest.$ac_ext
6444 #ifdef __cplusplus
6445 extern "C" {
6446 #endif
6447
6448 _LT_EOF
6449           # Now generate the symbol file.
6450           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6451
6452           cat <<_LT_EOF >> conftest.$ac_ext
6453
6454 /* The mapping between symbol names and symbols.  */
6455 const struct {
6456   const char *name;
6457   void       *address;
6458 }
6459 lt__PROGRAM__LTX_preloaded_symbols[] =
6460 {
6461   { "@PROGRAM@", (void *) 0 },
6462 _LT_EOF
6463           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6464           cat <<\_LT_EOF >> conftest.$ac_ext
6465   {0, (void *) 0}
6466 };
6467
6468 /* This works around a problem in FreeBSD linker */
6469 #ifdef FREEBSD_WORKAROUND
6470 static const void *lt_preloaded_setup() {
6471   return lt__PROGRAM__LTX_preloaded_symbols;
6472 }
6473 #endif
6474
6475 #ifdef __cplusplus
6476 }
6477 #endif
6478 _LT_EOF
6479           # Now try linking the two files.
6480           mv conftest.$ac_objext conftstm.$ac_objext
6481           lt_save_LIBS="$LIBS"
6482           lt_save_CFLAGS="$CFLAGS"
6483           LIBS="conftstm.$ac_objext"
6484           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6485           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486   (eval $ac_link) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6490             pipe_works=yes
6491           fi
6492           LIBS="$lt_save_LIBS"
6493           CFLAGS="$lt_save_CFLAGS"
6494         else
6495           echo "cannot find nm_test_func in $nlist" >&5
6496         fi
6497       else
6498         echo "cannot find nm_test_var in $nlist" >&5
6499       fi
6500     else
6501       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6502     fi
6503   else
6504     echo "$progname: failed program was:" >&5
6505     cat conftest.$ac_ext >&5
6506   fi
6507   rm -rf conftest* conftst*
6508
6509   # Do not use the global_symbol_pipe unless it works.
6510   if test "$pipe_works" = yes; then
6511     break
6512   else
6513     lt_cv_sys_global_symbol_pipe=
6514   fi
6515 done
6516
6517 fi
6518
6519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6520   lt_cv_sys_global_symbol_to_cdecl=
6521 fi
6522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6523   { echo "$as_me:$LINENO: result: failed" >&5
6524 echo "${ECHO_T}failed" >&6; }
6525 else
6526   { echo "$as_me:$LINENO: result: ok" >&5
6527 echo "${ECHO_T}ok" >&6; }
6528 fi
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 # Check whether --enable-libtool-lock was given.
6552 if test "${enable_libtool_lock+set}" = set; then
6553   enableval=$enable_libtool_lock;
6554 fi
6555
6556 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6557
6558 # Some flags need to be propagated to the compiler or linker for good
6559 # libtool support.
6560 case $host in
6561 ia64-*-hpux*)
6562   # Find out which ABI we are using.
6563   echo 'int i;' > conftest.$ac_ext
6564   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565   (eval $ac_compile) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; then
6569     case `/usr/bin/file conftest.$ac_objext` in
6570       *ELF-32*)
6571         HPUX_IA64_MODE="32"
6572         ;;
6573       *ELF-64*)
6574         HPUX_IA64_MODE="64"
6575         ;;
6576     esac
6577   fi
6578   rm -rf conftest*
6579   ;;
6580 *-*-irix6*)
6581   # Find out which ABI we are using.
6582   echo '#line 6582 "configure"' > conftest.$ac_ext
6583   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584   (eval $ac_compile) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; then
6588     if test "$lt_cv_prog_gnu_ld" = yes; then
6589       case `/usr/bin/file conftest.$ac_objext` in
6590         *32-bit*)
6591           LD="${LD-ld} -melf32bsmip"
6592           ;;
6593         *N32*)
6594           LD="${LD-ld} -melf32bmipn32"
6595           ;;
6596         *64-bit*)
6597           LD="${LD-ld} -melf64bmip"
6598         ;;
6599       esac
6600     else
6601       case `/usr/bin/file conftest.$ac_objext` in
6602         *32-bit*)
6603           LD="${LD-ld} -32"
6604           ;;
6605         *N32*)
6606           LD="${LD-ld} -n32"
6607           ;;
6608         *64-bit*)
6609           LD="${LD-ld} -64"
6610           ;;
6611       esac
6612     fi
6613   fi
6614   rm -rf conftest*
6615   ;;
6616
6617 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6618 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6619   # Find out which ABI we are using.
6620   echo 'int i;' > conftest.$ac_ext
6621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622   (eval $ac_compile) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; then
6626     case `/usr/bin/file conftest.o` in
6627       *32-bit*)
6628         case $host in
6629           x86_64-*kfreebsd*-gnu)
6630             LD="${LD-ld} -m elf_i386_fbsd"
6631             ;;
6632           x86_64-*linux*)
6633             LD="${LD-ld} -m elf_i386"
6634             ;;
6635           ppc64-*linux*|powerpc64-*linux*)
6636             LD="${LD-ld} -m elf32ppclinux"
6637             ;;
6638           s390x-*linux*)
6639             LD="${LD-ld} -m elf_s390"
6640             ;;
6641           sparc64-*linux*)
6642             LD="${LD-ld} -m elf32_sparc"
6643             ;;
6644         esac
6645         ;;
6646       *64-bit*)
6647         case $host in
6648           x86_64-*kfreebsd*-gnu)
6649             LD="${LD-ld} -m elf_x86_64_fbsd"
6650             ;;
6651           x86_64-*linux*)
6652             LD="${LD-ld} -m elf_x86_64"
6653             ;;
6654           ppc*-*linux*|powerpc*-*linux*)
6655             LD="${LD-ld} -m elf64ppc"
6656             ;;
6657           s390*-*linux*|s390*-*tpf*)
6658             LD="${LD-ld} -m elf64_s390"
6659             ;;
6660           sparc*-*linux*)
6661             LD="${LD-ld} -m elf64_sparc"
6662             ;;
6663         esac
6664         ;;
6665     esac
6666   fi
6667   rm -rf conftest*
6668   ;;
6669
6670 *-*-sco3.2v5*)
6671   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6672   SAVE_CFLAGS="$CFLAGS"
6673   CFLAGS="$CFLAGS -belf"
6674   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6675 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6676 if test "${lt_cv_cc_needs_belf+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   ac_ext=c
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684
6685      cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691
6692 int
6693 main ()
6694 {
6695
6696   ;
6697   return 0;
6698 }
6699 _ACEOF
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6702 case "(($ac_try" in
6703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704   *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707   (eval "$ac_link") 2>conftest.er1
6708   ac_status=$?
6709   grep -v '^ *+' conftest.er1 >conftest.err
6710   rm -f conftest.er1
6711   cat conftest.err >&5
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); } && {
6714          test -z "$ac_c_werror_flag" ||
6715          test ! -s conftest.err
6716        } && test -s conftest$ac_exeext &&
6717        $as_test_x conftest$ac_exeext; then
6718   lt_cv_cc_needs_belf=yes
6719 else
6720   echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723         lt_cv_cc_needs_belf=no
6724 fi
6725
6726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6727       conftest$ac_exeext conftest.$ac_ext
6728      ac_ext=c
6729 ac_cpp='$CPP $CPPFLAGS'
6730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733
6734 fi
6735 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6736 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6737   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6738     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6739     CFLAGS="$SAVE_CFLAGS"
6740   fi
6741   ;;
6742 sparc*-*solaris*)
6743   # Find out which ABI we are using.
6744   echo 'int i;' > conftest.$ac_ext
6745   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746   (eval $ac_compile) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); }; then
6750     case `/usr/bin/file conftest.o` in
6751     *64-bit*)
6752       case $lt_cv_prog_gnu_ld in
6753       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6754       *)
6755         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6756           LD="${LD-ld} -64"
6757         fi
6758         ;;
6759       esac
6760       ;;
6761     esac
6762   fi
6763   rm -rf conftest*
6764   ;;
6765 esac
6766
6767 need_locks="$enable_libtool_lock"
6768
6769
6770   case $host_os in
6771     rhapsody* | darwin*)
6772     if test -n "$ac_tool_prefix"; then
6773   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   if test -n "$DSYMUTIL"; then
6781   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6801 if test -n "$DSYMUTIL"; then
6802   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6803 echo "${ECHO_T}$DSYMUTIL" >&6; }
6804 else
6805   { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_DSYMUTIL"; then
6812   ac_ct_DSYMUTIL=$DSYMUTIL
6813   # Extract the first word of "dsymutil", so it can be a program name with args.
6814 set dummy dsymutil; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   if test -n "$ac_ct_DSYMUTIL"; then
6821   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828   for ac_exec_ext in '' $ac_executable_extensions; do
6829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6841 if test -n "$ac_ct_DSYMUTIL"; then
6842   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6843 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6844 else
6845   { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6847 fi
6848
6849   if test "x$ac_ct_DSYMUTIL" = x; then
6850     DSYMUTIL=":"
6851   else
6852     case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet.  If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&5
6857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet.  If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862     DSYMUTIL=$ac_ct_DSYMUTIL
6863   fi
6864 else
6865   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6866 fi
6867
6868     if test -n "$ac_tool_prefix"; then
6869   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   if test -n "$NMEDIT"; then
6877   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884   for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 NMEDIT=$ac_cv_prog_NMEDIT
6897 if test -n "$NMEDIT"; then
6898   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6899 echo "${ECHO_T}$NMEDIT" >&6; }
6900 else
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_NMEDIT"; then
6908   ac_ct_NMEDIT=$NMEDIT
6909   # Extract the first word of "nmedit", so it can be a program name with args.
6910 set dummy nmedit; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   if test -n "$ac_ct_NMEDIT"; then
6917   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924   for ac_exec_ext in '' $ac_executable_extensions; do
6925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6937 if test -n "$ac_ct_NMEDIT"; then
6938   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6939 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945   if test "x$ac_ct_NMEDIT" = x; then
6946     NMEDIT=":"
6947   else
6948     case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6951 whose name does not start with the host triplet.  If you think this
6952 configuration is useful to you, please write to autoconf@gnu.org." >&5
6953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6954 whose name does not start with the host triplet.  If you think this
6955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     NMEDIT=$ac_ct_NMEDIT
6959   fi
6960 else
6961   NMEDIT="$ac_cv_prog_NMEDIT"
6962 fi
6963
6964     if test -n "$ac_tool_prefix"; then
6965   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_prog_LIPO+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   if test -n "$LIPO"; then
6973   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980   for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 LIPO=$ac_cv_prog_LIPO
6993 if test -n "$LIPO"; then
6994   { echo "$as_me:$LINENO: result: $LIPO" >&5
6995 echo "${ECHO_T}$LIPO" >&6; }
6996 else
6997   { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7000
7001
7002 fi
7003 if test -z "$ac_cv_prog_LIPO"; then
7004   ac_ct_LIPO=$LIPO
7005   # Extract the first word of "lipo", so it can be a program name with args.
7006 set dummy lipo; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   if test -n "$ac_ct_LIPO"; then
7013   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_prog_ac_ct_LIPO="lipo"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7033 if test -n "$ac_ct_LIPO"; then
7034   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7035 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7036 else
7037   { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7039 fi
7040
7041   if test "x$ac_ct_LIPO" = x; then
7042     LIPO=":"
7043   else
7044     case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7047 whose name does not start with the host triplet.  If you think this
7048 configuration is useful to you, please write to autoconf@gnu.org." >&5
7049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7050 whose name does not start with the host triplet.  If you think this
7051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7052 ac_tool_warned=yes ;;
7053 esac
7054     LIPO=$ac_ct_LIPO
7055   fi
7056 else
7057   LIPO="$ac_cv_prog_LIPO"
7058 fi
7059
7060     if test -n "$ac_tool_prefix"; then
7061   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}otool; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_OTOOL+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   if test -n "$OTOOL"; then
7069   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076   for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 OTOOL=$ac_cv_prog_OTOOL
7089 if test -n "$OTOOL"; then
7090   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7091 echo "${ECHO_T}$OTOOL" >&6; }
7092 else
7093   { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_OTOOL"; then
7100   ac_ct_OTOOL=$OTOOL
7101   # Extract the first word of "otool", so it can be a program name with args.
7102 set dummy otool; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   if test -n "$ac_ct_OTOOL"; then
7109   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_prog_ac_ct_OTOOL="otool"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7129 if test -n "$ac_ct_OTOOL"; then
7130   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7131 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7135 fi
7136
7137   if test "x$ac_ct_OTOOL" = x; then
7138     OTOOL=":"
7139   else
7140     case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7143 whose name does not start with the host triplet.  If you think this
7144 configuration is useful to you, please write to autoconf@gnu.org." >&5
7145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7146 whose name does not start with the host triplet.  If you think this
7147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150     OTOOL=$ac_ct_OTOOL
7151   fi
7152 else
7153   OTOOL="$ac_cv_prog_OTOOL"
7154 fi
7155
7156     if test -n "$ac_tool_prefix"; then
7157   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test -n "$OTOOL64"; then
7165   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 OTOOL64=$ac_cv_prog_OTOOL64
7185 if test -n "$OTOOL64"; then
7186   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7187 echo "${ECHO_T}$OTOOL64" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_OTOOL64"; then
7196   ac_ct_OTOOL64=$OTOOL64
7197   # Extract the first word of "otool64", so it can be a program name with args.
7198 set dummy otool64; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   if test -n "$ac_ct_OTOOL64"; then
7205   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212   for ac_exec_ext in '' $ac_executable_extensions; do
7213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214     ac_cv_prog_ac_ct_OTOOL64="otool64"
7215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7225 if test -n "$ac_ct_OTOOL64"; then
7226   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7227 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7228 else
7229   { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7231 fi
7232
7233   if test "x$ac_ct_OTOOL64" = x; then
7234     OTOOL64=":"
7235   else
7236     case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet.  If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&5
7241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7242 whose name does not start with the host triplet.  If you think this
7243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246     OTOOL64=$ac_ct_OTOOL64
7247   fi
7248 else
7249   OTOOL64="$ac_cv_prog_OTOOL64"
7250 fi
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7279 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7280 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   lt_cv_apple_cc_single_mod=no
7284       if test -z "${LT_MULTI_MODULE}"; then
7285         # By default we will add the -single_module flag. You can override
7286         # by either setting the environment variable LT_MULTI_MODULE
7287         # non-empty at configure time, or by adding -multi_module to the
7288         # link flags.
7289         rm -rf libconftest.dylib*
7290         echo "int foo(void){return 1;}" > conftest.c
7291         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7292 -dynamiclib -Wl,-single_module conftest.c" >&5
7293         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7294           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7295         _lt_result=$?
7296         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7297           lt_cv_apple_cc_single_mod=yes
7298         else
7299           cat conftest.err >&5
7300         fi
7301         rm -rf libconftest.dylib*
7302         rm -f conftest.*
7303       fi
7304 fi
7305 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7306 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7307     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7308 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7309 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   lt_cv_ld_exported_symbols_list=no
7313       save_LDFLAGS=$LDFLAGS
7314       echo "_main" > conftest.sym
7315       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7316       cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h.  */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h.  */
7322
7323 int
7324 main ()
7325 {
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7333 case "(($ac_try" in
7334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335   *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338   (eval "$ac_link") 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } && {
7345          test -z "$ac_c_werror_flag" ||
7346          test ! -s conftest.err
7347        } && test -s conftest$ac_exeext &&
7348        $as_test_x conftest$ac_exeext; then
7349   lt_cv_ld_exported_symbols_list=yes
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354         lt_cv_ld_exported_symbols_list=no
7355 fi
7356
7357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358       conftest$ac_exeext conftest.$ac_ext
7359         LDFLAGS="$save_LDFLAGS"
7360
7361 fi
7362 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7363 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7364     case $host_os in
7365     rhapsody* | darwin1.[012])
7366       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7367     darwin1.*)
7368       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7369     darwin*) # darwin 5.x on
7370       # if running on 10.5 or later, the deployment target defaults
7371       # to the OS version, if on x86, and 10.4, the deployment
7372       # target defaults to 10.4. Don't you love it?
7373       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7374         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7375           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7376         10.[012]*)
7377           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7378         10.*)
7379           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7380       esac
7381     ;;
7382   esac
7383     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7384       _lt_dar_single_mod='$single_module'
7385     fi
7386     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7387       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7388     else
7389       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7390     fi
7391     if test "$DSYMUTIL" != ":"; then
7392       _lt_dsymutil='~$DSYMUTIL $lib || :'
7393     else
7394       _lt_dsymutil=
7395     fi
7396     ;;
7397   esac
7398
7399
7400 for ac_header in dlfcn.h
7401 do
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h.  */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h.  */
7414 $ac_includes_default
7415
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7420 case "(($ac_try" in
7421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422   *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425   (eval "$ac_compile") 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && {
7432          test -z "$ac_c_werror_flag" ||
7433          test ! -s conftest.err
7434        } && test -s conftest.$ac_objext; then
7435   eval "$as_ac_Header=yes"
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440         eval "$as_ac_Header=no"
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 fi
7445 ac_res=`eval echo '${'$as_ac_Header'}'`
7446                { echo "$as_me:$LINENO: result: $ac_res" >&5
7447 echo "${ECHO_T}$ac_res" >&6; }
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449   cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451 _ACEOF
7452
7453 fi
7454
7455 done
7456
7457
7458
7459 ac_ext=cpp
7460 ac_cpp='$CXXCPP $CPPFLAGS'
7461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7464 if test -z "$CXX"; then
7465   if test -n "$CCC"; then
7466     CXX=$CCC
7467   else
7468     if test -n "$ac_tool_prefix"; then
7469   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7470   do
7471     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_prog_CXX+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   if test -n "$CXX"; then
7479   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486   for ac_exec_ext in '' $ac_executable_extensions; do
7487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7488     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 CXX=$ac_cv_prog_CXX
7499 if test -n "$CXX"; then
7500   { echo "$as_me:$LINENO: result: $CXX" >&5
7501 echo "${ECHO_T}$CXX" >&6; }
7502 else
7503   { echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6; }
7505 fi
7506
7507
7508     test -n "$CXX" && break
7509   done
7510 fi
7511 if test -z "$CXX"; then
7512   ac_ct_CXX=$CXX
7513   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7514 do
7515   # Extract the first word of "$ac_prog", so it can be a program name with args.
7516 set dummy $ac_prog; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   if test -n "$ac_ct_CXX"; then
7523   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_ac_ct_CXX="$ac_prog"
7533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7543 if test -n "$ac_ct_CXX"; then
7544   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7545 echo "${ECHO_T}$ac_ct_CXX" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551
7552   test -n "$ac_ct_CXX" && break
7553 done
7554
7555   if test "x$ac_ct_CXX" = x; then
7556     CXX="g++"
7557   else
7558     case $cross_compiling:$ac_tool_warned in
7559 yes:)
7560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7561 whose name does not start with the host triplet.  If you think this
7562 configuration is useful to you, please write to autoconf@gnu.org." >&5
7563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7564 whose name does not start with the host triplet.  If you think this
7565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7566 ac_tool_warned=yes ;;
7567 esac
7568     CXX=$ac_ct_CXX
7569   fi
7570 fi
7571
7572   fi
7573 fi
7574 # Provide some information about the compiler.
7575 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7576 ac_compiler=`set X $ac_compile; echo $2`
7577 { (ac_try="$ac_compiler --version >&5"
7578 case "(($ac_try" in
7579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580   *) ac_try_echo=$ac_try;;
7581 esac
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583   (eval "$ac_compiler --version >&5") 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }
7587 { (ac_try="$ac_compiler -v >&5"
7588 case "(($ac_try" in
7589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590   *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593   (eval "$ac_compiler -v >&5") 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); }
7597 { (ac_try="$ac_compiler -V >&5"
7598 case "(($ac_try" in
7599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600   *) ac_try_echo=$ac_try;;
7601 esac
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603   (eval "$ac_compiler -V >&5") 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }
7607
7608 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7609 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7610 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613   cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619
7620 int
7621 main ()
7622 {
7623 #ifndef __GNUC__
7624        choke me
7625 #endif
7626
7627   ;
7628   return 0;
7629 }
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7633 case "(($ac_try" in
7634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635   *) ac_try_echo=$ac_try;;
7636 esac
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638   (eval "$ac_compile") 2>conftest.er1
7639   ac_status=$?
7640   grep -v '^ *+' conftest.er1 >conftest.err
7641   rm -f conftest.er1
7642   cat conftest.err >&5
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } && {
7645          test -z "$ac_cxx_werror_flag" ||
7646          test ! -s conftest.err
7647        } && test -s conftest.$ac_objext; then
7648   ac_compiler_gnu=yes
7649 else
7650   echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653         ac_compiler_gnu=no
7654 fi
7655
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7658
7659 fi
7660 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7661 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7662 GXX=`test $ac_compiler_gnu = yes && echo yes`
7663 ac_test_CXXFLAGS=${CXXFLAGS+set}
7664 ac_save_CXXFLAGS=$CXXFLAGS
7665 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7666 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7667 if test "${ac_cv_prog_cxx_g+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7671    ac_cxx_werror_flag=yes
7672    ac_cv_prog_cxx_g=no
7673    CXXFLAGS="-g"
7674    cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680
7681 int
7682 main ()
7683 {
7684
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7691 case "(($ac_try" in
7692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693   *) ac_try_echo=$ac_try;;
7694 esac
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696   (eval "$ac_compile") 2>conftest.er1
7697   ac_status=$?
7698   grep -v '^ *+' conftest.er1 >conftest.err
7699   rm -f conftest.er1
7700   cat conftest.err >&5
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); } && {
7703          test -z "$ac_cxx_werror_flag" ||
7704          test ! -s conftest.err
7705        } && test -s conftest.$ac_objext; then
7706   ac_cv_prog_cxx_g=yes
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711         CXXFLAGS=""
7712       cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719 int
7720 main ()
7721 {
7722
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7729 case "(($ac_try" in
7730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731   *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734   (eval "$ac_compile") 2>conftest.er1
7735   ac_status=$?
7736   grep -v '^ *+' conftest.er1 >conftest.err
7737   rm -f conftest.er1
7738   cat conftest.err >&5
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } && {
7741          test -z "$ac_cxx_werror_flag" ||
7742          test ! -s conftest.err
7743        } && test -s conftest.$ac_objext; then
7744   :
7745 else
7746   echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7750          CXXFLAGS="-g"
7751          cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 int
7759 main ()
7760 {
7761
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770   *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773   (eval "$ac_compile") 2>conftest.er1
7774   ac_status=$?
7775   grep -v '^ *+' conftest.er1 >conftest.err
7776   rm -f conftest.er1
7777   cat conftest.err >&5
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } && {
7780          test -z "$ac_cxx_werror_flag" ||
7781          test ! -s conftest.err
7782        } && test -s conftest.$ac_objext; then
7783   ac_cv_prog_cxx_g=yes
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788
7789 fi
7790
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 fi
7793
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7799 fi
7800 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7801 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7802 if test "$ac_test_CXXFLAGS" = set; then
7803   CXXFLAGS=$ac_save_CXXFLAGS
7804 elif test $ac_cv_prog_cxx_g = yes; then
7805   if test "$GXX" = yes; then
7806     CXXFLAGS="-g -O2"
7807   else
7808     CXXFLAGS="-g"
7809   fi
7810 else
7811   if test "$GXX" = yes; then
7812     CXXFLAGS="-O2"
7813   else
7814     CXXFLAGS=
7815   fi
7816 fi
7817 ac_ext=c
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822
7823 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7824     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7825     (test "X$CXX" != "Xg++"))) ; then
7826   ac_ext=cpp
7827 ac_cpp='$CXXCPP $CPPFLAGS'
7828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7831 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7832 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7833 if test -z "$CXXCPP"; then
7834   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837       # Double quotes because CXXCPP needs to be expanded
7838     for CXXCPP in "$CXX -E" "/lib/cpp"
7839     do
7840       ac_preproc_ok=false
7841 for ac_cxx_preproc_warn_flag in '' yes
7842 do
7843   # Use a header file that comes with gcc, so configuring glibc
7844   # with a fresh cross-compiler works.
7845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846   # <limits.h> exists even on freestanding compilers.
7847   # On the NeXT, cc -E runs the code through the compiler's parser,
7848   # not just through cpp. "Syntax error" is here to catch this case.
7849   cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h.  */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h.  */
7855 #ifdef __STDC__
7856 # include <limits.h>
7857 #else
7858 # include <assert.h>
7859 #endif
7860                      Syntax error
7861 _ACEOF
7862 if { (ac_try="$ac_cpp conftest.$ac_ext"
7863 case "(($ac_try" in
7864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865   *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7869   ac_status=$?
7870   grep -v '^ *+' conftest.er1 >conftest.err
7871   rm -f conftest.er1
7872   cat conftest.err >&5
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } >/dev/null && {
7875          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7876          test ! -s conftest.err
7877        }; then
7878   :
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883   # Broken: fails on valid input.
7884 continue
7885 fi
7886
7887 rm -f conftest.err conftest.$ac_ext
7888
7889   # OK, works on sane cases.  Now check whether nonexistent headers
7890   # can be detected and how.
7891   cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h.  */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h.  */
7897 #include <ac_nonexistent.h>
7898 _ACEOF
7899 if { (ac_try="$ac_cpp conftest.$ac_ext"
7900 case "(($ac_try" in
7901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902   *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7906   ac_status=$?
7907   grep -v '^ *+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } >/dev/null && {
7912          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7913          test ! -s conftest.err
7914        }; then
7915   # Broken: success on invalid input.
7916 continue
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921   # Passes both tests.
7922 ac_preproc_ok=:
7923 break
7924 fi
7925
7926 rm -f conftest.err conftest.$ac_ext
7927
7928 done
7929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7930 rm -f conftest.err conftest.$ac_ext
7931 if $ac_preproc_ok; then
7932   break
7933 fi
7934
7935     done
7936     ac_cv_prog_CXXCPP=$CXXCPP
7937
7938 fi
7939   CXXCPP=$ac_cv_prog_CXXCPP
7940 else
7941   ac_cv_prog_CXXCPP=$CXXCPP
7942 fi
7943 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7944 echo "${ECHO_T}$CXXCPP" >&6; }
7945 ac_preproc_ok=false
7946 for ac_cxx_preproc_warn_flag in '' yes
7947 do
7948   # Use a header file that comes with gcc, so configuring glibc
7949   # with a fresh cross-compiler works.
7950   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7951   # <limits.h> exists even on freestanding compilers.
7952   # On the NeXT, cc -E runs the code through the compiler's parser,
7953   # not just through cpp. "Syntax error" is here to catch this case.
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960 #ifdef __STDC__
7961 # include <limits.h>
7962 #else
7963 # include <assert.h>
7964 #endif
7965                      Syntax error
7966 _ACEOF
7967 if { (ac_try="$ac_cpp conftest.$ac_ext"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } >/dev/null && {
7980          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7981          test ! -s conftest.err
7982        }; then
7983   :
7984 else
7985   echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988   # Broken: fails on valid input.
7989 continue
7990 fi
7991
7992 rm -f conftest.err conftest.$ac_ext
7993
7994   # OK, works on sane cases.  Now check whether nonexistent headers
7995   # can be detected and how.
7996   cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h.  */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h.  */
8002 #include <ac_nonexistent.h>
8003 _ACEOF
8004 if { (ac_try="$ac_cpp conftest.$ac_ext"
8005 case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8011   ac_status=$?
8012   grep -v '^ *+' conftest.er1 >conftest.err
8013   rm -f conftest.er1
8014   cat conftest.err >&5
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } >/dev/null && {
8017          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8018          test ! -s conftest.err
8019        }; then
8020   # Broken: success on invalid input.
8021 continue
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026   # Passes both tests.
8027 ac_preproc_ok=:
8028 break
8029 fi
8030
8031 rm -f conftest.err conftest.$ac_ext
8032
8033 done
8034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8035 rm -f conftest.err conftest.$ac_ext
8036 if $ac_preproc_ok; then
8037   :
8038 else
8039   _lt_caught_CXX_error=yes
8040 fi
8041
8042 ac_ext=c
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048 else
8049   _lt_caught_CXX_error=yes
8050 fi
8051
8052
8053
8054 { echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
8055 echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6; }
8056 if test "${libltdl_cv_shlibext+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059
8060 module=yes
8061 eval libltdl_cv_shlibext=$shrext_cmds
8062
8063 fi
8064 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8065 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8066 if test -n "$libltdl_cv_shlibext"; then
8067
8068 cat >>confdefs.h <<_ACEOF
8069 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
8070 _ACEOF
8071
8072 fi
8073
8074 { echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
8075 echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6; }
8076 if test "${lt_cv_module_path_var+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   lt_cv_module_path_var="$shlibpath_var"
8080 fi
8081 { echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
8082 echo "${ECHO_T}$lt_cv_module_path_var" >&6; }
8083 if test -n "$lt_cv_module_path_var"; then
8084
8085 cat >>confdefs.h <<_ACEOF
8086 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
8087 _ACEOF
8088
8089 fi
8090
8091 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8092 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8093 if test "${lt_cv_sys_dlsearch_path+set}" = set; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
8097 fi
8098 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
8099 echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6; }
8100 if test -n "$lt_cv_sys_dlsearch_path"; then
8101   sys_dlsearch_path=
8102   for dir in $lt_cv_sys_dlsearch_path; do
8103     if test -z "$sys_dlsearch_path"; then
8104       sys_dlsearch_path="$dir"
8105     else
8106       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
8107     fi
8108   done
8109
8110 cat >>confdefs.h <<_ACEOF
8111 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
8112 _ACEOF
8113
8114 fi
8115
8116
8117 LT_DLLOADERS=
8118
8119
8120 ac_ext=c
8121 ac_cpp='$CPP $CPPFLAGS'
8122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126
8127 LIBADD_DLOPEN=
8128 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8129 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8130 if test "${ac_cv_search_dlopen+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   ac_func_search_save_LIBS=$LIBS
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140
8141 /* Override any GCC internal prototype to avoid an error.
8142    Use char because int might match the return type of a GCC
8143    builtin and then its argument prototype would still apply.  */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 char dlopen ();
8148 int
8149 main ()
8150 {
8151 return dlopen ();
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 for ac_lib in '' dl; do
8157   if test -z "$ac_lib"; then
8158     ac_res="none required"
8159   else
8160     ac_res=-l$ac_lib
8161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8162   fi
8163   rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8165 case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_link") 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } && {
8177          test -z "$ac_c_werror_flag" ||
8178          test ! -s conftest.err
8179        } && test -s conftest$ac_exeext &&
8180        $as_test_x conftest$ac_exeext; then
8181   ac_cv_search_dlopen=$ac_res
8182 else
8183   echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186
8187 fi
8188
8189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8190       conftest$ac_exeext
8191   if test "${ac_cv_search_dlopen+set}" = set; then
8192   break
8193 fi
8194 done
8195 if test "${ac_cv_search_dlopen+set}" = set; then
8196   :
8197 else
8198   ac_cv_search_dlopen=no
8199 fi
8200 rm conftest.$ac_ext
8201 LIBS=$ac_func_search_save_LIBS
8202 fi
8203 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8205 ac_res=$ac_cv_search_dlopen
8206 if test "$ac_res" != no; then
8207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8208
8209 cat >>confdefs.h <<\_ACEOF
8210 #define HAVE_LIBDL 1
8211 _ACEOF
8212
8213         if test "$ac_cv_search_dlopen" != "none required" ; then
8214           LIBADD_DLOPEN="-ldl"
8215         fi
8216         libltdl_cv_lib_dl_dlopen="yes"
8217         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
8218 else
8219   cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225 #if HAVE_DLFCN_H
8226 #  include <dlfcn.h>
8227 #endif
8228
8229 int
8230 main ()
8231 {
8232 dlopen(0, 0);
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8239 case "(($ac_try" in
8240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241   *) ac_try_echo=$ac_try;;
8242 esac
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244   (eval "$ac_link") 2>conftest.er1
8245   ac_status=$?
8246   grep -v '^ *+' conftest.er1 >conftest.err
8247   rm -f conftest.er1
8248   cat conftest.err >&5
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); } && {
8251          test -z "$ac_c_werror_flag" ||
8252          test ! -s conftest.err
8253        } && test -s conftest$ac_exeext &&
8254        $as_test_x conftest$ac_exeext; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_LIBDL 1
8258 _ACEOF
8259
8260             libltdl_cv_func_dlopen="yes"
8261             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8267 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8268 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   ac_check_lib_save_LIBS=$LIBS
8272 LIBS="-lsvld  $LIBS"
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279
8280 /* Override any GCC internal prototype to avoid an error.
8281    Use char because int might match the return type of a GCC
8282    builtin and then its argument prototype would still apply.  */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 char dlopen ();
8287 int
8288 main ()
8289 {
8290 return dlopen ();
8291   ;
8292   return 0;
8293 }
8294 _ACEOF
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8297 case "(($ac_try" in
8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299   *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302   (eval "$ac_link") 2>conftest.er1
8303   ac_status=$?
8304   grep -v '^ *+' conftest.er1 >conftest.err
8305   rm -f conftest.er1
8306   cat conftest.err >&5
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } && {
8309          test -z "$ac_c_werror_flag" ||
8310          test ! -s conftest.err
8311        } && test -s conftest$ac_exeext &&
8312        $as_test_x conftest$ac_exeext; then
8313   ac_cv_lib_svld_dlopen=yes
8314 else
8315   echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318         ac_cv_lib_svld_dlopen=no
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8322       conftest$ac_exeext conftest.$ac_ext
8323 LIBS=$ac_check_lib_save_LIBS
8324 fi
8325 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8326 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8327 if test $ac_cv_lib_svld_dlopen = yes; then
8328
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_LIBDL 1
8331 _ACEOF
8332
8333                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
8334                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
8335 fi
8336
8337 fi
8338
8339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8340       conftest$ac_exeext conftest.$ac_ext
8341 fi
8342
8343 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8344 then
8345   lt_save_LIBS="$LIBS"
8346   LIBS="$LIBS $LIBADD_DLOPEN"
8347
8348 for ac_func in dlerror
8349 do
8350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8364 #define $ac_func innocuous_$ac_func
8365
8366 /* System header to define __stub macros and hopefully few prototypes,
8367     which can conflict with char $ac_func (); below.
8368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8369     <limits.h> exists even on freestanding compilers.  */
8370
8371 #ifdef __STDC__
8372 # include <limits.h>
8373 #else
8374 # include <assert.h>
8375 #endif
8376
8377 #undef $ac_func
8378
8379 /* Override any GCC internal prototype to avoid an error.
8380    Use char because int might match the return type of a GCC
8381    builtin and then its argument prototype would still apply.  */
8382 #ifdef __cplusplus
8383 extern "C"
8384 #endif
8385 char $ac_func ();
8386 /* The GNU C library defines this for functions which it implements
8387     to always fail with ENOSYS.  Some functions are actually named
8388     something starting with __ and the normal name is an alias.  */
8389 #if defined __stub_$ac_func || defined __stub___$ac_func
8390 choke me
8391 #endif
8392
8393 int
8394 main ()
8395 {
8396 return $ac_func ();
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (ac_try="$ac_link"
8403 case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_link") 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } && {
8415          test -z "$ac_c_werror_flag" ||
8416          test ! -s conftest.err
8417        } && test -s conftest$ac_exeext &&
8418        $as_test_x conftest$ac_exeext; then
8419   eval "$as_ac_var=yes"
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424         eval "$as_ac_var=no"
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8428       conftest$ac_exeext conftest.$ac_ext
8429 fi
8430 ac_res=`eval echo '${'$as_ac_var'}'`
8431                { echo "$as_me:$LINENO: result: $ac_res" >&5
8432 echo "${ECHO_T}$ac_res" >&6; }
8433 if test `eval echo '${'$as_ac_var'}'` = yes; then
8434   cat >>confdefs.h <<_ACEOF
8435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8436 _ACEOF
8437
8438 fi
8439 done
8440
8441   LIBS="$lt_save_LIBS"
8442 fi
8443
8444
8445 LIBADD_SHL_LOAD=
8446 { echo "$as_me:$LINENO: checking for shl_load" >&5
8447 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8448 if test "${ac_cv_func_shl_load+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8459 #define shl_load innocuous_shl_load
8460
8461 /* System header to define __stub macros and hopefully few prototypes,
8462     which can conflict with char shl_load (); below.
8463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8464     <limits.h> exists even on freestanding compilers.  */
8465
8466 #ifdef __STDC__
8467 # include <limits.h>
8468 #else
8469 # include <assert.h>
8470 #endif
8471
8472 #undef shl_load
8473
8474 /* Override any GCC internal prototype to avoid an error.
8475    Use char because int might match the return type of a GCC
8476    builtin and then its argument prototype would still apply.  */
8477 #ifdef __cplusplus
8478 extern "C"
8479 #endif
8480 char shl_load ();
8481 /* The GNU C library defines this for functions which it implements
8482     to always fail with ENOSYS.  Some functions are actually named
8483     something starting with __ and the normal name is an alias.  */
8484 #if defined __stub_shl_load || defined __stub___shl_load
8485 choke me
8486 #endif
8487
8488 int
8489 main ()
8490 {
8491 return shl_load ();
8492   ;
8493   return 0;
8494 }
8495 _ACEOF
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (ac_try="$ac_link"
8498 case "(($ac_try" in
8499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500   *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503   (eval "$ac_link") 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } && {
8510          test -z "$ac_c_werror_flag" ||
8511          test ! -s conftest.err
8512        } && test -s conftest$ac_exeext &&
8513        $as_test_x conftest$ac_exeext; then
8514   ac_cv_func_shl_load=yes
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519         ac_cv_func_shl_load=no
8520 fi
8521
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523       conftest$ac_exeext conftest.$ac_ext
8524 fi
8525 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8526 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8527 if test $ac_cv_func_shl_load = yes; then
8528
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_SHL_LOAD 1
8531 _ACEOF
8532
8533         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8534 else
8535   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8536 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8537 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   ac_check_lib_save_LIBS=$LIBS
8541 LIBS="-ldld  $LIBS"
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548
8549 /* Override any GCC internal prototype to avoid an error.
8550    Use char because int might match the return type of a GCC
8551    builtin and then its argument prototype would still apply.  */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 char shl_load ();
8556 int
8557 main ()
8558 {
8559 return shl_load ();
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_link") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } && {
8578          test -z "$ac_c_werror_flag" ||
8579          test ! -s conftest.err
8580        } && test -s conftest$ac_exeext &&
8581        $as_test_x conftest$ac_exeext; then
8582   ac_cv_lib_dld_shl_load=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587         ac_cv_lib_dld_shl_load=no
8588 fi
8589
8590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8591       conftest$ac_exeext conftest.$ac_ext
8592 LIBS=$ac_check_lib_save_LIBS
8593 fi
8594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8595 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8596 if test $ac_cv_lib_dld_shl_load = yes; then
8597
8598 cat >>confdefs.h <<\_ACEOF
8599 #define HAVE_SHL_LOAD 1
8600 _ACEOF
8601
8602             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8603             LIBADD_SHL_LOAD="-ldld"
8604 fi
8605
8606 fi
8607
8608
8609
8610 case $host_os in
8611 darwin[1567].*)
8612 # We only want this for pre-Mac OS X 10.4.
8613   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8614 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
8615 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h.  */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h.  */
8624 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8626 #define _dyld_func_lookup innocuous__dyld_func_lookup
8627
8628 /* System header to define __stub macros and hopefully few prototypes,
8629     which can conflict with char _dyld_func_lookup (); below.
8630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631     <limits.h> exists even on freestanding compilers.  */
8632
8633 #ifdef __STDC__
8634 # include <limits.h>
8635 #else
8636 # include <assert.h>
8637 #endif
8638
8639 #undef _dyld_func_lookup
8640
8641 /* Override any GCC internal prototype to avoid an error.
8642    Use char because int might match the return type of a GCC
8643    builtin and then its argument prototype would still apply.  */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 char _dyld_func_lookup ();
8648 /* The GNU C library defines this for functions which it implements
8649     to always fail with ENOSYS.  Some functions are actually named
8650     something starting with __ and the normal name is an alias.  */
8651 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
8652 choke me
8653 #endif
8654
8655 int
8656 main ()
8657 {
8658 return _dyld_func_lookup ();
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8665 case "(($ac_try" in
8666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667   *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670   (eval "$ac_link") 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } && {
8677          test -z "$ac_c_werror_flag" ||
8678          test ! -s conftest.err
8679        } && test -s conftest$ac_exeext &&
8680        $as_test_x conftest$ac_exeext; then
8681   ac_cv_func__dyld_func_lookup=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686         ac_cv_func__dyld_func_lookup=no
8687 fi
8688
8689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690       conftest$ac_exeext conftest.$ac_ext
8691 fi
8692 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8693 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
8694 if test $ac_cv_func__dyld_func_lookup = yes; then
8695
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE_DYLD 1
8698 _ACEOF
8699
8700         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
8701 fi
8702
8703   ;;
8704 beos*)
8705   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
8706   ;;
8707 cygwin* | mingw* | os2* | pw32*)
8708   { echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
8709 echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6; }
8710 if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
8711   echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713   cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h.  */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h.  */
8719 #include <sys/cygwin.h>
8720
8721 int
8722 main ()
8723 {
8724 #ifndef cygwin_conv_path
8725   (void) cygwin_conv_path;
8726 #endif
8727
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (ac_try="$ac_compile"
8734 case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_compile") 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } && {
8746          test -z "$ac_c_werror_flag" ||
8747          test ! -s conftest.err
8748        } && test -s conftest.$ac_objext; then
8749   ac_cv_have_decl_cygwin_conv_path=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754         ac_cv_have_decl_cygwin_conv_path=no
8755 fi
8756
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
8760 echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6; }
8761 if test $ac_cv_have_decl_cygwin_conv_path = yes; then
8762
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_DECL_CYGWIN_CONV_PATH 1
8765 _ACEOF
8766
8767
8768 else
8769   cat >>confdefs.h <<_ACEOF
8770 #define HAVE_DECL_CYGWIN_CONV_PATH 0
8771 _ACEOF
8772
8773
8774 fi
8775
8776
8777   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
8778   ;;
8779 esac
8780
8781 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8782 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8783 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   ac_check_lib_save_LIBS=$LIBS
8787 LIBS="-ldld  $LIBS"
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h.  */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h.  */
8794
8795 /* Override any GCC internal prototype to avoid an error.
8796    Use char because int might match the return type of a GCC
8797    builtin and then its argument prototype would still apply.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 char dld_link ();
8802 int
8803 main ()
8804 {
8805 return dld_link ();
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8812 case "(($ac_try" in
8813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814   *) ac_try_echo=$ac_try;;
8815 esac
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817   (eval "$ac_link") 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } && {
8824          test -z "$ac_c_werror_flag" ||
8825          test ! -s conftest.err
8826        } && test -s conftest$ac_exeext &&
8827        $as_test_x conftest$ac_exeext; then
8828   ac_cv_lib_dld_dld_link=yes
8829 else
8830   echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833         ac_cv_lib_dld_dld_link=no
8834 fi
8835
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837       conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8839 fi
8840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8842 if test $ac_cv_lib_dld_dld_link = yes; then
8843
8844 cat >>confdefs.h <<\_ACEOF
8845 #define HAVE_DLD 1
8846 _ACEOF
8847
8848                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
8849 fi
8850
8851
8852
8853
8854 LT_DLPREOPEN=
8855 if test -n "$LT_DLLOADERS"
8856 then
8857   for lt_loader in $LT_DLLOADERS; do
8858     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
8859   done
8860
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_LIBDLLOADER 1
8863 _ACEOF
8864
8865 fi
8866
8867
8868 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
8869
8870
8871 ac_ext=c
8872 ac_cpp='$CPP $CPPFLAGS'
8873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8876
8877
8878 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8879 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
8880 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   lt_cv_sys_symbol_underscore=no
8884   cat > conftest.$ac_ext <<_LT_EOF
8885 void nm_test_func(){}
8886 int main(){nm_test_func;return 0;}
8887 _LT_EOF
8888   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8889   (eval $ac_compile) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }; then
8893     # Now try to grab the symbols.
8894     ac_nlist=conftest.nm
8895     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8896   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } && test -s "$ac_nlist"; then
8900       # See whether the symbols have a leading underscore.
8901       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8902         lt_cv_sys_symbol_underscore=yes
8903       else
8904         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8905           :
8906         else
8907           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8908         fi
8909       fi
8910     else
8911       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8912     fi
8913   else
8914     echo "configure: failed program was:" >&5
8915     cat conftest.c >&5
8916   fi
8917   rm -rf conftest*
8918
8919 fi
8920 { echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
8921 echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6; }
8922   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
8923
8924
8925 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
8926   if test x"$libltdl_cv_func_dlopen" = xyes ||
8927      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8928         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8929 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
8930 if test "${libltdl_cv_need_uscore+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   libltdl_cv_need_uscore=unknown
8934           save_LIBS="$LIBS"
8935           LIBS="$LIBS $LIBADD_DLOPEN"
8936           if test "$cross_compiling" = yes; then :
8937   libltdl_cv_need_uscore=cross
8938 else
8939   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8940   lt_status=$lt_dlunknown
8941   cat > conftest.$ac_ext <<_LT_EOF
8942 #line 8942 "configure"
8943 #include "confdefs.h"
8944
8945 #if HAVE_DLFCN_H
8946 #include <dlfcn.h>
8947 #endif
8948
8949 #include <stdio.h>
8950
8951 #ifdef RTLD_GLOBAL
8952 #  define LT_DLGLOBAL           RTLD_GLOBAL
8953 #else
8954 #  ifdef DL_GLOBAL
8955 #    define LT_DLGLOBAL         DL_GLOBAL
8956 #  else
8957 #    define LT_DLGLOBAL         0
8958 #  endif
8959 #endif
8960
8961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8962    find out it does not work in some platform. */
8963 #ifndef LT_DLLAZY_OR_NOW
8964 #  ifdef RTLD_LAZY
8965 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8966 #  else
8967 #    ifdef DL_LAZY
8968 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8969 #    else
8970 #      ifdef RTLD_NOW
8971 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8972 #      else
8973 #        ifdef DL_NOW
8974 #          define LT_DLLAZY_OR_NOW      DL_NOW
8975 #        else
8976 #          define LT_DLLAZY_OR_NOW      0
8977 #        endif
8978 #      endif
8979 #    endif
8980 #  endif
8981 #endif
8982
8983 #ifdef __cplusplus
8984 extern "C" void exit (int);
8985 #endif
8986
8987 void fnord() { int i=42;}
8988 int main ()
8989 {
8990   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8991   int status = $lt_dlunknown;
8992
8993   if (self)
8994     {
8995       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8996       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8997       /* dlclose (self); */
8998     }
8999   else
9000     puts (dlerror ());
9001
9002     exit (status);
9003 }
9004 _LT_EOF
9005   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9010     (./conftest; exit; ) >&5 2>/dev/null
9011     lt_status=$?
9012     case x$lt_status in
9013       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9014       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9015       x$lt_dlunknown|x*)  ;;
9016     esac
9017   else :
9018     # compilation failed
9019
9020   fi
9021 fi
9022 rm -fr conftest*
9023
9024           LIBS="$save_LIBS"
9025
9026 fi
9027 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9028 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9029   fi
9030 fi
9031
9032 if test x"$libltdl_cv_need_uscore" = xyes; then
9033
9034 cat >>confdefs.h <<\_ACEOF
9035 #define NEED_USCORE 1
9036 _ACEOF
9037
9038 fi
9039
9040 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9041 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9042 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045   # PORTME does your system automatically load deplibs for dlopen?
9046   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9047   # For now, we just catch OSes we know something about -- in the
9048   # future, we'll try test this programmatically.
9049   lt_cv_sys_dlopen_deplibs=unknown
9050   case $host_os in
9051   aix3*|aix4.1.*|aix4.2.*)
9052     # Unknown whether this is true for these versions of AIX, but
9053     # we want this `case' here to explicitly catch those versions.
9054     lt_cv_sys_dlopen_deplibs=unknown
9055     ;;
9056   aix[4-9]*)
9057     lt_cv_sys_dlopen_deplibs=yes
9058     ;;
9059   amigaos*)
9060     case $host_cpu in
9061     powerpc)
9062       lt_cv_sys_dlopen_deplibs=no
9063       ;;
9064     esac
9065     ;;
9066   darwin*)
9067     # Assuming the user has installed a libdl from somewhere, this is true
9068     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9069     lt_cv_sys_dlopen_deplibs=yes
9070     ;;
9071   freebsd* | dragonfly*)
9072     lt_cv_sys_dlopen_deplibs=yes
9073     ;;
9074   gnu* | linux* | k*bsd*-gnu)
9075     # GNU and its variants, using gnu ld.so (Glibc)
9076     lt_cv_sys_dlopen_deplibs=yes
9077     ;;
9078   hpux10*|hpux11*)
9079     lt_cv_sys_dlopen_deplibs=yes
9080     ;;
9081   interix*)
9082     lt_cv_sys_dlopen_deplibs=yes
9083     ;;
9084   irix[12345]*|irix6.[01]*)
9085     # Catch all versions of IRIX before 6.2, and indicate that we don't
9086     # know how it worked for any of those versions.
9087     lt_cv_sys_dlopen_deplibs=unknown
9088     ;;
9089   irix*)
9090     # The case above catches anything before 6.2, and it's known that
9091     # at 6.2 and later dlopen does load deplibs.
9092     lt_cv_sys_dlopen_deplibs=yes
9093     ;;
9094   netbsd*)
9095     lt_cv_sys_dlopen_deplibs=yes
9096     ;;
9097   openbsd*)
9098     lt_cv_sys_dlopen_deplibs=yes
9099     ;;
9100   osf[1234]*)
9101     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
9102     # it did *not* use an RPATH in a shared library to find objects the
9103     # library depends on, so we explicitly say `no'.
9104     lt_cv_sys_dlopen_deplibs=no
9105     ;;
9106   osf5.0|osf5.0a|osf5.1)
9107     # dlopen *does* load deplibs and with the right loader patch applied
9108     # it even uses RPATH in a shared library to search for shared objects
9109     # that the library depends on, but there's no easy way to know if that
9110     # patch is installed.  Since this is the case, all we can really
9111     # say is unknown -- it depends on the patch being installed.  If
9112     # it is, this changes to `yes'.  Without it, it would be `no'.
9113     lt_cv_sys_dlopen_deplibs=unknown
9114     ;;
9115   osf*)
9116     # the two cases above should catch all versions of osf <= 5.1.  Read
9117     # the comments above for what we know about them.
9118     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
9119     # is used to find them so we can finally say `yes'.
9120     lt_cv_sys_dlopen_deplibs=yes
9121     ;;
9122   qnx*)
9123     lt_cv_sys_dlopen_deplibs=yes
9124     ;;
9125   solaris*)
9126     lt_cv_sys_dlopen_deplibs=yes
9127     ;;
9128   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9129     libltdl_cv_sys_dlopen_deplibs=yes
9130     ;;
9131   esac
9132
9133 fi
9134 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
9135 echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6; }
9136 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
9137
9138 cat >>confdefs.h <<\_ACEOF
9139 #define LTDL_DLOPEN_DEPLIBS 1
9140 _ACEOF
9141
9142 fi
9143
9144 :
9145
9146
9147 for ac_header in argz.h
9148 do
9149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h.  */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h.  */
9161 $ac_includes_default
9162
9163 #include <$ac_header>
9164 _ACEOF
9165 rm -f conftest.$ac_objext
9166 if { (ac_try="$ac_compile"
9167 case "(($ac_try" in
9168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169   *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172   (eval "$ac_compile") 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && {
9179          test -z "$ac_c_werror_flag" ||
9180          test ! -s conftest.err
9181        } && test -s conftest.$ac_objext; then
9182   eval "$as_ac_Header=yes"
9183 else
9184   echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187         eval "$as_ac_Header=no"
9188 fi
9189
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 fi
9192 ac_res=`eval echo '${'$as_ac_Header'}'`
9193                { echo "$as_me:$LINENO: result: $ac_res" >&5
9194 echo "${ECHO_T}$ac_res" >&6; }
9195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9196   cat >>confdefs.h <<_ACEOF
9197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9198 _ACEOF
9199
9200 fi
9201
9202 done
9203
9204
9205 { echo "$as_me:$LINENO: checking for error_t" >&5
9206 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
9207 if test "${ac_cv_type_error_t+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 #if defined(HAVE_ARGZ_H)
9217 #  include <argz.h>
9218 #endif
9219
9220 typedef error_t ac__type_new_;
9221 int
9222 main ()
9223 {
9224 if ((ac__type_new_ *) 0)
9225   return 0;
9226 if (sizeof (ac__type_new_))
9227   return 0;
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236   *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239   (eval "$ac_compile") 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } && {
9246          test -z "$ac_c_werror_flag" ||
9247          test ! -s conftest.err
9248        } && test -s conftest.$ac_objext; then
9249   ac_cv_type_error_t=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254         ac_cv_type_error_t=no
9255 fi
9256
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9260 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
9261 if test $ac_cv_type_error_t = yes; then
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_ERROR_T 1
9265 _ACEOF
9266
9267
9268 else
9269
9270 cat >>confdefs.h <<\_ACEOF
9271 #define error_t int
9272 _ACEOF
9273
9274
9275 cat >>confdefs.h <<\_ACEOF
9276 #define __error_t_defined 1
9277 _ACEOF
9278
9279 fi
9280
9281
9282 ARGZ_H=
9283
9284
9285
9286
9287
9288
9289
9290 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
9291         argz_next argz_stringify
9292 do
9293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h.  */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h.  */
9305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9307 #define $ac_func innocuous_$ac_func
9308
9309 /* System header to define __stub macros and hopefully few prototypes,
9310     which can conflict with char $ac_func (); below.
9311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312     <limits.h> exists even on freestanding compilers.  */
9313
9314 #ifdef __STDC__
9315 # include <limits.h>
9316 #else
9317 # include <assert.h>
9318 #endif
9319
9320 #undef $ac_func
9321
9322 /* Override any GCC internal prototype to avoid an error.
9323    Use char because int might match the return type of a GCC
9324    builtin and then its argument prototype would still apply.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char $ac_func ();
9329 /* The GNU C library defines this for functions which it implements
9330     to always fail with ENOSYS.  Some functions are actually named
9331     something starting with __ and the normal name is an alias.  */
9332 #if defined __stub_$ac_func || defined __stub___$ac_func
9333 choke me
9334 #endif
9335
9336 int
9337 main ()
9338 {
9339 return $ac_func ();
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348   *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351   (eval "$ac_link") 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && {
9358          test -z "$ac_c_werror_flag" ||
9359          test ! -s conftest.err
9360        } && test -s conftest$ac_exeext &&
9361        $as_test_x conftest$ac_exeext; then
9362   eval "$as_ac_var=yes"
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         eval "$as_ac_var=no"
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9371       conftest$ac_exeext conftest.$ac_ext
9372 fi
9373 ac_res=`eval echo '${'$as_ac_var'}'`
9374                { echo "$as_me:$LINENO: result: $ac_res" >&5
9375 echo "${ECHO_T}$ac_res" >&6; }
9376 if test `eval echo '${'$as_ac_var'}'` = yes; then
9377   cat >>confdefs.h <<_ACEOF
9378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9379 _ACEOF
9380
9381 else
9382   ARGZ_H=argz.h;
9383
9384
9385
9386
9387
9388   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
9389
9390 fi
9391 done
9392
9393
9394 if test -z "$ARGZ_H"; then
9395   { echo "$as_me:$LINENO: checking if argz actually works" >&5
9396 echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6; }
9397 if test "${lt_cv_sys_argz_works+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   case $host_os in #(
9401          *cygwin*)
9402            lt_cv_sys_argz_works=no
9403            if test "$cross_compiling" != no; then
9404              lt_cv_sys_argz_works="guessing no"
9405            else
9406              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
9407              save_IFS=$IFS
9408              IFS=-.
9409              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
9410              IFS=$save_IFS
9411              lt_os_major=${2-0}
9412              lt_os_minor=${3-0}
9413              lt_os_micro=${4-0}
9414              if test "$lt_os_major" -gt 1 \
9415                 || { test "$lt_os_major" -eq 1 \
9416                   && { test "$lt_os_minor" -gt 5 \
9417                     || { test "$lt_os_minor" -eq 5 \
9418                       && test "$lt_os_micro" -gt 24; }; }; }; then
9419                lt_cv_sys_argz_works=yes
9420              fi
9421            fi
9422            ;; #(
9423          *) lt_cv_sys_argz_works=yes ;;
9424          esac
9425 fi
9426 { echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
9427 echo "${ECHO_T}$lt_cv_sys_argz_works" >&6; }
9428      if test $lt_cv_sys_argz_works = yes; then
9429
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_WORKING_ARGZ 1
9432 _ACEOF
9433
9434 else
9435   ARGZ_H=argz.h
9436
9437
9438
9439
9440
9441
9442   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
9443
9444 fi
9445
9446 fi
9447
9448
9449
9450
9451 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9452 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9453 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9457     libltdl_cv_preloaded_symbols=yes
9458   else
9459     libltdl_cv_preloaded_symbols=no
9460   fi
9461
9462 fi
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9464 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9465 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PRELOADED_SYMBOLS 1
9469 _ACEOF
9470
9471 fi
9472
9473
9474 # Check whether --with-system-libtool was given.
9475 if test "${with_system_libtool+set}" = set; then
9476   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
9477 set dummy libtool; ac_word=$2
9478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9480 if test "${ac_cv_path_LIBTOOL+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   case $LIBTOOL in
9484   [\\/]* | ?:[\\/]*)
9485   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
9486   ;;
9487   *)
9488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 as_dummy="$PATH:/usr/local/bin"
9490 for as_dir in $as_dummy
9491 do
9492   IFS=$as_save_IFS
9493   test -z "$as_dir" && as_dir=.
9494   for ac_exec_ext in '' $ac_executable_extensions; do
9495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
9497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9498     break 2
9499   fi
9500 done
9501 done
9502 IFS=$as_save_IFS
9503
9504   ;;
9505 esac
9506 fi
9507 LIBTOOL=$ac_cv_path_LIBTOOL
9508 if test -n "$LIBTOOL"; then
9509   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
9510 echo "${ECHO_T}$LIBTOOL" >&6; }
9511 else
9512   { echo "$as_me:$LINENO: result: no" >&5
9513 echo "${ECHO_T}no" >&6; }
9514 fi
9515
9516
9517 else
9518
9519   LIBTOOL="`pwd`/libtool"
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 # Set options
9530
9531
9532
9533         enable_dlopen=no
9534
9535
9536   enable_win32_dll=no
9537
9538
9539             # Check whether --enable-shared was given.
9540 if test "${enable_shared+set}" = set; then
9541   enableval=$enable_shared; p=${PACKAGE-default}
9542     case $enableval in
9543     yes) enable_shared=yes ;;
9544     no) enable_shared=no ;;
9545     *)
9546       enable_shared=no
9547       # Look at the argument we got.  We use all the common list separators.
9548       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549       for pkg in $enableval; do
9550         IFS="$lt_save_ifs"
9551         if test "X$pkg" = "X$p"; then
9552           enable_shared=yes
9553         fi
9554       done
9555       IFS="$lt_save_ifs"
9556       ;;
9557     esac
9558 else
9559   enable_shared=yes
9560 fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570   # Check whether --enable-static was given.
9571 if test "${enable_static+set}" = set; then
9572   enableval=$enable_static; p=${PACKAGE-default}
9573     case $enableval in
9574     yes) enable_static=yes ;;
9575     no) enable_static=no ;;
9576     *)
9577      enable_static=no
9578       # Look at the argument we got.  We use all the common list separators.
9579       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580       for pkg in $enableval; do
9581         IFS="$lt_save_ifs"
9582         if test "X$pkg" = "X$p"; then
9583           enable_static=yes
9584         fi
9585       done
9586       IFS="$lt_save_ifs"
9587       ;;
9588     esac
9589 else
9590   enable_static=yes
9591 fi
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 # Check whether --with-pic was given.
9603 if test "${with_pic+set}" = set; then
9604   withval=$with_pic; pic_mode="$withval"
9605 else
9606   pic_mode=default
9607 fi
9608
9609
9610 test -z "$pic_mode" && pic_mode=default
9611
9612
9613
9614
9615
9616
9617
9618   # Check whether --enable-fast-install was given.
9619 if test "${enable_fast_install+set}" = set; then
9620   enableval=$enable_fast_install; p=${PACKAGE-default}
9621     case $enableval in
9622     yes) enable_fast_install=yes ;;
9623     no) enable_fast_install=no ;;
9624     *)
9625       enable_fast_install=no
9626       # Look at the argument we got.  We use all the common list separators.
9627       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9628       for pkg in $enableval; do
9629         IFS="$lt_save_ifs"
9630         if test "X$pkg" = "X$p"; then
9631           enable_fast_install=yes
9632         fi
9633       done
9634       IFS="$lt_save_ifs"
9635       ;;
9636     esac
9637 else
9638   enable_fast_install=yes
9639 fi
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651 # This can be used to rebuild libtool when needed
9652 LIBTOOL_DEPS="$ltmain"
9653
9654 # Always use our own libtool.
9655 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 test -z "$LN_S" && LN_S="ln -s"
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696 if test -n "${ZSH_VERSION+set}" ; then
9697    setopt NO_GLOB_SUBST
9698 fi
9699
9700 { echo "$as_me:$LINENO: checking for objdir" >&5
9701 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9702 if test "${lt_cv_objdir+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   rm -f .libs 2>/dev/null
9706 mkdir .libs 2>/dev/null
9707 if test -d .libs; then
9708   lt_cv_objdir=.libs
9709 else
9710   # MS-DOS does not allow filenames that begin with a dot.
9711   lt_cv_objdir=_libs
9712 fi
9713 rmdir .libs 2>/dev/null
9714 fi
9715 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9716 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9717 objdir=$lt_cv_objdir
9718
9719
9720
9721
9722
9723 cat >>confdefs.h <<_ACEOF
9724 #define LT_OBJDIR "$lt_cv_objdir/"
9725 _ACEOF
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743 case $host_os in
9744 aix3*)
9745   # AIX sometimes has problems with the GCC collect2 program.  For some
9746   # reason, if we set the COLLECT_NAMES environment variable, the problems
9747   # vanish in a puff of smoke.
9748   if test "X${COLLECT_NAMES+set}" != Xset; then
9749     COLLECT_NAMES=
9750     export COLLECT_NAMES
9751   fi
9752   ;;
9753 esac
9754
9755 # Sed substitution that helps us do robust quoting.  It backslashifies
9756 # metacharacters that are still active within double-quoted strings.
9757 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9758
9759 # Same as above, but do not quote variable references.
9760 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9761
9762 # Sed substitution to delay expansion of an escaped shell variable in a
9763 # double_quote_subst'ed string.
9764 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9765
9766 # Sed substitution to delay expansion of an escaped single quote.
9767 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9768
9769 # Sed substitution to avoid accidental globbing in evaled expressions
9770 no_glob_subst='s/\*/\\\*/g'
9771
9772 # Global variables:
9773 ofile=libtool
9774 can_build_shared=yes
9775
9776 # All known linkers require a `.a' archive for static linking (except MSVC,
9777 # which needs '.lib').
9778 libext=a
9779
9780 with_gnu_ld="$lt_cv_prog_gnu_ld"
9781
9782 old_CC="$CC"
9783 old_CFLAGS="$CFLAGS"
9784
9785 # Set sane defaults for various variables
9786 test -z "$CC" && CC=cc
9787 test -z "$LTCC" && LTCC=$CC
9788 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9789 test -z "$LD" && LD=ld
9790 test -z "$ac_objext" && ac_objext=o
9791
9792 for cc_temp in $compiler""; do
9793   case $cc_temp in
9794     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9795     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9796     \-*) ;;
9797     *) break;;
9798   esac
9799 done
9800 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9801
9802
9803 # Only perform the check for file, if the check method requires it
9804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9805 case $deplibs_check_method in
9806 file_magic*)
9807   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9808     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9809 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   case $MAGIC_CMD in
9814 [\\/*] |  ?:[\\/]*)
9815   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9816   ;;
9817 *)
9818   lt_save_MAGIC_CMD="$MAGIC_CMD"
9819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9821   for ac_dir in $ac_dummy; do
9822     IFS="$lt_save_ifs"
9823     test -z "$ac_dir" && ac_dir=.
9824     if test -f $ac_dir/${ac_tool_prefix}file; then
9825       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9826       if test -n "$file_magic_test_file"; then
9827         case $deplibs_check_method in
9828         "file_magic "*)
9829           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9830           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9832             $EGREP "$file_magic_regex" > /dev/null; then
9833             :
9834           else
9835             cat <<_LT_EOF 1>&2
9836
9837 *** Warning: the command libtool uses to detect shared libraries,
9838 *** $file_magic_cmd, produces output that libtool cannot recognize.
9839 *** The result is that libtool may fail to recognize shared libraries
9840 *** as such.  This will affect the creation of libtool libraries that
9841 *** depend on shared libraries, but programs linked with such libtool
9842 *** libraries will work regardless of this problem.  Nevertheless, you
9843 *** may want to report the problem to your system manager and/or to
9844 *** bug-libtool@gnu.org
9845
9846 _LT_EOF
9847           fi ;;
9848         esac
9849       fi
9850       break
9851     fi
9852   done
9853   IFS="$lt_save_ifs"
9854   MAGIC_CMD="$lt_save_MAGIC_CMD"
9855   ;;
9856 esac
9857 fi
9858
9859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9860 if test -n "$MAGIC_CMD"; then
9861   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9862 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9863 else
9864   { echo "$as_me:$LINENO: result: no" >&5
9865 echo "${ECHO_T}no" >&6; }
9866 fi
9867
9868
9869
9870
9871
9872 if test -z "$lt_cv_path_MAGIC_CMD"; then
9873   if test -n "$ac_tool_prefix"; then
9874     { echo "$as_me:$LINENO: checking for file" >&5
9875 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9876 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   case $MAGIC_CMD in
9880 [\\/*] |  ?:[\\/]*)
9881   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9882   ;;
9883 *)
9884   lt_save_MAGIC_CMD="$MAGIC_CMD"
9885   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9886   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9887   for ac_dir in $ac_dummy; do
9888     IFS="$lt_save_ifs"
9889     test -z "$ac_dir" && ac_dir=.
9890     if test -f $ac_dir/file; then
9891       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9892       if test -n "$file_magic_test_file"; then
9893         case $deplibs_check_method in
9894         "file_magic "*)
9895           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9896           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9897           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9898             $EGREP "$file_magic_regex" > /dev/null; then
9899             :
9900           else
9901             cat <<_LT_EOF 1>&2
9902
9903 *** Warning: the command libtool uses to detect shared libraries,
9904 *** $file_magic_cmd, produces output that libtool cannot recognize.
9905 *** The result is that libtool may fail to recognize shared libraries
9906 *** as such.  This will affect the creation of libtool libraries that
9907 *** depend on shared libraries, but programs linked with such libtool
9908 *** libraries will work regardless of this problem.  Nevertheless, you
9909 *** may want to report the problem to your system manager and/or to
9910 *** bug-libtool@gnu.org
9911
9912 _LT_EOF
9913           fi ;;
9914         esac
9915       fi
9916       break
9917     fi
9918   done
9919   IFS="$lt_save_ifs"
9920   MAGIC_CMD="$lt_save_MAGIC_CMD"
9921   ;;
9922 esac
9923 fi
9924
9925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9926 if test -n "$MAGIC_CMD"; then
9927   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9928 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9929 else
9930   { echo "$as_me:$LINENO: result: no" >&5
9931 echo "${ECHO_T}no" >&6; }
9932 fi
9933
9934
9935   else
9936     MAGIC_CMD=:
9937   fi
9938 fi
9939
9940   fi
9941   ;;
9942 esac
9943
9944 # Use C for the default configuration in the libtool script
9945
9946 lt_save_CC="$CC"
9947 ac_ext=c
9948 ac_cpp='$CPP $CPPFLAGS'
9949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9952
9953
9954 # Source file extension for C test sources.
9955 ac_ext=c
9956
9957 # Object file extension for compiled C test sources.
9958 objext=o
9959 objext=$objext
9960
9961 # Code to be used in simple compile tests
9962 lt_simple_compile_test_code="int some_variable = 0;"
9963
9964 # Code to be used in simple link tests
9965 lt_simple_link_test_code='int main(){return(0);}'
9966
9967
9968
9969
9970
9971
9972
9973 # If no C compiler was specified, use CC.
9974 LTCC=${LTCC-"$CC"}
9975
9976 # If no C compiler flags were specified, use CFLAGS.
9977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9978
9979 # Allow CC to be a program name with arguments.
9980 compiler=$CC
9981
9982 # Save the default compiler, since it gets overwritten when the other
9983 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9984 compiler_DEFAULT=$CC
9985
9986 # save warnings/boilerplate of simple test code
9987 ac_outfile=conftest.$ac_objext
9988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9990 _lt_compiler_boilerplate=`cat conftest.err`
9991 $RM conftest*
9992
9993 ac_outfile=conftest.$ac_objext
9994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9996 _lt_linker_boilerplate=`cat conftest.err`
9997 $RM -r conftest*
9998
9999
10000 ## CAVEAT EMPTOR:
10001 ## There is no encapsulation within the following macros, do not change
10002 ## the running order or otherwise move them around unless you know exactly
10003 ## what you are doing...
10004 if test -n "$compiler"; then
10005
10006 lt_prog_compiler_no_builtin_flag=
10007
10008 if test "$GCC" = yes; then
10009   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10010
10011   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10012 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10013 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   lt_cv_prog_compiler_rtti_exceptions=no
10017    ac_outfile=conftest.$ac_objext
10018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019    lt_compiler_flag="-fno-rtti -fno-exceptions"
10020    # Insert the option either (1) after the last *FLAGS variable, or
10021    # (2) before a word containing "conftest.", or (3) at the end.
10022    # Note that $ac_compile itself does not contain backslashes and begins
10023    # with a dollar sign (not a hyphen), so the echo should work correctly.
10024    # The option is referenced via a variable to avoid confusing sed.
10025    lt_compile=`echo "$ac_compile" | $SED \
10026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028    -e 's:$: $lt_compiler_flag:'`
10029    (eval echo "\"\$as_me:10029: $lt_compile\"" >&5)
10030    (eval "$lt_compile" 2>conftest.err)
10031    ac_status=$?
10032    cat conftest.err >&5
10033    echo "$as_me:10033: \$? = $ac_status" >&5
10034    if (exit $ac_status) && test -s "$ac_outfile"; then
10035      # The compiler can only warn and ignore the option if not recognized
10036      # So say no if there are warnings other than the usual output.
10037      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10038      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10040        lt_cv_prog_compiler_rtti_exceptions=yes
10041      fi
10042    fi
10043    $RM conftest*
10044
10045 fi
10046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10047 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10048
10049 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10050     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10051 else
10052     :
10053 fi
10054
10055 fi
10056
10057
10058
10059
10060
10061
10062   lt_prog_compiler_wl=
10063 lt_prog_compiler_pic=
10064 lt_prog_compiler_static=
10065
10066 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10067 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10068
10069   if test "$GCC" = yes; then
10070     lt_prog_compiler_wl='-Wl,'
10071     lt_prog_compiler_static='-static'
10072
10073     case $host_os in
10074       aix*)
10075       # All AIX code is PIC.
10076       if test "$host_cpu" = ia64; then
10077         # AIX 5 now supports IA64 processor
10078         lt_prog_compiler_static='-Bstatic'
10079       fi
10080       ;;
10081
10082     amigaos*)
10083       case $host_cpu in
10084       powerpc)
10085             # see comment about AmigaOS4 .so support
10086             lt_prog_compiler_pic='-fPIC'
10087         ;;
10088       m68k)
10089             # FIXME: we need at least 68020 code to build shared libraries, but
10090             # adding the `-m68020' flag to GCC prevents building anything better,
10091             # like `-m68040'.
10092             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10093         ;;
10094       esac
10095       ;;
10096
10097     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10098       # PIC is the default for these OSes.
10099       ;;
10100
10101     mingw* | cygwin* | pw32* | os2*)
10102       # This hack is so that the source file can tell whether it is being
10103       # built for inclusion in a dll (and should export symbols for example).
10104       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10105       # (--disable-auto-import) libraries
10106       lt_prog_compiler_pic='-DDLL_EXPORT'
10107       ;;
10108
10109     darwin* | rhapsody*)
10110       # PIC is the default on this platform
10111       # Common symbols not allowed in MH_DYLIB files
10112       lt_prog_compiler_pic='-fno-common'
10113       ;;
10114
10115     hpux*)
10116       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10117       # not for PA HP-UX.
10118       case $host_cpu in
10119       hppa*64*|ia64*)
10120         # +Z the default
10121         ;;
10122       *)
10123         lt_prog_compiler_pic='-fPIC'
10124         ;;
10125       esac
10126       ;;
10127
10128     interix[3-9]*)
10129       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10130       # Instead, we relocate shared libraries at runtime.
10131       ;;
10132
10133     msdosdjgpp*)
10134       # Just because we use GCC doesn't mean we suddenly get shared libraries
10135       # on systems that don't support them.
10136       lt_prog_compiler_can_build_shared=no
10137       enable_shared=no
10138       ;;
10139
10140     *nto* | *qnx*)
10141       # QNX uses GNU C++, but need to define -shared option too, otherwise
10142       # it will coredump.
10143       lt_prog_compiler_pic='-fPIC -shared'
10144       ;;
10145
10146     sysv4*MP*)
10147       if test -d /usr/nec; then
10148         lt_prog_compiler_pic=-Kconform_pic
10149       fi
10150       ;;
10151
10152     *)
10153       lt_prog_compiler_pic='-fPIC'
10154       ;;
10155     esac
10156   else
10157     # PORTME Check for flag to pass linker flags through the system compiler.
10158     case $host_os in
10159     aix*)
10160       lt_prog_compiler_wl='-Wl,'
10161       if test "$host_cpu" = ia64; then
10162         # AIX 5 now supports IA64 processor
10163         lt_prog_compiler_static='-Bstatic'
10164       else
10165         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10166       fi
10167       ;;
10168
10169     mingw* | cygwin* | pw32* | os2*)
10170       # This hack is so that the source file can tell whether it is being
10171       # built for inclusion in a dll (and should export symbols for example).
10172       lt_prog_compiler_pic='-DDLL_EXPORT'
10173       ;;
10174
10175     hpux9* | hpux10* | hpux11*)
10176       lt_prog_compiler_wl='-Wl,'
10177       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10178       # not for PA HP-UX.
10179       case $host_cpu in
10180       hppa*64*|ia64*)
10181         # +Z the default
10182         ;;
10183       *)
10184         lt_prog_compiler_pic='+Z'
10185         ;;
10186       esac
10187       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10188       lt_prog_compiler_static='${wl}-a ${wl}archive'
10189       ;;
10190
10191     irix5* | irix6* | nonstopux*)
10192       lt_prog_compiler_wl='-Wl,'
10193       # PIC (with -KPIC) is the default.
10194       lt_prog_compiler_static='-non_shared'
10195       ;;
10196
10197     linux* | k*bsd*-gnu)
10198       case $cc_basename in
10199       icc* | ecc* | ifort*)
10200         lt_prog_compiler_wl='-Wl,'
10201         lt_prog_compiler_pic='-KPIC'
10202         lt_prog_compiler_static='-static'
10203         ;;
10204       pgcc* | pgf77* | pgf90* | pgf95*)
10205         # Portland Group compilers (*not* the Pentium gcc compiler,
10206         # which looks to be a dead project)
10207         lt_prog_compiler_wl='-Wl,'
10208         lt_prog_compiler_pic='-fpic'
10209         lt_prog_compiler_static='-Bstatic'
10210         ;;
10211       ccc*)
10212         lt_prog_compiler_wl='-Wl,'
10213         # All Alpha code is PIC.
10214         lt_prog_compiler_static='-non_shared'
10215         ;;
10216       xl*)
10217         # IBM XL C 8.0/Fortran 10.1 on PPC
10218         lt_prog_compiler_wl='-Wl,'
10219         lt_prog_compiler_pic='-qpic'
10220         lt_prog_compiler_static='-qstaticlink'
10221         ;;
10222       *)
10223         case `$CC -V 2>&1 | sed 5q` in
10224         *Sun\ C*)
10225           # Sun C 5.9
10226           lt_prog_compiler_pic='-KPIC'
10227           lt_prog_compiler_static='-Bstatic'
10228           lt_prog_compiler_wl='-Wl,'
10229           ;;
10230         *Sun\ F*)
10231           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10232           lt_prog_compiler_pic='-KPIC'
10233           lt_prog_compiler_static='-Bstatic'
10234           lt_prog_compiler_wl=''
10235           ;;
10236         esac
10237         ;;
10238       esac
10239       ;;
10240
10241     newsos6)
10242       lt_prog_compiler_pic='-KPIC'
10243       lt_prog_compiler_static='-Bstatic'
10244       ;;
10245
10246     *nto* | *qnx*)
10247       # QNX uses GNU C++, but need to define -shared option too, otherwise
10248       # it will coredump.
10249       lt_prog_compiler_pic='-fPIC -shared'
10250       ;;
10251
10252     osf3* | osf4* | osf5*)
10253       lt_prog_compiler_wl='-Wl,'
10254       # All OSF/1 code is PIC.
10255       lt_prog_compiler_static='-non_shared'
10256       ;;
10257
10258     rdos*)
10259       lt_prog_compiler_static='-non_shared'
10260       ;;
10261
10262     solaris*)
10263       lt_prog_compiler_pic='-KPIC'
10264       lt_prog_compiler_static='-Bstatic'
10265       case $cc_basename in
10266       f77* | f90* | f95*)
10267         lt_prog_compiler_wl='-Qoption ld ';;
10268       *)
10269         lt_prog_compiler_wl='-Wl,';;
10270       esac
10271       ;;
10272
10273     sunos4*)
10274       lt_prog_compiler_wl='-Qoption ld '
10275       lt_prog_compiler_pic='-PIC'
10276       lt_prog_compiler_static='-Bstatic'
10277       ;;
10278
10279     sysv4 | sysv4.2uw2* | sysv4.3*)
10280       lt_prog_compiler_wl='-Wl,'
10281       lt_prog_compiler_pic='-KPIC'
10282       lt_prog_compiler_static='-Bstatic'
10283       ;;
10284
10285     sysv4*MP*)
10286       if test -d /usr/nec ;then
10287         lt_prog_compiler_pic='-Kconform_pic'
10288         lt_prog_compiler_static='-Bstatic'
10289       fi
10290       ;;
10291
10292     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10293       lt_prog_compiler_wl='-Wl,'
10294       lt_prog_compiler_pic='-KPIC'
10295       lt_prog_compiler_static='-Bstatic'
10296       ;;
10297
10298     unicos*)
10299       lt_prog_compiler_wl='-Wl,'
10300       lt_prog_compiler_can_build_shared=no
10301       ;;
10302
10303     uts4*)
10304       lt_prog_compiler_pic='-pic'
10305       lt_prog_compiler_static='-Bstatic'
10306       ;;
10307
10308     *)
10309       lt_prog_compiler_can_build_shared=no
10310       ;;
10311     esac
10312   fi
10313
10314 case $host_os in
10315   # For platforms which do not support PIC, -DPIC is meaningless:
10316   *djgpp*)
10317     lt_prog_compiler_pic=
10318     ;;
10319   *)
10320     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10321     ;;
10322 esac
10323 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10324 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10325
10326
10327
10328
10329
10330
10331 #
10332 # Check to make sure the PIC flag actually works.
10333 #
10334 if test -n "$lt_prog_compiler_pic"; then
10335   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10336 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10337 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340   lt_cv_prog_compiler_pic_works=no
10341    ac_outfile=conftest.$ac_objext
10342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10344    # Insert the option either (1) after the last *FLAGS variable, or
10345    # (2) before a word containing "conftest.", or (3) at the end.
10346    # Note that $ac_compile itself does not contain backslashes and begins
10347    # with a dollar sign (not a hyphen), so the echo should work correctly.
10348    # The option is referenced via a variable to avoid confusing sed.
10349    lt_compile=`echo "$ac_compile" | $SED \
10350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10352    -e 's:$: $lt_compiler_flag:'`
10353    (eval echo "\"\$as_me:10353: $lt_compile\"" >&5)
10354    (eval "$lt_compile" 2>conftest.err)
10355    ac_status=$?
10356    cat conftest.err >&5
10357    echo "$as_me:10357: \$? = $ac_status" >&5
10358    if (exit $ac_status) && test -s "$ac_outfile"; then
10359      # The compiler can only warn and ignore the option if not recognized
10360      # So say no if there are warnings other than the usual output.
10361      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10362      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10363      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10364        lt_cv_prog_compiler_pic_works=yes
10365      fi
10366    fi
10367    $RM conftest*
10368
10369 fi
10370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10371 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
10372
10373 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10374     case $lt_prog_compiler_pic in
10375      "" | " "*) ;;
10376      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10377      esac
10378 else
10379     lt_prog_compiler_pic=
10380      lt_prog_compiler_can_build_shared=no
10381 fi
10382
10383 fi
10384
10385
10386
10387
10388
10389
10390 #
10391 # Check to make sure the static flag actually works.
10392 #
10393 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10394 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10395 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10396 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   lt_cv_prog_compiler_static_works=no
10400    save_LDFLAGS="$LDFLAGS"
10401    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10402    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10403    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10404      # The linker can only warn and ignore the option if not recognized
10405      # So say no if there are warnings
10406      if test -s conftest.err; then
10407        # Append any errors to the config.log.
10408        cat conftest.err 1>&5
10409        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10410        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10411        if diff conftest.exp conftest.er2 >/dev/null; then
10412          lt_cv_prog_compiler_static_works=yes
10413        fi
10414      else
10415        lt_cv_prog_compiler_static_works=yes
10416      fi
10417    fi
10418    $RM -r conftest*
10419    LDFLAGS="$save_LDFLAGS"
10420
10421 fi
10422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10423 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
10424
10425 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10426     :
10427 else
10428     lt_prog_compiler_static=
10429 fi
10430
10431
10432
10433
10434
10435
10436
10437   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10439 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   lt_cv_prog_compiler_c_o=no
10443    $RM -r conftest 2>/dev/null
10444    mkdir conftest
10445    cd conftest
10446    mkdir out
10447    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10448
10449    lt_compiler_flag="-o out/conftest2.$ac_objext"
10450    # Insert the option either (1) after the last *FLAGS variable, or
10451    # (2) before a word containing "conftest.", or (3) at the end.
10452    # Note that $ac_compile itself does not contain backslashes and begins
10453    # with a dollar sign (not a hyphen), so the echo should work correctly.
10454    lt_compile=`echo "$ac_compile" | $SED \
10455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10457    -e 's:$: $lt_compiler_flag:'`
10458    (eval echo "\"\$as_me:10458: $lt_compile\"" >&5)
10459    (eval "$lt_compile" 2>out/conftest.err)
10460    ac_status=$?
10461    cat out/conftest.err >&5
10462    echo "$as_me:10462: \$? = $ac_status" >&5
10463    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10464    then
10465      # The compiler can only warn and ignore the option if not recognized
10466      # So say no if there are warnings
10467      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10468      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10469      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10470        lt_cv_prog_compiler_c_o=yes
10471      fi
10472    fi
10473    chmod u+w . 2>&5
10474    $RM conftest*
10475    # SGI C++ compiler will create directory out/ii_files/ for
10476    # template instantiation
10477    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10478    $RM out/* && rmdir out
10479    cd ..
10480    $RM -r conftest
10481    $RM conftest*
10482
10483 fi
10484 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10486
10487
10488
10489
10490
10491
10492   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10493 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10494 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   lt_cv_prog_compiler_c_o=no
10498    $RM -r conftest 2>/dev/null
10499    mkdir conftest
10500    cd conftest
10501    mkdir out
10502    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10503
10504    lt_compiler_flag="-o out/conftest2.$ac_objext"
10505    # Insert the option either (1) after the last *FLAGS variable, or
10506    # (2) before a word containing "conftest.", or (3) at the end.
10507    # Note that $ac_compile itself does not contain backslashes and begins
10508    # with a dollar sign (not a hyphen), so the echo should work correctly.
10509    lt_compile=`echo "$ac_compile" | $SED \
10510    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10512    -e 's:$: $lt_compiler_flag:'`
10513    (eval echo "\"\$as_me:10513: $lt_compile\"" >&5)
10514    (eval "$lt_compile" 2>out/conftest.err)
10515    ac_status=$?
10516    cat out/conftest.err >&5
10517    echo "$as_me:10517: \$? = $ac_status" >&5
10518    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10519    then
10520      # The compiler can only warn and ignore the option if not recognized
10521      # So say no if there are warnings
10522      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10523      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10524      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10525        lt_cv_prog_compiler_c_o=yes
10526      fi
10527    fi
10528    chmod u+w . 2>&5
10529    $RM conftest*
10530    # SGI C++ compiler will create directory out/ii_files/ for
10531    # template instantiation
10532    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10533    $RM out/* && rmdir out
10534    cd ..
10535    $RM -r conftest
10536    $RM conftest*
10537
10538 fi
10539 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10540 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10541
10542
10543
10544
10545 hard_links="nottested"
10546 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10547   # do not overwrite the value of need_locks provided by the user
10548   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10549 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10550   hard_links=yes
10551   $RM conftest*
10552   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10553   touch conftest.a
10554   ln conftest.a conftest.b 2>&5 || hard_links=no
10555   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10556   { echo "$as_me:$LINENO: result: $hard_links" >&5
10557 echo "${ECHO_T}$hard_links" >&6; }
10558   if test "$hard_links" = no; then
10559     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10560 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10561     need_locks=warn
10562   fi
10563 else
10564   need_locks=no
10565 fi
10566
10567
10568
10569
10570
10571
10572   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10574
10575   runpath_var=
10576   allow_undefined_flag=
10577   always_export_symbols=no
10578   archive_cmds=
10579   archive_expsym_cmds=
10580   compiler_needs_object=no
10581   enable_shared_with_static_runtimes=no
10582   export_dynamic_flag_spec=
10583   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10584   hardcode_automatic=no
10585   hardcode_direct=no
10586   hardcode_direct_absolute=no
10587   hardcode_libdir_flag_spec=
10588   hardcode_libdir_flag_spec_ld=
10589   hardcode_libdir_separator=
10590   hardcode_minus_L=no
10591   hardcode_shlibpath_var=unsupported
10592   inherit_rpath=no
10593   link_all_deplibs=unknown
10594   module_cmds=
10595   module_expsym_cmds=
10596   old_archive_from_new_cmds=
10597   old_archive_from_expsyms_cmds=
10598   thread_safe_flag_spec=
10599   whole_archive_flag_spec=
10600   # include_expsyms should be a list of space-separated symbols to be *always*
10601   # included in the symbol list
10602   include_expsyms=
10603   # exclude_expsyms can be an extended regexp of symbols to exclude
10604   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10605   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10606   # as well as any symbol that contains `d'.
10607   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10608   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10609   # platforms (ab)use it in PIC code, but their linkers get confused if
10610   # the symbol is explicitly referenced.  Since portable code cannot
10611   # rely on this symbol name, it's probably fine to never include it in
10612   # preloaded symbol tables.
10613   # Exclude shared library initialization/finalization symbols.
10614   extract_expsyms_cmds=
10615
10616   case $host_os in
10617   cygwin* | mingw* | pw32*)
10618     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10619     # When not using gcc, we currently assume that we are using
10620     # Microsoft Visual C++.
10621     if test "$GCC" != yes; then
10622       with_gnu_ld=no
10623     fi
10624     ;;
10625   interix*)
10626     # we just hope/assume this is gcc and not c89 (= MSVC++)
10627     with_gnu_ld=yes
10628     ;;
10629   openbsd*)
10630     with_gnu_ld=no
10631     ;;
10632   esac
10633
10634   ld_shlibs=yes
10635   if test "$with_gnu_ld" = yes; then
10636     # If archive_cmds runs LD, not CC, wlarc should be empty
10637     wlarc='${wl}'
10638
10639     # Set some defaults for GNU ld with shared library support. These
10640     # are reset later if shared libraries are not supported. Putting them
10641     # here allows them to be overridden if necessary.
10642     runpath_var=LD_RUN_PATH
10643     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10644     export_dynamic_flag_spec='${wl}--export-dynamic'
10645     # ancient GNU ld didn't support --whole-archive et. al.
10646     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10647       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10648     else
10649       whole_archive_flag_spec=
10650     fi
10651     supports_anon_versioning=no
10652     case `$LD -v 2>&1` in
10653       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10654       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10655       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10656       *\ 2.11.*) ;; # other 2.11 versions
10657       *) supports_anon_versioning=yes ;;
10658     esac
10659
10660     # See if GNU ld supports shared libraries.
10661     case $host_os in
10662     aix[3-9]*)
10663       # On AIX/PPC, the GNU linker is very broken
10664       if test "$host_cpu" != ia64; then
10665         ld_shlibs=no
10666         cat <<_LT_EOF 1>&2
10667
10668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10669 *** to be unable to reliably create shared libraries on AIX.
10670 *** Therefore, libtool is disabling shared libraries support.  If you
10671 *** really care for shared libraries, you may want to modify your PATH
10672 *** so that a non-GNU linker is found, and then restart.
10673
10674 _LT_EOF
10675       fi
10676       ;;
10677
10678     amigaos*)
10679       case $host_cpu in
10680       powerpc)
10681             # see comment about AmigaOS4 .so support
10682             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683             archive_expsym_cmds=''
10684         ;;
10685       m68k)
10686             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)'
10687             hardcode_libdir_flag_spec='-L$libdir'
10688             hardcode_minus_L=yes
10689         ;;
10690       esac
10691       ;;
10692
10693     beos*)
10694       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10695         allow_undefined_flag=unsupported
10696         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10697         # support --undefined.  This deserves some investigation.  FIXME
10698         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699       else
10700         ld_shlibs=no
10701       fi
10702       ;;
10703
10704     cygwin* | mingw* | pw32*)
10705       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10706       # as there is no search path for DLLs.
10707       hardcode_libdir_flag_spec='-L$libdir'
10708       allow_undefined_flag=unsupported
10709       always_export_symbols=no
10710       enable_shared_with_static_runtimes=yes
10711       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10712
10713       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10714         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10715         # If the export-symbols file already is a .def file (1st line
10716         # is EXPORTS), use it as is; otherwise, prepend...
10717         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10718           cp $export_symbols $output_objdir/$soname.def;
10719         else
10720           echo EXPORTS > $output_objdir/$soname.def;
10721           cat $export_symbols >> $output_objdir/$soname.def;
10722         fi~
10723         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10724       else
10725         ld_shlibs=no
10726       fi
10727       ;;
10728
10729     interix[3-9]*)
10730       hardcode_direct=no
10731       hardcode_shlibpath_var=no
10732       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10733       export_dynamic_flag_spec='${wl}-E'
10734       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10735       # Instead, shared libraries are loaded at an image base (0x10000000 by
10736       # default) and relocated if they conflict, which is a slow very memory
10737       # consuming and fragmenting process.  To avoid this, we pick a random,
10738       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10739       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10740       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10741       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'
10742       ;;
10743
10744     gnu* | linux* | tpf* | k*bsd*-gnu)
10745       tmp_diet=no
10746       if test "$host_os" = linux-dietlibc; then
10747         case $cc_basename in
10748           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10749         esac
10750       fi
10751       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10752          && test "$tmp_diet" = no
10753       then
10754         tmp_addflag=
10755         tmp_sharedflag='-shared'
10756         case $cc_basename,$host_cpu in
10757         pgcc*)                          # Portland Group C compiler
10758           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'
10759           tmp_addflag=' $pic_flag'
10760           ;;
10761         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10762           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'
10763           tmp_addflag=' $pic_flag -Mnomain' ;;
10764         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10765           tmp_addflag=' -i_dynamic' ;;
10766         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10767           tmp_addflag=' -i_dynamic -nofor_main' ;;
10768         ifc* | ifort*)                  # Intel Fortran compiler
10769           tmp_addflag=' -nofor_main' ;;
10770         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10771           tmp_sharedflag='-qmkshrobj'
10772           tmp_addflag= ;;
10773         esac
10774         case `$CC -V 2>&1 | sed 5q` in
10775         *Sun\ C*)                       # Sun C 5.9
10776           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'
10777           compiler_needs_object=yes
10778           tmp_sharedflag='-G' ;;
10779         *Sun\ F*)                       # Sun Fortran 8.3
10780           tmp_sharedflag='-G' ;;
10781         esac
10782         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10783
10784         if test "x$supports_anon_versioning" = xyes; then
10785           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10786             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10787             echo "local: *; };" >> $output_objdir/$libname.ver~
10788             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10789         fi
10790
10791         case $cc_basename in
10792         xlf*)
10793           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10794           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10795           hardcode_libdir_flag_spec=
10796           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10797           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10798           if test "x$supports_anon_versioning" = xyes; then
10799             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10800               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10801               echo "local: *; };" >> $output_objdir/$libname.ver~
10802               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10803           fi
10804           ;;
10805         esac
10806       else
10807         ld_shlibs=no
10808       fi
10809       ;;
10810
10811     netbsd*)
10812       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10814         wlarc=
10815       else
10816         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10817         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10818       fi
10819       ;;
10820
10821     solaris*)
10822       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10823         ld_shlibs=no
10824         cat <<_LT_EOF 1>&2
10825
10826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10827 *** create shared libraries on Solaris systems.  Therefore, libtool
10828 *** is disabling shared libraries support.  We urge you to upgrade GNU
10829 *** binutils to release 2.9.1 or newer.  Another option is to modify
10830 *** your PATH or compiler configuration so that the native linker is
10831 *** used, and then restart.
10832
10833 _LT_EOF
10834       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10835         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10836         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10837       else
10838         ld_shlibs=no
10839       fi
10840       ;;
10841
10842     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10843       case `$LD -v 2>&1` in
10844         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10845         ld_shlibs=no
10846         cat <<_LT_EOF 1>&2
10847
10848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10849 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10850 *** is disabling shared libraries support.  We urge you to upgrade GNU
10851 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10852 *** your PATH or compiler configuration so that the native linker is
10853 *** used, and then restart.
10854
10855 _LT_EOF
10856         ;;
10857         *)
10858           # For security reasons, it is highly recommended that you always
10859           # use absolute paths for naming shared libraries, and exclude the
10860           # DT_RUNPATH tag from executables and libraries.  But doing so
10861           # requires that you compile everything twice, which is a pain.
10862           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10863             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10864             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10865             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10866           else
10867             ld_shlibs=no
10868           fi
10869         ;;
10870       esac
10871       ;;
10872
10873     sunos4*)
10874       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10875       wlarc=
10876       hardcode_direct=yes
10877       hardcode_shlibpath_var=no
10878       ;;
10879
10880     *)
10881       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10882         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10883         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10884       else
10885         ld_shlibs=no
10886       fi
10887       ;;
10888     esac
10889
10890     if test "$ld_shlibs" = no; then
10891       runpath_var=
10892       hardcode_libdir_flag_spec=
10893       export_dynamic_flag_spec=
10894       whole_archive_flag_spec=
10895     fi
10896   else
10897     # PORTME fill in a description of your system's linker (not GNU ld)
10898     case $host_os in
10899     aix3*)
10900       allow_undefined_flag=unsupported
10901       always_export_symbols=yes
10902       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'
10903       # Note: this linker hardcodes the directories in LIBPATH if there
10904       # are no directories specified by -L.
10905       hardcode_minus_L=yes
10906       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10907         # Neither direct hardcoding nor static linking is supported with a
10908         # broken collect2.
10909         hardcode_direct=unsupported
10910       fi
10911       ;;
10912
10913     aix[4-9]*)
10914       if test "$host_cpu" = ia64; then
10915         # On IA64, the linker does run time linking by default, so we don't
10916         # have to do anything special.
10917         aix_use_runtimelinking=no
10918         exp_sym_flag='-Bexport'
10919         no_entry_flag=""
10920       else
10921         # If we're using GNU nm, then we don't want the "-C" option.
10922         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10923         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10924           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'
10925         else
10926           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'
10927         fi
10928         aix_use_runtimelinking=no
10929
10930         # Test if we are trying to use run time linking or normal
10931         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10932         # need to do runtime linking.
10933         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10934           for ld_flag in $LDFLAGS; do
10935           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10936             aix_use_runtimelinking=yes
10937             break
10938           fi
10939           done
10940           ;;
10941         esac
10942
10943         exp_sym_flag='-bexport'
10944         no_entry_flag='-bnoentry'
10945       fi
10946
10947       # When large executables or shared objects are built, AIX ld can
10948       # have problems creating the table of contents.  If linking a library
10949       # or program results in "error TOC overflow" add -mminimal-toc to
10950       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10951       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10952
10953       archive_cmds=''
10954       hardcode_direct=yes
10955       hardcode_direct_absolute=yes
10956       hardcode_libdir_separator=':'
10957       link_all_deplibs=yes
10958       file_list_spec='${wl}-f,'
10959
10960       if test "$GCC" = yes; then
10961         case $host_os in aix4.[012]|aix4.[012].*)
10962         # We only want to do this on AIX 4.2 and lower, the check
10963         # below for broken collect2 doesn't work under 4.3+
10964           collect2name=`${CC} -print-prog-name=collect2`
10965           if test -f "$collect2name" &&
10966            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10967           then
10968           # We have reworked collect2
10969           :
10970           else
10971           # We have old collect2
10972           hardcode_direct=unsupported
10973           # It fails to find uninstalled libraries when the uninstalled
10974           # path is not listed in the libpath.  Setting hardcode_minus_L
10975           # to unsupported forces relinking
10976           hardcode_minus_L=yes
10977           hardcode_libdir_flag_spec='-L$libdir'
10978           hardcode_libdir_separator=
10979           fi
10980           ;;
10981         esac
10982         shared_flag='-shared'
10983         if test "$aix_use_runtimelinking" = yes; then
10984           shared_flag="$shared_flag "'${wl}-G'
10985         fi
10986       else
10987         # not using gcc
10988         if test "$host_cpu" = ia64; then
10989         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10990         # chokes on -Wl,-G. The following line is correct:
10991           shared_flag='-G'
10992         else
10993           if test "$aix_use_runtimelinking" = yes; then
10994             shared_flag='${wl}-G'
10995           else
10996             shared_flag='${wl}-bM:SRE'
10997           fi
10998         fi
10999       fi
11000
11001       # It seems that -bexpall does not export symbols beginning with
11002       # underscore (_), so it is better to generate a list of symbols to export.
11003       always_export_symbols=yes
11004       if test "$aix_use_runtimelinking" = yes; then
11005         # Warning - without using the other runtime loading flags (-brtl),
11006         # -berok will link without error, but may produce a broken library.
11007         allow_undefined_flag='-berok'
11008         # Determine the default libpath from the value encoded in an
11009         # empty executable.
11010         cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h.  */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h.  */
11016
11017 int
11018 main ()
11019 {
11020
11021   ;
11022   return 0;
11023 }
11024 _ACEOF
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_link") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } && {
11039          test -z "$ac_c_werror_flag" ||
11040          test ! -s conftest.err
11041        } && test -s conftest$ac_exeext &&
11042        $as_test_x conftest$ac_exeext; then
11043
11044 lt_aix_libpath_sed='
11045     /Import File Strings/,/^$/ {
11046         /^0/ {
11047             s/^0  *\(.*\)$/\1/
11048             p
11049         }
11050     }'
11051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11052 # Check for a 64-bit object if we didn't find anything.
11053 if test -z "$aix_libpath"; then
11054   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11055 fi
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064       conftest$ac_exeext conftest.$ac_ext
11065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11066
11067         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11068         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11069       else
11070         if test "$host_cpu" = ia64; then
11071           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11072           allow_undefined_flag="-z nodefs"
11073           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"
11074         else
11075          # Determine the default libpath from the value encoded in an
11076          # empty executable.
11077          cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083
11084 int
11085 main ()
11086 {
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_link") 2>conftest.er1
11100   ac_status=$?
11101   grep -v '^ *+' conftest.er1 >conftest.err
11102   rm -f conftest.er1
11103   cat conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } && {
11106          test -z "$ac_c_werror_flag" ||
11107          test ! -s conftest.err
11108        } && test -s conftest$ac_exeext &&
11109        $as_test_x conftest$ac_exeext; then
11110
11111 lt_aix_libpath_sed='
11112     /Import File Strings/,/^$/ {
11113         /^0/ {
11114             s/^0  *\(.*\)$/\1/
11115             p
11116         }
11117     }'
11118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11119 # Check for a 64-bit object if we didn't find anything.
11120 if test -z "$aix_libpath"; then
11121   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11122 fi
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127
11128 fi
11129
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131       conftest$ac_exeext conftest.$ac_ext
11132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11133
11134          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11135           # Warning - without using the other run time loading flags,
11136           # -berok will link without error, but may produce a broken library.
11137           no_undefined_flag=' ${wl}-bernotok'
11138           allow_undefined_flag=' ${wl}-berok'
11139           # Exported symbols can be pulled into shared objects from archives
11140           whole_archive_flag_spec='$convenience'
11141           archive_cmds_need_lc=yes
11142           # This is similar to how AIX traditionally builds its shared libraries.
11143           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'
11144         fi
11145       fi
11146       ;;
11147
11148     amigaos*)
11149       case $host_cpu in
11150       powerpc)
11151             # see comment about AmigaOS4 .so support
11152             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153             archive_expsym_cmds=''
11154         ;;
11155       m68k)
11156             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)'
11157             hardcode_libdir_flag_spec='-L$libdir'
11158             hardcode_minus_L=yes
11159         ;;
11160       esac
11161       ;;
11162
11163     bsdi[45]*)
11164       export_dynamic_flag_spec=-rdynamic
11165       ;;
11166
11167     cygwin* | mingw* | pw32*)
11168       # When not using gcc, we currently assume that we are using
11169       # Microsoft Visual C++.
11170       # hardcode_libdir_flag_spec is actually meaningless, as there is
11171       # no search path for DLLs.
11172       hardcode_libdir_flag_spec=' '
11173       allow_undefined_flag=unsupported
11174       # Tell ltmain to make .lib files, not .a files.
11175       libext=lib
11176       # Tell ltmain to make .dll files, not .so files.
11177       shrext_cmds=".dll"
11178       # FIXME: Setting linknames here is a bad hack.
11179       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11180       # The linker will automatically build a .lib file if we build a DLL.
11181       old_archive_from_new_cmds='true'
11182       # FIXME: Should let the user specify the lib program.
11183       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11184       fix_srcfile_path='`cygpath -w "$srcfile"`'
11185       enable_shared_with_static_runtimes=yes
11186       ;;
11187
11188     darwin* | rhapsody*)
11189
11190
11191   archive_cmds_need_lc=no
11192   hardcode_direct=no
11193   hardcode_automatic=yes
11194   hardcode_shlibpath_var=unsupported
11195   whole_archive_flag_spec=''
11196   link_all_deplibs=yes
11197   allow_undefined_flag="$_lt_dar_allow_undefined"
11198   if test "$GCC" = "yes"; then
11199     output_verbose_link_cmd=echo
11200     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11201     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11202     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}"
11203     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}"
11204
11205   else
11206   ld_shlibs=no
11207   fi
11208
11209       ;;
11210
11211     dgux*)
11212       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213       hardcode_libdir_flag_spec='-L$libdir'
11214       hardcode_shlibpath_var=no
11215       ;;
11216
11217     freebsd1*)
11218       ld_shlibs=no
11219       ;;
11220
11221     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11222     # support.  Future versions do this automatically, but an explicit c++rt0.o
11223     # does not break anything, and helps significantly (at the cost of a little
11224     # extra space).
11225     freebsd2.2*)
11226       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11227       hardcode_libdir_flag_spec='-R$libdir'
11228       hardcode_direct=yes
11229       hardcode_shlibpath_var=no
11230       ;;
11231
11232     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11233     freebsd2*)
11234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11235       hardcode_direct=yes
11236       hardcode_minus_L=yes
11237       hardcode_shlibpath_var=no
11238       ;;
11239
11240     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11241     freebsd* | dragonfly*)
11242       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11243       hardcode_libdir_flag_spec='-R$libdir'
11244       hardcode_direct=yes
11245       hardcode_shlibpath_var=no
11246       ;;
11247
11248     hpux9*)
11249       if test "$GCC" = yes; then
11250         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'
11251       else
11252         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'
11253       fi
11254       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11255       hardcode_libdir_separator=:
11256       hardcode_direct=yes
11257
11258       # hardcode_minus_L: Not really in the search PATH,
11259       # but as the default location of the library.
11260       hardcode_minus_L=yes
11261       export_dynamic_flag_spec='${wl}-E'
11262       ;;
11263
11264     hpux10*)
11265       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11266         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11267       else
11268         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11269       fi
11270       if test "$with_gnu_ld" = no; then
11271         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11272         hardcode_libdir_flag_spec_ld='+b $libdir'
11273         hardcode_libdir_separator=:
11274         hardcode_direct=yes
11275         hardcode_direct_absolute=yes
11276         export_dynamic_flag_spec='${wl}-E'
11277         # hardcode_minus_L: Not really in the search PATH,
11278         # but as the default location of the library.
11279         hardcode_minus_L=yes
11280       fi
11281       ;;
11282
11283     hpux11*)
11284       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11285         case $host_cpu in
11286         hppa*64*)
11287           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11288           ;;
11289         ia64*)
11290           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11291           ;;
11292         *)
11293           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11294           ;;
11295         esac
11296       else
11297         case $host_cpu in
11298         hppa*64*)
11299           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11300           ;;
11301         ia64*)
11302           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11303           ;;
11304         *)
11305           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11306           ;;
11307         esac
11308       fi
11309       if test "$with_gnu_ld" = no; then
11310         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11311         hardcode_libdir_separator=:
11312
11313         case $host_cpu in
11314         hppa*64*|ia64*)
11315           hardcode_direct=no
11316           hardcode_shlibpath_var=no
11317           ;;
11318         *)
11319           hardcode_direct=yes
11320           hardcode_direct_absolute=yes
11321           export_dynamic_flag_spec='${wl}-E'
11322
11323           # hardcode_minus_L: Not really in the search PATH,
11324           # but as the default location of the library.
11325           hardcode_minus_L=yes
11326           ;;
11327         esac
11328       fi
11329       ;;
11330
11331     irix5* | irix6* | nonstopux*)
11332       if test "$GCC" = yes; then
11333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11334         # Try to use the -exported_symbol ld option, if it does not
11335         # work, assume that -exports_file does not work either and
11336         # implicitly export all symbols.
11337         save_LDFLAGS="$LDFLAGS"
11338         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11339         cat >conftest.$ac_ext <<_ACEOF
11340 int foo(void) {}
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_link") 2>conftest.er1
11350   ac_status=$?
11351   grep -v '^ *+' conftest.er1 >conftest.err
11352   rm -f conftest.er1
11353   cat conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } && {
11356          test -z "$ac_c_werror_flag" ||
11357          test ! -s conftest.err
11358        } && test -s conftest$ac_exeext &&
11359        $as_test_x conftest$ac_exeext; then
11360   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11361
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11370       conftest$ac_exeext conftest.$ac_ext
11371         LDFLAGS="$save_LDFLAGS"
11372       else
11373         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11374         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11375       fi
11376       archive_cmds_need_lc='no'
11377       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11378       hardcode_libdir_separator=:
11379       inherit_rpath=yes
11380       link_all_deplibs=yes
11381       ;;
11382
11383     netbsd*)
11384       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11385         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11386       else
11387         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11388       fi
11389       hardcode_libdir_flag_spec='-R$libdir'
11390       hardcode_direct=yes
11391       hardcode_shlibpath_var=no
11392       ;;
11393
11394     newsos6)
11395       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11396       hardcode_direct=yes
11397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11398       hardcode_libdir_separator=:
11399       hardcode_shlibpath_var=no
11400       ;;
11401
11402     *nto* | *qnx*)
11403       ;;
11404
11405     openbsd*)
11406       if test -f /usr/libexec/ld.so; then
11407         hardcode_direct=yes
11408         hardcode_shlibpath_var=no
11409         hardcode_direct_absolute=yes
11410         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11411           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11412           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11413           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11414           export_dynamic_flag_spec='${wl}-E'
11415         else
11416           case $host_os in
11417            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11418              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11419              hardcode_libdir_flag_spec='-R$libdir'
11420              ;;
11421            *)
11422              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11423              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11424              ;;
11425           esac
11426         fi
11427       else
11428         ld_shlibs=no
11429       fi
11430       ;;
11431
11432     os2*)
11433       hardcode_libdir_flag_spec='-L$libdir'
11434       hardcode_minus_L=yes
11435       allow_undefined_flag=unsupported
11436       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'
11437       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11438       ;;
11439
11440     osf3*)
11441       if test "$GCC" = yes; then
11442         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11443         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11444       else
11445         allow_undefined_flag=' -expect_unresolved \*'
11446         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11447       fi
11448       archive_cmds_need_lc='no'
11449       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11450       hardcode_libdir_separator=:
11451       ;;
11452
11453     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11454       if test "$GCC" = yes; then
11455         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11456         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11457         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11458       else
11459         allow_undefined_flag=' -expect_unresolved \*'
11460         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11461         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11462         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11463
11464         # Both c and cxx compiler support -rpath directly
11465         hardcode_libdir_flag_spec='-rpath $libdir'
11466       fi
11467       archive_cmds_need_lc='no'
11468       hardcode_libdir_separator=:
11469       ;;
11470
11471     solaris*)
11472       no_undefined_flag=' -z defs'
11473       if test "$GCC" = yes; then
11474         wlarc='${wl}'
11475         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11476         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11477           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11478       else
11479         case `$CC -V 2>&1` in
11480         *"Compilers 5.0"*)
11481           wlarc=''
11482           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11483           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11484           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11485           ;;
11486         *)
11487           wlarc='${wl}'
11488           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11489           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11490           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11491           ;;
11492         esac
11493       fi
11494       hardcode_libdir_flag_spec='-R$libdir'
11495       hardcode_shlibpath_var=no
11496       case $host_os in
11497       solaris2.[0-5] | solaris2.[0-5].*) ;;
11498       *)
11499         # The compiler driver will combine and reorder linker options,
11500         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11501         # but is careful enough not to reorder.
11502         # Supported since Solaris 2.6 (maybe 2.5.1?)
11503         if test "$GCC" = yes; then
11504           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11505         else
11506           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11507         fi
11508         ;;
11509       esac
11510       link_all_deplibs=yes
11511       ;;
11512
11513     sunos4*)
11514       if test "x$host_vendor" = xsequent; then
11515         # Use $CC to link under sequent, because it throws in some extra .o
11516         # files that make .init and .fini sections work.
11517         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11518       else
11519         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11520       fi
11521       hardcode_libdir_flag_spec='-L$libdir'
11522       hardcode_direct=yes
11523       hardcode_minus_L=yes
11524       hardcode_shlibpath_var=no
11525       ;;
11526
11527     sysv4)
11528       case $host_vendor in
11529         sni)
11530           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531           hardcode_direct=yes # is this really true???
11532         ;;
11533         siemens)
11534           ## LD is ld it makes a PLAMLIB
11535           ## CC just makes a GrossModule.
11536           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11537           reload_cmds='$CC -r -o $output$reload_objs'
11538           hardcode_direct=no
11539         ;;
11540         motorola)
11541           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11543         ;;
11544       esac
11545       runpath_var='LD_RUN_PATH'
11546       hardcode_shlibpath_var=no
11547       ;;
11548
11549     sysv4.3*)
11550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11551       hardcode_shlibpath_var=no
11552       export_dynamic_flag_spec='-Bexport'
11553       ;;
11554
11555     sysv4*MP*)
11556       if test -d /usr/nec; then
11557         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558         hardcode_shlibpath_var=no
11559         runpath_var=LD_RUN_PATH
11560         hardcode_runpath_var=yes
11561         ld_shlibs=yes
11562       fi
11563       ;;
11564
11565     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11566       no_undefined_flag='${wl}-z,text'
11567       archive_cmds_need_lc=no
11568       hardcode_shlibpath_var=no
11569       runpath_var='LD_RUN_PATH'
11570
11571       if test "$GCC" = yes; then
11572         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11573         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11574       else
11575         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11576         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11577       fi
11578       ;;
11579
11580     sysv5* | sco3.2v5* | sco5v6*)
11581       # Note: We can NOT use -z defs as we might desire, because we do not
11582       # link with -lc, and that would cause any symbols used from libc to
11583       # always be unresolved, which means just about no library would
11584       # ever link correctly.  If we're not using GNU ld we use -z text
11585       # though, which does catch some bad symbols but isn't as heavy-handed
11586       # as -z defs.
11587       no_undefined_flag='${wl}-z,text'
11588       allow_undefined_flag='${wl}-z,nodefs'
11589       archive_cmds_need_lc=no
11590       hardcode_shlibpath_var=no
11591       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11592       hardcode_libdir_separator=':'
11593       link_all_deplibs=yes
11594       export_dynamic_flag_spec='${wl}-Bexport'
11595       runpath_var='LD_RUN_PATH'
11596
11597       if test "$GCC" = yes; then
11598         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11600       else
11601         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11602         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11603       fi
11604       ;;
11605
11606     uts4*)
11607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11608       hardcode_libdir_flag_spec='-L$libdir'
11609       hardcode_shlibpath_var=no
11610       ;;
11611
11612     *)
11613       ld_shlibs=no
11614       ;;
11615     esac
11616
11617     if test x$host_vendor = xsni; then
11618       case $host in
11619       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11620         export_dynamic_flag_spec='${wl}-Blargedynsym'
11621         ;;
11622       esac
11623     fi
11624   fi
11625
11626 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11627 echo "${ECHO_T}$ld_shlibs" >&6; }
11628 test "$ld_shlibs" = no && can_build_shared=no
11629
11630 with_gnu_ld=$with_gnu_ld
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 #
11647 # Do we need to explicitly link libc?
11648 #
11649 case "x$archive_cmds_need_lc" in
11650 x|xyes)
11651   # Assume -lc should be added
11652   archive_cmds_need_lc=yes
11653
11654   if test "$enable_shared" = yes && test "$GCC" = yes; then
11655     case $archive_cmds in
11656     *'~'*)
11657       # FIXME: we may have to deal with multi-command sequences.
11658       ;;
11659     '$CC '*)
11660       # Test whether the compiler implicitly links with -lc since on some
11661       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11662       # to ld, don't add -lc before -lgcc.
11663       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11665       $RM conftest*
11666       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11667
11668       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669   (eval $ac_compile) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } 2>conftest.err; then
11673         soname=conftest
11674         lib=conftest
11675         libobjs=conftest.$ac_objext
11676         deplibs=
11677         wl=$lt_prog_compiler_wl
11678         pic_flag=$lt_prog_compiler_pic
11679         compiler_flags=-v
11680         linker_flags=-v
11681         verstring=
11682         output_objdir=.
11683         libname=conftest
11684         lt_save_allow_undefined_flag=$allow_undefined_flag
11685         allow_undefined_flag=
11686         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11687   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }
11691         then
11692           archive_cmds_need_lc=no
11693         else
11694           archive_cmds_need_lc=yes
11695         fi
11696         allow_undefined_flag=$lt_save_allow_undefined_flag
11697       else
11698         cat conftest.err 1>&5
11699       fi
11700       $RM conftest*
11701       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11702 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11703       ;;
11704     esac
11705   fi
11706   ;;
11707 esac
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11866 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11867
11868 if test "$GCC" = yes; then
11869   case $host_os in
11870     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11871     *) lt_awk_arg="/^libraries:/" ;;
11872   esac
11873   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11874   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11875     # if the path contains ";" then we assume it to be the separator
11876     # otherwise default to the standard path separator (i.e. ":") - it is
11877     # assumed that no part of a normal pathname contains ";" but that should
11878     # okay in the real world where ";" in dirpaths is itself problematic.
11879     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11880   else
11881     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11882   fi
11883   # Ok, now we have the path, separated by spaces, we can step through it
11884   # and add multilib dir if necessary.
11885   lt_tmp_lt_search_path_spec=
11886   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11887   for lt_sys_path in $lt_search_path_spec; do
11888     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11889       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11890     else
11891       test -d "$lt_sys_path" && \
11892         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11893     fi
11894   done
11895   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11896 BEGIN {RS=" "; FS="/|\n";} {
11897   lt_foo="";
11898   lt_count=0;
11899   for (lt_i = NF; lt_i > 0; lt_i--) {
11900     if ($lt_i != "" && $lt_i != ".") {
11901       if ($lt_i == "..") {
11902         lt_count++;
11903       } else {
11904         if (lt_count == 0) {
11905           lt_foo="/" $lt_i lt_foo;
11906         } else {
11907           lt_count--;
11908         }
11909       }
11910     }
11911   }
11912   if (lt_foo != "") { lt_freq[lt_foo]++; }
11913   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11914 }'`
11915   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11916 else
11917   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11918 fi
11919 library_names_spec=
11920 libname_spec='lib$name'
11921 soname_spec=
11922 shrext_cmds=".so"
11923 postinstall_cmds=
11924 postuninstall_cmds=
11925 finish_cmds=
11926 finish_eval=
11927 shlibpath_var=
11928 shlibpath_overrides_runpath=unknown
11929 version_type=none
11930 dynamic_linker="$host_os ld.so"
11931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11932 need_lib_prefix=unknown
11933 hardcode_into_libs=no
11934
11935 # when you set need_version to no, make sure it does not cause -set_version
11936 # flags to be left without arguments
11937 need_version=unknown
11938
11939 case $host_os in
11940 aix3*)
11941   version_type=linux
11942   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11943   shlibpath_var=LIBPATH
11944
11945   # AIX 3 has no versioning support, so we append a major version to the name.
11946   soname_spec='${libname}${release}${shared_ext}$major'
11947   ;;
11948
11949 aix[4-9]*)
11950   version_type=linux
11951   need_lib_prefix=no
11952   need_version=no
11953   hardcode_into_libs=yes
11954   if test "$host_cpu" = ia64; then
11955     # AIX 5 supports IA64
11956     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11957     shlibpath_var=LD_LIBRARY_PATH
11958   else
11959     # With GCC up to 2.95.x, collect2 would create an import file
11960     # for dependence libraries.  The import file would start with
11961     # the line `#! .'.  This would cause the generated library to
11962     # depend on `.', always an invalid library.  This was fixed in
11963     # development snapshots of GCC prior to 3.0.
11964     case $host_os in
11965       aix4 | aix4.[01] | aix4.[01].*)
11966       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11967            echo ' yes '
11968            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11969         :
11970       else
11971         can_build_shared=no
11972       fi
11973       ;;
11974     esac
11975     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11976     # soname into executable. Probably we can add versioning support to
11977     # collect2, so additional links can be useful in future.
11978     if test "$aix_use_runtimelinking" = yes; then
11979       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11980       # instead of lib<name>.a to let people know that these are not
11981       # typical AIX shared libraries.
11982       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983     else
11984       # We preserve .a as extension for shared libraries through AIX4.2
11985       # and later when we are not doing run time linking.
11986       library_names_spec='${libname}${release}.a $libname.a'
11987       soname_spec='${libname}${release}${shared_ext}$major'
11988     fi
11989     shlibpath_var=LIBPATH
11990   fi
11991   ;;
11992
11993 amigaos*)
11994   case $host_cpu in
11995   powerpc)
11996     # Since July 2007 AmigaOS4 officially supports .so libraries.
11997     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999     ;;
12000   m68k)
12001     library_names_spec='$libname.ixlibrary $libname.a'
12002     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12003     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'
12004     ;;
12005   esac
12006   ;;
12007
12008 beos*)
12009   library_names_spec='${libname}${shared_ext}'
12010   dynamic_linker="$host_os ld.so"
12011   shlibpath_var=LIBRARY_PATH
12012   ;;
12013
12014 bsdi[45]*)
12015   version_type=linux
12016   need_version=no
12017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018   soname_spec='${libname}${release}${shared_ext}$major'
12019   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12020   shlibpath_var=LD_LIBRARY_PATH
12021   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12022   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12023   # the default ld.so.conf also contains /usr/contrib/lib and
12024   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12025   # libtool to hard-code these into programs
12026   ;;
12027
12028 cygwin* | mingw* | pw32*)
12029   version_type=windows
12030   shrext_cmds=".dll"
12031   need_version=no
12032   need_lib_prefix=no
12033
12034   case $GCC,$host_os in
12035   yes,cygwin* | yes,mingw* | yes,pw32*)
12036     library_names_spec='$libname.dll.a'
12037     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12038     postinstall_cmds='base_file=`basename \${file}`~
12039       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12040       dldir=$destdir/`dirname \$dlpath`~
12041       test -d \$dldir || mkdir -p \$dldir~
12042       $install_prog $dir/$dlname \$dldir/$dlname~
12043       chmod a+x \$dldir/$dlname~
12044       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12045         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12046       fi'
12047     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12048       dlpath=$dir/\$dldll~
12049        $RM \$dlpath'
12050     shlibpath_overrides_runpath=yes
12051
12052     case $host_os in
12053     cygwin*)
12054       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12055       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12056       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12057       ;;
12058     mingw*)
12059       # MinGW DLLs use traditional 'lib' prefix
12060       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12061       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12062       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12063         # It is most probably a Windows format PATH printed by
12064         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12065         # path with ; separators, and with drive letters. We can handle the
12066         # drive letters (cygwin fileutils understands them), so leave them,
12067         # especially as we might pass files found there to a mingw objdump,
12068         # which wouldn't understand a cygwinified path. Ahh.
12069         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12070       else
12071         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12072       fi
12073       ;;
12074     pw32*)
12075       # pw32 DLLs use 'pw' prefix rather than 'lib'
12076       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12077       ;;
12078     esac
12079     ;;
12080
12081   *)
12082     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12083     ;;
12084   esac
12085   dynamic_linker='Win32 ld.exe'
12086   # FIXME: first we should search . and the directory the executable is in
12087   shlibpath_var=PATH
12088   ;;
12089
12090 darwin* | rhapsody*)
12091   dynamic_linker="$host_os dyld"
12092   version_type=darwin
12093   need_lib_prefix=no
12094   need_version=no
12095   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12096   soname_spec='${libname}${release}${major}$shared_ext'
12097   shlibpath_overrides_runpath=yes
12098   shlibpath_var=DYLD_LIBRARY_PATH
12099   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12100
12101   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12102   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12103   ;;
12104
12105 dgux*)
12106   version_type=linux
12107   need_lib_prefix=no
12108   need_version=no
12109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12110   soname_spec='${libname}${release}${shared_ext}$major'
12111   shlibpath_var=LD_LIBRARY_PATH
12112   ;;
12113
12114 freebsd1*)
12115   dynamic_linker=no
12116   ;;
12117
12118 freebsd* | dragonfly*)
12119   # DragonFly does not have aout.  When/if they implement a new
12120   # versioning mechanism, adjust this.
12121   if test -x /usr/bin/objformat; then
12122     objformat=`/usr/bin/objformat`
12123   else
12124     case $host_os in
12125     freebsd[123]*) objformat=aout ;;
12126     *) objformat=elf ;;
12127     esac
12128   fi
12129   version_type=freebsd-$objformat
12130   case $version_type in
12131     freebsd-elf*)
12132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12133       need_version=no
12134       need_lib_prefix=no
12135       ;;
12136     freebsd-*)
12137       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12138       need_version=yes
12139       ;;
12140   esac
12141   shlibpath_var=LD_LIBRARY_PATH
12142   case $host_os in
12143   freebsd2*)
12144     shlibpath_overrides_runpath=yes
12145     ;;
12146   freebsd3.[01]* | freebsdelf3.[01]*)
12147     shlibpath_overrides_runpath=yes
12148     hardcode_into_libs=yes
12149     ;;
12150   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12151   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12152     shlibpath_overrides_runpath=no
12153     hardcode_into_libs=yes
12154     ;;
12155   *) # from 4.6 on, and DragonFly
12156     shlibpath_overrides_runpath=yes
12157     hardcode_into_libs=yes
12158     ;;
12159   esac
12160   ;;
12161
12162 gnu*)
12163   version_type=linux
12164   need_lib_prefix=no
12165   need_version=no
12166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12167   soname_spec='${libname}${release}${shared_ext}$major'
12168   shlibpath_var=LD_LIBRARY_PATH
12169   hardcode_into_libs=yes
12170   ;;
12171
12172 hpux9* | hpux10* | hpux11*)
12173   # Give a soname corresponding to the major version so that dld.sl refuses to
12174   # link against other versions.
12175   version_type=sunos
12176   need_lib_prefix=no
12177   need_version=no
12178   case $host_cpu in
12179   ia64*)
12180     shrext_cmds='.so'
12181     hardcode_into_libs=yes
12182     dynamic_linker="$host_os dld.so"
12183     shlibpath_var=LD_LIBRARY_PATH
12184     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186     soname_spec='${libname}${release}${shared_ext}$major'
12187     if test "X$HPUX_IA64_MODE" = X32; then
12188       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12189     else
12190       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12191     fi
12192     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12193     ;;
12194   hppa*64*)
12195     shrext_cmds='.sl'
12196     hardcode_into_libs=yes
12197     dynamic_linker="$host_os dld.sl"
12198     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201     soname_spec='${libname}${release}${shared_ext}$major'
12202     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12203     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12204     ;;
12205   *)
12206     shrext_cmds='.sl'
12207     dynamic_linker="$host_os dld.sl"
12208     shlibpath_var=SHLIB_PATH
12209     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12211     soname_spec='${libname}${release}${shared_ext}$major'
12212     ;;
12213   esac
12214   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12215   postinstall_cmds='chmod 555 $lib'
12216   ;;
12217
12218 interix[3-9]*)
12219   version_type=linux
12220   need_lib_prefix=no
12221   need_version=no
12222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223   soname_spec='${libname}${release}${shared_ext}$major'
12224   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12225   shlibpath_var=LD_LIBRARY_PATH
12226   shlibpath_overrides_runpath=no
12227   hardcode_into_libs=yes
12228   ;;
12229
12230 irix5* | irix6* | nonstopux*)
12231   case $host_os in
12232     nonstopux*) version_type=nonstopux ;;
12233     *)
12234         if test "$lt_cv_prog_gnu_ld" = yes; then
12235                 version_type=linux
12236         else
12237                 version_type=irix
12238         fi ;;
12239   esac
12240   need_lib_prefix=no
12241   need_version=no
12242   soname_spec='${libname}${release}${shared_ext}$major'
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12244   case $host_os in
12245   irix5* | nonstopux*)
12246     libsuff= shlibsuff=
12247     ;;
12248   *)
12249     case $LD in # libtool.m4 will add one of these switches to LD
12250     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12251       libsuff= shlibsuff= libmagic=32-bit;;
12252     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12253       libsuff=32 shlibsuff=N32 libmagic=N32;;
12254     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12255       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12256     *) libsuff= shlibsuff= libmagic=never-match;;
12257     esac
12258     ;;
12259   esac
12260   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12261   shlibpath_overrides_runpath=no
12262   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12263   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12264   hardcode_into_libs=yes
12265   ;;
12266
12267 # No shared lib support for Linux oldld, aout, or coff.
12268 linux*oldld* | linux*aout* | linux*coff*)
12269   dynamic_linker=no
12270   ;;
12271
12272 # This must be Linux ELF.
12273 linux* | k*bsd*-gnu)
12274   version_type=linux
12275   need_lib_prefix=no
12276   need_version=no
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278   soname_spec='${libname}${release}${shared_ext}$major'
12279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12280   shlibpath_var=LD_LIBRARY_PATH
12281   shlibpath_overrides_runpath=no
12282   # Some binutils ld are patched to set DT_RUNPATH
12283   save_LDFLAGS=$LDFLAGS
12284   save_libdir=$libdir
12285   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12286        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12287   cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293
12294 int
12295 main ()
12296 {
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext conftest$ac_exeext
12303 if { (ac_try="$ac_link"
12304 case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_link") 2>conftest.er1
12310   ac_status=$?
12311   grep -v '^ *+' conftest.er1 >conftest.err
12312   rm -f conftest.er1
12313   cat conftest.err >&5
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } && {
12316          test -z "$ac_c_werror_flag" ||
12317          test ! -s conftest.err
12318        } && test -s conftest$ac_exeext &&
12319        $as_test_x conftest$ac_exeext; then
12320   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12321   shlibpath_overrides_runpath=yes
12322 fi
12323
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12332       conftest$ac_exeext conftest.$ac_ext
12333   LDFLAGS=$save_LDFLAGS
12334   libdir=$save_libdir
12335
12336   # This implies no fast_install, which is unacceptable.
12337   # Some rework will be needed to allow for fast_install
12338   # before this can be enabled.
12339   hardcode_into_libs=yes
12340
12341   # Append ld.so.conf contents to the search path
12342   if test -f /etc/ld.so.conf; then
12343     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' ' '`
12344     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12345   fi
12346
12347   # We used to test for /lib/ld.so.1 and disable shared libraries on
12348   # powerpc, because MkLinux only supported shared libraries with the
12349   # GNU dynamic linker.  Since this was broken with cross compilers,
12350   # most powerpc-linux boxes support dynamic linking these days and
12351   # people can always --disable-shared, the test was removed, and we
12352   # assume the GNU/Linux dynamic linker is in use.
12353   dynamic_linker='GNU/Linux ld.so'
12354   ;;
12355
12356 netbsd*)
12357   version_type=sunos
12358   need_lib_prefix=no
12359   need_version=no
12360   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12362     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12363     dynamic_linker='NetBSD (a.out) ld.so'
12364   else
12365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12366     soname_spec='${libname}${release}${shared_ext}$major'
12367     dynamic_linker='NetBSD ld.elf_so'
12368   fi
12369   shlibpath_var=LD_LIBRARY_PATH
12370   shlibpath_overrides_runpath=yes
12371   hardcode_into_libs=yes
12372   ;;
12373
12374 newsos6)
12375   version_type=linux
12376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377   shlibpath_var=LD_LIBRARY_PATH
12378   shlibpath_overrides_runpath=yes
12379   ;;
12380
12381 *nto* | *qnx*)
12382   version_type=qnx
12383   need_lib_prefix=no
12384   need_version=no
12385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386   soname_spec='${libname}${release}${shared_ext}$major'
12387   shlibpath_var=LD_LIBRARY_PATH
12388   shlibpath_overrides_runpath=no
12389   hardcode_into_libs=yes
12390   dynamic_linker='ldqnx.so'
12391   ;;
12392
12393 openbsd*)
12394   version_type=sunos
12395   sys_lib_dlsearch_path_spec="/usr/lib"
12396   need_lib_prefix=no
12397   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12398   case $host_os in
12399     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12400     *)                          need_version=no  ;;
12401   esac
12402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12404   shlibpath_var=LD_LIBRARY_PATH
12405   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12406     case $host_os in
12407       openbsd2.[89] | openbsd2.[89].*)
12408         shlibpath_overrides_runpath=no
12409         ;;
12410       *)
12411         shlibpath_overrides_runpath=yes
12412         ;;
12413       esac
12414   else
12415     shlibpath_overrides_runpath=yes
12416   fi
12417   ;;
12418
12419 os2*)
12420   libname_spec='$name'
12421   shrext_cmds=".dll"
12422   need_lib_prefix=no
12423   library_names_spec='$libname${shared_ext} $libname.a'
12424   dynamic_linker='OS/2 ld.exe'
12425   shlibpath_var=LIBPATH
12426   ;;
12427
12428 osf3* | osf4* | osf5*)
12429   version_type=osf
12430   need_lib_prefix=no
12431   need_version=no
12432   soname_spec='${libname}${release}${shared_ext}$major'
12433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434   shlibpath_var=LD_LIBRARY_PATH
12435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12436   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12437   ;;
12438
12439 rdos*)
12440   dynamic_linker=no
12441   ;;
12442
12443 solaris*)
12444   version_type=linux
12445   need_lib_prefix=no
12446   need_version=no
12447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12448   soname_spec='${libname}${release}${shared_ext}$major'
12449   shlibpath_var=LD_LIBRARY_PATH
12450   shlibpath_overrides_runpath=yes
12451   hardcode_into_libs=yes
12452   # ldd complains unless libraries are executable
12453   postinstall_cmds='chmod +x $lib'
12454   ;;
12455
12456 sunos4*)
12457   version_type=sunos
12458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12459   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   shlibpath_overrides_runpath=yes
12462   if test "$with_gnu_ld" = yes; then
12463     need_lib_prefix=no
12464   fi
12465   need_version=yes
12466   ;;
12467
12468 sysv4 | sysv4.3*)
12469   version_type=linux
12470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12471   soname_spec='${libname}${release}${shared_ext}$major'
12472   shlibpath_var=LD_LIBRARY_PATH
12473   case $host_vendor in
12474     sni)
12475       shlibpath_overrides_runpath=no
12476       need_lib_prefix=no
12477       runpath_var=LD_RUN_PATH
12478       ;;
12479     siemens)
12480       need_lib_prefix=no
12481       ;;
12482     motorola)
12483       need_lib_prefix=no
12484       need_version=no
12485       shlibpath_overrides_runpath=no
12486       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12487       ;;
12488   esac
12489   ;;
12490
12491 sysv4*MP*)
12492   if test -d /usr/nec ;then
12493     version_type=linux
12494     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12495     soname_spec='$libname${shared_ext}.$major'
12496     shlibpath_var=LD_LIBRARY_PATH
12497   fi
12498   ;;
12499
12500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12501   version_type=freebsd-elf
12502   need_lib_prefix=no
12503   need_version=no
12504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12505   soname_spec='${libname}${release}${shared_ext}$major'
12506   shlibpath_var=LD_LIBRARY_PATH
12507   shlibpath_overrides_runpath=yes
12508   hardcode_into_libs=yes
12509   if test "$with_gnu_ld" = yes; then
12510     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12511   else
12512     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12513     case $host_os in
12514       sco3.2v5*)
12515         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12516         ;;
12517     esac
12518   fi
12519   sys_lib_dlsearch_path_spec='/usr/lib'
12520   ;;
12521
12522 tpf*)
12523   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12524   version_type=linux
12525   need_lib_prefix=no
12526   need_version=no
12527   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528   shlibpath_var=LD_LIBRARY_PATH
12529   shlibpath_overrides_runpath=no
12530   hardcode_into_libs=yes
12531   ;;
12532
12533 uts4*)
12534   version_type=linux
12535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536   soname_spec='${libname}${release}${shared_ext}$major'
12537   shlibpath_var=LD_LIBRARY_PATH
12538   ;;
12539
12540 *)
12541   dynamic_linker=no
12542   ;;
12543 esac
12544 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12545 echo "${ECHO_T}$dynamic_linker" >&6; }
12546 test "$dynamic_linker" = no && can_build_shared=no
12547
12548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12549 if test "$GCC" = yes; then
12550   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12551 fi
12552
12553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12554   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12555 fi
12556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12557   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12558 fi
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12648 hardcode_action=
12649 if test -n "$hardcode_libdir_flag_spec" ||
12650    test -n "$runpath_var" ||
12651    test "X$hardcode_automatic" = "Xyes" ; then
12652
12653   # We can hardcode non-existent directories.
12654   if test "$hardcode_direct" != no &&
12655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12656      # have to relink, otherwise we might link with an installed library
12657      # when we should be linking with a yet-to-be-installed one
12658      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12659      test "$hardcode_minus_L" != no; then
12660     # Linking always hardcodes the temporary library directory.
12661     hardcode_action=relink
12662   else
12663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12664     hardcode_action=immediate
12665   fi
12666 else
12667   # We cannot hardcode anything, or else we can only hardcode existing
12668   # directories.
12669   hardcode_action=unsupported
12670 fi
12671 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12672 echo "${ECHO_T}$hardcode_action" >&6; }
12673
12674 if test "$hardcode_action" = relink ||
12675    test "$inherit_rpath" = yes; then
12676   # Fast installation is not supported
12677   enable_fast_install=no
12678 elif test "$shlibpath_overrides_runpath" = yes ||
12679      test "$enable_shared" = no; then
12680   # Fast installation is not necessary
12681   enable_fast_install=needless
12682 fi
12683
12684
12685
12686
12687
12688
12689   if test "x$enable_dlopen" != xyes; then
12690   enable_dlopen=unknown
12691   enable_dlopen_self=unknown
12692   enable_dlopen_self_static=unknown
12693 else
12694   lt_cv_dlopen=no
12695   lt_cv_dlopen_libs=
12696
12697   case $host_os in
12698   beos*)
12699     lt_cv_dlopen="load_add_on"
12700     lt_cv_dlopen_libs=
12701     lt_cv_dlopen_self=yes
12702     ;;
12703
12704   mingw* | pw32*)
12705     lt_cv_dlopen="LoadLibrary"
12706     lt_cv_dlopen_libs=
12707     ;;
12708
12709   cygwin*)
12710     lt_cv_dlopen="dlopen"
12711     lt_cv_dlopen_libs=
12712     ;;
12713
12714   darwin*)
12715   # if libdl is installed we need to link against it
12716     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   ac_check_lib_save_LIBS=$LIBS
12722 LIBS="-ldl  $LIBS"
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729
12730 /* Override any GCC internal prototype to avoid an error.
12731    Use char because int might match the return type of a GCC
12732    builtin and then its argument prototype would still apply.  */
12733 #ifdef __cplusplus
12734 extern "C"
12735 #endif
12736 char dlopen ();
12737 int
12738 main ()
12739 {
12740 return dlopen ();
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (ac_try="$ac_link"
12747 case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752   (eval "$ac_link") 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } && {
12759          test -z "$ac_c_werror_flag" ||
12760          test ! -s conftest.err
12761        } && test -s conftest$ac_exeext &&
12762        $as_test_x conftest$ac_exeext; then
12763   ac_cv_lib_dl_dlopen=yes
12764 else
12765   echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768         ac_cv_lib_dl_dlopen=no
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772       conftest$ac_exeext conftest.$ac_ext
12773 LIBS=$ac_check_lib_save_LIBS
12774 fi
12775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12777 if test $ac_cv_lib_dl_dlopen = yes; then
12778   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12779 else
12780
12781     lt_cv_dlopen="dyld"
12782     lt_cv_dlopen_libs=
12783     lt_cv_dlopen_self=yes
12784
12785 fi
12786
12787     ;;
12788
12789   *)
12790     { echo "$as_me:$LINENO: checking for shl_load" >&5
12791 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12792 if test "${ac_cv_func_shl_load+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12803 #define shl_load innocuous_shl_load
12804
12805 /* System header to define __stub macros and hopefully few prototypes,
12806     which can conflict with char shl_load (); below.
12807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12808     <limits.h> exists even on freestanding compilers.  */
12809
12810 #ifdef __STDC__
12811 # include <limits.h>
12812 #else
12813 # include <assert.h>
12814 #endif
12815
12816 #undef shl_load
12817
12818 /* Override any GCC internal prototype to avoid an error.
12819    Use char because int might match the return type of a GCC
12820    builtin and then its argument prototype would still apply.  */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 char shl_load ();
12825 /* The GNU C library defines this for functions which it implements
12826     to always fail with ENOSYS.  Some functions are actually named
12827     something starting with __ and the normal name is an alias.  */
12828 #if defined __stub_shl_load || defined __stub___shl_load
12829 choke me
12830 #endif
12831
12832 int
12833 main ()
12834 {
12835 return shl_load ();
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (ac_try="$ac_link"
12842 case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_link") 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } && {
12854          test -z "$ac_c_werror_flag" ||
12855          test ! -s conftest.err
12856        } && test -s conftest$ac_exeext &&
12857        $as_test_x conftest$ac_exeext; then
12858   ac_cv_func_shl_load=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863         ac_cv_func_shl_load=no
12864 fi
12865
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867       conftest$ac_exeext conftest.$ac_ext
12868 fi
12869 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12870 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12871 if test $ac_cv_func_shl_load = yes; then
12872   lt_cv_dlopen="shl_load"
12873 else
12874   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12875 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12876 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12877   echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879   ac_check_lib_save_LIBS=$LIBS
12880 LIBS="-ldld  $LIBS"
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887
12888 /* Override any GCC internal prototype to avoid an error.
12889    Use char because int might match the return type of a GCC
12890    builtin and then its argument prototype would still apply.  */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char shl_load ();
12895 int
12896 main ()
12897 {
12898 return shl_load ();
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 rm -f conftest.$ac_objext conftest$ac_exeext
12904 if { (ac_try="$ac_link"
12905 case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_link") 2>conftest.er1
12911   ac_status=$?
12912   grep -v '^ *+' conftest.er1 >conftest.err
12913   rm -f conftest.er1
12914   cat conftest.err >&5
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); } && {
12917          test -z "$ac_c_werror_flag" ||
12918          test ! -s conftest.err
12919        } && test -s conftest$ac_exeext &&
12920        $as_test_x conftest$ac_exeext; then
12921   ac_cv_lib_dld_shl_load=yes
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926         ac_cv_lib_dld_shl_load=no
12927 fi
12928
12929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12930       conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12932 fi
12933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12934 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12935 if test $ac_cv_lib_dld_shl_load = yes; then
12936   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12937 else
12938   { echo "$as_me:$LINENO: checking for dlopen" >&5
12939 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12940 if test "${ac_cv_func_dlopen+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h.  */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h.  */
12949 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12951 #define dlopen innocuous_dlopen
12952
12953 /* System header to define __stub macros and hopefully few prototypes,
12954     which can conflict with char dlopen (); below.
12955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12956     <limits.h> exists even on freestanding compilers.  */
12957
12958 #ifdef __STDC__
12959 # include <limits.h>
12960 #else
12961 # include <assert.h>
12962 #endif
12963
12964 #undef dlopen
12965
12966 /* Override any GCC internal prototype to avoid an error.
12967    Use char because int might match the return type of a GCC
12968    builtin and then its argument prototype would still apply.  */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char dlopen ();
12973 /* The GNU C library defines this for functions which it implements
12974     to always fail with ENOSYS.  Some functions are actually named
12975     something starting with __ and the normal name is an alias.  */
12976 #if defined __stub_dlopen || defined __stub___dlopen
12977 choke me
12978 #endif
12979
12980 int
12981 main ()
12982 {
12983 return dlopen ();
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995   (eval "$ac_link") 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } && {
13002          test -z "$ac_c_werror_flag" ||
13003          test ! -s conftest.err
13004        } && test -s conftest$ac_exeext &&
13005        $as_test_x conftest$ac_exeext; then
13006   ac_cv_func_dlopen=yes
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011         ac_cv_func_dlopen=no
13012 fi
13013
13014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13015       conftest$ac_exeext conftest.$ac_ext
13016 fi
13017 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13018 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13019 if test $ac_cv_func_dlopen = yes; then
13020   lt_cv_dlopen="dlopen"
13021 else
13022   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13023 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13024 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-ldl  $LIBS"
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035
13036 /* Override any GCC internal prototype to avoid an error.
13037    Use char because int might match the return type of a GCC
13038    builtin and then its argument prototype would still apply.  */
13039 #ifdef __cplusplus
13040 extern "C"
13041 #endif
13042 char dlopen ();
13043 int
13044 main ()
13045 {
13046 return dlopen ();
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (ac_try="$ac_link"
13053 case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_link") 2>conftest.er1
13059   ac_status=$?
13060   grep -v '^ *+' conftest.er1 >conftest.err
13061   rm -f conftest.er1
13062   cat conftest.err >&5
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } && {
13065          test -z "$ac_c_werror_flag" ||
13066          test ! -s conftest.err
13067        } && test -s conftest$ac_exeext &&
13068        $as_test_x conftest$ac_exeext; then
13069   ac_cv_lib_dl_dlopen=yes
13070 else
13071   echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074         ac_cv_lib_dl_dlopen=no
13075 fi
13076
13077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13078       conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13080 fi
13081 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13082 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13083 if test $ac_cv_lib_dl_dlopen = yes; then
13084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13085 else
13086   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13087 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13088 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lsvld  $LIBS"
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099
13100 /* Override any GCC internal prototype to avoid an error.
13101    Use char because int might match the return type of a GCC
13102    builtin and then its argument prototype would still apply.  */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char dlopen ();
13107 int
13108 main ()
13109 {
13110 return dlopen ();
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (ac_try="$ac_link"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_link") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } && {
13129          test -z "$ac_c_werror_flag" ||
13130          test ! -s conftest.err
13131        } && test -s conftest$ac_exeext &&
13132        $as_test_x conftest$ac_exeext; then
13133   ac_cv_lib_svld_dlopen=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138         ac_cv_lib_svld_dlopen=no
13139 fi
13140
13141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13142       conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13144 fi
13145 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13147 if test $ac_cv_lib_svld_dlopen = yes; then
13148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13149 else
13150   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-ldld  $LIBS"
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h.  */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h.  */
13163
13164 /* Override any GCC internal prototype to avoid an error.
13165    Use char because int might match the return type of a GCC
13166    builtin and then its argument prototype would still apply.  */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 char dld_link ();
13171 int
13172 main ()
13173 {
13174 return dld_link ();
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183   *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186   (eval "$ac_link") 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } && {
13193          test -z "$ac_c_werror_flag" ||
13194          test ! -s conftest.err
13195        } && test -s conftest$ac_exeext &&
13196        $as_test_x conftest$ac_exeext; then
13197   ac_cv_lib_dld_dld_link=yes
13198 else
13199   echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202         ac_cv_lib_dld_dld_link=no
13203 fi
13204
13205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206       conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13208 fi
13209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13211 if test $ac_cv_lib_dld_dld_link = yes; then
13212   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13213 fi
13214
13215
13216 fi
13217
13218
13219 fi
13220
13221
13222 fi
13223
13224
13225 fi
13226
13227
13228 fi
13229
13230     ;;
13231   esac
13232
13233   if test "x$lt_cv_dlopen" != xno; then
13234     enable_dlopen=yes
13235   else
13236     enable_dlopen=no
13237   fi
13238
13239   case $lt_cv_dlopen in
13240   dlopen)
13241     save_CPPFLAGS="$CPPFLAGS"
13242     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13243
13244     save_LDFLAGS="$LDFLAGS"
13245     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13246
13247     save_LIBS="$LIBS"
13248     LIBS="$lt_cv_dlopen_libs $LIBS"
13249
13250     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13252 if test "${lt_cv_dlopen_self+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255           if test "$cross_compiling" = yes; then :
13256   lt_cv_dlopen_self=cross
13257 else
13258   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13259   lt_status=$lt_dlunknown
13260   cat > conftest.$ac_ext <<_LT_EOF
13261 #line 13261 "configure"
13262 #include "confdefs.h"
13263
13264 #if HAVE_DLFCN_H
13265 #include <dlfcn.h>
13266 #endif
13267
13268 #include <stdio.h>
13269
13270 #ifdef RTLD_GLOBAL
13271 #  define LT_DLGLOBAL           RTLD_GLOBAL
13272 #else
13273 #  ifdef DL_GLOBAL
13274 #    define LT_DLGLOBAL         DL_GLOBAL
13275 #  else
13276 #    define LT_DLGLOBAL         0
13277 #  endif
13278 #endif
13279
13280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13281    find out it does not work in some platform. */
13282 #ifndef LT_DLLAZY_OR_NOW
13283 #  ifdef RTLD_LAZY
13284 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13285 #  else
13286 #    ifdef DL_LAZY
13287 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13288 #    else
13289 #      ifdef RTLD_NOW
13290 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13291 #      else
13292 #        ifdef DL_NOW
13293 #          define LT_DLLAZY_OR_NOW      DL_NOW
13294 #        else
13295 #          define LT_DLLAZY_OR_NOW      0
13296 #        endif
13297 #      endif
13298 #    endif
13299 #  endif
13300 #endif
13301
13302 #ifdef __cplusplus
13303 extern "C" void exit (int);
13304 #endif
13305
13306 void fnord() { int i=42;}
13307 int main ()
13308 {
13309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13310   int status = $lt_dlunknown;
13311
13312   if (self)
13313     {
13314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13315       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13316       /* dlclose (self); */
13317     }
13318   else
13319     puts (dlerror ());
13320
13321     exit (status);
13322 }
13323 _LT_EOF
13324   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325   (eval $ac_link) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13329     (./conftest; exit; ) >&5 2>/dev/null
13330     lt_status=$?
13331     case x$lt_status in
13332       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13333       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13334       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13335     esac
13336   else :
13337     # compilation failed
13338     lt_cv_dlopen_self=no
13339   fi
13340 fi
13341 rm -fr conftest*
13342
13343
13344 fi
13345 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13346 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13347
13348     if test "x$lt_cv_dlopen_self" = xyes; then
13349       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13350       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13351 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13352 if test "${lt_cv_dlopen_self_static+set}" = set; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355           if test "$cross_compiling" = yes; then :
13356   lt_cv_dlopen_self_static=cross
13357 else
13358   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13359   lt_status=$lt_dlunknown
13360   cat > conftest.$ac_ext <<_LT_EOF
13361 #line 13361 "configure"
13362 #include "confdefs.h"
13363
13364 #if HAVE_DLFCN_H
13365 #include <dlfcn.h>
13366 #endif
13367
13368 #include <stdio.h>
13369
13370 #ifdef RTLD_GLOBAL
13371 #  define LT_DLGLOBAL           RTLD_GLOBAL
13372 #else
13373 #  ifdef DL_GLOBAL
13374 #    define LT_DLGLOBAL         DL_GLOBAL
13375 #  else
13376 #    define LT_DLGLOBAL         0
13377 #  endif
13378 #endif
13379
13380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13381    find out it does not work in some platform. */
13382 #ifndef LT_DLLAZY_OR_NOW
13383 #  ifdef RTLD_LAZY
13384 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13385 #  else
13386 #    ifdef DL_LAZY
13387 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13388 #    else
13389 #      ifdef RTLD_NOW
13390 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13391 #      else
13392 #        ifdef DL_NOW
13393 #          define LT_DLLAZY_OR_NOW      DL_NOW
13394 #        else
13395 #          define LT_DLLAZY_OR_NOW      0
13396 #        endif
13397 #      endif
13398 #    endif
13399 #  endif
13400 #endif
13401
13402 #ifdef __cplusplus
13403 extern "C" void exit (int);
13404 #endif
13405
13406 void fnord() { int i=42;}
13407 int main ()
13408 {
13409   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13410   int status = $lt_dlunknown;
13411
13412   if (self)
13413     {
13414       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13415       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13416       /* dlclose (self); */
13417     }
13418   else
13419     puts (dlerror ());
13420
13421     exit (status);
13422 }
13423 _LT_EOF
13424   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425   (eval $ac_link) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13429     (./conftest; exit; ) >&5 2>/dev/null
13430     lt_status=$?
13431     case x$lt_status in
13432       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13433       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13434       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13435     esac
13436   else :
13437     # compilation failed
13438     lt_cv_dlopen_self_static=no
13439   fi
13440 fi
13441 rm -fr conftest*
13442
13443
13444 fi
13445 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13446 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13447     fi
13448
13449     CPPFLAGS="$save_CPPFLAGS"
13450     LDFLAGS="$save_LDFLAGS"
13451     LIBS="$save_LIBS"
13452     ;;
13453   esac
13454
13455   case $lt_cv_dlopen_self in
13456   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13457   *) enable_dlopen_self=unknown ;;
13458   esac
13459
13460   case $lt_cv_dlopen_self_static in
13461   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13462   *) enable_dlopen_self_static=unknown ;;
13463   esac
13464 fi
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 striplib=
13483 old_striplib=
13484 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13486 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13487   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13488   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13489   { echo "$as_me:$LINENO: result: yes" >&5
13490 echo "${ECHO_T}yes" >&6; }
13491 else
13492 # FIXME - insert some real tests, host_os isn't really good enough
13493   case $host_os in
13494   darwin*)
13495     if test -n "$STRIP" ; then
13496       striplib="$STRIP -x"
13497       old_striplib="$STRIP -S"
13498       { echo "$as_me:$LINENO: result: yes" >&5
13499 echo "${ECHO_T}yes" >&6; }
13500     else
13501       { echo "$as_me:$LINENO: result: no" >&5
13502 echo "${ECHO_T}no" >&6; }
13503     fi
13504     ;;
13505   *)
13506     { echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6; }
13508     ;;
13509   esac
13510 fi
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523   # Report which library types will actually be built
13524   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13526   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13527 echo "${ECHO_T}$can_build_shared" >&6; }
13528
13529   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13531   test "$can_build_shared" = "no" && enable_shared=no
13532
13533   # On AIX, shared libraries and static libraries use the same namespace, and
13534   # are all built from PIC.
13535   case $host_os in
13536   aix3*)
13537     test "$enable_shared" = yes && enable_static=no
13538     if test -n "$RANLIB"; then
13539       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13540       postinstall_cmds='$RANLIB $lib'
13541     fi
13542     ;;
13543
13544   aix[4-9]*)
13545     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13546       test "$enable_shared" = yes && enable_static=no
13547     fi
13548     ;;
13549   esac
13550   { echo "$as_me:$LINENO: result: $enable_shared" >&5
13551 echo "${ECHO_T}$enable_shared" >&6; }
13552
13553   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13555   # Make sure either enable_shared or enable_static is yes.
13556   test "$enable_shared" = yes || enable_static=yes
13557   { echo "$as_me:$LINENO: result: $enable_static" >&5
13558 echo "${ECHO_T}$enable_static" >&6; }
13559
13560
13561
13562
13563 fi
13564 ac_ext=c
13565 ac_cpp='$CPP $CPPFLAGS'
13566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13569
13570 CC="$lt_save_CC"
13571
13572
13573 ac_ext=cpp
13574 ac_cpp='$CXXCPP $CPPFLAGS'
13575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13578
13579 archive_cmds_need_lc_CXX=no
13580 allow_undefined_flag_CXX=
13581 always_export_symbols_CXX=no
13582 archive_expsym_cmds_CXX=
13583 compiler_needs_object_CXX=no
13584 export_dynamic_flag_spec_CXX=
13585 hardcode_direct_CXX=no
13586 hardcode_direct_absolute_CXX=no
13587 hardcode_libdir_flag_spec_CXX=
13588 hardcode_libdir_flag_spec_ld_CXX=
13589 hardcode_libdir_separator_CXX=
13590 hardcode_minus_L_CXX=no
13591 hardcode_shlibpath_var_CXX=unsupported
13592 hardcode_automatic_CXX=no
13593 inherit_rpath_CXX=no
13594 module_cmds_CXX=
13595 module_expsym_cmds_CXX=
13596 link_all_deplibs_CXX=unknown
13597 old_archive_cmds_CXX=$old_archive_cmds
13598 no_undefined_flag_CXX=
13599 whole_archive_flag_spec_CXX=
13600 enable_shared_with_static_runtimes_CXX=no
13601
13602 # Source file extension for C++ test sources.
13603 ac_ext=cpp
13604
13605 # Object file extension for compiled C++ test sources.
13606 objext=o
13607 objext_CXX=$objext
13608
13609 # No sense in running all these tests if we already determined that
13610 # the CXX compiler isn't working.  Some variables (like enable_shared)
13611 # are currently assumed to apply to all compilers on this platform,
13612 # and will be corrupted by setting them based on a non-working compiler.
13613 if test "$_lt_caught_CXX_error" != yes; then
13614   # Code to be used in simple compile tests
13615   lt_simple_compile_test_code="int some_variable = 0;"
13616
13617   # Code to be used in simple link tests
13618   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13619
13620   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13621
13622
13623
13624
13625
13626
13627 # If no C compiler was specified, use CC.
13628 LTCC=${LTCC-"$CC"}
13629
13630 # If no C compiler flags were specified, use CFLAGS.
13631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13632
13633 # Allow CC to be a program name with arguments.
13634 compiler=$CC
13635
13636
13637   # save warnings/boilerplate of simple test code
13638   ac_outfile=conftest.$ac_objext
13639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13641 _lt_compiler_boilerplate=`cat conftest.err`
13642 $RM conftest*
13643
13644   ac_outfile=conftest.$ac_objext
13645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13647 _lt_linker_boilerplate=`cat conftest.err`
13648 $RM -r conftest*
13649
13650
13651   # Allow CC to be a program name with arguments.
13652   lt_save_CC=$CC
13653   lt_save_LD=$LD
13654   lt_save_GCC=$GCC
13655   GCC=$GXX
13656   lt_save_with_gnu_ld=$with_gnu_ld
13657   lt_save_path_LD=$lt_cv_path_LD
13658   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13659     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13660   else
13661     $as_unset lt_cv_prog_gnu_ld
13662   fi
13663   if test -n "${lt_cv_path_LDCXX+set}"; then
13664     lt_cv_path_LD=$lt_cv_path_LDCXX
13665   else
13666     $as_unset lt_cv_path_LD
13667   fi
13668   test -z "${LDCXX+set}" || LD=$LDCXX
13669   CC=${CXX-"c++"}
13670   compiler=$CC
13671   compiler_CXX=$CC
13672   for cc_temp in $compiler""; do
13673   case $cc_temp in
13674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13676     \-*) ;;
13677     *) break;;
13678   esac
13679 done
13680 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13681
13682
13683   if test -n "$compiler"; then
13684     # We don't want -fno-exception when compiling C++ code, so set the
13685     # no_builtin_flag separately
13686     if test "$GXX" = yes; then
13687       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13688     else
13689       lt_prog_compiler_no_builtin_flag_CXX=
13690     fi
13691
13692     if test "$GXX" = yes; then
13693       # Set up default GNU C++ configuration
13694
13695
13696
13697 # Check whether --with-gnu-ld was given.
13698 if test "${with_gnu_ld+set}" = set; then
13699   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13700 else
13701   with_gnu_ld=no
13702 fi
13703
13704 ac_prog=ld
13705 if test "$GCC" = yes; then
13706   # Check if gcc -print-prog-name=ld gives a path.
13707   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13708 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13709   case $host in
13710   *-*-mingw*)
13711     # gcc leaves a trailing carriage return which upsets mingw
13712     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13713   *)
13714     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13715   esac
13716   case $ac_prog in
13717     # Accept absolute paths.
13718     [\\/]* | ?:[\\/]*)
13719       re_direlt='/[^/][^/]*/\.\./'
13720       # Canonicalize the pathname of ld
13721       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13722       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13723         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13724       done
13725       test -z "$LD" && LD="$ac_prog"
13726       ;;
13727   "")
13728     # If it fails, then pretend we aren't using GCC.
13729     ac_prog=ld
13730     ;;
13731   *)
13732     # If it is relative, then search for the first ld in PATH.
13733     with_gnu_ld=unknown
13734     ;;
13735   esac
13736 elif test "$with_gnu_ld" = yes; then
13737   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13738 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13739 else
13740   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13741 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13742 fi
13743 if test "${lt_cv_path_LD+set}" = set; then
13744   echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746   if test -z "$LD"; then
13747   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13748   for ac_dir in $PATH; do
13749     IFS="$lt_save_ifs"
13750     test -z "$ac_dir" && ac_dir=.
13751     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13752       lt_cv_path_LD="$ac_dir/$ac_prog"
13753       # Check to see if the program is GNU ld.  I'd rather use --version,
13754       # but apparently some variants of GNU ld only accept -v.
13755       # Break only if it was the GNU/non-GNU ld that we prefer.
13756       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13757       *GNU* | *'with BFD'*)
13758         test "$with_gnu_ld" != no && break
13759         ;;
13760       *)
13761         test "$with_gnu_ld" != yes && break
13762         ;;
13763       esac
13764     fi
13765   done
13766   IFS="$lt_save_ifs"
13767 else
13768   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13769 fi
13770 fi
13771
13772 LD="$lt_cv_path_LD"
13773 if test -n "$LD"; then
13774   { echo "$as_me:$LINENO: result: $LD" >&5
13775 echo "${ECHO_T}$LD" >&6; }
13776 else
13777   { echo "$as_me:$LINENO: result: no" >&5
13778 echo "${ECHO_T}no" >&6; }
13779 fi
13780 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13781 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13782    { (exit 1); exit 1; }; }
13783 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13784 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13785 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13786   echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13789 case `$LD -v 2>&1 </dev/null` in
13790 *GNU* | *'with BFD'*)
13791   lt_cv_prog_gnu_ld=yes
13792   ;;
13793 *)
13794   lt_cv_prog_gnu_ld=no
13795   ;;
13796 esac
13797 fi
13798 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13799 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13800 with_gnu_ld=$lt_cv_prog_gnu_ld
13801
13802
13803
13804
13805
13806
13807
13808       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13809       # archiving commands below assume that GNU ld is being used.
13810       if test "$with_gnu_ld" = yes; then
13811         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812         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'
13813
13814         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13815         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13816
13817         # If archive_cmds runs LD, not CC, wlarc should be empty
13818         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13819         #     investigate it a little bit more. (MM)
13820         wlarc='${wl}'
13821
13822         # ancient GNU ld didn't support --whole-archive et. al.
13823         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13824           $GREP 'no-whole-archive' > /dev/null; then
13825           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13826         else
13827           whole_archive_flag_spec_CXX=
13828         fi
13829       else
13830         with_gnu_ld=no
13831         wlarc=
13832
13833         # A generic and very simple default shared library creation
13834         # command for GNU C++ for the case where it uses the native
13835         # linker, instead of GNU ld.  If possible, this setting should
13836         # overridden to take advantage of the native linker features on
13837         # the platform it is being used on.
13838         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13839       fi
13840
13841       # Commands to make compiler produce verbose output that lists
13842       # what "hidden" libraries, object files and flags are used when
13843       # linking a shared library.
13844       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13845
13846     else
13847       GXX=no
13848       with_gnu_ld=no
13849       wlarc=
13850     fi
13851
13852     # PORTME: fill in a description of your system's C++ link characteristics
13853     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13855     ld_shlibs_CXX=yes
13856     case $host_os in
13857       aix3*)
13858         # FIXME: insert proper C++ library support
13859         ld_shlibs_CXX=no
13860         ;;
13861       aix[4-9]*)
13862         if test "$host_cpu" = ia64; then
13863           # On IA64, the linker does run time linking by default, so we don't
13864           # have to do anything special.
13865           aix_use_runtimelinking=no
13866           exp_sym_flag='-Bexport'
13867           no_entry_flag=""
13868         else
13869           aix_use_runtimelinking=no
13870
13871           # Test if we are trying to use run time linking or normal
13872           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13873           # need to do runtime linking.
13874           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13875             for ld_flag in $LDFLAGS; do
13876               case $ld_flag in
13877               *-brtl*)
13878                 aix_use_runtimelinking=yes
13879                 break
13880                 ;;
13881               esac
13882             done
13883             ;;
13884           esac
13885
13886           exp_sym_flag='-bexport'
13887           no_entry_flag='-bnoentry'
13888         fi
13889
13890         # When large executables or shared objects are built, AIX ld can
13891         # have problems creating the table of contents.  If linking a library
13892         # or program results in "error TOC overflow" add -mminimal-toc to
13893         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13894         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13895
13896         archive_cmds_CXX=''
13897         hardcode_direct_CXX=yes
13898         hardcode_direct_absolute_CXX=yes
13899         hardcode_libdir_separator_CXX=':'
13900         link_all_deplibs_CXX=yes
13901         file_list_spec_CXX='${wl}-f,'
13902
13903         if test "$GXX" = yes; then
13904           case $host_os in aix4.[012]|aix4.[012].*)
13905           # We only want to do this on AIX 4.2 and lower, the check
13906           # below for broken collect2 doesn't work under 4.3+
13907           collect2name=`${CC} -print-prog-name=collect2`
13908           if test -f "$collect2name" &&
13909              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13910           then
13911             # We have reworked collect2
13912             :
13913           else
13914             # We have old collect2
13915             hardcode_direct_CXX=unsupported
13916             # It fails to find uninstalled libraries when the uninstalled
13917             # path is not listed in the libpath.  Setting hardcode_minus_L
13918             # to unsupported forces relinking
13919             hardcode_minus_L_CXX=yes
13920             hardcode_libdir_flag_spec_CXX='-L$libdir'
13921             hardcode_libdir_separator_CXX=
13922           fi
13923           esac
13924           shared_flag='-shared'
13925           if test "$aix_use_runtimelinking" = yes; then
13926             shared_flag="$shared_flag "'${wl}-G'
13927           fi
13928         else
13929           # not using gcc
13930           if test "$host_cpu" = ia64; then
13931           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13932           # chokes on -Wl,-G. The following line is correct:
13933           shared_flag='-G'
13934           else
13935             if test "$aix_use_runtimelinking" = yes; then
13936               shared_flag='${wl}-G'
13937             else
13938               shared_flag='${wl}-bM:SRE'
13939             fi
13940           fi
13941         fi
13942
13943         # It seems that -bexpall does not export symbols beginning with
13944         # underscore (_), so it is better to generate a list of symbols to
13945         # export.
13946         always_export_symbols_CXX=yes
13947         if test "$aix_use_runtimelinking" = yes; then
13948           # Warning - without using the other runtime loading flags (-brtl),
13949           # -berok will link without error, but may produce a broken library.
13950           allow_undefined_flag_CXX='-berok'
13951           # Determine the default libpath from the value encoded in an empty
13952           # executable.
13953           cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959
13960 int
13961 main ()
13962 {
13963
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (ac_try="$ac_link"
13970 case "(($ac_try" in
13971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972   *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975   (eval "$ac_link") 2>conftest.er1
13976   ac_status=$?
13977   grep -v '^ *+' conftest.er1 >conftest.err
13978   rm -f conftest.er1
13979   cat conftest.err >&5
13980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981   (exit $ac_status); } && {
13982          test -z "$ac_cxx_werror_flag" ||
13983          test ! -s conftest.err
13984        } && test -s conftest$ac_exeext &&
13985        $as_test_x conftest$ac_exeext; then
13986
13987 lt_aix_libpath_sed='
13988     /Import File Strings/,/^$/ {
13989         /^0/ {
13990             s/^0  *\(.*\)$/\1/
13991             p
13992         }
13993     }'
13994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13995 # Check for a 64-bit object if we didn't find anything.
13996 if test -z "$aix_libpath"; then
13997   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13998 fi
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003
14004 fi
14005
14006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14007       conftest$ac_exeext conftest.$ac_ext
14008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14009
14010           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14011
14012           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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14013         else
14014           if test "$host_cpu" = ia64; then
14015             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14016             allow_undefined_flag_CXX="-z nodefs"
14017             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"
14018           else
14019             # Determine the default libpath from the value encoded in an
14020             # empty executable.
14021             cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h.  */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h.  */
14027
14028 int
14029 main ()
14030 {
14031
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (ac_try="$ac_link"
14038 case "(($ac_try" in
14039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040   *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043   (eval "$ac_link") 2>conftest.er1
14044   ac_status=$?
14045   grep -v '^ *+' conftest.er1 >conftest.err
14046   rm -f conftest.er1
14047   cat conftest.err >&5
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); } && {
14050          test -z "$ac_cxx_werror_flag" ||
14051          test ! -s conftest.err
14052        } && test -s conftest$ac_exeext &&
14053        $as_test_x conftest$ac_exeext; then
14054
14055 lt_aix_libpath_sed='
14056     /Import File Strings/,/^$/ {
14057         /^0/ {
14058             s/^0  *\(.*\)$/\1/
14059             p
14060         }
14061     }'
14062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14063 # Check for a 64-bit object if we didn't find anything.
14064 if test -z "$aix_libpath"; then
14065   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14066 fi
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071
14072 fi
14073
14074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14075       conftest$ac_exeext conftest.$ac_ext
14076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14077
14078             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14079             # Warning - without using the other run time loading flags,
14080             # -berok will link without error, but may produce a broken library.
14081             no_undefined_flag_CXX=' ${wl}-bernotok'
14082             allow_undefined_flag_CXX=' ${wl}-berok'
14083             # Exported symbols can be pulled into shared objects from archives
14084             whole_archive_flag_spec_CXX='$convenience'
14085             archive_cmds_need_lc_CXX=yes
14086             # This is similar to how AIX traditionally builds its shared
14087             # libraries.
14088             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'
14089           fi
14090         fi
14091         ;;
14092
14093       beos*)
14094         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14095           allow_undefined_flag_CXX=unsupported
14096           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14097           # support --undefined.  This deserves some investigation.  FIXME
14098           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14099         else
14100           ld_shlibs_CXX=no
14101         fi
14102         ;;
14103
14104       chorus*)
14105         case $cc_basename in
14106           *)
14107           # FIXME: insert proper C++ library support
14108           ld_shlibs_CXX=no
14109           ;;
14110         esac
14111         ;;
14112
14113       cygwin* | mingw* | pw32*)
14114         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14115         # as there is no search path for DLLs.
14116         hardcode_libdir_flag_spec_CXX='-L$libdir'
14117         allow_undefined_flag_CXX=unsupported
14118         always_export_symbols_CXX=no
14119         enable_shared_with_static_runtimes_CXX=yes
14120
14121         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14122           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'
14123           # If the export-symbols file already is a .def file (1st line
14124           # is EXPORTS), use it as is; otherwise, prepend...
14125           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14126             cp $export_symbols $output_objdir/$soname.def;
14127           else
14128             echo EXPORTS > $output_objdir/$soname.def;
14129             cat $export_symbols >> $output_objdir/$soname.def;
14130           fi~
14131           $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'
14132         else
14133           ld_shlibs_CXX=no
14134         fi
14135         ;;
14136       darwin* | rhapsody*)
14137
14138
14139   archive_cmds_need_lc_CXX=no
14140   hardcode_direct_CXX=no
14141   hardcode_automatic_CXX=yes
14142   hardcode_shlibpath_var_CXX=unsupported
14143   whole_archive_flag_spec_CXX=''
14144   link_all_deplibs_CXX=yes
14145   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14146   if test "$GCC" = "yes"; then
14147     output_verbose_link_cmd=echo
14148     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}"
14149     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14150     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}"
14151     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}"
14152        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14153       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}"
14154       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}"
14155     fi
14156
14157   else
14158   ld_shlibs_CXX=no
14159   fi
14160
14161         ;;
14162
14163       dgux*)
14164         case $cc_basename in
14165           ec++*)
14166             # FIXME: insert proper C++ library support
14167             ld_shlibs_CXX=no
14168             ;;
14169           ghcx*)
14170             # Green Hills C++ Compiler
14171             # FIXME: insert proper C++ library support
14172             ld_shlibs_CXX=no
14173             ;;
14174           *)
14175             # FIXME: insert proper C++ library support
14176             ld_shlibs_CXX=no
14177             ;;
14178         esac
14179         ;;
14180
14181       freebsd[12]*)
14182         # C++ shared libraries reported to be fairly broken before
14183         # switch to ELF
14184         ld_shlibs_CXX=no
14185         ;;
14186
14187       freebsd-elf*)
14188         archive_cmds_need_lc_CXX=no
14189         ;;
14190
14191       freebsd* | dragonfly*)
14192         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14193         # conventions
14194         ld_shlibs_CXX=yes
14195         ;;
14196
14197       gnu*)
14198         ;;
14199
14200       hpux9*)
14201         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14202         hardcode_libdir_separator_CXX=:
14203         export_dynamic_flag_spec_CXX='${wl}-E'
14204         hardcode_direct_CXX=yes
14205         hardcode_minus_L_CXX=yes # Not in the search PATH,
14206                                              # but as the default
14207                                              # location of the library.
14208
14209         case $cc_basename in
14210           CC*)
14211             # FIXME: insert proper C++ library support
14212             ld_shlibs_CXX=no
14213             ;;
14214           aCC*)
14215             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'
14216             # Commands to make compiler produce verbose output that lists
14217             # what "hidden" libraries, object files and flags are used when
14218             # linking a shared library.
14219             #
14220             # There doesn't appear to be a way to prevent this compiler from
14221             # explicitly linking system object files so we need to strip them
14222             # from the output so that they don't get included in the library
14223             # dependencies.
14224             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14225             ;;
14226           *)
14227             if test "$GXX" = yes; then
14228               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'
14229             else
14230               # FIXME: insert proper C++ library support
14231               ld_shlibs_CXX=no
14232             fi
14233             ;;
14234         esac
14235         ;;
14236
14237       hpux10*|hpux11*)
14238         if test $with_gnu_ld = no; then
14239           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14240           hardcode_libdir_separator_CXX=:
14241
14242           case $host_cpu in
14243             hppa*64*|ia64*)
14244               ;;
14245             *)
14246               export_dynamic_flag_spec_CXX='${wl}-E'
14247               ;;
14248           esac
14249         fi
14250         case $host_cpu in
14251           hppa*64*|ia64*)
14252             hardcode_direct_CXX=no
14253             hardcode_shlibpath_var_CXX=no
14254             ;;
14255           *)
14256             hardcode_direct_CXX=yes
14257             hardcode_direct_absolute_CXX=yes
14258             hardcode_minus_L_CXX=yes # Not in the search PATH,
14259                                                  # but as the default
14260                                                  # location of the library.
14261             ;;
14262         esac
14263
14264         case $cc_basename in
14265           CC*)
14266             # FIXME: insert proper C++ library support
14267             ld_shlibs_CXX=no
14268             ;;
14269           aCC*)
14270             case $host_cpu in
14271               hppa*64*)
14272                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14273                 ;;
14274               ia64*)
14275                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14276                 ;;
14277               *)
14278                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14279                 ;;
14280             esac
14281             # Commands to make compiler produce verbose output that lists
14282             # what "hidden" libraries, object files and flags are used when
14283             # linking a shared library.
14284             #
14285             # There doesn't appear to be a way to prevent this compiler from
14286             # explicitly linking system object files so we need to strip them
14287             # from the output so that they don't get included in the library
14288             # dependencies.
14289             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 "X$list" | $Xsed'
14290             ;;
14291           *)
14292             if test "$GXX" = yes; then
14293               if test $with_gnu_ld = no; then
14294                 case $host_cpu in
14295                   hppa*64*)
14296                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14297                     ;;
14298                   ia64*)
14299                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14300                     ;;
14301                   *)
14302                     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'
14303                     ;;
14304                 esac
14305               fi
14306             else
14307               # FIXME: insert proper C++ library support
14308               ld_shlibs_CXX=no
14309             fi
14310             ;;
14311         esac
14312         ;;
14313
14314       interix[3-9]*)
14315         hardcode_direct_CXX=no
14316         hardcode_shlibpath_var_CXX=no
14317         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14318         export_dynamic_flag_spec_CXX='${wl}-E'
14319         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14320         # Instead, shared libraries are loaded at an image base (0x10000000 by
14321         # default) and relocated if they conflict, which is a slow very memory
14322         # consuming and fragmenting process.  To avoid this, we pick a random,
14323         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14324         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14325         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'
14326         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'
14327         ;;
14328       irix5* | irix6*)
14329         case $cc_basename in
14330           CC*)
14331             # SGI C++
14332             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14333
14334             # Archives containing C++ object files must be created using
14335             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14336             # necessary to make sure instantiated templates are included
14337             # in the archive.
14338             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14339             ;;
14340           *)
14341             if test "$GXX" = yes; then
14342               if test "$with_gnu_ld" = no; then
14343                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14344               else
14345                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14346               fi
14347             fi
14348             link_all_deplibs_CXX=yes
14349             ;;
14350         esac
14351         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14352         hardcode_libdir_separator_CXX=:
14353         inherit_rpath_CXX=yes
14354         ;;
14355
14356       linux* | k*bsd*-gnu)
14357         case $cc_basename in
14358           KCC*)
14359             # Kuck and Associates, Inc. (KAI) C++ Compiler
14360
14361             # KCC will only create a shared library if the output file
14362             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14363             # to its proper name (with version) after linking.
14364             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'
14365             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'
14366             # Commands to make compiler produce verbose output that lists
14367             # what "hidden" libraries, object files and flags are used when
14368             # linking a shared library.
14369             #
14370             # There doesn't appear to be a way to prevent this compiler from
14371             # explicitly linking system object files so we need to strip them
14372             # from the output so that they don't get included in the library
14373             # dependencies.
14374             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 "X$list" | $Xsed'
14375
14376             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14377             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14378
14379             # Archives containing C++ object files must be created using
14380             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14381             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14382             ;;
14383           icpc* | ecpc* )
14384             # Intel C++
14385             with_gnu_ld=yes
14386             # version 8.0 and above of icpc choke on multiply defined symbols
14387             # if we add $predep_objects and $postdep_objects, however 7.1 and
14388             # earlier do not add the objects themselves.
14389             case `$CC -V 2>&1` in
14390               *"Version 7."*)
14391                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392                 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'
14393                 ;;
14394               *)  # Version 8.0 or newer
14395                 tmp_idyn=
14396                 case $host_cpu in
14397                   ia64*) tmp_idyn=' -i_dynamic';;
14398                 esac
14399                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400                 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'
14401                 ;;
14402             esac
14403             archive_cmds_need_lc_CXX=no
14404             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14405             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14406             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14407             ;;
14408           pgCC* | pgcpp*)
14409             # Portland Group C++ compiler
14410             case `$CC -V` in
14411             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14412               prelink_cmds_CXX='tpldir=Template.dir~
14413                 rm -rf $tpldir~
14414                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14415                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14416               old_archive_cmds_CXX='tpldir=Template.dir~
14417                 rm -rf $tpldir~
14418                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14419                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14420                 $RANLIB $oldlib'
14421               archive_cmds_CXX='tpldir=Template.dir~
14422                 rm -rf $tpldir~
14423                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14424                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14425               archive_expsym_cmds_CXX='tpldir=Template.dir~
14426                 rm -rf $tpldir~
14427                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14428                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14429               ;;
14430             *) # Version 6 will use weak symbols
14431               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14432               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'
14433               ;;
14434             esac
14435
14436             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14437             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14438             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'
14439             ;;
14440           cxx*)
14441             # Compaq C++
14442             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443             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'
14444
14445             runpath_var=LD_RUN_PATH
14446             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14447             hardcode_libdir_separator_CXX=:
14448
14449             # Commands to make compiler produce verbose output that lists
14450             # what "hidden" libraries, object files and flags are used when
14451             # linking a shared library.
14452             #
14453             # There doesn't appear to be a way to prevent this compiler from
14454             # explicitly linking system object files so we need to strip them
14455             # from the output so that they don't get included in the library
14456             # dependencies.
14457             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14458             ;;
14459           xl*)
14460             # IBM XL 8.0 on PPC, with GNU ld
14461             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14462             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14463             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464             if test "x$supports_anon_versioning" = xyes; then
14465               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14466                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14467                 echo "local: *; };" >> $output_objdir/$libname.ver~
14468                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14469             fi
14470             ;;
14471           *)
14472             case `$CC -V 2>&1 | sed 5q` in
14473             *Sun\ C*)
14474               # Sun C++ 5.9
14475               no_undefined_flag_CXX=' -zdefs'
14476               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14477               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'
14478               hardcode_libdir_flag_spec_CXX='-R$libdir'
14479               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'
14480               compiler_needs_object_CXX=yes
14481
14482               # Not sure whether something based on
14483               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14484               # would be better.
14485               output_verbose_link_cmd='echo'
14486
14487               # Archives containing C++ object files must be created using
14488               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14489               # necessary to make sure instantiated templates are included
14490               # in the archive.
14491               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14492               ;;
14493             esac
14494             ;;
14495         esac
14496         ;;
14497
14498       lynxos*)
14499         # FIXME: insert proper C++ library support
14500         ld_shlibs_CXX=no
14501         ;;
14502
14503       m88k*)
14504         # FIXME: insert proper C++ library support
14505         ld_shlibs_CXX=no
14506         ;;
14507
14508       mvs*)
14509         case $cc_basename in
14510           cxx*)
14511             # FIXME: insert proper C++ library support
14512             ld_shlibs_CXX=no
14513             ;;
14514           *)
14515             # FIXME: insert proper C++ library support
14516             ld_shlibs_CXX=no
14517             ;;
14518         esac
14519         ;;
14520
14521       netbsd*)
14522         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14523           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14524           wlarc=
14525           hardcode_libdir_flag_spec_CXX='-R$libdir'
14526           hardcode_direct_CXX=yes
14527           hardcode_shlibpath_var_CXX=no
14528         fi
14529         # Workaround some broken pre-1.5 toolchains
14530         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14531         ;;
14532
14533       *nto* | *qnx*)
14534         ld_shlibs_CXX=yes
14535         ;;
14536
14537       openbsd2*)
14538         # C++ shared libraries are fairly broken
14539         ld_shlibs_CXX=no
14540         ;;
14541
14542       openbsd*)
14543         if test -f /usr/libexec/ld.so; then
14544           hardcode_direct_CXX=yes
14545           hardcode_shlibpath_var_CXX=no
14546           hardcode_direct_absolute_CXX=yes
14547           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14548           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14549           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14550             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14551             export_dynamic_flag_spec_CXX='${wl}-E'
14552             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14553           fi
14554           output_verbose_link_cmd=echo
14555         else
14556           ld_shlibs_CXX=no
14557         fi
14558         ;;
14559
14560       osf3* | osf4* | osf5*)
14561         case $cc_basename in
14562           KCC*)
14563             # Kuck and Associates, Inc. (KAI) C++ Compiler
14564
14565             # KCC will only create a shared library if the output file
14566             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14567             # to its proper name (with version) after linking.
14568             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'
14569
14570             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14571             hardcode_libdir_separator_CXX=:
14572
14573             # Archives containing C++ object files must be created using
14574             # the KAI C++ compiler.
14575             case $host in
14576               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14577               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14578             esac
14579             ;;
14580           RCC*)
14581             # Rational C++ 2.4.1
14582             # FIXME: insert proper C++ library support
14583             ld_shlibs_CXX=no
14584             ;;
14585           cxx*)
14586             case $host in
14587               osf3*)
14588                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14589                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14590                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14591                 ;;
14592               *)
14593                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14594                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14595                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14596                   echo "-hidden">> $lib.exp~
14597                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14598                   $RM $lib.exp'
14599                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14600                 ;;
14601             esac
14602
14603             hardcode_libdir_separator_CXX=:
14604
14605             # Commands to make compiler produce verbose output that lists
14606             # what "hidden" libraries, object files and flags are used when
14607             # linking a shared library.
14608             #
14609             # There doesn't appear to be a way to prevent this compiler from
14610             # explicitly linking system object files so we need to strip them
14611             # from the output so that they don't get included in the library
14612             # dependencies.
14613             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14614             ;;
14615           *)
14616             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14617               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14618               case $host in
14619                 osf3*)
14620                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14621                   ;;
14622                 *)
14623                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14624                   ;;
14625               esac
14626
14627               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14628               hardcode_libdir_separator_CXX=:
14629
14630               # Commands to make compiler produce verbose output that lists
14631               # what "hidden" libraries, object files and flags are used when
14632               # linking a shared library.
14633               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14634
14635             else
14636               # FIXME: insert proper C++ library support
14637               ld_shlibs_CXX=no
14638             fi
14639             ;;
14640         esac
14641         ;;
14642
14643       psos*)
14644         # FIXME: insert proper C++ library support
14645         ld_shlibs_CXX=no
14646         ;;
14647
14648       sunos4*)
14649         case $cc_basename in
14650           CC*)
14651             # Sun C++ 4.x
14652             # FIXME: insert proper C++ library support
14653             ld_shlibs_CXX=no
14654             ;;
14655           lcc*)
14656             # Lucid
14657             # FIXME: insert proper C++ library support
14658             ld_shlibs_CXX=no
14659             ;;
14660           *)
14661             # FIXME: insert proper C++ library support
14662             ld_shlibs_CXX=no
14663             ;;
14664         esac
14665         ;;
14666
14667       solaris*)
14668         case $cc_basename in
14669           CC*)
14670             # Sun C++ 4.2, 5.x and Centerline C++
14671             archive_cmds_need_lc_CXX=yes
14672             no_undefined_flag_CXX=' -zdefs'
14673             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14674             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14675               $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'
14676
14677             hardcode_libdir_flag_spec_CXX='-R$libdir'
14678             hardcode_shlibpath_var_CXX=no
14679             case $host_os in
14680               solaris2.[0-5] | solaris2.[0-5].*) ;;
14681               *)
14682                 # The compiler driver will combine and reorder linker options,
14683                 # but understands `-z linker_flag'.
14684                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14685                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14686                 ;;
14687             esac
14688             link_all_deplibs_CXX=yes
14689
14690             output_verbose_link_cmd='echo'
14691
14692             # Archives containing C++ object files must be created using
14693             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14694             # necessary to make sure instantiated templates are included
14695             # in the archive.
14696             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14697             ;;
14698           gcx*)
14699             # Green Hills C++ Compiler
14700             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14701
14702             # The C++ compiler must be used to create the archive.
14703             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14704             ;;
14705           *)
14706             # GNU C++ compiler with Solaris linker
14707             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14708               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14709               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14710                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14711                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14712                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14713
14714                 # Commands to make compiler produce verbose output that lists
14715                 # what "hidden" libraries, object files and flags are used when
14716                 # linking a shared library.
14717                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14718               else
14719                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14720                 # platform.
14721                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14722                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14723                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14724
14725                 # Commands to make compiler produce verbose output that lists
14726                 # what "hidden" libraries, object files and flags are used when
14727                 # linking a shared library.
14728                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14729               fi
14730
14731               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14732               case $host_os in
14733                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14734                 *)
14735                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14736                   ;;
14737               esac
14738             fi
14739             ;;
14740         esac
14741         ;;
14742
14743     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14744       no_undefined_flag_CXX='${wl}-z,text'
14745       archive_cmds_need_lc_CXX=no
14746       hardcode_shlibpath_var_CXX=no
14747       runpath_var='LD_RUN_PATH'
14748
14749       case $cc_basename in
14750         CC*)
14751           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14752           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14753           ;;
14754         *)
14755           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14756           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14757           ;;
14758       esac
14759       ;;
14760
14761       sysv5* | sco3.2v5* | sco5v6*)
14762         # Note: We can NOT use -z defs as we might desire, because we do not
14763         # link with -lc, and that would cause any symbols used from libc to
14764         # always be unresolved, which means just about no library would
14765         # ever link correctly.  If we're not using GNU ld we use -z text
14766         # though, which does catch some bad symbols but isn't as heavy-handed
14767         # as -z defs.
14768         no_undefined_flag_CXX='${wl}-z,text'
14769         allow_undefined_flag_CXX='${wl}-z,nodefs'
14770         archive_cmds_need_lc_CXX=no
14771         hardcode_shlibpath_var_CXX=no
14772         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14773         hardcode_libdir_separator_CXX=':'
14774         link_all_deplibs_CXX=yes
14775         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14776         runpath_var='LD_RUN_PATH'
14777
14778         case $cc_basename in
14779           CC*)
14780             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782             ;;
14783           *)
14784             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14786             ;;
14787         esac
14788       ;;
14789
14790       tandem*)
14791         case $cc_basename in
14792           NCC*)
14793             # NonStop-UX NCC 3.20
14794             # FIXME: insert proper C++ library support
14795             ld_shlibs_CXX=no
14796             ;;
14797           *)
14798             # FIXME: insert proper C++ library support
14799             ld_shlibs_CXX=no
14800             ;;
14801         esac
14802         ;;
14803
14804       vxworks*)
14805         # FIXME: insert proper C++ library support
14806         ld_shlibs_CXX=no
14807         ;;
14808
14809       *)
14810         # FIXME: insert proper C++ library support
14811         ld_shlibs_CXX=no
14812         ;;
14813     esac
14814
14815     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14816 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14817     test "$ld_shlibs_CXX" = no && can_build_shared=no
14818
14819     GCC_CXX="$GXX"
14820     LD_CXX="$LD"
14821
14822     ## CAVEAT EMPTOR:
14823     ## There is no encapsulation within the following macros, do not change
14824     ## the running order or otherwise move them around unless you know exactly
14825     ## what you are doing...
14826     # Dependencies to place before and after the object being linked:
14827 predep_objects_CXX=
14828 postdep_objects_CXX=
14829 predeps_CXX=
14830 postdeps_CXX=
14831 compiler_lib_search_path_CXX=
14832
14833 cat > conftest.$ac_ext <<_LT_EOF
14834 class Foo
14835 {
14836 public:
14837   Foo (void) { a = 0; }
14838 private:
14839   int a;
14840 };
14841 _LT_EOF
14842
14843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14844   (eval $ac_compile) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; then
14848   # Parse the compiler output and extract the necessary
14849   # objects, libraries and library flags.
14850
14851   # Sentinel used to keep track of whether or not we are before
14852   # the conftest object file.
14853   pre_test_object_deps_done=no
14854
14855   for p in `eval "$output_verbose_link_cmd"`; do
14856     case $p in
14857
14858     -L* | -R* | -l*)
14859        # Some compilers place space between "-{L,R}" and the path.
14860        # Remove the space.
14861        if test $p = "-L" ||
14862           test $p = "-R"; then
14863          prev=$p
14864          continue
14865        else
14866          prev=
14867        fi
14868
14869        if test "$pre_test_object_deps_done" = no; then
14870          case $p in
14871          -L* | -R*)
14872            # Internal compiler library paths should come after those
14873            # provided the user.  The postdeps already come after the
14874            # user supplied libs so there is no need to process them.
14875            if test -z "$compiler_lib_search_path_CXX"; then
14876              compiler_lib_search_path_CXX="${prev}${p}"
14877            else
14878              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14879            fi
14880            ;;
14881          # The "-l" case would never come before the object being
14882          # linked, so don't bother handling this case.
14883          esac
14884        else
14885          if test -z "$postdeps_CXX"; then
14886            postdeps_CXX="${prev}${p}"
14887          else
14888            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14889          fi
14890        fi
14891        ;;
14892
14893     *.$objext)
14894        # This assumes that the test object file only shows up
14895        # once in the compiler output.
14896        if test "$p" = "conftest.$objext"; then
14897          pre_test_object_deps_done=yes
14898          continue
14899        fi
14900
14901        if test "$pre_test_object_deps_done" = no; then
14902          if test -z "$predep_objects_CXX"; then
14903            predep_objects_CXX="$p"
14904          else
14905            predep_objects_CXX="$predep_objects_CXX $p"
14906          fi
14907        else
14908          if test -z "$postdep_objects_CXX"; then
14909            postdep_objects_CXX="$p"
14910          else
14911            postdep_objects_CXX="$postdep_objects_CXX $p"
14912          fi
14913        fi
14914        ;;
14915
14916     *) ;; # Ignore the rest.
14917
14918     esac
14919   done
14920
14921   # Clean up.
14922   rm -f a.out a.exe
14923 else
14924   echo "libtool.m4: error: problem compiling CXX test program"
14925 fi
14926
14927 $RM -f confest.$objext
14928
14929 # PORTME: override above test on systems where it is broken
14930 case $host_os in
14931 interix[3-9]*)
14932   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14933   # hack all around it, let's just trust "g++" to DTRT.
14934   predep_objects_CXX=
14935   postdep_objects_CXX=
14936   postdeps_CXX=
14937   ;;
14938
14939 linux*)
14940   case `$CC -V 2>&1 | sed 5q` in
14941   *Sun\ C*)
14942     # Sun C++ 5.9
14943
14944     # The more standards-conforming stlport4 library is
14945     # incompatible with the Cstd library. Avoid specifying
14946     # it if it's in CXXFLAGS. Ignore libCrun as
14947     # -library=stlport4 depends on it.
14948     case " $CXX $CXXFLAGS " in
14949     *" -library=stlport4 "*)
14950       solaris_use_stlport4=yes
14951       ;;
14952     esac
14953
14954     if test "$solaris_use_stlport4" != yes; then
14955       postdeps_CXX='-library=Cstd -library=Crun'
14956     fi
14957     ;;
14958   esac
14959   ;;
14960
14961 solaris*)
14962   case $cc_basename in
14963   CC*)
14964     # The more standards-conforming stlport4 library is
14965     # incompatible with the Cstd library. Avoid specifying
14966     # it if it's in CXXFLAGS. Ignore libCrun as
14967     # -library=stlport4 depends on it.
14968     case " $CXX $CXXFLAGS " in
14969     *" -library=stlport4 "*)
14970       solaris_use_stlport4=yes
14971       ;;
14972     esac
14973
14974     # Adding this requires a known-good setup of shared libraries for
14975     # Sun compiler versions before 5.6, else PIC objects from an old
14976     # archive will be linked into the output, leading to subtle bugs.
14977     if test "$solaris_use_stlport4" != yes; then
14978       postdeps_CXX='-library=Cstd -library=Crun'
14979     fi
14980     ;;
14981   esac
14982   ;;
14983 esac
14984
14985
14986 case " $postdeps_CXX " in
14987 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14988 esac
14989  compiler_lib_search_dirs_CXX=
14990 if test -n "${compiler_lib_search_path_CXX}"; then
14991  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14992 fi
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024     lt_prog_compiler_wl_CXX=
15025 lt_prog_compiler_pic_CXX=
15026 lt_prog_compiler_static_CXX=
15027
15028 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15029 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15030
15031   # C++ specific cases for pic, static, wl, etc.
15032   if test "$GXX" = yes; then
15033     lt_prog_compiler_wl_CXX='-Wl,'
15034     lt_prog_compiler_static_CXX='-static'
15035
15036     case $host_os in
15037     aix*)
15038       # All AIX code is PIC.
15039       if test "$host_cpu" = ia64; then
15040         # AIX 5 now supports IA64 processor
15041         lt_prog_compiler_static_CXX='-Bstatic'
15042       fi
15043       ;;
15044
15045     amigaos*)
15046       case $host_cpu in
15047       powerpc)
15048             # see comment about AmigaOS4 .so support
15049             lt_prog_compiler_pic_CXX='-fPIC'
15050         ;;
15051       m68k)
15052             # FIXME: we need at least 68020 code to build shared libraries, but
15053             # adding the `-m68020' flag to GCC prevents building anything better,
15054             # like `-m68040'.
15055             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15056         ;;
15057       esac
15058       ;;
15059
15060     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15061       # PIC is the default for these OSes.
15062       ;;
15063     mingw* | cygwin* | os2* | pw32*)
15064       # This hack is so that the source file can tell whether it is being
15065       # built for inclusion in a dll (and should export symbols for example).
15066       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15067       # (--disable-auto-import) libraries
15068       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15069       ;;
15070     darwin* | rhapsody*)
15071       # PIC is the default on this platform
15072       # Common symbols not allowed in MH_DYLIB files
15073       lt_prog_compiler_pic_CXX='-fno-common'
15074       ;;
15075     *djgpp*)
15076       # DJGPP does not support shared libraries at all
15077       lt_prog_compiler_pic_CXX=
15078       ;;
15079     interix[3-9]*)
15080       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15081       # Instead, we relocate shared libraries at runtime.
15082       ;;
15083     sysv4*MP*)
15084       if test -d /usr/nec; then
15085         lt_prog_compiler_pic_CXX=-Kconform_pic
15086       fi
15087       ;;
15088     hpux*)
15089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090       # not for PA HP-UX.
15091       case $host_cpu in
15092       hppa*64*|ia64*)
15093         ;;
15094       *)
15095         lt_prog_compiler_pic_CXX='-fPIC'
15096         ;;
15097       esac
15098       ;;
15099     *qnx* | *nto*)
15100       # QNX uses GNU C++, but need to define -shared option too, otherwise
15101       # it will coredump.
15102       lt_prog_compiler_pic_CXX='-fPIC -shared'
15103       ;;
15104     *)
15105       lt_prog_compiler_pic_CXX='-fPIC'
15106       ;;
15107     esac
15108   else
15109     case $host_os in
15110       aix[4-9]*)
15111         # All AIX code is PIC.
15112         if test "$host_cpu" = ia64; then
15113           # AIX 5 now supports IA64 processor
15114           lt_prog_compiler_static_CXX='-Bstatic'
15115         else
15116           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15117         fi
15118         ;;
15119       chorus*)
15120         case $cc_basename in
15121         cxch68*)
15122           # Green Hills C++ Compiler
15123           # _LT_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"
15124           ;;
15125         esac
15126         ;;
15127       dgux*)
15128         case $cc_basename in
15129           ec++*)
15130             lt_prog_compiler_pic_CXX='-KPIC'
15131             ;;
15132           ghcx*)
15133             # Green Hills C++ Compiler
15134             lt_prog_compiler_pic_CXX='-pic'
15135             ;;
15136           *)
15137             ;;
15138         esac
15139         ;;
15140       freebsd* | dragonfly*)
15141         # FreeBSD uses GNU C++
15142         ;;
15143       hpux9* | hpux10* | hpux11*)
15144         case $cc_basename in
15145           CC*)
15146             lt_prog_compiler_wl_CXX='-Wl,'
15147             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15148             if test "$host_cpu" != ia64; then
15149               lt_prog_compiler_pic_CXX='+Z'
15150             fi
15151             ;;
15152           aCC*)
15153             lt_prog_compiler_wl_CXX='-Wl,'
15154             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15155             case $host_cpu in
15156             hppa*64*|ia64*)
15157               # +Z the default
15158               ;;
15159             *)
15160               lt_prog_compiler_pic_CXX='+Z'
15161               ;;
15162             esac
15163             ;;
15164           *)
15165             ;;
15166         esac
15167         ;;
15168       interix*)
15169         # This is c89, which is MS Visual C++ (no shared libs)
15170         # Anyone wants to do a port?
15171         ;;
15172       irix5* | irix6* | nonstopux*)
15173         case $cc_basename in
15174           CC*)
15175             lt_prog_compiler_wl_CXX='-Wl,'
15176             lt_prog_compiler_static_CXX='-non_shared'
15177             # CC pic flag -KPIC is the default.
15178             ;;
15179           *)
15180             ;;
15181         esac
15182         ;;
15183       linux* | k*bsd*-gnu)
15184         case $cc_basename in
15185           KCC*)
15186             # KAI C++ Compiler
15187             lt_prog_compiler_wl_CXX='--backend -Wl,'
15188             lt_prog_compiler_pic_CXX='-fPIC'
15189             ;;
15190           icpc* | ecpc* )
15191             # Intel C++
15192             lt_prog_compiler_wl_CXX='-Wl,'
15193             lt_prog_compiler_pic_CXX='-KPIC'
15194             lt_prog_compiler_static_CXX='-static'
15195             ;;
15196           pgCC* | pgcpp*)
15197             # Portland Group C++ compiler
15198             lt_prog_compiler_wl_CXX='-Wl,'
15199             lt_prog_compiler_pic_CXX='-fpic'
15200             lt_prog_compiler_static_CXX='-Bstatic'
15201             ;;
15202           cxx*)
15203             # Compaq C++
15204             # Make sure the PIC flag is empty.  It appears that all Alpha
15205             # Linux and Compaq Tru64 Unix objects are PIC.
15206             lt_prog_compiler_pic_CXX=
15207             lt_prog_compiler_static_CXX='-non_shared'
15208             ;;
15209           xlc* | xlC*)
15210             # IBM XL 8.0 on PPC
15211             lt_prog_compiler_wl_CXX='-Wl,'
15212             lt_prog_compiler_pic_CXX='-qpic'
15213             lt_prog_compiler_static_CXX='-qstaticlink'
15214             ;;
15215           *)
15216             case `$CC -V 2>&1 | sed 5q` in
15217             *Sun\ C*)
15218               # Sun C++ 5.9
15219               lt_prog_compiler_pic_CXX='-KPIC'
15220               lt_prog_compiler_static_CXX='-Bstatic'
15221               lt_prog_compiler_wl_CXX='-Qoption ld '
15222               ;;
15223             esac
15224             ;;
15225         esac
15226         ;;
15227       lynxos*)
15228         ;;
15229       m88k*)
15230         ;;
15231       mvs*)
15232         case $cc_basename in
15233           cxx*)
15234             lt_prog_compiler_pic_CXX='-W c,exportall'
15235             ;;
15236           *)
15237             ;;
15238         esac
15239         ;;
15240       netbsd*)
15241         ;;
15242       *qnx* | *nto*)
15243         # QNX uses GNU C++, but need to define -shared option too, otherwise
15244         # it will coredump.
15245         lt_prog_compiler_pic_CXX='-fPIC -shared'
15246         ;;
15247       osf3* | osf4* | osf5*)
15248         case $cc_basename in
15249           KCC*)
15250             lt_prog_compiler_wl_CXX='--backend -Wl,'
15251             ;;
15252           RCC*)
15253             # Rational C++ 2.4.1
15254             lt_prog_compiler_pic_CXX='-pic'
15255             ;;
15256           cxx*)
15257             # Digital/Compaq C++
15258             lt_prog_compiler_wl_CXX='-Wl,'
15259             # Make sure the PIC flag is empty.  It appears that all Alpha
15260             # Linux and Compaq Tru64 Unix objects are PIC.
15261             lt_prog_compiler_pic_CXX=
15262             lt_prog_compiler_static_CXX='-non_shared'
15263             ;;
15264           *)
15265             ;;
15266         esac
15267         ;;
15268       psos*)
15269         ;;
15270       solaris*)
15271         case $cc_basename in
15272           CC*)
15273             # Sun C++ 4.2, 5.x and Centerline C++
15274             lt_prog_compiler_pic_CXX='-KPIC'
15275             lt_prog_compiler_static_CXX='-Bstatic'
15276             lt_prog_compiler_wl_CXX='-Qoption ld '
15277             ;;
15278           gcx*)
15279             # Green Hills C++ Compiler
15280             lt_prog_compiler_pic_CXX='-PIC'
15281             ;;
15282           *)
15283             ;;
15284         esac
15285         ;;
15286       sunos4*)
15287         case $cc_basename in
15288           CC*)
15289             # Sun C++ 4.x
15290             lt_prog_compiler_pic_CXX='-pic'
15291             lt_prog_compiler_static_CXX='-Bstatic'
15292             ;;
15293           lcc*)
15294             # Lucid
15295             lt_prog_compiler_pic_CXX='-pic'
15296             ;;
15297           *)
15298             ;;
15299         esac
15300         ;;
15301       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15302         case $cc_basename in
15303           CC*)
15304             lt_prog_compiler_wl_CXX='-Wl,'
15305             lt_prog_compiler_pic_CXX='-KPIC'
15306             lt_prog_compiler_static_CXX='-Bstatic'
15307             ;;
15308         esac
15309         ;;
15310       tandem*)
15311         case $cc_basename in
15312           NCC*)
15313             # NonStop-UX NCC 3.20
15314             lt_prog_compiler_pic_CXX='-KPIC'
15315             ;;
15316           *)
15317             ;;
15318         esac
15319         ;;
15320       vxworks*)
15321         ;;
15322       *)
15323         lt_prog_compiler_can_build_shared_CXX=no
15324         ;;
15325     esac
15326   fi
15327
15328 case $host_os in
15329   # For platforms which do not support PIC, -DPIC is meaningless:
15330   *djgpp*)
15331     lt_prog_compiler_pic_CXX=
15332     ;;
15333   *)
15334     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15335     ;;
15336 esac
15337 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15338 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15339
15340
15341
15342 #
15343 # Check to make sure the PIC flag actually works.
15344 #
15345 if test -n "$lt_prog_compiler_pic_CXX"; then
15346   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15348 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351   lt_cv_prog_compiler_pic_works_CXX=no
15352    ac_outfile=conftest.$ac_objext
15353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15355    # Insert the option either (1) after the last *FLAGS variable, or
15356    # (2) before a word containing "conftest.", or (3) at the end.
15357    # Note that $ac_compile itself does not contain backslashes and begins
15358    # with a dollar sign (not a hyphen), so the echo should work correctly.
15359    # The option is referenced via a variable to avoid confusing sed.
15360    lt_compile=`echo "$ac_compile" | $SED \
15361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363    -e 's:$: $lt_compiler_flag:'`
15364    (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
15365    (eval "$lt_compile" 2>conftest.err)
15366    ac_status=$?
15367    cat conftest.err >&5
15368    echo "$as_me:15368: \$? = $ac_status" >&5
15369    if (exit $ac_status) && test -s "$ac_outfile"; then
15370      # The compiler can only warn and ignore the option if not recognized
15371      # So say no if there are warnings other than the usual output.
15372      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15373      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15374      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15375        lt_cv_prog_compiler_pic_works_CXX=yes
15376      fi
15377    fi
15378    $RM conftest*
15379
15380 fi
15381 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15382 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15383
15384 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15385     case $lt_prog_compiler_pic_CXX in
15386      "" | " "*) ;;
15387      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15388      esac
15389 else
15390     lt_prog_compiler_pic_CXX=
15391      lt_prog_compiler_can_build_shared_CXX=no
15392 fi
15393
15394 fi
15395
15396
15397
15398 #
15399 # Check to make sure the static flag actually works.
15400 #
15401 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15402 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15403 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15404 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   lt_cv_prog_compiler_static_works_CXX=no
15408    save_LDFLAGS="$LDFLAGS"
15409    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15410    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15411    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15412      # The linker can only warn and ignore the option if not recognized
15413      # So say no if there are warnings
15414      if test -s conftest.err; then
15415        # Append any errors to the config.log.
15416        cat conftest.err 1>&5
15417        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15418        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15419        if diff conftest.exp conftest.er2 >/dev/null; then
15420          lt_cv_prog_compiler_static_works_CXX=yes
15421        fi
15422      else
15423        lt_cv_prog_compiler_static_works_CXX=yes
15424      fi
15425    fi
15426    $RM -r conftest*
15427    LDFLAGS="$save_LDFLAGS"
15428
15429 fi
15430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15431 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
15432
15433 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15434     :
15435 else
15436     lt_prog_compiler_static_CXX=
15437 fi
15438
15439
15440
15441
15442     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15443 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15445   echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447   lt_cv_prog_compiler_c_o_CXX=no
15448    $RM -r conftest 2>/dev/null
15449    mkdir conftest
15450    cd conftest
15451    mkdir out
15452    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15453
15454    lt_compiler_flag="-o out/conftest2.$ac_objext"
15455    # Insert the option either (1) after the last *FLAGS variable, or
15456    # (2) before a word containing "conftest.", or (3) at the end.
15457    # Note that $ac_compile itself does not contain backslashes and begins
15458    # with a dollar sign (not a hyphen), so the echo should work correctly.
15459    lt_compile=`echo "$ac_compile" | $SED \
15460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15462    -e 's:$: $lt_compiler_flag:'`
15463    (eval echo "\"\$as_me:15463: $lt_compile\"" >&5)
15464    (eval "$lt_compile" 2>out/conftest.err)
15465    ac_status=$?
15466    cat out/conftest.err >&5
15467    echo "$as_me:15467: \$? = $ac_status" >&5
15468    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15469    then
15470      # The compiler can only warn and ignore the option if not recognized
15471      # So say no if there are warnings
15472      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15473      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15474      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15475        lt_cv_prog_compiler_c_o_CXX=yes
15476      fi
15477    fi
15478    chmod u+w . 2>&5
15479    $RM conftest*
15480    # SGI C++ compiler will create directory out/ii_files/ for
15481    # template instantiation
15482    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15483    $RM out/* && rmdir out
15484    cd ..
15485    $RM -r conftest
15486    $RM conftest*
15487
15488 fi
15489 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15490 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15491
15492
15493
15494     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15495 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15496 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499   lt_cv_prog_compiler_c_o_CXX=no
15500    $RM -r conftest 2>/dev/null
15501    mkdir conftest
15502    cd conftest
15503    mkdir out
15504    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15505
15506    lt_compiler_flag="-o out/conftest2.$ac_objext"
15507    # Insert the option either (1) after the last *FLAGS variable, or
15508    # (2) before a word containing "conftest.", or (3) at the end.
15509    # Note that $ac_compile itself does not contain backslashes and begins
15510    # with a dollar sign (not a hyphen), so the echo should work correctly.
15511    lt_compile=`echo "$ac_compile" | $SED \
15512    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15513    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15514    -e 's:$: $lt_compiler_flag:'`
15515    (eval echo "\"\$as_me:15515: $lt_compile\"" >&5)
15516    (eval "$lt_compile" 2>out/conftest.err)
15517    ac_status=$?
15518    cat out/conftest.err >&5
15519    echo "$as_me:15519: \$? = $ac_status" >&5
15520    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15521    then
15522      # The compiler can only warn and ignore the option if not recognized
15523      # So say no if there are warnings
15524      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15525      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15526      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15527        lt_cv_prog_compiler_c_o_CXX=yes
15528      fi
15529    fi
15530    chmod u+w . 2>&5
15531    $RM conftest*
15532    # SGI C++ compiler will create directory out/ii_files/ for
15533    # template instantiation
15534    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15535    $RM out/* && rmdir out
15536    cd ..
15537    $RM -r conftest
15538    $RM conftest*
15539
15540 fi
15541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15542 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15543
15544
15545
15546
15547 hard_links="nottested"
15548 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15549   # do not overwrite the value of need_locks provided by the user
15550   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15552   hard_links=yes
15553   $RM conftest*
15554   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15555   touch conftest.a
15556   ln conftest.a conftest.b 2>&5 || hard_links=no
15557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15558   { echo "$as_me:$LINENO: result: $hard_links" >&5
15559 echo "${ECHO_T}$hard_links" >&6; }
15560   if test "$hard_links" = no; then
15561     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15563     need_locks=warn
15564   fi
15565 else
15566   need_locks=no
15567 fi
15568
15569
15570
15571     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15573
15574   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15575   case $host_os in
15576   aix[4-9]*)
15577     # If we're using GNU nm, then we don't want the "-C" option.
15578     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15579     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15580       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'
15581     else
15582       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'
15583     fi
15584     ;;
15585   pw32*)
15586     export_symbols_cmds_CXX="$ltdll_cmds"
15587   ;;
15588   cygwin* | mingw*)
15589     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'
15590   ;;
15591   *)
15592     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15593   ;;
15594   esac
15595   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15596
15597 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15598 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15599 test "$ld_shlibs_CXX" = no && can_build_shared=no
15600
15601 with_gnu_ld_CXX=$with_gnu_ld
15602
15603
15604
15605
15606
15607
15608 #
15609 # Do we need to explicitly link libc?
15610 #
15611 case "x$archive_cmds_need_lc_CXX" in
15612 x|xyes)
15613   # Assume -lc should be added
15614   archive_cmds_need_lc_CXX=yes
15615
15616   if test "$enable_shared" = yes && test "$GCC" = yes; then
15617     case $archive_cmds_CXX in
15618     *'~'*)
15619       # FIXME: we may have to deal with multi-command sequences.
15620       ;;
15621     '$CC '*)
15622       # Test whether the compiler implicitly links with -lc since on some
15623       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15624       # to ld, don't add -lc before -lgcc.
15625       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15627       $RM conftest*
15628       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15629
15630       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631   (eval $ac_compile) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); } 2>conftest.err; then
15635         soname=conftest
15636         lib=conftest
15637         libobjs=conftest.$ac_objext
15638         deplibs=
15639         wl=$lt_prog_compiler_wl_CXX
15640         pic_flag=$lt_prog_compiler_pic_CXX
15641         compiler_flags=-v
15642         linker_flags=-v
15643         verstring=
15644         output_objdir=.
15645         libname=conftest
15646         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15647         allow_undefined_flag_CXX=
15648         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15649   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); }
15653         then
15654           archive_cmds_need_lc_CXX=no
15655         else
15656           archive_cmds_need_lc_CXX=yes
15657         fi
15658         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15659       else
15660         cat conftest.err 1>&5
15661       fi
15662       $RM conftest*
15663       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15664 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15665       ;;
15666     esac
15667   fi
15668   ;;
15669 esac
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15736
15737 library_names_spec=
15738 libname_spec='lib$name'
15739 soname_spec=
15740 shrext_cmds=".so"
15741 postinstall_cmds=
15742 postuninstall_cmds=
15743 finish_cmds=
15744 finish_eval=
15745 shlibpath_var=
15746 shlibpath_overrides_runpath=unknown
15747 version_type=none
15748 dynamic_linker="$host_os ld.so"
15749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15750 need_lib_prefix=unknown
15751 hardcode_into_libs=no
15752
15753 # when you set need_version to no, make sure it does not cause -set_version
15754 # flags to be left without arguments
15755 need_version=unknown
15756
15757 case $host_os in
15758 aix3*)
15759   version_type=linux
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15761   shlibpath_var=LIBPATH
15762
15763   # AIX 3 has no versioning support, so we append a major version to the name.
15764   soname_spec='${libname}${release}${shared_ext}$major'
15765   ;;
15766
15767 aix[4-9]*)
15768   version_type=linux
15769   need_lib_prefix=no
15770   need_version=no
15771   hardcode_into_libs=yes
15772   if test "$host_cpu" = ia64; then
15773     # AIX 5 supports IA64
15774     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15775     shlibpath_var=LD_LIBRARY_PATH
15776   else
15777     # With GCC up to 2.95.x, collect2 would create an import file
15778     # for dependence libraries.  The import file would start with
15779     # the line `#! .'.  This would cause the generated library to
15780     # depend on `.', always an invalid library.  This was fixed in
15781     # development snapshots of GCC prior to 3.0.
15782     case $host_os in
15783       aix4 | aix4.[01] | aix4.[01].*)
15784       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15785            echo ' yes '
15786            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15787         :
15788       else
15789         can_build_shared=no
15790       fi
15791       ;;
15792     esac
15793     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15794     # soname into executable. Probably we can add versioning support to
15795     # collect2, so additional links can be useful in future.
15796     if test "$aix_use_runtimelinking" = yes; then
15797       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15798       # instead of lib<name>.a to let people know that these are not
15799       # typical AIX shared libraries.
15800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801     else
15802       # We preserve .a as extension for shared libraries through AIX4.2
15803       # and later when we are not doing run time linking.
15804       library_names_spec='${libname}${release}.a $libname.a'
15805       soname_spec='${libname}${release}${shared_ext}$major'
15806     fi
15807     shlibpath_var=LIBPATH
15808   fi
15809   ;;
15810
15811 amigaos*)
15812   case $host_cpu in
15813   powerpc)
15814     # Since July 2007 AmigaOS4 officially supports .so libraries.
15815     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817     ;;
15818   m68k)
15819     library_names_spec='$libname.ixlibrary $libname.a'
15820     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15821     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'
15822     ;;
15823   esac
15824   ;;
15825
15826 beos*)
15827   library_names_spec='${libname}${shared_ext}'
15828   dynamic_linker="$host_os ld.so"
15829   shlibpath_var=LIBRARY_PATH
15830   ;;
15831
15832 bsdi[45]*)
15833   version_type=linux
15834   need_version=no
15835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836   soname_spec='${libname}${release}${shared_ext}$major'
15837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15838   shlibpath_var=LD_LIBRARY_PATH
15839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15841   # the default ld.so.conf also contains /usr/contrib/lib and
15842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15843   # libtool to hard-code these into programs
15844   ;;
15845
15846 cygwin* | mingw* | pw32*)
15847   version_type=windows
15848   shrext_cmds=".dll"
15849   need_version=no
15850   need_lib_prefix=no
15851
15852   case $GCC,$host_os in
15853   yes,cygwin* | yes,mingw* | yes,pw32*)
15854     library_names_spec='$libname.dll.a'
15855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15856     postinstall_cmds='base_file=`basename \${file}`~
15857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15858       dldir=$destdir/`dirname \$dlpath`~
15859       test -d \$dldir || mkdir -p \$dldir~
15860       $install_prog $dir/$dlname \$dldir/$dlname~
15861       chmod a+x \$dldir/$dlname~
15862       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15863         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15864       fi'
15865     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15866       dlpath=$dir/\$dldll~
15867        $RM \$dlpath'
15868     shlibpath_overrides_runpath=yes
15869
15870     case $host_os in
15871     cygwin*)
15872       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15873       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15874       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15875       ;;
15876     mingw*)
15877       # MinGW DLLs use traditional 'lib' prefix
15878       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15879       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15880       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15881         # It is most probably a Windows format PATH printed by
15882         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15883         # path with ; separators, and with drive letters. We can handle the
15884         # drive letters (cygwin fileutils understands them), so leave them,
15885         # especially as we might pass files found there to a mingw objdump,
15886         # which wouldn't understand a cygwinified path. Ahh.
15887         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15888       else
15889         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15890       fi
15891       ;;
15892     pw32*)
15893       # pw32 DLLs use 'pw' prefix rather than 'lib'
15894       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15895       ;;
15896     esac
15897     ;;
15898
15899   *)
15900     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15901     ;;
15902   esac
15903   dynamic_linker='Win32 ld.exe'
15904   # FIXME: first we should search . and the directory the executable is in
15905   shlibpath_var=PATH
15906   ;;
15907
15908 darwin* | rhapsody*)
15909   dynamic_linker="$host_os dyld"
15910   version_type=darwin
15911   need_lib_prefix=no
15912   need_version=no
15913   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15914   soname_spec='${libname}${release}${major}$shared_ext'
15915   shlibpath_overrides_runpath=yes
15916   shlibpath_var=DYLD_LIBRARY_PATH
15917   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15918
15919   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15920   ;;
15921
15922 dgux*)
15923   version_type=linux
15924   need_lib_prefix=no
15925   need_version=no
15926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15927   soname_spec='${libname}${release}${shared_ext}$major'
15928   shlibpath_var=LD_LIBRARY_PATH
15929   ;;
15930
15931 freebsd1*)
15932   dynamic_linker=no
15933   ;;
15934
15935 freebsd* | dragonfly*)
15936   # DragonFly does not have aout.  When/if they implement a new
15937   # versioning mechanism, adjust this.
15938   if test -x /usr/bin/objformat; then
15939     objformat=`/usr/bin/objformat`
15940   else
15941     case $host_os in
15942     freebsd[123]*) objformat=aout ;;
15943     *) objformat=elf ;;
15944     esac
15945   fi
15946   version_type=freebsd-$objformat
15947   case $version_type in
15948     freebsd-elf*)
15949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15950       need_version=no
15951       need_lib_prefix=no
15952       ;;
15953     freebsd-*)
15954       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15955       need_version=yes
15956       ;;
15957   esac
15958   shlibpath_var=LD_LIBRARY_PATH
15959   case $host_os in
15960   freebsd2*)
15961     shlibpath_overrides_runpath=yes
15962     ;;
15963   freebsd3.[01]* | freebsdelf3.[01]*)
15964     shlibpath_overrides_runpath=yes
15965     hardcode_into_libs=yes
15966     ;;
15967   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15968   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15969     shlibpath_overrides_runpath=no
15970     hardcode_into_libs=yes
15971     ;;
15972   *) # from 4.6 on, and DragonFly
15973     shlibpath_overrides_runpath=yes
15974     hardcode_into_libs=yes
15975     ;;
15976   esac
15977   ;;
15978
15979 gnu*)
15980   version_type=linux
15981   need_lib_prefix=no
15982   need_version=no
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   shlibpath_var=LD_LIBRARY_PATH
15986   hardcode_into_libs=yes
15987   ;;
15988
15989 hpux9* | hpux10* | hpux11*)
15990   # Give a soname corresponding to the major version so that dld.sl refuses to
15991   # link against other versions.
15992   version_type=sunos
15993   need_lib_prefix=no
15994   need_version=no
15995   case $host_cpu in
15996   ia64*)
15997     shrext_cmds='.so'
15998     hardcode_into_libs=yes
15999     dynamic_linker="$host_os dld.so"
16000     shlibpath_var=LD_LIBRARY_PATH
16001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003     soname_spec='${libname}${release}${shared_ext}$major'
16004     if test "X$HPUX_IA64_MODE" = X32; then
16005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16006     else
16007       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16008     fi
16009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16010     ;;
16011   hppa*64*)
16012     shrext_cmds='.sl'
16013     hardcode_into_libs=yes
16014     dynamic_linker="$host_os dld.sl"
16015     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018     soname_spec='${libname}${release}${shared_ext}$major'
16019     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021     ;;
16022   *)
16023     shrext_cmds='.sl'
16024     dynamic_linker="$host_os dld.sl"
16025     shlibpath_var=SHLIB_PATH
16026     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028     soname_spec='${libname}${release}${shared_ext}$major'
16029     ;;
16030   esac
16031   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16032   postinstall_cmds='chmod 555 $lib'
16033   ;;
16034
16035 interix[3-9]*)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   shlibpath_overrides_runpath=no
16044   hardcode_into_libs=yes
16045   ;;
16046
16047 irix5* | irix6* | nonstopux*)
16048   case $host_os in
16049     nonstopux*) version_type=nonstopux ;;
16050     *)
16051         if test "$lt_cv_prog_gnu_ld" = yes; then
16052                 version_type=linux
16053         else
16054                 version_type=irix
16055         fi ;;
16056   esac
16057   need_lib_prefix=no
16058   need_version=no
16059   soname_spec='${libname}${release}${shared_ext}$major'
16060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16061   case $host_os in
16062   irix5* | nonstopux*)
16063     libsuff= shlibsuff=
16064     ;;
16065   *)
16066     case $LD in # libtool.m4 will add one of these switches to LD
16067     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068       libsuff= shlibsuff= libmagic=32-bit;;
16069     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070       libsuff=32 shlibsuff=N32 libmagic=N32;;
16071     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16073     *) libsuff= shlibsuff= libmagic=never-match;;
16074     esac
16075     ;;
16076   esac
16077   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078   shlibpath_overrides_runpath=no
16079   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16080   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16081   hardcode_into_libs=yes
16082   ;;
16083
16084 # No shared lib support for Linux oldld, aout, or coff.
16085 linux*oldld* | linux*aout* | linux*coff*)
16086   dynamic_linker=no
16087   ;;
16088
16089 # This must be Linux ELF.
16090 linux* | k*bsd*-gnu)
16091   version_type=linux
16092   need_lib_prefix=no
16093   need_version=no
16094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095   soname_spec='${libname}${release}${shared_ext}$major'
16096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16097   shlibpath_var=LD_LIBRARY_PATH
16098   shlibpath_overrides_runpath=no
16099   # Some binutils ld are patched to set DT_RUNPATH
16100   save_LDFLAGS=$LDFLAGS
16101   save_libdir=$libdir
16102   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16103        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16104   cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110
16111 int
16112 main ()
16113 {
16114
16115   ;
16116   return 0;
16117 }
16118 _ACEOF
16119 rm -f conftest.$ac_objext conftest$ac_exeext
16120 if { (ac_try="$ac_link"
16121 case "(($ac_try" in
16122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123   *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126   (eval "$ac_link") 2>conftest.er1
16127   ac_status=$?
16128   grep -v '^ *+' conftest.er1 >conftest.err
16129   rm -f conftest.er1
16130   cat conftest.err >&5
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } && {
16133          test -z "$ac_cxx_werror_flag" ||
16134          test ! -s conftest.err
16135        } && test -s conftest$ac_exeext &&
16136        $as_test_x conftest$ac_exeext; then
16137   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16138   shlibpath_overrides_runpath=yes
16139 fi
16140
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145
16146 fi
16147
16148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16149       conftest$ac_exeext conftest.$ac_ext
16150   LDFLAGS=$save_LDFLAGS
16151   libdir=$save_libdir
16152
16153   # This implies no fast_install, which is unacceptable.
16154   # Some rework will be needed to allow for fast_install
16155   # before this can be enabled.
16156   hardcode_into_libs=yes
16157
16158   # Append ld.so.conf contents to the search path
16159   if test -f /etc/ld.so.conf; then
16160     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' ' '`
16161     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16162   fi
16163
16164   # We used to test for /lib/ld.so.1 and disable shared libraries on
16165   # powerpc, because MkLinux only supported shared libraries with the
16166   # GNU dynamic linker.  Since this was broken with cross compilers,
16167   # most powerpc-linux boxes support dynamic linking these days and
16168   # people can always --disable-shared, the test was removed, and we
16169   # assume the GNU/Linux dynamic linker is in use.
16170   dynamic_linker='GNU/Linux ld.so'
16171   ;;
16172
16173 netbsd*)
16174   version_type=sunos
16175   need_lib_prefix=no
16176   need_version=no
16177   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16179     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16180     dynamic_linker='NetBSD (a.out) ld.so'
16181   else
16182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16183     soname_spec='${libname}${release}${shared_ext}$major'
16184     dynamic_linker='NetBSD ld.elf_so'
16185   fi
16186   shlibpath_var=LD_LIBRARY_PATH
16187   shlibpath_overrides_runpath=yes
16188   hardcode_into_libs=yes
16189   ;;
16190
16191 newsos6)
16192   version_type=linux
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   shlibpath_overrides_runpath=yes
16196   ;;
16197
16198 *nto* | *qnx*)
16199   version_type=qnx
16200   need_lib_prefix=no
16201   need_version=no
16202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203   soname_spec='${libname}${release}${shared_ext}$major'
16204   shlibpath_var=LD_LIBRARY_PATH
16205   shlibpath_overrides_runpath=no
16206   hardcode_into_libs=yes
16207   dynamic_linker='ldqnx.so'
16208   ;;
16209
16210 openbsd*)
16211   version_type=sunos
16212   sys_lib_dlsearch_path_spec="/usr/lib"
16213   need_lib_prefix=no
16214   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16215   case $host_os in
16216     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16217     *)                          need_version=no  ;;
16218   esac
16219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16221   shlibpath_var=LD_LIBRARY_PATH
16222   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16223     case $host_os in
16224       openbsd2.[89] | openbsd2.[89].*)
16225         shlibpath_overrides_runpath=no
16226         ;;
16227       *)
16228         shlibpath_overrides_runpath=yes
16229         ;;
16230       esac
16231   else
16232     shlibpath_overrides_runpath=yes
16233   fi
16234   ;;
16235
16236 os2*)
16237   libname_spec='$name'
16238   shrext_cmds=".dll"
16239   need_lib_prefix=no
16240   library_names_spec='$libname${shared_ext} $libname.a'
16241   dynamic_linker='OS/2 ld.exe'
16242   shlibpath_var=LIBPATH
16243   ;;
16244
16245 osf3* | osf4* | osf5*)
16246   version_type=osf
16247   need_lib_prefix=no
16248   need_version=no
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16253   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16254   ;;
16255
16256 rdos*)
16257   dynamic_linker=no
16258   ;;
16259
16260 solaris*)
16261   version_type=linux
16262   need_lib_prefix=no
16263   need_version=no
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265   soname_spec='${libname}${release}${shared_ext}$major'
16266   shlibpath_var=LD_LIBRARY_PATH
16267   shlibpath_overrides_runpath=yes
16268   hardcode_into_libs=yes
16269   # ldd complains unless libraries are executable
16270   postinstall_cmds='chmod +x $lib'
16271   ;;
16272
16273 sunos4*)
16274   version_type=sunos
16275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16276   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16277   shlibpath_var=LD_LIBRARY_PATH
16278   shlibpath_overrides_runpath=yes
16279   if test "$with_gnu_ld" = yes; then
16280     need_lib_prefix=no
16281   fi
16282   need_version=yes
16283   ;;
16284
16285 sysv4 | sysv4.3*)
16286   version_type=linux
16287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288   soname_spec='${libname}${release}${shared_ext}$major'
16289   shlibpath_var=LD_LIBRARY_PATH
16290   case $host_vendor in
16291     sni)
16292       shlibpath_overrides_runpath=no
16293       need_lib_prefix=no
16294       runpath_var=LD_RUN_PATH
16295       ;;
16296     siemens)
16297       need_lib_prefix=no
16298       ;;
16299     motorola)
16300       need_lib_prefix=no
16301       need_version=no
16302       shlibpath_overrides_runpath=no
16303       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16304       ;;
16305   esac
16306   ;;
16307
16308 sysv4*MP*)
16309   if test -d /usr/nec ;then
16310     version_type=linux
16311     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16312     soname_spec='$libname${shared_ext}.$major'
16313     shlibpath_var=LD_LIBRARY_PATH
16314   fi
16315   ;;
16316
16317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16318   version_type=freebsd-elf
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   shlibpath_var=LD_LIBRARY_PATH
16324   shlibpath_overrides_runpath=yes
16325   hardcode_into_libs=yes
16326   if test "$with_gnu_ld" = yes; then
16327     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16328   else
16329     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16330     case $host_os in
16331       sco3.2v5*)
16332         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16333         ;;
16334     esac
16335   fi
16336   sys_lib_dlsearch_path_spec='/usr/lib'
16337   ;;
16338
16339 tpf*)
16340   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16341   version_type=linux
16342   need_lib_prefix=no
16343   need_version=no
16344   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   shlibpath_overrides_runpath=no
16347   hardcode_into_libs=yes
16348   ;;
16349
16350 uts4*)
16351   version_type=linux
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353   soname_spec='${libname}${release}${shared_ext}$major'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   ;;
16356
16357 *)
16358   dynamic_linker=no
16359   ;;
16360 esac
16361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16362 echo "${ECHO_T}$dynamic_linker" >&6; }
16363 test "$dynamic_linker" = no && can_build_shared=no
16364
16365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16366 if test "$GCC" = yes; then
16367   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16368 fi
16369
16370 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16371   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16372 fi
16373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16374   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16375 fi
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16413 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16414 hardcode_action_CXX=
16415 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16416    test -n "$runpath_var_CXX" ||
16417    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16418
16419   # We can hardcode non-existent directories.
16420   if test "$hardcode_direct_CXX" != no &&
16421      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16422      # have to relink, otherwise we might link with an installed library
16423      # when we should be linking with a yet-to-be-installed one
16424      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16425      test "$hardcode_minus_L_CXX" != no; then
16426     # Linking always hardcodes the temporary library directory.
16427     hardcode_action_CXX=relink
16428   else
16429     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16430     hardcode_action_CXX=immediate
16431   fi
16432 else
16433   # We cannot hardcode anything, or else we can only hardcode existing
16434   # directories.
16435   hardcode_action_CXX=unsupported
16436 fi
16437 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16438 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16439
16440 if test "$hardcode_action_CXX" = relink ||
16441    test "$inherit_rpath_CXX" = yes; then
16442   # Fast installation is not supported
16443   enable_fast_install=no
16444 elif test "$shlibpath_overrides_runpath" = yes ||
16445      test "$enable_shared" = no; then
16446   # Fast installation is not necessary
16447   enable_fast_install=needless
16448 fi
16449
16450
16451
16452
16453
16454
16455
16456   fi # test -n "$compiler"
16457
16458   CC=$lt_save_CC
16459   LDCXX=$LD
16460   LD=$lt_save_LD
16461   GCC=$lt_save_GCC
16462   with_gnu_ld=$lt_save_with_gnu_ld
16463   lt_cv_path_LDCXX=$lt_cv_path_LD
16464   lt_cv_path_LD=$lt_save_path_LD
16465   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16466   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16467 fi # test "$_lt_caught_CXX_error" != yes
16468
16469 ac_ext=c
16470 ac_cpp='$CPP $CPPFLAGS'
16471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487         ac_config_commands="$ac_config_commands libtool"
16488
16489
16490
16491
16492 # Only expand once:
16493
16494
16495   # Set options
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508 # Check whether --with-included_ltdl was given.
16509 if test "${with_included_ltdl+set}" = set; then
16510   withval=$with_included_ltdl;
16511 fi
16512
16513
16514 if test "x$with_included_ltdl" != xyes; then
16515   # We are not being forced to use the included libltdl sources, so
16516   # decide whether there is a useful installed version we can use.
16517   { echo "$as_me:$LINENO: checking for ltdl.h" >&5
16518 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
16519 if test "${ac_cv_header_ltdl_h+set}" = set; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 $ac_includes_default
16529
16530
16531 #include <ltdl.h>
16532 _ACEOF
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
16535 case "(($ac_try" in
16536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537   *) ac_try_echo=$ac_try;;
16538 esac
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540   (eval "$ac_compile") 2>conftest.er1
16541   ac_status=$?
16542   grep -v '^ *+' conftest.er1 >conftest.err
16543   rm -f conftest.er1
16544   cat conftest.err >&5
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); } && {
16547          test -z "$ac_c_werror_flag" ||
16548          test ! -s conftest.err
16549        } && test -s conftest.$ac_objext; then
16550   ac_cv_header_ltdl_h=yes
16551 else
16552   echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555         ac_cv_header_ltdl_h=no
16556 fi
16557
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 fi
16560 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16561 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
16562 if test $ac_cv_header_ltdl_h = yes; then
16563   { echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16564 echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6; }
16565 if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 $ac_includes_default
16575             #include <ltdl.h>
16576
16577 int
16578 main ()
16579 {
16580 #ifndef lt_dlinterface_register
16581   (void) lt_dlinterface_register;
16582 #endif
16583
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 rm -f conftest.$ac_objext
16589 if { (ac_try="$ac_compile"
16590 case "(($ac_try" in
16591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592   *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595   (eval "$ac_compile") 2>conftest.er1
16596   ac_status=$?
16597   grep -v '^ *+' conftest.er1 >conftest.err
16598   rm -f conftest.er1
16599   cat conftest.err >&5
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); } && {
16602          test -z "$ac_c_werror_flag" ||
16603          test ! -s conftest.err
16604        } && test -s conftest.$ac_objext; then
16605   ac_cv_have_decl_lt_dlinterface_register=yes
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610         ac_cv_have_decl_lt_dlinterface_register=no
16611 fi
16612
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 fi
16615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16616 echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6; }
16617 if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16618   { echo "$as_me:$LINENO: checking for lt_dlinterface_register in -lltdl" >&5
16619 echo $ECHO_N "checking for lt_dlinterface_register in -lltdl... $ECHO_C" >&6; }
16620 if test "${ac_cv_lib_ltdl_lt_dlinterface_register+set}" = set; then
16621   echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623   ac_check_lib_save_LIBS=$LIBS
16624 LIBS="-lltdl  $LIBS"
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h.  */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h.  */
16631
16632 /* Override any GCC internal prototype to avoid an error.
16633    Use char because int might match the return type of a GCC
16634    builtin and then its argument prototype would still apply.  */
16635 #ifdef __cplusplus
16636 extern "C"
16637 #endif
16638 char lt_dlinterface_register ();
16639 int
16640 main ()
16641 {
16642 return lt_dlinterface_register ();
16643   ;
16644   return 0;
16645 }
16646 _ACEOF
16647 rm -f conftest.$ac_objext conftest$ac_exeext
16648 if { (ac_try="$ac_link"
16649 case "(($ac_try" in
16650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651   *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654   (eval "$ac_link") 2>conftest.er1
16655   ac_status=$?
16656   grep -v '^ *+' conftest.er1 >conftest.err
16657   rm -f conftest.er1
16658   cat conftest.err >&5
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); } && {
16661          test -z "$ac_c_werror_flag" ||
16662          test ! -s conftest.err
16663        } && test -s conftest$ac_exeext &&
16664        $as_test_x conftest$ac_exeext; then
16665   ac_cv_lib_ltdl_lt_dlinterface_register=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670         ac_cv_lib_ltdl_lt_dlinterface_register=no
16671 fi
16672
16673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16674       conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_lib_save_LIBS
16676 fi
16677 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinterface_register" >&5
16678 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinterface_register" >&6; }
16679 if test $ac_cv_lib_ltdl_lt_dlinterface_register = yes; then
16680   with_included_ltdl=no
16681 else
16682   with_included_ltdl=yes
16683 fi
16684
16685 else
16686   with_included_ltdl=yes
16687 fi
16688
16689 else
16690   with_included_ltdl=yes
16691 fi
16692
16693
16694 fi
16695
16696
16697
16698
16699 # Check whether --with-ltdl_include was given.
16700 if test "${with_ltdl_include+set}" = set; then
16701   withval=$with_ltdl_include;
16702 fi
16703
16704
16705 if test -n "$with_ltdl_include"; then
16706   if test -f "$with_ltdl_include/ltdl.h"; then :
16707   else
16708     { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16709 echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16710    { (exit 1); exit 1; }; }
16711   fi
16712 else
16713   with_ltdl_include=no
16714 fi
16715
16716
16717 # Check whether --with-ltdl_lib was given.
16718 if test "${with_ltdl_lib+set}" = set; then
16719   withval=$with_ltdl_lib;
16720 fi
16721
16722
16723 if test -n "$with_ltdl_lib"; then
16724   if test -f "$with_ltdl_lib/libltdl.la"; then :
16725   else
16726     { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16727 echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16728    { (exit 1); exit 1; }; }
16729   fi
16730 else
16731   with_ltdl_lib=no
16732 fi
16733
16734 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16735   ,yes,no,no,)
16736         case $enable_ltdl_convenience in
16737   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16738 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16739    { (exit 1); exit 1; }; } ;;
16740   "") enable_ltdl_convenience=yes
16741       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16742 esac
16743 LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16744 LTDLDEPS=$LIBLTDL
16745 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16746
16747
16748
16749
16750
16751 # For backwards non-gettext consistent compatibility...
16752 INCLTDL="$LTDLINCL"
16753
16754
16755         ;;
16756   ,no,no,no,)
16757         # If the included ltdl is not to be used, then use the
16758         # preinstalled libltdl we found.
16759
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_LTDL 1
16762 _ACEOF
16763
16764         LIBLTDL=-lltdl
16765         LTDLDEPS=
16766         LTDLINCL=
16767         ;;
16768   ,no*,no,*)
16769         { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16770 echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16771    { (exit 1); exit 1; }; }
16772         ;;
16773   *)    with_included_ltdl=no
16774         LIBLTDL="-L$with_ltdl_lib -lltdl"
16775         LTDLDEPS=
16776         LTDLINCL="-I$with_ltdl_include"
16777         ;;
16778 esac
16779 INCLTDL="$LTDLINCL"
16780
16781 # Report our decision...
16782 { echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16783 echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6; }
16784 { echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16785 echo "${ECHO_T}$LTDLINCL" >&6; }
16786 { echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16787 echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6; }
16788 { echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16789 echo "${ECHO_T}$LIBLTDL" >&6; }
16790
16791
16792
16793 # lt_cv_dlopen_self gets defined by LT_SYS_DLOPEN_SELF, called by LT_INIT
16794 if test "$lt_cv_dlopen_self" = yes; then
16795
16796 cat >>confdefs.h <<\_ACEOF
16797 #define LTDL_DLOPEN_SELF_WORKS 1
16798 _ACEOF
16799
16800 fi
16801
16802 # Check whether --enable-ltdl-install was given.
16803 if test "${enable_ltdl_install+set}" = set; then
16804   enableval=$enable_ltdl_install;
16805 fi
16806
16807
16808 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16809   *yes*) ;;
16810   *) enable_ltdl_convenience=yes ;;
16811 esac
16812
16813  if test x"${enable_ltdl_install-no}" != xno; then
16814   INSTALL_LTDL_TRUE=
16815   INSTALL_LTDL_FALSE='#'
16816 else
16817   INSTALL_LTDL_TRUE='#'
16818   INSTALL_LTDL_FALSE=
16819 fi
16820
16821   if test x"${enable_ltdl_convenience-no}" != xno; then
16822   CONVENIENCE_LTDL_TRUE=
16823   CONVENIENCE_LTDL_FALSE='#'
16824 else
16825   CONVENIENCE_LTDL_TRUE='#'
16826   CONVENIENCE_LTDL_FALSE=
16827 fi
16828
16829
16830
16831     subdirs="$subdirs libltdl"
16832
16833
16834
16835
16836
16837 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16838 # the user used.  This is so that ltdl.h can pick up the parent projects
16839 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16840 # definitions required by ltdl.c.
16841 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16852 do
16853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 $ac_includes_default
16866
16867 #include <$ac_header>
16868 _ACEOF
16869 rm -f conftest.$ac_objext
16870 if { (ac_try="$ac_compile"
16871 case "(($ac_try" in
16872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873   *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876   (eval "$ac_compile") 2>conftest.er1
16877   ac_status=$?
16878   grep -v '^ *+' conftest.er1 >conftest.err
16879   rm -f conftest.er1
16880   cat conftest.err >&5
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); } && {
16883          test -z "$ac_c_werror_flag" ||
16884          test ! -s conftest.err
16885        } && test -s conftest.$ac_objext; then
16886   eval "$as_ac_Header=yes"
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891         eval "$as_ac_Header=no"
16892 fi
16893
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 fi
16896 ac_res=`eval echo '${'$as_ac_Header'}'`
16897                { echo "$as_me:$LINENO: result: $ac_res" >&5
16898 echo "${ECHO_T}$ac_res" >&6; }
16899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16900   cat >>confdefs.h <<_ACEOF
16901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16902 _ACEOF
16903
16904 fi
16905
16906 done
16907
16908
16909
16910
16911
16912 for ac_func in closedir opendir readdir
16913 do
16914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 else
16920   cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h.  */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h.  */
16926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16928 #define $ac_func innocuous_$ac_func
16929
16930 /* System header to define __stub macros and hopefully few prototypes,
16931     which can conflict with char $ac_func (); below.
16932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933     <limits.h> exists even on freestanding compilers.  */
16934
16935 #ifdef __STDC__
16936 # include <limits.h>
16937 #else
16938 # include <assert.h>
16939 #endif
16940
16941 #undef $ac_func
16942
16943 /* Override any GCC internal prototype to avoid an error.
16944    Use char because int might match the return type of a GCC
16945    builtin and then its argument prototype would still apply.  */
16946 #ifdef __cplusplus
16947 extern "C"
16948 #endif
16949 char $ac_func ();
16950 /* The GNU C library defines this for functions which it implements
16951     to always fail with ENOSYS.  Some functions are actually named
16952     something starting with __ and the normal name is an alias.  */
16953 #if defined __stub_$ac_func || defined __stub___$ac_func
16954 choke me
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 return $ac_func ();
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_link") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } && {
16979          test -z "$ac_c_werror_flag" ||
16980          test ! -s conftest.err
16981        } && test -s conftest$ac_exeext &&
16982        $as_test_x conftest$ac_exeext; then
16983   eval "$as_ac_var=yes"
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988         eval "$as_ac_var=no"
16989 fi
16990
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992       conftest$ac_exeext conftest.$ac_ext
16993 fi
16994 ac_res=`eval echo '${'$as_ac_var'}'`
16995                { echo "$as_me:$LINENO: result: $ac_res" >&5
16996 echo "${ECHO_T}$ac_res" >&6; }
16997 if test `eval echo '${'$as_ac_var'}'` = yes; then
16998   cat >>confdefs.h <<_ACEOF
16999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17000 _ACEOF
17001
17002 else
17003
17004
17005
17006
17007
17008
17009   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17010
17011 fi
17012 done
17013
17014
17015
17016 for ac_func in strlcat strlcpy
17017 do
17018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h.  */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h.  */
17030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17032 #define $ac_func innocuous_$ac_func
17033
17034 /* System header to define __stub macros and hopefully few prototypes,
17035     which can conflict with char $ac_func (); below.
17036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17037     <limits.h> exists even on freestanding compilers.  */
17038
17039 #ifdef __STDC__
17040 # include <limits.h>
17041 #else
17042 # include <assert.h>
17043 #endif
17044
17045 #undef $ac_func
17046
17047 /* Override any GCC internal prototype to avoid an error.
17048    Use char because int might match the return type of a GCC
17049    builtin and then its argument prototype would still apply.  */
17050 #ifdef __cplusplus
17051 extern "C"
17052 #endif
17053 char $ac_func ();
17054 /* The GNU C library defines this for functions which it implements
17055     to always fail with ENOSYS.  Some functions are actually named
17056     something starting with __ and the normal name is an alias.  */
17057 #if defined __stub_$ac_func || defined __stub___$ac_func
17058 choke me
17059 #endif
17060
17061 int
17062 main ()
17063 {
17064 return $ac_func ();
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (ac_try="$ac_link"
17071 case "(($ac_try" in
17072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073   *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076   (eval "$ac_link") 2>conftest.er1
17077   ac_status=$?
17078   grep -v '^ *+' conftest.er1 >conftest.err
17079   rm -f conftest.er1
17080   cat conftest.err >&5
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } && {
17083          test -z "$ac_c_werror_flag" ||
17084          test ! -s conftest.err
17085        } && test -s conftest$ac_exeext &&
17086        $as_test_x conftest$ac_exeext; then
17087   eval "$as_ac_var=yes"
17088 else
17089   echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092         eval "$as_ac_var=no"
17093 fi
17094
17095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17096       conftest$ac_exeext conftest.$ac_ext
17097 fi
17098 ac_res=`eval echo '${'$as_ac_var'}'`
17099                { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17101 if test `eval echo '${'$as_ac_var'}'` = yes; then
17102   cat >>confdefs.h <<_ACEOF
17103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17104 _ACEOF
17105
17106 else
17107
17108
17109
17110
17111
17112
17113   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17114
17115 fi
17116 done
17117
17118
17119 name=ltdl
17120 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
17121
17122
17123
17124
17125
17126
17127
17128
17129 # Only expand once:
17130
17131
17132   ac_aux_dir=
17133 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
17134   if test -f "$ac_dir/install-sh"; then
17135     ac_aux_dir=$ac_dir
17136     ac_install_sh="$ac_aux_dir/install-sh -c"
17137     break
17138   elif test -f "$ac_dir/install.sh"; then
17139     ac_aux_dir=$ac_dir
17140     ac_install_sh="$ac_aux_dir/install.sh -c"
17141     break
17142   elif test -f "$ac_dir/shtool"; then
17143     ac_aux_dir=$ac_dir
17144     ac_install_sh="$ac_aux_dir/shtool install -c"
17145     break
17146   fi
17147 done
17148 if test -z "$ac_aux_dir"; then
17149   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in libltdl/config \"$srcdir\"/libltdl/config" >&5
17150 echo "$as_me: error: cannot find install-sh or install.sh in libltdl/config \"$srcdir\"/libltdl/config" >&2;}
17151    { (exit 1); exit 1; }; }
17152 fi
17153
17154 # These three variables are undocumented and unsupported,
17155 # and are intended to be withdrawn in a future Autoconf release.
17156 # They can cause serious problems if a builder's source tree is in a directory
17157 # whose full name contains unusual characters.
17158 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
17159 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
17160 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
17161
17162
17163   enable_dlopen=yes
17164
17165
17166
17167
17168
17169
17170 fi
17171
17172
17173
17174
17175 # Check whether --enable-strict-dependencies was given.
17176 if test "${enable_strict_dependencies+set}" = set; then
17177   enableval=$enable_strict_dependencies;
17178 fi
17179
17180
17181 docdir='${datadir}/doc/freeradius'
17182 { echo "$as_me:$LINENO: checking docdir" >&5
17183 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
17184
17185 # Check whether --with-docdir was given.
17186 if test "${with_docdir+set}" = set; then
17187   withval=$with_docdir;  case "$withval" in
17188     no)
17189         docdir=no
17190         ;;
17191     yes)
17192         ;;
17193     [\\/$]* | ?:[\\/]* )
17194         docdir="$withval"
17195         ;;
17196     *)
17197         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
17198 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
17199    { (exit 1); exit 1; }; }
17200         ;;
17201   esac
17202
17203 fi
17204
17205
17206 { echo "$as_me:$LINENO: result: $docdir" >&5
17207 echo "${ECHO_T}$docdir" >&6; }
17208 if test "x$docdir" = xno; then
17209         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
17210 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
17211 fi
17212
17213 logdir='${localstatedir}/log/radius'
17214 { echo "$as_me:$LINENO: checking logdir" >&5
17215 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
17216
17217 # Check whether --with-logdir was given.
17218 if test "${with_logdir+set}" = set; then
17219   withval=$with_logdir;  case "$withval" in
17220     no)
17221         { { echo "$as_me:$LINENO: error: Need logdir" >&5
17222 echo "$as_me: error: Need logdir" >&2;}
17223    { (exit 1); exit 1; }; }
17224         ;;
17225     yes)
17226         ;;
17227     [\\/$]* | ?:[\\/]* )
17228         logdir="$withval"
17229         ;;
17230     *)
17231         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
17232 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
17233    { (exit 1); exit 1; }; }
17234         ;;
17235   esac
17236
17237 fi
17238
17239
17240 { echo "$as_me:$LINENO: result: $logdir" >&5
17241 echo "${ECHO_T}$logdir" >&6; }
17242
17243 radacctdir='${logdir}/radacct'
17244 { echo "$as_me:$LINENO: checking radacctdir" >&5
17245 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
17246
17247 # Check whether --with-radacctdir was given.
17248 if test "${with_radacctdir+set}" = set; then
17249   withval=$with_radacctdir;  case "$withval" in
17250     no)
17251         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
17252 echo "$as_me: error: Need radacctdir" >&2;}
17253    { (exit 1); exit 1; }; }
17254         ;;
17255     yes)
17256         ;;
17257     [\\/$]* | ?:[\\/]* )
17258         radacctdir="$withval"
17259         ;;
17260     *)
17261         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
17262 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
17263    { (exit 1); exit 1; }; }
17264         ;;
17265   esac
17266
17267 fi
17268
17269
17270 { echo "$as_me:$LINENO: result: $radacctdir" >&5
17271 echo "${ECHO_T}$radacctdir" >&6; }
17272
17273 raddbdir='${sysconfdir}/raddb'
17274 { echo "$as_me:$LINENO: checking raddbdir" >&5
17275 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
17276
17277 # Check whether --with-raddbdir was given.
17278 if test "${with_raddbdir+set}" = set; then
17279   withval=$with_raddbdir;  case "$withval" in
17280     no)
17281         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
17282 echo "$as_me: error: Need raddbdir" >&2;}
17283    { (exit 1); exit 1; }; }
17284         ;;
17285     yes)
17286         ;;
17287     [\\/$]* | ?:[\\/]* )
17288         raddbdir="$withval"
17289         ;;
17290     *)
17291         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
17292 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
17293    { (exit 1); exit 1; }; }
17294         ;;
17295   esac
17296
17297 fi
17298
17299
17300 { echo "$as_me:$LINENO: result: $raddbdir" >&5
17301 echo "${ECHO_T}$raddbdir" >&6; }
17302
17303 ASCEND_BINARY=yes
17304
17305 # Check whether --with-ascend-binary was given.
17306 if test "${with_ascend_binary+set}" = set; then
17307   withval=$with_ascend_binary;  case "$withval" in
17308     yes)
17309         ;;
17310     *)
17311         ASCEND_BINARY=""
17312   esac
17313
17314 fi
17315
17316 if test "X$ASCEND_BINARY" = "Xyes"; then
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define ASCEND_BINARY
17320 _ACEOF
17321
17322 fi
17323
17324 WITH_THREADS=yes
17325
17326 # Check whether --with-threads was given.
17327 if test "${with_threads+set}" = set; then
17328   withval=$with_threads;  case "$withval" in
17329     yes)
17330         ;;
17331     *)
17332         WITH_THREADS=""
17333   esac
17334
17335 fi
17336
17337
17338 WITH_VMPS=yes
17339
17340 # Check whether --with-vmps was given.
17341 if test "${with_vmps+set}" = set; then
17342   withval=$with_vmps;  case "$withval" in
17343     yes)
17344         ;;
17345     *)
17346         WITH_VMPS=no
17347   esac
17348
17349 fi
17350
17351 if test "x$WITH_VMPS" = "xyes"; then
17352
17353 cat >>confdefs.h <<\_ACEOF
17354 #define WITH_VMPS 1
17355 _ACEOF
17356
17357 fi
17358
17359
17360 # Check whether --with-dhcp was given.
17361 if test "${with_dhcp+set}" = set; then
17362   withval=$with_dhcp;  case "$withval" in
17363     yes)
17364
17365 cat >>confdefs.h <<\_ACEOF
17366 #define WITH_DHCP 1
17367 _ACEOF
17368
17369         ;;
17370     *)
17371         ;;
17372   esac
17373
17374 fi
17375
17376
17377
17378 STATIC_MODULES=
17379
17380 # Check whether --with-static_modules was given.
17381 if test "${with_static_modules+set}" = set; then
17382   withval=$with_static_modules;
17383   for i in $withval; do
17384     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
17385   done
17386
17387 fi
17388
17389
17390 MODULES=
17391
17392 # Check whether --with-modules was given.
17393 if test "${with_modules+set}" = set; then
17394   withval=$with_modules;
17395  for i in $withval; do
17396    MODULES="$MODULES $i"
17397  done
17398
17399 fi
17400
17401
17402 # Check whether --enable-developer was given.
17403 if test "${enable_developer+set}" = set; then
17404   enableval=$enable_developer;  case "$enableval" in
17405     no)
17406         developer=no
17407         ;;
17408     *)
17409         developer=yes
17410   esac
17411
17412 fi
17413
17414
17415 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
17416     developer="yes"
17417 fi
17418
17419 if test "x$developer" != "xno" -a -d $srcdir/.git; then
17420     developer="yes"
17421 fi
17422
17423 EXPERIMENTAL=
17424
17425 # Check whether --with-experimental-modules was given.
17426 if test "${with_experimental_modules+set}" = set; then
17427   withval=$with_experimental_modules;  case "$withval" in
17428     yes)
17429         EXPERIMENTAL=yes
17430         ;;
17431     *)
17432   esac
17433
17434 fi
17435
17436
17437 WITH_OPENSSL=yes
17438
17439 # Check whether --with-openssl was given.
17440 if test "${with_openssl+set}" = set; then
17441   withval=$with_openssl;  case "$withval" in
17442     no)
17443         WITH_OPENSSL=no
17444         ;;
17445     *)
17446         WITH_OPENSSL=yes
17447         ;;
17448   esac
17449
17450 fi
17451
17452
17453 OPENSSL_INCLUDE_DIR=
17454
17455 # Check whether --with-openssl-includes was given.
17456 if test "${with_openssl_includes+set}" = set; then
17457   withval=$with_openssl_includes;  case "$withval" in
17458     *) OPENSSL_INCLUDE_DIR="$withval"
17459         ;;
17460   esac
17461
17462 fi
17463
17464
17465 OPENSSL_LIB_DIR=
17466
17467 # Check whether --with-openssl-libraries was given.
17468 if test "${with_openssl_libraries+set}" = set; then
17469   withval=$with_openssl_libraries;  case "$withval" in
17470     *) OPENSSL_LIB_DIR="$withval"
17471         ;;
17472   esac
17473
17474 fi
17475
17476
17477
17478
17479 # Check whether --with-rlm-FOO-lib-dir was given.
17480 if test "${with_rlm_FOO_lib_dir+set}" = set; then
17481   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
17482     *)
17483         ;;
17484   esac
17485
17486 fi
17487
17488
17489
17490 # Check whether --with-rlm-FOO-include-dir was given.
17491 if test "${with_rlm_FOO_include_dir+set}" = set; then
17492   withval=$with_rlm_FOO_include_dir;  case "$withval" in
17493     *)
17494         ;;
17495   esac
17496
17497 fi
17498
17499
17500
17501 WITH_UDPFROMTO=no
17502
17503 # Check whether --with-udpfromto was given.
17504 if test "${with_udpfromto+set}" = set; then
17505   withval=$with_udpfromto;  case "$withval" in
17506     yes)
17507         WITH_UDPFROMTO=yes
17508         ;;
17509     *)
17510         WITH_UDPFROMTO=no
17511   esac
17512
17513 fi
17514
17515
17516 if test "x$WITH_UDPFROMTO" = "xyes"; then
17517
17518 cat >>confdefs.h <<\_ACEOF
17519 #define WITH_UDPFROMTO
17520 _ACEOF
17521
17522 fi
17523
17524
17525 CHECKRAD=checkrad.pl
17526 # Extract the first word of "perl", so it can be a program name with args.
17527 set dummy perl; ac_word=$2
17528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17530 if test "${ac_cv_path_PERL+set}" = set; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   case $PERL in
17534   [\\/]* | ?:[\\/]*)
17535   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17536   ;;
17537   *)
17538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17539 for as_dir in $PATH
17540 do
17541   IFS=$as_save_IFS
17542   test -z "$as_dir" && as_dir=.
17543   for ac_exec_ext in '' $ac_executable_extensions; do
17544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17545     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17547     break 2
17548   fi
17549 done
17550 done
17551 IFS=$as_save_IFS
17552
17553   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
17554   ;;
17555 esac
17556 fi
17557 PERL=$ac_cv_path_PERL
17558 if test -n "$PERL"; then
17559   { echo "$as_me:$LINENO: result: $PERL" >&5
17560 echo "${ECHO_T}$PERL" >&6; }
17561 else
17562   { echo "$as_me:$LINENO: result: no" >&5
17563 echo "${ECHO_T}no" >&6; }
17564 fi
17565
17566
17567 if test "x$ac_cv_path_PERL" = "x"; then
17568   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
17569 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
17570 fi
17571 # Extract the first word of "snmpget", so it can be a program name with args.
17572 set dummy snmpget; ac_word=$2
17573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17575 if test "${ac_cv_path_SNMPGET+set}" = set; then
17576   echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578   case $SNMPGET in
17579   [\\/]* | ?:[\\/]*)
17580   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
17581   ;;
17582   *)
17583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584 for as_dir in $PATH
17585 do
17586   IFS=$as_save_IFS
17587   test -z "$as_dir" && as_dir=.
17588   for ac_exec_ext in '' $ac_executable_extensions; do
17589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17590     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
17591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17592     break 2
17593   fi
17594 done
17595 done
17596 IFS=$as_save_IFS
17597
17598   ;;
17599 esac
17600 fi
17601 SNMPGET=$ac_cv_path_SNMPGET
17602 if test -n "$SNMPGET"; then
17603   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
17604 echo "${ECHO_T}$SNMPGET" >&6; }
17605 else
17606   { echo "$as_me:$LINENO: result: no" >&5
17607 echo "${ECHO_T}no" >&6; }
17608 fi
17609
17610
17611 if test "x$ac_cv_path_SNMPGET" = "x"; then
17612   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
17613 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
17614 fi
17615
17616 # Extract the first word of "snmpwalk", so it can be a program name with args.
17617 set dummy snmpwalk; ac_word=$2
17618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17620 if test "${ac_cv_path_SNMPWALK+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623   case $SNMPWALK in
17624   [\\/]* | ?:[\\/]*)
17625   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
17626   ;;
17627   *)
17628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17629 for as_dir in $PATH
17630 do
17631   IFS=$as_save_IFS
17632   test -z "$as_dir" && as_dir=.
17633   for ac_exec_ext in '' $ac_executable_extensions; do
17634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17635     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
17636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17637     break 2
17638   fi
17639 done
17640 done
17641 IFS=$as_save_IFS
17642
17643   ;;
17644 esac
17645 fi
17646 SNMPWALK=$ac_cv_path_SNMPWALK
17647 if test -n "$SNMPWALK"; then
17648   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
17649 echo "${ECHO_T}$SNMPWALK" >&6; }
17650 else
17651   { echo "$as_me:$LINENO: result: no" >&5
17652 echo "${ECHO_T}no" >&6; }
17653 fi
17654
17655
17656 if test "x$ac_cv_path_SNMPWALK" = "x"; then
17657   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
17658 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
17659 fi
17660
17661 # Extract the first word of "rusers", so it can be a program name with args.
17662 set dummy rusers; ac_word=$2
17663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17665 if test "${ac_cv_path_RUSERS+set}" = set; then
17666   echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668   case $RUSERS in
17669   [\\/]* | ?:[\\/]*)
17670   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
17671   ;;
17672   *)
17673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17674 for as_dir in $PATH
17675 do
17676   IFS=$as_save_IFS
17677   test -z "$as_dir" && as_dir=.
17678   for ac_exec_ext in '' $ac_executable_extensions; do
17679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17680     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
17681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17682     break 2
17683   fi
17684 done
17685 done
17686 IFS=$as_save_IFS
17687
17688   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
17689   ;;
17690 esac
17691 fi
17692 RUSERS=$ac_cv_path_RUSERS
17693 if test -n "$RUSERS"; then
17694   { echo "$as_me:$LINENO: result: $RUSERS" >&5
17695 echo "${ECHO_T}$RUSERS" >&6; }
17696 else
17697   { echo "$as_me:$LINENO: result: no" >&5
17698 echo "${ECHO_T}no" >&6; }
17699 fi
17700
17701
17702
17703 missing_dir=`cd $ac_aux_dir && pwd`
17704 # expand $ac_aux_dir to an absolute path
17705 am_aux_dir=`cd $ac_aux_dir && pwd`
17706
17707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
17708 # Use eval to expand $SHELL
17709 if eval "$MISSING --run true"; then
17710   am_missing_run="$MISSING --run "
17711 else
17712   am_missing_run=
17713   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
17714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17715 fi
17716
17717
17718 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
17719
17720
17721 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
17722
17723
17724 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
17725
17726
17727 # Extract the first word of "locate", so it can be a program name with args.
17728 set dummy locate; ac_word=$2
17729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17731 if test "${ac_cv_path_LOCATE+set}" = set; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   case $LOCATE in
17735   [\\/]* | ?:[\\/]*)
17736   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
17737   ;;
17738   *)
17739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17740 for as_dir in $PATH
17741 do
17742   IFS=$as_save_IFS
17743   test -z "$as_dir" && as_dir=.
17744   for ac_exec_ext in '' $ac_executable_extensions; do
17745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17746     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
17747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17748     break 2
17749   fi
17750 done
17751 done
17752 IFS=$as_save_IFS
17753
17754   ;;
17755 esac
17756 fi
17757 LOCATE=$ac_cv_path_LOCATE
17758 if test -n "$LOCATE"; then
17759   { echo "$as_me:$LINENO: result: $LOCATE" >&5
17760 echo "${ECHO_T}$LOCATE" >&6; }
17761 else
17762   { echo "$as_me:$LINENO: result: no" >&5
17763 echo "${ECHO_T}no" >&6; }
17764 fi
17765
17766
17767 # Extract the first word of "dirname", so it can be a program name with args.
17768 set dummy dirname; ac_word=$2
17769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17771 if test "${ac_cv_path_DIRNAME+set}" = set; then
17772   echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774   case $DIRNAME in
17775   [\\/]* | ?:[\\/]*)
17776   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
17777   ;;
17778   *)
17779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17780 for as_dir in $PATH
17781 do
17782   IFS=$as_save_IFS
17783   test -z "$as_dir" && as_dir=.
17784   for ac_exec_ext in '' $ac_executable_extensions; do
17785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17786     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
17787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17788     break 2
17789   fi
17790 done
17791 done
17792 IFS=$as_save_IFS
17793
17794   ;;
17795 esac
17796 fi
17797 DIRNAME=$ac_cv_path_DIRNAME
17798 if test -n "$DIRNAME"; then
17799   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
17800 echo "${ECHO_T}$DIRNAME" >&6; }
17801 else
17802   { echo "$as_me:$LINENO: result: no" >&5
17803 echo "${ECHO_T}no" >&6; }
17804 fi
17805
17806
17807 # Extract the first word of "grep", so it can be a program name with args.
17808 set dummy grep; ac_word=$2
17809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17811 if test "${ac_cv_path_GREP+set}" = set; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   case $GREP in
17815   [\\/]* | ?:[\\/]*)
17816   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
17817   ;;
17818   *)
17819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17821 do
17822   IFS=$as_save_IFS
17823   test -z "$as_dir" && as_dir=.
17824   for ac_exec_ext in '' $ac_executable_extensions; do
17825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17826     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
17827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17828     break 2
17829   fi
17830 done
17831 done
17832 IFS=$as_save_IFS
17833
17834   ;;
17835 esac
17836 fi
17837 GREP=$ac_cv_path_GREP
17838 if test -n "$GREP"; then
17839   { echo "$as_me:$LINENO: result: $GREP" >&5
17840 echo "${ECHO_T}$GREP" >&6; }
17841 else
17842   { echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6; }
17844 fi
17845
17846
17847
17848
17849 old_CFLAGS=$CFLAGS
17850 if test "x$WITH_THREADS" = "xyes"; then
17851   if test $ac_cv_prog_suncc = "yes"; then
17852     CFLAGS="$CFLAGS -mt"
17853   fi
17854
17855
17856 for ac_header in pthread.h
17857 do
17858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17860   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17863   echo $ECHO_N "(cached) $ECHO_C" >&6
17864 fi
17865 ac_res=`eval echo '${'$as_ac_Header'}'`
17866                { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17868 else
17869   # Is the header compilable?
17870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17872 cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878 $ac_includes_default
17879 #include <$ac_header>
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (ac_try="$ac_compile"
17883 case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_compile") 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } && {
17895          test -z "$ac_c_werror_flag" ||
17896          test ! -s conftest.err
17897        } && test -s conftest.$ac_objext; then
17898   ac_header_compiler=yes
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903         ac_header_compiler=no
17904 fi
17905
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17908 echo "${ECHO_T}$ac_header_compiler" >&6; }
17909
17910 # Is the header present?
17911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h.  */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h.  */
17919 #include <$ac_header>
17920 _ACEOF
17921 if { (ac_try="$ac_cpp conftest.$ac_ext"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } >/dev/null && {
17934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17935          test ! -s conftest.err
17936        }; then
17937   ac_header_preproc=yes
17938 else
17939   echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942   ac_header_preproc=no
17943 fi
17944
17945 rm -f conftest.err conftest.$ac_ext
17946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17947 echo "${ECHO_T}$ac_header_preproc" >&6; }
17948
17949 # So?  What about this header?
17950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17951   yes:no: )
17952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17956     ac_header_preproc=yes
17957     ;;
17958   no:yes:* )
17959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17971
17972     ;;
17973 esac
17974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17977   echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979   eval "$as_ac_Header=\$ac_header_preproc"
17980 fi
17981 ac_res=`eval echo '${'$as_ac_Header'}'`
17982                { echo "$as_me:$LINENO: result: $ac_res" >&5
17983 echo "${ECHO_T}$ac_res" >&6; }
17984
17985 fi
17986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17987   cat >>confdefs.h <<_ACEOF
17988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17989 _ACEOF
17990
17991 else
17992    WITH_THREADS="no"
17993 fi
17994
17995 done
17996
17997
17998   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17999 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
18000 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18001   echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003   ac_check_lib_save_LIBS=$LIBS
18004 LIBS="-lpthread  $LIBS"
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h.  */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h.  */
18011
18012 /* Override any GCC internal prototype to avoid an error.
18013    Use char because int might match the return type of a GCC
18014    builtin and then its argument prototype would still apply.  */
18015 #ifdef __cplusplus
18016 extern "C"
18017 #endif
18018 char pthread_create ();
18019 int
18020 main ()
18021 {
18022 return pthread_create ();
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (ac_try="$ac_link"
18029 case "(($ac_try" in
18030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031   *) ac_try_echo=$ac_try;;
18032 esac
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034   (eval "$ac_link") 2>conftest.er1
18035   ac_status=$?
18036   grep -v '^ *+' conftest.er1 >conftest.err
18037   rm -f conftest.er1
18038   cat conftest.err >&5
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); } && {
18041          test -z "$ac_c_werror_flag" ||
18042          test ! -s conftest.err
18043        } && test -s conftest$ac_exeext &&
18044        $as_test_x conftest$ac_exeext; then
18045   ac_cv_lib_pthread_pthread_create=yes
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050         ac_cv_lib_pthread_pthread_create=no
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18054       conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18056 fi
18057 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18058 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
18059 if test $ac_cv_lib_pthread_pthread_create = yes; then
18060    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
18061                   LIBS="$LIBS -lpthread"
18062 else
18063   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18064 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
18065 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068   ac_check_lib_save_LIBS=$LIBS
18069 LIBS="-lc_r  $LIBS"
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076
18077 /* Override any GCC internal prototype to avoid an error.
18078    Use char because int might match the return type of a GCC
18079    builtin and then its argument prototype would still apply.  */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char pthread_create ();
18084 int
18085 main ()
18086 {
18087 return pthread_create ();
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_link") 2>conftest.er1
18100   ac_status=$?
18101   grep -v '^ *+' conftest.er1 >conftest.err
18102   rm -f conftest.er1
18103   cat conftest.err >&5
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } && {
18106          test -z "$ac_c_werror_flag" ||
18107          test ! -s conftest.err
18108        } && test -s conftest$ac_exeext &&
18109        $as_test_x conftest$ac_exeext; then
18110   ac_cv_lib_c_r_pthread_create=yes
18111 else
18112   echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115         ac_cv_lib_c_r_pthread_create=no
18116 fi
18117
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119       conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18121 fi
18122 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18123 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
18124 if test $ac_cv_lib_c_r_pthread_create = yes; then
18125    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
18126 else
18127    WITH_THREADS="no"
18128
18129 fi
18130
18131
18132 fi
18133
18134 fi
18135
18136 if test "x$WITH_THREADS" != "xyes"; then
18137   CFLAGS=$old_CFLAGS
18138   ac_cv_header_pthread_h="no"
18139   WITH_THREADS=no
18140 else
18141
18142   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
18143 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
18144 if test "${ac_cv_search_sem_init+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147   ac_func_search_save_LIBS=$LIBS
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 /* Override any GCC internal prototype to avoid an error.
18156    Use char because int might match the return type of a GCC
18157    builtin and then its argument prototype would still apply.  */
18158 #ifdef __cplusplus
18159 extern "C"
18160 #endif
18161 char sem_init ();
18162 int
18163 main ()
18164 {
18165 return sem_init ();
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 for ac_lib in '' pthread sem posix4 rt semaphore; do
18171   if test -z "$ac_lib"; then
18172     ac_res="none required"
18173   else
18174     ac_res=-l$ac_lib
18175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18176   fi
18177   rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_link") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } && {
18191          test -z "$ac_c_werror_flag" ||
18192          test ! -s conftest.err
18193        } && test -s conftest$ac_exeext &&
18194        $as_test_x conftest$ac_exeext; then
18195   ac_cv_search_sem_init=$ac_res
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200
18201 fi
18202
18203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18204       conftest$ac_exeext
18205   if test "${ac_cv_search_sem_init+set}" = set; then
18206   break
18207 fi
18208 done
18209 if test "${ac_cv_search_sem_init+set}" = set; then
18210   :
18211 else
18212   ac_cv_search_sem_init=no
18213 fi
18214 rm conftest.$ac_ext
18215 LIBS=$ac_func_search_save_LIBS
18216 fi
18217 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
18218 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
18219 ac_res=$ac_cv_search_sem_init
18220 if test "$ac_res" != no; then
18221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18222
18223 else
18224   { { 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
18225 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;}
18226    { (exit 1); exit 1; }; }
18227
18228 fi
18229
18230 fi
18231
18232
18233 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
18234 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
18235 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
18236   echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238   ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lsocket  $LIBS"
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18246
18247 /* Override any GCC internal prototype to avoid an error.
18248    Use char because int might match the return type of a GCC
18249    builtin and then its argument prototype would still apply.  */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 char getsockname ();
18254 int
18255 main ()
18256 {
18257 return getsockname ();
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_link") 2>conftest.er1
18270   ac_status=$?
18271   grep -v '^ *+' conftest.er1 >conftest.err
18272   rm -f conftest.er1
18273   cat conftest.err >&5
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } && {
18276          test -z "$ac_c_werror_flag" ||
18277          test ! -s conftest.err
18278        } && test -s conftest$ac_exeext &&
18279        $as_test_x conftest$ac_exeext; then
18280   ac_cv_lib_socket_getsockname=yes
18281 else
18282   echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285         ac_cv_lib_socket_getsockname=no
18286 fi
18287
18288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18289       conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18291 fi
18292 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
18293 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
18294 if test $ac_cv_lib_socket_getsockname = yes; then
18295   cat >>confdefs.h <<_ACEOF
18296 #define HAVE_LIBSOCKET 1
18297 _ACEOF
18298
18299   LIBS="-lsocket $LIBS"
18300
18301 fi
18302
18303
18304
18305 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18306 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18307 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18308   echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310   ac_check_lib_save_LIBS=$LIBS
18311 LIBS="-lresolv  $LIBS"
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h.  */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h.  */
18318
18319 /* Override any GCC internal prototype to avoid an error.
18320    Use char because int might match the return type of a GCC
18321    builtin and then its argument prototype would still apply.  */
18322 #ifdef __cplusplus
18323 extern "C"
18324 #endif
18325 char inet_aton ();
18326 int
18327 main ()
18328 {
18329 return inet_aton ();
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (ac_try="$ac_link"
18336 case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_link") 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } && {
18348          test -z "$ac_c_werror_flag" ||
18349          test ! -s conftest.err
18350        } && test -s conftest$ac_exeext &&
18351        $as_test_x conftest$ac_exeext; then
18352   ac_cv_lib_resolv_inet_aton=yes
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357         ac_cv_lib_resolv_inet_aton=no
18358 fi
18359
18360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18361       conftest$ac_exeext conftest.$ac_ext
18362 LIBS=$ac_check_lib_save_LIBS
18363 fi
18364 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18365 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18366 if test $ac_cv_lib_resolv_inet_aton = yes; then
18367   cat >>confdefs.h <<_ACEOF
18368 #define HAVE_LIBRESOLV 1
18369 _ACEOF
18370
18371   LIBS="-lresolv $LIBS"
18372
18373 fi
18374
18375
18376
18377 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
18378 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
18379 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
18380   echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382   ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-lnsl  $LIBS"
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h.  */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h.  */
18390
18391 /* Override any GCC internal prototype to avoid an error.
18392    Use char because int might match the return type of a GCC
18393    builtin and then its argument prototype would still apply.  */
18394 #ifdef __cplusplus
18395 extern "C"
18396 #endif
18397 char inet_ntoa ();
18398 int
18399 main ()
18400 {
18401 return inet_ntoa ();
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_c_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest$ac_exeext &&
18423        $as_test_x conftest$ac_exeext; then
18424   ac_cv_lib_nsl_inet_ntoa=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ac_cv_lib_nsl_inet_ntoa=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433       conftest$ac_exeext conftest.$ac_ext
18434 LIBS=$ac_check_lib_save_LIBS
18435 fi
18436 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
18437 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
18438 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
18439   cat >>confdefs.h <<_ACEOF
18440 #define HAVE_LIBNSL 1
18441 _ACEOF
18442
18443   LIBS="-lnsl $LIBS"
18444
18445 fi
18446
18447
18448 OPENSSL_LIBS=
18449 if test "x$WITH_OPENSSL" = xyes; then
18450   old_LIBS=$LIBS
18451   if test "x$OPENSSL_LIB_DIR" != "x"; then
18452     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
18453   fi
18454   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
18455 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
18456 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459   ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-lcrypto  $LIBS"
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467
18468 /* Override any GCC internal prototype to avoid an error.
18469    Use char because int might match the return type of a GCC
18470    builtin and then its argument prototype would still apply.  */
18471 #ifdef __cplusplus
18472 extern "C"
18473 #endif
18474 char DH_new ();
18475 int
18476 main ()
18477 {
18478 return DH_new ();
18479   ;
18480   return 0;
18481 }
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_link") 2>conftest.er1
18491   ac_status=$?
18492   grep -v '^ *+' conftest.er1 >conftest.err
18493   rm -f conftest.er1
18494   cat conftest.err >&5
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } && {
18497          test -z "$ac_c_werror_flag" ||
18498          test ! -s conftest.err
18499        } && test -s conftest$ac_exeext &&
18500        $as_test_x conftest$ac_exeext; then
18501   ac_cv_lib_crypto_DH_new=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506         ac_cv_lib_crypto_DH_new=no
18507 fi
18508
18509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18510       conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS
18512 fi
18513 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
18514 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
18515 if test $ac_cv_lib_crypto_DH_new = yes; then
18516
18517         LIBS="-lcrypto $LIBS"
18518
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_LIBCRYPTO 1
18521 _ACEOF
18522
18523         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
18524 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
18525 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
18526   echo $ECHO_N "(cached) $ECHO_C" >&6
18527 else
18528   ac_check_lib_save_LIBS=$LIBS
18529 LIBS="-lssl  $LIBS"
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h.  */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h.  */
18536
18537 /* Override any GCC internal prototype to avoid an error.
18538    Use char because int might match the return type of a GCC
18539    builtin and then its argument prototype would still apply.  */
18540 #ifdef __cplusplus
18541 extern "C"
18542 #endif
18543 char SSL_new ();
18544 int
18545 main ()
18546 {
18547 return SSL_new ();
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (ac_try="$ac_link"
18554 case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_link") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } && {
18566          test -z "$ac_c_werror_flag" ||
18567          test ! -s conftest.err
18568        } && test -s conftest$ac_exeext &&
18569        $as_test_x conftest$ac_exeext; then
18570   ac_cv_lib_ssl_SSL_new=yes
18571 else
18572   echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18574
18575         ac_cv_lib_ssl_SSL_new=no
18576 fi
18577
18578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18579       conftest$ac_exeext conftest.$ac_ext
18580 LIBS=$ac_check_lib_save_LIBS
18581 fi
18582 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
18583 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
18584 if test $ac_cv_lib_ssl_SSL_new = yes; then
18585
18586
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE_LIBSSL 1
18589 _ACEOF
18590
18591                 if test "x$OPENSSL_LIB_DIR" != "x"; then
18592                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
18593                 fi
18594                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
18595
18596 fi
18597
18598
18599 fi
18600
18601   LIBS=$old_LIBS
18602 fi
18603
18604
18605 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
18606 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
18607 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   ac_check_lib_save_LIBS=$LIBS
18611 LIBS="-lws2_32  $LIBS"
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618
18619 /* Override any GCC internal prototype to avoid an error.
18620    Use char because int might match the return type of a GCC
18621    builtin and then its argument prototype would still apply.  */
18622 #ifdef __cplusplus
18623 extern "C"
18624 #endif
18625 char htonl ();
18626 int
18627 main ()
18628 {
18629 return htonl ();
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest.$ac_objext conftest$ac_exeext
18635 if { (ac_try="$ac_link"
18636 case "(($ac_try" in
18637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638   *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641   (eval "$ac_link") 2>conftest.er1
18642   ac_status=$?
18643   grep -v '^ *+' conftest.er1 >conftest.err
18644   rm -f conftest.er1
18645   cat conftest.err >&5
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } && {
18648          test -z "$ac_c_werror_flag" ||
18649          test ! -s conftest.err
18650        } && test -s conftest$ac_exeext &&
18651        $as_test_x conftest$ac_exeext; then
18652   ac_cv_lib_ws2_32_htonl=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_lib_ws2_32_htonl=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18661       conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18663 fi
18664 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
18665 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
18666 if test $ac_cv_lib_ws2_32_htonl = yes; then
18667   cat >>confdefs.h <<_ACEOF
18668 #define HAVE_LIBWS2_32 1
18669 _ACEOF
18670
18671   LIBS="-lws2_32 $LIBS"
18672
18673 fi
18674
18675
18676 PCAP_LIBS=
18677 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
18678 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
18679 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
18680   echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682   ac_check_lib_save_LIBS=$LIBS
18683 LIBS="-lpcap  $LIBS"
18684 cat >conftest.$ac_ext <<_ACEOF
18685 /* confdefs.h.  */
18686 _ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h.  */
18690
18691 /* Override any GCC internal prototype to avoid an error.
18692    Use char because int might match the return type of a GCC
18693    builtin and then its argument prototype would still apply.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 char pcap_open_live ();
18698 int
18699 main ()
18700 {
18701 return pcap_open_live ();
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (ac_try="$ac_link"
18708 case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_link") 2>conftest.er1
18714   ac_status=$?
18715   grep -v '^ *+' conftest.er1 >conftest.err
18716   rm -f conftest.er1
18717   cat conftest.err >&5
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); } && {
18720          test -z "$ac_c_werror_flag" ||
18721          test ! -s conftest.err
18722        } && test -s conftest$ac_exeext &&
18723        $as_test_x conftest$ac_exeext; then
18724   ac_cv_lib_pcap_pcap_open_live=yes
18725 else
18726   echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18728
18729         ac_cv_lib_pcap_pcap_open_live=no
18730 fi
18731
18732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18733       conftest$ac_exeext conftest.$ac_ext
18734 LIBS=$ac_check_lib_save_LIBS
18735 fi
18736 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
18737 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
18738 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
18739    PCAP_LIBS="-lpcap"
18740
18741 cat >>confdefs.h <<\_ACEOF
18742 #define HAVE_LIBPCAP 1
18743 _ACEOF
18744
18745
18746 else
18747    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
18748 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
18749 fi
18750
18751
18752
18753   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18754 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
18755 if test "${ac_cv_lib_readline+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758
18759     ORIG_LIBS=$LIBS
18760     LIBREADLINE=
18761     for readline_lib in readline edit editline; do
18762       for termcap_lib in "" termcap curses ncurses; do
18763         if test -z "$termcap_lib"; then
18764           TRY_LIB="-l$readline_lib"
18765         else
18766           TRY_LIB="-l$readline_lib -l$termcap_lib"
18767         fi
18768         LIBS="$ORIG_LIBS $TRY_LIB"
18769         cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h.  */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h.  */
18775
18776 /* Override any GCC internal prototype to avoid an error.
18777    Use char because int might match the return type of a GCC
18778    builtin and then its argument prototype would still apply.  */
18779 #ifdef __cplusplus
18780 extern "C"
18781 #endif
18782 char readline ();
18783 int
18784 main ()
18785 {
18786 return readline ();
18787   ;
18788   return 0;
18789 }
18790 _ACEOF
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (ac_try="$ac_link"
18793 case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_link") 2>conftest.er1
18799   ac_status=$?
18800   grep -v '^ *+' conftest.er1 >conftest.err
18801   rm -f conftest.er1
18802   cat conftest.err >&5
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); } && {
18805          test -z "$ac_c_werror_flag" ||
18806          test ! -s conftest.err
18807        } && test -s conftest$ac_exeext &&
18808        $as_test_x conftest$ac_exeext; then
18809   ac_cv_lib_readline="$TRY_LIB"
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18818       conftest$ac_exeext conftest.$ac_ext
18819         if test -n "$ac_cv_lib_readline"; then
18820           LIBREADLINE="$TRY_LIB"
18821           break
18822         fi
18823       done
18824       if test -n "$ac_cv_lib_readline"; then
18825         break
18826       fi
18827     done
18828     if test -z "$ac_cv_lib_readline"; then
18829       ac_cv_lib_readline="no"
18830     fi
18831     LIBS=$ORIG_LIBS
18832
18833
18834 fi
18835 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
18836 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
18837
18838   if test "$ac_cv_lib_readline" != "no"; then
18839
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE_LIBREADLINE 1
18842 _ACEOF
18843
18844
18845
18846 for ac_header in readline.h readline/readline.h
18847 do
18848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18850   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 fi
18855 ac_res=`eval echo '${'$as_ac_Header'}'`
18856                { echo "$as_me:$LINENO: result: $ac_res" >&5
18857 echo "${ECHO_T}$ac_res" >&6; }
18858 else
18859   # Is the header compilable?
18860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868 $ac_includes_default
18869 #include <$ac_header>
18870 _ACEOF
18871 rm -f conftest.$ac_objext
18872 if { (ac_try="$ac_compile"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_compile") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } && {
18885          test -z "$ac_c_werror_flag" ||
18886          test ! -s conftest.err
18887        } && test -s conftest.$ac_objext; then
18888   ac_header_compiler=yes
18889 else
18890   echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893         ac_header_compiler=no
18894 fi
18895
18896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18898 echo "${ECHO_T}$ac_header_compiler" >&6; }
18899
18900 # Is the header present?
18901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909 #include <$ac_header>
18910 _ACEOF
18911 if { (ac_try="$ac_cpp conftest.$ac_ext"
18912 case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } >/dev/null && {
18924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18925          test ! -s conftest.err
18926        }; then
18927   ac_header_preproc=yes
18928 else
18929   echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18931
18932   ac_header_preproc=no
18933 fi
18934
18935 rm -f conftest.err conftest.$ac_ext
18936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18937 echo "${ECHO_T}$ac_header_preproc" >&6; }
18938
18939 # So?  What about this header?
18940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18941   yes:no: )
18942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18946     ac_header_preproc=yes
18947     ;;
18948   no:yes:* )
18949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18961
18962     ;;
18963 esac
18964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969   eval "$as_ac_Header=\$ac_header_preproc"
18970 fi
18971 ac_res=`eval echo '${'$as_ac_Header'}'`
18972                { echo "$as_me:$LINENO: result: $ac_res" >&5
18973 echo "${ECHO_T}$ac_res" >&6; }
18974
18975 fi
18976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18977   cat >>confdefs.h <<_ACEOF
18978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18979 _ACEOF
18980
18981 fi
18982
18983 done
18984
18985     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
18986 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
18987 if test "${ac_cv_lib_readline_history+set}" = set; then
18988   echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990
18991       ac_cv_lib_readline_history="no"
18992       cat >conftest.$ac_ext <<_ACEOF
18993 /* confdefs.h.  */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h.  */
18998
18999 /* Override any GCC internal prototype to avoid an error.
19000    Use char because int might match the return type of a GCC
19001    builtin and then its argument prototype would still apply.  */
19002 #ifdef __cplusplus
19003 extern "C"
19004 #endif
19005 char add_history ();
19006 int
19007 main ()
19008 {
19009 return add_history ();
19010   ;
19011   return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_link") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } && {
19028          test -z "$ac_c_werror_flag" ||
19029          test ! -s conftest.err
19030        } && test -s conftest$ac_exeext &&
19031        $as_test_x conftest$ac_exeext; then
19032   ac_cv_lib_readline_history="yes"
19033 else
19034   echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037
19038 fi
19039
19040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041       conftest$ac_exeext conftest.$ac_ext
19042
19043 fi
19044 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
19045 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
19046     if test "$ac_cv_lib_readline_history" = "yes"; then
19047
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_READLINE_HISTORY 1
19050 _ACEOF
19051
19052
19053
19054 for ac_header in history.h readline/history.h
19055 do
19056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19058   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19061   echo $ECHO_N "(cached) $ECHO_C" >&6
19062 fi
19063 ac_res=`eval echo '${'$as_ac_Header'}'`
19064                { echo "$as_me:$LINENO: result: $ac_res" >&5
19065 echo "${ECHO_T}$ac_res" >&6; }
19066 else
19067   # Is the header compilable?
19068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076 $ac_includes_default
19077 #include <$ac_header>
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086   (eval "$ac_compile") 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } && {
19093          test -z "$ac_c_werror_flag" ||
19094          test ! -s conftest.err
19095        } && test -s conftest.$ac_objext; then
19096   ac_header_compiler=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101         ac_header_compiler=no
19102 fi
19103
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19106 echo "${ECHO_T}$ac_header_compiler" >&6; }
19107
19108 # Is the header present?
19109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117 #include <$ac_header>
19118 _ACEOF
19119 if { (ac_try="$ac_cpp conftest.$ac_ext"
19120 case "(($ac_try" in
19121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122   *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } >/dev/null && {
19132          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19133          test ! -s conftest.err
19134        }; then
19135   ac_header_preproc=yes
19136 else
19137   echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140   ac_header_preproc=no
19141 fi
19142
19143 rm -f conftest.err conftest.$ac_ext
19144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6; }
19146
19147 # So?  What about this header?
19148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19149   yes:no: )
19150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19154     ac_header_preproc=yes
19155     ;;
19156   no:yes:* )
19157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19169
19170     ;;
19171 esac
19172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   eval "$as_ac_Header=\$ac_header_preproc"
19178 fi
19179 ac_res=`eval echo '${'$as_ac_Header'}'`
19180                { echo "$as_me:$LINENO: result: $ac_res" >&5
19181 echo "${ECHO_T}$ac_res" >&6; }
19182
19183 fi
19184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19185   cat >>confdefs.h <<_ACEOF
19186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19187 _ACEOF
19188
19189 fi
19190
19191 done
19192
19193     fi
19194   fi
19195
19196
19197
19198 case "$host" in
19199 *-interix*)
19200         CFLAGS="$CFLAGS -D_ALL_SOURCE"
19201         ;;
19202 *-darwin*)
19203         CFLAGS="$CFLAGS -DDARWIN"
19204         LIBS="-framework DirectoryService $LIBS"
19205         ;;
19206 esac
19207
19208
19209
19210
19211
19212
19213 ac_header_dirent=no
19214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19215   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19216 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19217 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 #include <sys/types.h>
19228 #include <$ac_hdr>
19229
19230 int
19231 main ()
19232 {
19233 if ((DIR *) 0)
19234 return 0;
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_compile") 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } && {
19253          test -z "$ac_c_werror_flag" ||
19254          test ! -s conftest.err
19255        } && test -s conftest.$ac_objext; then
19256   eval "$as_ac_Header=yes"
19257 else
19258   echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261         eval "$as_ac_Header=no"
19262 fi
19263
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 fi
19266 ac_res=`eval echo '${'$as_ac_Header'}'`
19267                { echo "$as_me:$LINENO: result: $ac_res" >&5
19268 echo "${ECHO_T}$ac_res" >&6; }
19269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19270   cat >>confdefs.h <<_ACEOF
19271 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19272 _ACEOF
19273
19274 ac_header_dirent=$ac_hdr; break
19275 fi
19276
19277 done
19278 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19279 if test $ac_header_dirent = dirent.h; then
19280   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19281 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19282 if test "${ac_cv_search_opendir+set}" = set; then
19283   echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285   ac_func_search_save_LIBS=$LIBS
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292
19293 /* Override any GCC internal prototype to avoid an error.
19294    Use char because int might match the return type of a GCC
19295    builtin and then its argument prototype would still apply.  */
19296 #ifdef __cplusplus
19297 extern "C"
19298 #endif
19299 char opendir ();
19300 int
19301 main ()
19302 {
19303 return opendir ();
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 for ac_lib in '' dir; do
19309   if test -z "$ac_lib"; then
19310     ac_res="none required"
19311   else
19312     ac_res=-l$ac_lib
19313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19314   fi
19315   rm -f conftest.$ac_objext conftest$ac_exeext
19316 if { (ac_try="$ac_link"
19317 case "(($ac_try" in
19318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319   *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322   (eval "$ac_link") 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } && {
19329          test -z "$ac_c_werror_flag" ||
19330          test ! -s conftest.err
19331        } && test -s conftest$ac_exeext &&
19332        $as_test_x conftest$ac_exeext; then
19333   ac_cv_search_opendir=$ac_res
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338
19339 fi
19340
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342       conftest$ac_exeext
19343   if test "${ac_cv_search_opendir+set}" = set; then
19344   break
19345 fi
19346 done
19347 if test "${ac_cv_search_opendir+set}" = set; then
19348   :
19349 else
19350   ac_cv_search_opendir=no
19351 fi
19352 rm conftest.$ac_ext
19353 LIBS=$ac_func_search_save_LIBS
19354 fi
19355 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19356 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19357 ac_res=$ac_cv_search_opendir
19358 if test "$ac_res" != no; then
19359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19360
19361 fi
19362
19363 else
19364   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19365 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19366 if test "${ac_cv_search_opendir+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   ac_func_search_save_LIBS=$LIBS
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h.  */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h.  */
19376
19377 /* Override any GCC internal prototype to avoid an error.
19378    Use char because int might match the return type of a GCC
19379    builtin and then its argument prototype would still apply.  */
19380 #ifdef __cplusplus
19381 extern "C"
19382 #endif
19383 char opendir ();
19384 int
19385 main ()
19386 {
19387 return opendir ();
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 for ac_lib in '' x; do
19393   if test -z "$ac_lib"; then
19394     ac_res="none required"
19395   else
19396     ac_res=-l$ac_lib
19397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19398   fi
19399   rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_link") 2>conftest.er1
19407   ac_status=$?
19408   grep -v '^ *+' conftest.er1 >conftest.err
19409   rm -f conftest.er1
19410   cat conftest.err >&5
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } && {
19413          test -z "$ac_c_werror_flag" ||
19414          test ! -s conftest.err
19415        } && test -s conftest$ac_exeext &&
19416        $as_test_x conftest$ac_exeext; then
19417   ac_cv_search_opendir=$ac_res
19418 else
19419   echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422
19423 fi
19424
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19426       conftest$ac_exeext
19427   if test "${ac_cv_search_opendir+set}" = set; then
19428   break
19429 fi
19430 done
19431 if test "${ac_cv_search_opendir+set}" = set; then
19432   :
19433 else
19434   ac_cv_search_opendir=no
19435 fi
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS
19438 fi
19439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19441 ac_res=$ac_cv_search_opendir
19442 if test "$ac_res" != no; then
19443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19444
19445 fi
19446
19447 fi
19448
19449 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19451 if test "${ac_cv_header_stdc+set}" = set; then
19452   echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454   cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460 #include <stdlib.h>
19461 #include <stdarg.h>
19462 #include <string.h>
19463 #include <float.h>
19464
19465 int
19466 main ()
19467 {
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_compile") 2>conftest.er1
19481   ac_status=$?
19482   grep -v '^ *+' conftest.er1 >conftest.err
19483   rm -f conftest.er1
19484   cat conftest.err >&5
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); } && {
19487          test -z "$ac_c_werror_flag" ||
19488          test ! -s conftest.err
19489        } && test -s conftest.$ac_objext; then
19490   ac_cv_header_stdc=yes
19491 else
19492   echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19494
19495         ac_cv_header_stdc=no
19496 fi
19497
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499
19500 if test $ac_cv_header_stdc = yes; then
19501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19502   cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508 #include <string.h>
19509
19510 _ACEOF
19511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19512   $EGREP "memchr" >/dev/null 2>&1; then
19513   :
19514 else
19515   ac_cv_header_stdc=no
19516 fi
19517 rm -f conftest*
19518
19519 fi
19520
19521 if test $ac_cv_header_stdc = yes; then
19522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19523   cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #include <stdlib.h>
19530
19531 _ACEOF
19532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19533   $EGREP "free" >/dev/null 2>&1; then
19534   :
19535 else
19536   ac_cv_header_stdc=no
19537 fi
19538 rm -f conftest*
19539
19540 fi
19541
19542 if test $ac_cv_header_stdc = yes; then
19543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19544   if test "$cross_compiling" = yes; then
19545   :
19546 else
19547   cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <ctype.h>
19554 #include <stdlib.h>
19555 #if ((' ' & 0x0FF) == 0x020)
19556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19558 #else
19559 # define ISLOWER(c) \
19560                    (('a' <= (c) && (c) <= 'i') \
19561                      || ('j' <= (c) && (c) <= 'r') \
19562                      || ('s' <= (c) && (c) <= 'z'))
19563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19564 #endif
19565
19566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19567 int
19568 main ()
19569 {
19570   int i;
19571   for (i = 0; i < 256; i++)
19572     if (XOR (islower (i), ISLOWER (i))
19573         || toupper (i) != TOUPPER (i))
19574       return 2;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_link") 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19589   { (case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_try") 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; }; then
19598   :
19599 else
19600   echo "$as_me: program exited with status $ac_status" >&5
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ( exit $ac_status )
19605 ac_cv_header_stdc=no
19606 fi
19607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19608 fi
19609
19610
19611 fi
19612 fi
19613 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19614 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19615 if test $ac_cv_header_stdc = yes; then
19616
19617 cat >>confdefs.h <<\_ACEOF
19618 #define STDC_HEADERS 1
19619 _ACEOF
19620
19621 fi
19622
19623 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19625 if test "${ac_cv_header_time+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 #include <sys/types.h>
19635 #include <sys/time.h>
19636 #include <time.h>
19637
19638 int
19639 main ()
19640 {
19641 if ((struct tm *) 0)
19642 return 0;
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_compile") 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } && {
19661          test -z "$ac_c_werror_flag" ||
19662          test ! -s conftest.err
19663        } && test -s conftest.$ac_objext; then
19664   ac_cv_header_time=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         ac_cv_header_time=no
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673 fi
19674 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19675 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19676 if test $ac_cv_header_time = yes; then
19677
19678 cat >>confdefs.h <<\_ACEOF
19679 #define TIME_WITH_SYS_TIME 1
19680 _ACEOF
19681
19682 fi
19683
19684 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19685 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19686 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19687   echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689   cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695 #include <sys/types.h>
19696 #include <sys/wait.h>
19697 #ifndef WEXITSTATUS
19698 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19699 #endif
19700 #ifndef WIFEXITED
19701 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19702 #endif
19703
19704 int
19705 main ()
19706 {
19707   int s;
19708   wait (&s);
19709   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (ac_try="$ac_compile"
19716 case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_compile") 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } && {
19728          test -z "$ac_c_werror_flag" ||
19729          test ! -s conftest.err
19730        } && test -s conftest.$ac_objext; then
19731   ac_cv_header_sys_wait_h=yes
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736         ac_cv_header_sys_wait_h=no
19737 fi
19738
19739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 fi
19741 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19742 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19743 if test $ac_cv_header_sys_wait_h = yes; then
19744
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_SYS_WAIT_H 1
19747 _ACEOF
19748
19749 fi
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787 for ac_header in \
19788         unistd.h \
19789         crypt.h \
19790         errno.h \
19791         resource.h \
19792         sys/resource.h \
19793         getopt.h \
19794         malloc.h \
19795         utmp.h \
19796         utmpx.h \
19797         signal.h \
19798         sys/select.h \
19799         syslog.h \
19800         inttypes.h \
19801         stdint.h \
19802         stdio.h \
19803         netdb.h \
19804         semaphore.h \
19805         arpa/inet.h \
19806         netinet/in.h \
19807         sys/types.h \
19808         sys/socket.h \
19809         winsock.h \
19810         sys/time.h \
19811         sys/wait.h \
19812         sys/security.h \
19813         fcntl.h \
19814         sys/fcntl.h \
19815         sys/prctl.h \
19816         sys/un.h \
19817         glob.h \
19818         prot.h \
19819         pwd.h \
19820         grp.h \
19821         sia.h \
19822         siad.h
19823
19824 do
19825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 fi
19832 ac_res=`eval echo '${'$as_ac_Header'}'`
19833                { echo "$as_me:$LINENO: result: $ac_res" >&5
19834 echo "${ECHO_T}$ac_res" >&6; }
19835 else
19836   # Is the header compilable?
19837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 $ac_includes_default
19846 #include <$ac_header>
19847 _ACEOF
19848 rm -f conftest.$ac_objext
19849 if { (ac_try="$ac_compile"
19850 case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_compile") 2>conftest.er1
19856   ac_status=$?
19857   grep -v '^ *+' conftest.er1 >conftest.err
19858   rm -f conftest.er1
19859   cat conftest.err >&5
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } && {
19862          test -z "$ac_c_werror_flag" ||
19863          test ! -s conftest.err
19864        } && test -s conftest.$ac_objext; then
19865   ac_header_compiler=yes
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870         ac_header_compiler=no
19871 fi
19872
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19875 echo "${ECHO_T}$ac_header_compiler" >&6; }
19876
19877 # Is the header present?
19878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886 #include <$ac_header>
19887 _ACEOF
19888 if { (ac_try="$ac_cpp conftest.$ac_ext"
19889 case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19895   ac_status=$?
19896   grep -v '^ *+' conftest.er1 >conftest.err
19897   rm -f conftest.er1
19898   cat conftest.err >&5
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); } >/dev/null && {
19901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19902          test ! -s conftest.err
19903        }; then
19904   ac_header_preproc=yes
19905 else
19906   echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909   ac_header_preproc=no
19910 fi
19911
19912 rm -f conftest.err conftest.$ac_ext
19913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19914 echo "${ECHO_T}$ac_header_preproc" >&6; }
19915
19916 # So?  What about this header?
19917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19918   yes:no: )
19919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19923     ac_header_preproc=yes
19924     ;;
19925   no:yes:* )
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19938
19939     ;;
19940 esac
19941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19944   echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946   eval "$as_ac_Header=\$ac_header_preproc"
19947 fi
19948 ac_res=`eval echo '${'$as_ac_Header'}'`
19949                { echo "$as_me:$LINENO: result: $ac_res" >&5
19950 echo "${ECHO_T}$ac_res" >&6; }
19951
19952 fi
19953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19954   cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19956 _ACEOF
19957
19958 fi
19959
19960 done
19961
19962
19963
19964 for ac_header in net/if.h
19965 do
19966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 #ifdef HAVE_SYS_SOCKET_H
19979 # include <sys/socket.h>
19980 # endif
19981
19982
19983 #include <$ac_header>
19984 _ACEOF
19985 rm -f conftest.$ac_objext
19986 if { (ac_try="$ac_compile"
19987 case "(($ac_try" in
19988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989   *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992   (eval "$ac_compile") 2>conftest.er1
19993   ac_status=$?
19994   grep -v '^ *+' conftest.er1 >conftest.err
19995   rm -f conftest.er1
19996   cat conftest.err >&5
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); } && {
19999          test -z "$ac_c_werror_flag" ||
20000          test ! -s conftest.err
20001        } && test -s conftest.$ac_objext; then
20002   eval "$as_ac_Header=yes"
20003 else
20004   echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007         eval "$as_ac_Header=no"
20008 fi
20009
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011 fi
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013                { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20016   cat >>confdefs.h <<_ACEOF
20017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20018 _ACEOF
20019
20020 fi
20021
20022 done
20023
20024
20025 REGEX=no
20026 if test "${ac_cv_header_regex_h+set}" = set; then
20027   { echo "$as_me:$LINENO: checking for regex.h" >&5
20028 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
20029 if test "${ac_cv_header_regex_h+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 fi
20032 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20033 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
20034 else
20035   # Is the header compilable?
20036 { echo "$as_me:$LINENO: checking regex.h usability" >&5
20037 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044 $ac_includes_default
20045 #include <regex.h>
20046 _ACEOF
20047 rm -f conftest.$ac_objext
20048 if { (ac_try="$ac_compile"
20049 case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_compile") 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } && {
20061          test -z "$ac_c_werror_flag" ||
20062          test ! -s conftest.err
20063        } && test -s conftest.$ac_objext; then
20064   ac_header_compiler=yes
20065 else
20066   echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20068
20069         ac_header_compiler=no
20070 fi
20071
20072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20074 echo "${ECHO_T}$ac_header_compiler" >&6; }
20075
20076 # Is the header present?
20077 { echo "$as_me:$LINENO: checking regex.h presence" >&5
20078 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
20079 cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h.  */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h.  */
20085 #include <regex.h>
20086 _ACEOF
20087 if { (ac_try="$ac_cpp conftest.$ac_ext"
20088 case "(($ac_try" in
20089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090   *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20094   ac_status=$?
20095   grep -v '^ *+' conftest.er1 >conftest.err
20096   rm -f conftest.er1
20097   cat conftest.err >&5
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); } >/dev/null && {
20100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20101          test ! -s conftest.err
20102        }; then
20103   ac_header_preproc=yes
20104 else
20105   echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108   ac_header_preproc=no
20109 fi
20110
20111 rm -f conftest.err conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20113 echo "${ECHO_T}$ac_header_preproc" >&6; }
20114
20115 # So?  What about this header?
20116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20117   yes:no: )
20118     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20119 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20120     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20121 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20122     ac_header_preproc=yes
20123     ;;
20124   no:yes:* )
20125     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20126 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20127     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
20128 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
20129     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20130 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20131     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
20132 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20133     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20134 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20135     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20136 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20137
20138     ;;
20139 esac
20140 { echo "$as_me:$LINENO: checking for regex.h" >&5
20141 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
20142 if test "${ac_cv_header_regex_h+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   ac_cv_header_regex_h=$ac_header_preproc
20146 fi
20147 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20148 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
20149
20150 fi
20151 if test $ac_cv_header_regex_h = yes; then
20152
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_REGEX_H
20155 _ACEOF
20156
20157 fi
20158
20159
20160 if test "x$ac_cv_header_regex_h" = "xyes"; then
20161   REGEX_EXTENDED=no
20162   REGEX=yes
20163   cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <regex.h>
20170      #ifdef REG_EXTENDED
20171        yes
20172      #endif
20173
20174 _ACEOF
20175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20176   $EGREP "yes" >/dev/null 2>&1; then
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_REG_EXTENDED
20180 _ACEOF
20181  REGEX_EXTENDED=yes
20182 fi
20183 rm -f conftest*
20184
20185 fi
20186
20187
20188
20189 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20190 then
20191
20192 cat >>confdefs.h <<\_ACEOF
20193 #define OSFC2
20194 _ACEOF
20195
20196 fi
20197
20198 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20199 then
20200
20201 cat >>confdefs.h <<\_ACEOF
20202 #define OSFSIA
20203 _ACEOF
20204
20205 fi
20206
20207 OPENSSL_INCLUDE="-DNO_OPENSSL"
20208 if test "x$WITH_OPENSSL" = xyes; then
20209   if test "x$OPENSSL_LIBS" = "x"; then
20210     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
20211 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
20212   else
20213     old_CPPFLAGS=$CPPFLAGS
20214     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20215         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
20216     fi
20217         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
20218
20219
20220
20221
20222
20223 for ac_header in \
20224         openssl/ssl.h \
20225         openssl/crypto.h \
20226         openssl/err.h \
20227         openssl/evp.h \
20228         openssl/engine.h
20229 do
20230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20232   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 fi
20237 ac_res=`eval echo '${'$as_ac_Header'}'`
20238                { echo "$as_me:$LINENO: result: $ac_res" >&5
20239 echo "${ECHO_T}$ac_res" >&6; }
20240 else
20241   # Is the header compilable?
20242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h.  */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h.  */
20250 $ac_includes_default
20251 #include <$ac_header>
20252 _ACEOF
20253 rm -f conftest.$ac_objext
20254 if { (ac_try="$ac_compile"
20255 case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260   (eval "$ac_compile") 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } && {
20267          test -z "$ac_c_werror_flag" ||
20268          test ! -s conftest.err
20269        } && test -s conftest.$ac_objext; then
20270   ac_header_compiler=yes
20271 else
20272   echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20274
20275         ac_header_compiler=no
20276 fi
20277
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20280 echo "${ECHO_T}$ac_header_compiler" >&6; }
20281
20282 # Is the header present?
20283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20285 cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 #include <$ac_header>
20292 _ACEOF
20293 if { (ac_try="$ac_cpp conftest.$ac_ext"
20294 case "(($ac_try" in
20295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296   *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20300   ac_status=$?
20301   grep -v '^ *+' conftest.er1 >conftest.err
20302   rm -f conftest.er1
20303   cat conftest.err >&5
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); } >/dev/null && {
20306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20307          test ! -s conftest.err
20308        }; then
20309   ac_header_preproc=yes
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314   ac_header_preproc=no
20315 fi
20316
20317 rm -f conftest.err conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20319 echo "${ECHO_T}$ac_header_preproc" >&6; }
20320
20321 # So?  What about this header?
20322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20323   yes:no: )
20324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20328     ac_header_preproc=yes
20329     ;;
20330   no:yes:* )
20331     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20333     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20334 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20335     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20337     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20338 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20341     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20343
20344     ;;
20345 esac
20346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   eval "$as_ac_Header=\$ac_header_preproc"
20352 fi
20353 ac_res=`eval echo '${'$as_ac_Header'}'`
20354                { echo "$as_me:$LINENO: result: $ac_res" >&5
20355 echo "${ECHO_T}$ac_res" >&6; }
20356
20357 fi
20358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20359   cat >>confdefs.h <<_ACEOF
20360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20361 _ACEOF
20362
20363 else
20364   OPENSSL_LIBS=
20365
20366 fi
20367
20368 done
20369
20370     if test "x$OPENSSL_LIBS" != "x"; then
20371         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
20372 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
20373         cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379 #include <openssl/crypto.h>
20380              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
20381              yes
20382              #endif
20383
20384 _ACEOF
20385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20386   $EGREP "yes" >/dev/null 2>&1; then
20387   goodssl="yes"
20388 fi
20389 rm -f conftest*
20390
20391         if test "x$goodssl" != "xyes"; then
20392             { echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6; }
20394             OPENSSL_LIBS=
20395         else
20396             { echo "$as_me:$LINENO: result: yes" >&5
20397 echo "${ECHO_T}yes" >&6; }
20398             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20399                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
20400             else
20401                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
20402             fi
20403         fi
20404     fi
20405     CPPFLAGS=$old_CPPFLAGS
20406   fi
20407 fi
20408
20409
20410 export OPENSSL_LIBS
20411
20412 if test "x$PCAP_LIBS" = x; then
20413     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
20414 echo "$as_me: skipping test for pcap.h." >&6;}
20415 else
20416     if test "${ac_cv_header_pcap_h+set}" = set; then
20417   { echo "$as_me:$LINENO: checking for pcap.h" >&5
20418 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
20419 if test "${ac_cv_header_pcap_h+set}" = set; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 fi
20422 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
20423 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
20424 else
20425   # Is the header compilable?
20426 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
20427 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h.  */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h.  */
20434 $ac_includes_default
20435 #include <pcap.h>
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (ac_try="$ac_compile"
20439 case "(($ac_try" in
20440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441   *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444   (eval "$ac_compile") 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } && {
20451          test -z "$ac_c_werror_flag" ||
20452          test ! -s conftest.err
20453        } && test -s conftest.$ac_objext; then
20454   ac_header_compiler=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459         ac_header_compiler=no
20460 fi
20461
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20464 echo "${ECHO_T}$ac_header_compiler" >&6; }
20465
20466 # Is the header present?
20467 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
20468 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
20469 cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h.  */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h.  */
20475 #include <pcap.h>
20476 _ACEOF
20477 if { (ac_try="$ac_cpp conftest.$ac_ext"
20478 case "(($ac_try" in
20479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480   *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } >/dev/null && {
20490          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20491          test ! -s conftest.err
20492        }; then
20493   ac_header_preproc=yes
20494 else
20495   echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498   ac_header_preproc=no
20499 fi
20500
20501 rm -f conftest.err conftest.$ac_ext
20502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20503 echo "${ECHO_T}$ac_header_preproc" >&6; }
20504
20505 # So?  What about this header?
20506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20507   yes:no: )
20508     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
20509 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20510     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
20511 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
20512     ac_header_preproc=yes
20513     ;;
20514   no:yes:* )
20515     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
20516 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
20517     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
20518 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
20519     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
20520 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
20522 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20523     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
20524 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
20525     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
20526 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
20527
20528     ;;
20529 esac
20530 { echo "$as_me:$LINENO: checking for pcap.h" >&5
20531 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
20532 if test "${ac_cv_header_pcap_h+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535   ac_cv_header_pcap_h=$ac_header_preproc
20536 fi
20537 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
20538 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
20539
20540 fi
20541 if test $ac_cv_header_pcap_h = yes; then
20542
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_PCAP_H 1
20545 _ACEOF
20546
20547 else
20548    PCAP_LIBS=
20549         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
20550 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
20551
20552 fi
20553
20554
20555 fi
20556
20557
20558
20559 { echo "$as_me:$LINENO: checking for off_t" >&5
20560 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20561 if test "${ac_cv_type_off_t+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570 $ac_includes_default
20571 typedef off_t ac__type_new_;
20572 int
20573 main ()
20574 {
20575 if ((ac__type_new_ *) 0)
20576   return 0;
20577 if (sizeof (ac__type_new_))
20578   return 0;
20579   ;
20580   return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590   (eval "$ac_compile") 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } && {
20597          test -z "$ac_c_werror_flag" ||
20598          test ! -s conftest.err
20599        } && test -s conftest.$ac_objext; then
20600   ac_cv_type_off_t=yes
20601 else
20602   echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605         ac_cv_type_off_t=no
20606 fi
20607
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 fi
20610 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20611 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20612 if test $ac_cv_type_off_t = yes; then
20613   :
20614 else
20615
20616 cat >>confdefs.h <<_ACEOF
20617 #define off_t long int
20618 _ACEOF
20619
20620 fi
20621
20622 { echo "$as_me:$LINENO: checking for pid_t" >&5
20623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20624 if test "${ac_cv_type_pid_t+set}" = set; then
20625   echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627   cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633 $ac_includes_default
20634 typedef pid_t ac__type_new_;
20635 int
20636 main ()
20637 {
20638 if ((ac__type_new_ *) 0)
20639   return 0;
20640 if (sizeof (ac__type_new_))
20641   return 0;
20642   ;
20643   return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_compile") 2>conftest.er1
20654   ac_status=$?
20655   grep -v '^ *+' conftest.er1 >conftest.err
20656   rm -f conftest.er1
20657   cat conftest.err >&5
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } && {
20660          test -z "$ac_c_werror_flag" ||
20661          test ! -s conftest.err
20662        } && test -s conftest.$ac_objext; then
20663   ac_cv_type_pid_t=yes
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         ac_cv_type_pid_t=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 fi
20673 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20674 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20675 if test $ac_cv_type_pid_t = yes; then
20676   :
20677 else
20678
20679 cat >>confdefs.h <<_ACEOF
20680 #define pid_t int
20681 _ACEOF
20682
20683 fi
20684
20685 { echo "$as_me:$LINENO: checking for size_t" >&5
20686 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20687 if test "${ac_cv_type_size_t+set}" = set; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690   cat >conftest.$ac_ext <<_ACEOF
20691 /* confdefs.h.  */
20692 _ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h.  */
20696 $ac_includes_default
20697 typedef size_t ac__type_new_;
20698 int
20699 main ()
20700 {
20701 if ((ac__type_new_ *) 0)
20702   return 0;
20703 if (sizeof (ac__type_new_))
20704   return 0;
20705   ;
20706   return 0;
20707 }
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_compile") 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } && {
20723          test -z "$ac_c_werror_flag" ||
20724          test ! -s conftest.err
20725        } && test -s conftest.$ac_objext; then
20726   ac_cv_type_size_t=yes
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731         ac_cv_type_size_t=no
20732 fi
20733
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 fi
20736 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20737 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20738 if test $ac_cv_type_size_t = yes; then
20739   :
20740 else
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define size_t unsigned int
20744 _ACEOF
20745
20746 fi
20747
20748 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20749 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20750 if test "${ac_cv_type_uid_t+set}" = set; then
20751   echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753   cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h.  */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h.  */
20759 #include <sys/types.h>
20760
20761 _ACEOF
20762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20763   $EGREP "uid_t" >/dev/null 2>&1; then
20764   ac_cv_type_uid_t=yes
20765 else
20766   ac_cv_type_uid_t=no
20767 fi
20768 rm -f conftest*
20769
20770 fi
20771 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20772 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20773 if test $ac_cv_type_uid_t = no; then
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define uid_t int
20777 _ACEOF
20778
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define gid_t int
20782 _ACEOF
20783
20784 fi
20785
20786
20787
20788   { echo "$as_me:$LINENO: checking for socklen_t" >&5
20789 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
20790 if test "${ac_cv_type_socklen_t+set}" = set; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793    ac_cv_type_socklen_t=no
20794       cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800 #ifdef HAVE_SYS_TYPES_H
20801 #include <sys/types.h>
20802 #endif
20803 #ifdef HAVE_SYS_SOCKET_H
20804 #include <sys/socket.h>
20805 #endif
20806
20807 int
20808 main ()
20809 {
20810 socklen_t foo
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_compile") 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } && {
20829          test -z "$ac_c_werror_flag" ||
20830          test ! -s conftest.err
20831        } && test -s conftest.$ac_objext; then
20832   ac_cv_type_socklen_t=yes
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837
20838 fi
20839
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841
20842
20843 fi
20844 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20845 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
20846
20847   if test "$ac_cv_type_socklen_t" != "yes"; then
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define socklen_t int
20851 _ACEOF
20852
20853   fi
20854
20855
20856
20857   { echo "$as_me:$LINENO: checking for uint8_t" >&5
20858 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
20859 if test "${ac_cv_type_uint8_t+set}" = set; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862    ac_cv_type_uint8_t=no
20863       cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869 #ifdef HAVE_INTTYPES_H
20870 #include <inttypes.h>
20871 #endif
20872 #ifdef HAVE_STDINT_H
20873 #include <stdint.h>
20874 #endif
20875
20876 int
20877 main ()
20878 {
20879 uint8_t foo
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_compile") 2>conftest.er1
20892   ac_status=$?
20893   grep -v '^ *+' conftest.er1 >conftest.err
20894   rm -f conftest.er1
20895   cat conftest.err >&5
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } && {
20898          test -z "$ac_c_werror_flag" ||
20899          test ! -s conftest.err
20900        } && test -s conftest.$ac_objext; then
20901   ac_cv_type_uint8_t=yes
20902 else
20903   echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906
20907 fi
20908
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910
20911
20912 fi
20913 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
20914 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
20915
20916   if test "$ac_cv_type_uint8_t" != "yes"; then
20917
20918 cat >>confdefs.h <<\_ACEOF
20919 #define uint8_t unsigned char
20920 _ACEOF
20921
20922   fi
20923
20924
20925
20926   { echo "$as_me:$LINENO: checking for uint16_t" >&5
20927 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
20928 if test "${ac_cv_type_uint16_t+set}" = set; then
20929   echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931    ac_cv_type_uint16_t=no
20932       cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 #ifdef HAVE_INTTYPES_H
20939 #include <inttypes.h>
20940 #endif
20941 #ifdef HAVE_STDINT_H
20942 #include <stdint.h>
20943 #endif
20944
20945 int
20946 main ()
20947 {
20948 uint16_t foo
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957   *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960   (eval "$ac_compile") 2>conftest.er1
20961   ac_status=$?
20962   grep -v '^ *+' conftest.er1 >conftest.err
20963   rm -f conftest.er1
20964   cat conftest.err >&5
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } && {
20967          test -z "$ac_c_werror_flag" ||
20968          test ! -s conftest.err
20969        } && test -s conftest.$ac_objext; then
20970   ac_cv_type_uint16_t=yes
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975
20976 fi
20977
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979
20980
20981 fi
20982 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
20983 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
20984
20985   if test "$ac_cv_type_uint16_t" != "yes"; then
20986
20987 cat >>confdefs.h <<\_ACEOF
20988 #define uint16_t unsigned short
20989 _ACEOF
20990
20991   fi
20992
20993
20994
20995   { echo "$as_me:$LINENO: checking for uint32_t" >&5
20996 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20997 if test "${ac_cv_type_uint32_t+set}" = set; then
20998   echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000    ac_cv_type_uint32_t=no
21001       cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007 #ifdef HAVE_INTTYPES_H
21008 #include <inttypes.h>
21009 #endif
21010 #ifdef HAVE_STDINT_H
21011 #include <stdint.h>
21012 #endif
21013
21014 int
21015 main ()
21016 {
21017 uint32_t foo
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026   *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029   (eval "$ac_compile") 2>conftest.er1
21030   ac_status=$?
21031   grep -v '^ *+' conftest.er1 >conftest.err
21032   rm -f conftest.er1
21033   cat conftest.err >&5
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); } && {
21036          test -z "$ac_c_werror_flag" ||
21037          test ! -s conftest.err
21038        } && test -s conftest.$ac_objext; then
21039   ac_cv_type_uint32_t=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048
21049
21050 fi
21051 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21052 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
21053
21054   if test "$ac_cv_type_uint32_t" != "yes"; then
21055
21056 cat >>confdefs.h <<\_ACEOF
21057 #define uint32_t unsigned int
21058 _ACEOF
21059
21060   fi
21061
21062
21063 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
21064 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
21065 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074
21075 #ifdef HAVE_NETINET_IN_H
21076 #include <netinet/in.h>
21077 #endif
21078
21079
21080 typedef struct in6_addr ac__type_new_;
21081 int
21082 main ()
21083 {
21084 if ((ac__type_new_ *) 0)
21085   return 0;
21086 if (sizeof (ac__type_new_))
21087   return 0;
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_compile") 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } && {
21106          test -z "$ac_c_werror_flag" ||
21107          test ! -s conftest.err
21108        } && test -s conftest.$ac_objext; then
21109   ac_cv_type_struct_in6_addr=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         ac_cv_type_struct_in6_addr=no
21115 fi
21116
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 fi
21119 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
21120 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
21121 if test $ac_cv_type_struct_in6_addr = yes; then
21122
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_STRUCT_IN6_ADDR 1
21125 _ACEOF
21126
21127 fi
21128
21129
21130 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
21131 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
21132 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135   cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141
21142 #ifdef HAVE_NETINET_IN_H
21143 #include <netinet/in.h>
21144 #endif
21145 #ifdef HAVE_SYS_SOCKET_H
21146 #include <sys/socket.h>
21147 #endif
21148
21149
21150 typedef struct sockaddr_storage ac__type_new_;
21151 int
21152 main ()
21153 {
21154 if ((ac__type_new_ *) 0)
21155   return 0;
21156 if (sizeof (ac__type_new_))
21157   return 0;
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext
21163 if { (ac_try="$ac_compile"
21164 case "(($ac_try" in
21165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166   *) ac_try_echo=$ac_try;;
21167 esac
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169   (eval "$ac_compile") 2>conftest.er1
21170   ac_status=$?
21171   grep -v '^ *+' conftest.er1 >conftest.err
21172   rm -f conftest.er1
21173   cat conftest.err >&5
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); } && {
21176          test -z "$ac_c_werror_flag" ||
21177          test ! -s conftest.err
21178        } && test -s conftest.$ac_objext; then
21179   ac_cv_type_struct_sockaddr_storage=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184         ac_cv_type_struct_sockaddr_storage=no
21185 fi
21186
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188 fi
21189 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
21190 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
21191 if test $ac_cv_type_struct_sockaddr_storage = yes; then
21192
21193 cat >>confdefs.h <<\_ACEOF
21194 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
21195 _ACEOF
21196
21197 fi
21198
21199
21200 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
21201 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
21202 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211
21212 #ifdef HAVE_NETINET_IN_H
21213 #include <netinet/in.h>
21214 #endif
21215
21216
21217 typedef struct sockaddr_in6 ac__type_new_;
21218 int
21219 main ()
21220 {
21221 if ((ac__type_new_ *) 0)
21222   return 0;
21223 if (sizeof (ac__type_new_))
21224   return 0;
21225   ;
21226   return 0;
21227 }
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (ac_try="$ac_compile"
21231 case "(($ac_try" in
21232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233   *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236   (eval "$ac_compile") 2>conftest.er1
21237   ac_status=$?
21238   grep -v '^ *+' conftest.er1 >conftest.err
21239   rm -f conftest.er1
21240   cat conftest.err >&5
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } && {
21243          test -z "$ac_c_werror_flag" ||
21244          test ! -s conftest.err
21245        } && test -s conftest.$ac_objext; then
21246   ac_cv_type_struct_sockaddr_in6=yes
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         ac_cv_type_struct_sockaddr_in6=no
21252 fi
21253
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 fi
21256 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
21257 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
21258 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
21259
21260 cat >>confdefs.h <<\_ACEOF
21261 #define HAVE_STRUCT_SOCKADDR_IN6 1
21262 _ACEOF
21263
21264 fi
21265
21266
21267 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
21268 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
21269 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
21270   echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272   cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278
21279 #ifdef HAVE_SYS_TYPES_H
21280 #include <sys/types.h>
21281 #endif
21282 #ifdef HAVE_SYS_SOCKET_H
21283 #include <sys/socket.h>
21284 #endif
21285 #ifdef HAVE_NETDB_H
21286 #include <netdb.h>
21287 #endif
21288
21289
21290 typedef struct addrinfo ac__type_new_;
21291 int
21292 main ()
21293 {
21294 if ((ac__type_new_ *) 0)
21295   return 0;
21296 if (sizeof (ac__type_new_))
21297   return 0;
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306   *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309   (eval "$ac_compile") 2>conftest.er1
21310   ac_status=$?
21311   grep -v '^ *+' conftest.er1 >conftest.err
21312   rm -f conftest.er1
21313   cat conftest.err >&5
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); } && {
21316          test -z "$ac_c_werror_flag" ||
21317          test ! -s conftest.err
21318        } && test -s conftest.$ac_objext; then
21319   ac_cv_type_struct_addrinfo=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324         ac_cv_type_struct_addrinfo=no
21325 fi
21326
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 fi
21329 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
21330 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
21331 if test $ac_cv_type_struct_addrinfo = yes; then
21332
21333 cat >>confdefs.h <<\_ACEOF
21334 #define HAVE_STRUCT_ADDRINFO 1
21335 _ACEOF
21336
21337 fi
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372 for ac_func in \
21373         getopt_long \
21374         lockf \
21375         strsignal \
21376         sigaction \
21377         sigprocmask \
21378         pthread_sigmask \
21379         snprintf \
21380         vsnprintf \
21381         setsid \
21382         strncasecmp \
21383         strcasecmp \
21384         localtime_r \
21385         ctime_r \
21386         gmtime_r \
21387         strsep \
21388         inet_aton \
21389         inet_pton \
21390         inet_ntop \
21391         setlinebuf \
21392         setvbuf \
21393         getusershell \
21394         initgroups \
21395         getaddrinfo \
21396         getnameinfo \
21397         closefrom \
21398         gettimeofday \
21399         getpeereid \
21400         setuid \
21401         setresuid \
21402         getresuid \
21403         strlcat \
21404         strlcpy
21405
21406 do
21407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21421 #define $ac_func innocuous_$ac_func
21422
21423 /* System header to define __stub macros and hopefully few prototypes,
21424     which can conflict with char $ac_func (); below.
21425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21426     <limits.h> exists even on freestanding compilers.  */
21427
21428 #ifdef __STDC__
21429 # include <limits.h>
21430 #else
21431 # include <assert.h>
21432 #endif
21433
21434 #undef $ac_func
21435
21436 /* Override any GCC internal prototype to avoid an error.
21437    Use char because int might match the return type of a GCC
21438    builtin and then its argument prototype would still apply.  */
21439 #ifdef __cplusplus
21440 extern "C"
21441 #endif
21442 char $ac_func ();
21443 /* The GNU C library defines this for functions which it implements
21444     to always fail with ENOSYS.  Some functions are actually named
21445     something starting with __ and the normal name is an alias.  */
21446 #if defined __stub_$ac_func || defined __stub___$ac_func
21447 choke me
21448 #endif
21449
21450 int
21451 main ()
21452 {
21453 return $ac_func ();
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (ac_try="$ac_link"
21460 case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_link") 2>conftest.er1
21466   ac_status=$?
21467   grep -v '^ *+' conftest.er1 >conftest.err
21468   rm -f conftest.er1
21469   cat conftest.err >&5
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } && {
21472          test -z "$ac_c_werror_flag" ||
21473          test ! -s conftest.err
21474        } && test -s conftest$ac_exeext &&
21475        $as_test_x conftest$ac_exeext; then
21476   eval "$as_ac_var=yes"
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         eval "$as_ac_var=no"
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21485       conftest$ac_exeext conftest.$ac_ext
21486 fi
21487 ac_res=`eval echo '${'$as_ac_var'}'`
21488                { echo "$as_me:$LINENO: result: $ac_res" >&5
21489 echo "${ECHO_T}$ac_res" >&6; }
21490 if test `eval echo '${'$as_ac_var'}'` = yes; then
21491   cat >>confdefs.h <<_ACEOF
21492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21493 _ACEOF
21494
21495 fi
21496 done
21497
21498 for ac_func in \
21499         crypt \
21500         strncasecmp \
21501         strcasecmp \
21502         inet_aton \
21503         setlinebuf \
21504         getusershell \
21505         endusershell
21506
21507 do
21508 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21509 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
21510 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
21511   echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513   cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520 #include <stdio.h>
21521 #include <string.h>
21522 #ifdef HAVE_UNISTD_H
21523 #include <unistd.h>
21524 #endif
21525 #ifdef HAVE_CRYPT_H
21526 #include <crypt.h>
21527 #endif
21528 #ifdef HAVE_ERRNO_H
21529 #include <errno.h>
21530 #endif
21531 #ifdef HAVE_RESOURCE_H
21532 #include <resource.h>
21533 #endif
21534 #ifdef HAVE_GETOPT_H
21535 #include <getopt.h>
21536 #endif
21537 #ifdef HAVE_MALLOC_H
21538 #include <malloc.h>
21539 #endif
21540 #ifdef HAVE_UTMP_H
21541 #include <utmp.h>
21542 #endif
21543 #ifdef HAVE_UTMPX_H
21544 #include <utmpx.h>
21545 #endif
21546 #ifdef HAVE_SYS_SELECT_H
21547 #include <sys/select.h>
21548 #endif
21549 #ifdef HAVE_DLFCN_H
21550 #include <dlfcn.h>
21551 #endif
21552 #ifdef HAVE_REGEX_H
21553 #include <regex.h>
21554 #endif
21555 #ifdef HAVE_SYSLOG_H
21556 #include <syslog.h>
21557 #endif
21558 #ifdef HAVE_INTTYPES_H
21559 #include <inttypes.h>
21560 #endif
21561 #ifdef HAVE_STDINT_H
21562 #include <stdint.h>
21563 #endif
21564 #ifdef HAVE_ARPA_INET_H
21565 #include <arpa/inet.h>
21566 #endif
21567
21568 int
21569 main ()
21570 {
21571 char *(*pfn) = (char *(*)) $ac_func
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_compile") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest.$ac_objext; then
21593   eval "radius_cv_decl_needed_$ac_func=no"
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598         eval "radius_cv_decl_needed_$ac_func=yes"
21599 fi
21600
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 fi
21603
21604 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21605   { echo "$as_me:$LINENO: result: yes" >&5
21606 echo "${ECHO_T}yes" >&6; }
21607   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21608   cat >>confdefs.h <<_ACEOF
21609 #define $radius_tr_decl 1
21610 _ACEOF
21611
21612 else
21613   { echo "$as_me:$LINENO: result: no" >&5
21614 echo "${ECHO_T}no" >&6; }
21615 fi
21616
21617 done
21618
21619
21620 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21621 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21622 if test "${ac_cv_type_signal+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625   cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h.  */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h.  */
21631 #include <sys/types.h>
21632 #include <signal.h>
21633
21634 int
21635 main ()
21636 {
21637 return *(signal (0, 0)) (0) == 1;
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext
21643 if { (ac_try="$ac_compile"
21644 case "(($ac_try" in
21645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646   *) ac_try_echo=$ac_try;;
21647 esac
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649   (eval "$ac_compile") 2>conftest.er1
21650   ac_status=$?
21651   grep -v '^ *+' conftest.er1 >conftest.err
21652   rm -f conftest.er1
21653   cat conftest.err >&5
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); } && {
21656          test -z "$ac_c_werror_flag" ||
21657          test ! -s conftest.err
21658        } && test -s conftest.$ac_objext; then
21659   ac_cv_type_signal=int
21660 else
21661   echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664         ac_cv_type_signal=void
21665 fi
21666
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 fi
21669 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21670 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21671
21672 cat >>confdefs.h <<_ACEOF
21673 #define RETSIGTYPE $ac_cv_type_signal
21674 _ACEOF
21675
21676
21677
21678 if test "x$ac_cv_header_utmpx_h" = "xyes"
21679 then
21680
21681   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
21682 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
21683
21684
21685   cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h.  */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h.  */
21691
21692 #include <utmpx.h>
21693 #ifndef offsetof
21694 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21695 #endif
21696
21697 int
21698 main ()
21699 {
21700  int foo = offsetof(struct utmpx, ut_xtime)
21701   ;
21702   return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest.$ac_objext
21706 if { (ac_try="$ac_compile"
21707 case "(($ac_try" in
21708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709   *) ac_try_echo=$ac_try;;
21710 esac
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712   (eval "$ac_compile") 2>conftest.er1
21713   ac_status=$?
21714   grep -v '^ *+' conftest.er1 >conftest.err
21715   rm -f conftest.er1
21716   cat conftest.err >&5
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); } && {
21719          test -z "$ac_c_werror_flag" ||
21720          test ! -s conftest.err
21721        } && test -s conftest.$ac_objext; then
21722   has_element=" "
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727         has_element=
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731
21732   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21733   if test "x$has_element" != "x"; then
21734     { echo "$as_me:$LINENO: result: yes" >&5
21735 echo "${ECHO_T}yes" >&6; }
21736     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21737   else
21738     { echo "$as_me:$LINENO: result: no" >&5
21739 echo "${ECHO_T}no" >&6; }
21740     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21741  fi
21742
21743  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21744  then
21745
21746 cat >>confdefs.h <<\_ACEOF
21747 #define ut_xtime ut_tv.tv_sec
21748 _ACEOF
21749
21750  fi
21751 fi
21752
21753
21754   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
21755 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
21756
21757
21758   cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764
21765 #include <netinet/in.h>
21766 #ifndef offsetof
21767 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21768 #endif
21769
21770 int
21771 main ()
21772 {
21773  int foo = offsetof(struct in_pktinfo, ipi_addr)
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782   *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785   (eval "$ac_compile") 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } && {
21792          test -z "$ac_c_werror_flag" ||
21793          test ! -s conftest.err
21794        } && test -s conftest.$ac_objext; then
21795   has_element=" "
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         has_element=
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804
21805   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21806   if test "x$has_element" != "x"; then
21807     { echo "$as_me:$LINENO: result: yes" >&5
21808 echo "${ECHO_T}yes" >&6; }
21809     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21810   else
21811     { echo "$as_me:$LINENO: result: no" >&5
21812 echo "${ECHO_T}no" >&6; }
21813     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21814  fi
21815
21816 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21817 then
21818
21819 cat >>confdefs.h <<\_ACEOF
21820 #define HAVE_IP_PKTINFO
21821 _ACEOF
21822
21823 fi
21824
21825
21826   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
21827 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
21828
21829
21830   cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836
21837 #include <netinet/in.h>
21838 #ifndef offsetof
21839 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21840 #endif
21841
21842 int
21843 main ()
21844 {
21845  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_compile") 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } && {
21864          test -z "$ac_c_werror_flag" ||
21865          test ! -s conftest.err
21866        } && test -s conftest.$ac_objext; then
21867   has_element=" "
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872         has_element=
21873 fi
21874
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876
21877   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
21878   if test "x$has_element" != "x"; then
21879     { echo "$as_me:$LINENO: result: yes" >&5
21880 echo "${ECHO_T}yes" >&6; }
21881     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
21882   else
21883     { echo "$as_me:$LINENO: result: no" >&5
21884 echo "${ECHO_T}no" >&6; }
21885     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
21886  fi
21887
21888 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
21889 then
21890
21891 cat >>confdefs.h <<\_ACEOF
21892 #define HAVE_IN6_PKTINFO
21893 _ACEOF
21894
21895 fi
21896
21897
21898 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21899 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21900 if test "${ac_cv_c_const+set}" = set; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909
21910 int
21911 main ()
21912 {
21913 /* FIXME: Include the comments suggested by Paul. */
21914 #ifndef __cplusplus
21915   /* Ultrix mips cc rejects this.  */
21916   typedef int charset[2];
21917   const charset cs;
21918   /* SunOS 4.1.1 cc rejects this.  */
21919   char const *const *pcpcc;
21920   char **ppc;
21921   /* NEC SVR4.0.2 mips cc rejects this.  */
21922   struct point {int x, y;};
21923   static struct point const zero = {0,0};
21924   /* AIX XL C 1.02.0.0 rejects this.
21925      It does not let you subtract one const X* pointer from another in
21926      an arm of an if-expression whose if-part is not a constant
21927      expression */
21928   const char *g = "string";
21929   pcpcc = &g + (g ? g-g : 0);
21930   /* HPUX 7.0 cc rejects these. */
21931   ++pcpcc;
21932   ppc = (char**) pcpcc;
21933   pcpcc = (char const *const *) ppc;
21934   { /* SCO 3.2v4 cc rejects this.  */
21935     char *t;
21936     char const *s = 0 ? (char *) 0 : (char const *) 0;
21937
21938     *t++ = 0;
21939     if (s) return 0;
21940   }
21941   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21942     int x[] = {25, 17};
21943     const int *foo = &x[0];
21944     ++foo;
21945   }
21946   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21947     typedef const int *iptr;
21948     iptr p = 0;
21949     ++p;
21950   }
21951   { /* AIX XL C 1.02.0.0 rejects this saying
21952        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21953     struct s { int j; const int *ap[3]; };
21954     struct s *b; b->j = 5;
21955   }
21956   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21957     const int foo = 10;
21958     if (!foo) return 0;
21959   }
21960   return !cs[0] && !zero.x;
21961 #endif
21962
21963   ;
21964   return 0;
21965 }
21966 _ACEOF
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971   *) ac_try_echo=$ac_try;;
21972 esac
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974   (eval "$ac_compile") 2>conftest.er1
21975   ac_status=$?
21976   grep -v '^ *+' conftest.er1 >conftest.err
21977   rm -f conftest.er1
21978   cat conftest.err >&5
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); } && {
21981          test -z "$ac_c_werror_flag" ||
21982          test ! -s conftest.err
21983        } && test -s conftest.$ac_objext; then
21984   ac_cv_c_const=yes
21985 else
21986   echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989         ac_cv_c_const=no
21990 fi
21991
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993 fi
21994 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21995 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21996 if test $ac_cv_c_const = no; then
21997
21998 cat >>confdefs.h <<\_ACEOF
21999 #define const
22000 _ACEOF
22001
22002 fi
22003
22004
22005 { echo "$as_me:$LINENO: checking type of OS" >&5
22006 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22007 OS=`uname -s`
22008 { echo "$as_me:$LINENO: result: $OS" >&5
22009 echo "${ECHO_T}$OS" >&6; }
22010 if test "$OS" = "OS/2"; then
22011         LIBPREFIX=
22012 else
22013         LIBPREFIX=lib
22014 fi
22015
22016
22017 if test "x$GCC" = "xyes"; then
22018     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22019 fi
22020
22021 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22022 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22023 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22024   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22025   CFLAGS="$CFLAGS $devflags"
22026   INSTALLSTRIP=""
22027   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22028 echo "${ECHO_T}yes.  Using $devflags" >&6; }
22029 else
22030   devflags=""
22031   CFLAGS="$CFLAGS -DNDEBUG"
22032   INSTALLSTRIP=""
22033   { echo "$as_me:$LINENO: result: no." >&5
22034 echo "${ECHO_T}no." >&6; }
22035 fi
22036
22037
22038     { echo "$as_me:$LINENO: checking for TLS" >&5
22039 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
22040     if test "$cross_compiling" = yes; then
22041   have_tls=no
22042 else
22043   cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h.  */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h.  */
22049  static __thread int val; int main() { return 0; }
22050 _ACEOF
22051 rm -f conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_link") 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22062   { (case "(($ac_try" in
22063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064   *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067   (eval "$ac_try") 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); }; }; then
22071   have_tls=yes
22072 else
22073   echo "$as_me: program exited with status $ac_status" >&5
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077 ( exit $ac_status )
22078 have_tls=no
22079 fi
22080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22081 fi
22082
22083
22084     { echo "$as_me:$LINENO: result: $have_tls" >&5
22085 echo "${ECHO_T}$have_tls" >&6; }
22086     if test "$have_tls" = "yes"; then
22087
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_THREAD_TLS 1
22090 _ACEOF
22091
22092     fi
22093
22094
22095
22096 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22097 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22098 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22099   echo $ECHO_N "(cached) $ECHO_C" >&6
22100 else
22101   ac_check_lib_save_LIBS=$LIBS
22102 LIBS="-lcrypt  $LIBS"
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109
22110 /* Override any GCC internal prototype to avoid an error.
22111    Use char because int might match the return type of a GCC
22112    builtin and then its argument prototype would still apply.  */
22113 #ifdef __cplusplus
22114 extern "C"
22115 #endif
22116 char crypt ();
22117 int
22118 main ()
22119 {
22120 return crypt ();
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (ac_try="$ac_link"
22127 case "(($ac_try" in
22128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129   *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132   (eval "$ac_link") 2>conftest.er1
22133   ac_status=$?
22134   grep -v '^ *+' conftest.er1 >conftest.err
22135   rm -f conftest.er1
22136   cat conftest.err >&5
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } && {
22139          test -z "$ac_c_werror_flag" ||
22140          test ! -s conftest.err
22141        } && test -s conftest$ac_exeext &&
22142        $as_test_x conftest$ac_exeext; then
22143   ac_cv_lib_crypt_crypt=yes
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148         ac_cv_lib_crypt_crypt=no
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22152       conftest$ac_exeext conftest.$ac_ext
22153 LIBS=$ac_check_lib_save_LIBS
22154 fi
22155 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22156 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22157 if test $ac_cv_lib_crypt_crypt = yes; then
22158   CRYPTLIB="-lcrypt"
22159
22160 fi
22161
22162 if test "$CRYPTLIB" != ""; then
22163
22164 cat >>confdefs.h <<\_ACEOF
22165 #define HAVE_CRYPT
22166 _ACEOF
22167
22168 else
22169   { echo "$as_me:$LINENO: checking for crypt" >&5
22170 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22171 if test "${ac_cv_func_crypt+set}" = set; then
22172   echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174   cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22182 #define crypt innocuous_crypt
22183
22184 /* System header to define __stub macros and hopefully few prototypes,
22185     which can conflict with char crypt (); below.
22186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187     <limits.h> exists even on freestanding compilers.  */
22188
22189 #ifdef __STDC__
22190 # include <limits.h>
22191 #else
22192 # include <assert.h>
22193 #endif
22194
22195 #undef crypt
22196
22197 /* Override any GCC internal prototype to avoid an error.
22198    Use char because int might match the return type of a GCC
22199    builtin and then its argument prototype would still apply.  */
22200 #ifdef __cplusplus
22201 extern "C"
22202 #endif
22203 char crypt ();
22204 /* The GNU C library defines this for functions which it implements
22205     to always fail with ENOSYS.  Some functions are actually named
22206     something starting with __ and the normal name is an alias.  */
22207 #if defined __stub_crypt || defined __stub___crypt
22208 choke me
22209 #endif
22210
22211 int
22212 main ()
22213 {
22214 return crypt ();
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (ac_try="$ac_link"
22221 case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_link") 2>conftest.er1
22227   ac_status=$?
22228   grep -v '^ *+' conftest.er1 >conftest.err
22229   rm -f conftest.er1
22230   cat conftest.err >&5
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } && {
22233          test -z "$ac_c_werror_flag" ||
22234          test ! -s conftest.err
22235        } && test -s conftest$ac_exeext &&
22236        $as_test_x conftest$ac_exeext; then
22237   ac_cv_func_crypt=yes
22238 else
22239   echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242         ac_cv_func_crypt=no
22243 fi
22244
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246       conftest$ac_exeext conftest.$ac_ext
22247 fi
22248 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22249 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
22250 if test $ac_cv_func_crypt = yes; then
22251
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_CRYPT
22254 _ACEOF
22255
22256 fi
22257
22258 fi
22259
22260 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22261 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
22262 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22263   echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265   ac_check_lib_save_LIBS=$LIBS
22266 LIBS="-lcipher  $LIBS"
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273
22274 /* Override any GCC internal prototype to avoid an error.
22275    Use char because int might match the return type of a GCC
22276    builtin and then its argument prototype would still apply.  */
22277 #ifdef __cplusplus
22278 extern "C"
22279 #endif
22280 char setkey ();
22281 int
22282 main ()
22283 {
22284 return setkey ();
22285   ;
22286   return 0;
22287 }
22288 _ACEOF
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296   (eval "$ac_link") 2>conftest.er1
22297   ac_status=$?
22298   grep -v '^ *+' conftest.er1 >conftest.err
22299   rm -f conftest.er1
22300   cat conftest.err >&5
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } && {
22303          test -z "$ac_c_werror_flag" ||
22304          test ! -s conftest.err
22305        } && test -s conftest$ac_exeext &&
22306        $as_test_x conftest$ac_exeext; then
22307   ac_cv_lib_cipher_setkey=yes
22308 else
22309   echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312         ac_cv_lib_cipher_setkey=no
22313 fi
22314
22315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22316       conftest$ac_exeext conftest.$ac_ext
22317 LIBS=$ac_check_lib_save_LIBS
22318 fi
22319 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22320 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
22321 if test $ac_cv_lib_cipher_setkey = yes; then
22322   CRYPTLIB="${CRYPTLIB} -lcipher"
22323
22324 fi
22325
22326
22327
22328
22329 cat >>confdefs.h <<\_ACEOF
22330 #define GNUSTYLE 1
22331 _ACEOF
22332
22333
22334 cat >>confdefs.h <<\_ACEOF
22335 #define SYSVSTYLE 2
22336 _ACEOF
22337
22338
22339 cat >>confdefs.h <<\_ACEOF
22340 #define BSDSTYLE 3
22341 _ACEOF
22342
22343 gethostbyaddrrstyle=""
22344 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
22345 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
22346 case "$host" in
22347 *-freebsd*)
22348         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
22349 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
22350 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
22351   echo $ECHO_N "(cached) $ECHO_C" >&6
22352 else
22353   cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h.  */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h.  */
22359
22360 #ifdef HAVE_NETDB_H
22361 #include <netdb.h>
22362 #endif
22363
22364
22365 int
22366 main ()
22367 {
22368 #ifndef gethostbyaddr_r
22369   (void) gethostbyaddr_r;
22370 #endif
22371
22372   ;
22373   return 0;
22374 }
22375 _ACEOF
22376 rm -f conftest.$ac_objext
22377 if { (ac_try="$ac_compile"
22378 case "(($ac_try" in
22379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380   *) ac_try_echo=$ac_try;;
22381 esac
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383   (eval "$ac_compile") 2>conftest.er1
22384   ac_status=$?
22385   grep -v '^ *+' conftest.er1 >conftest.err
22386   rm -f conftest.er1
22387   cat conftest.err >&5
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); } && {
22390          test -z "$ac_c_werror_flag" ||
22391          test ! -s conftest.err
22392        } && test -s conftest.$ac_objext; then
22393   ac_cv_have_decl_gethostbyaddr_r=yes
22394 else
22395   echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22397
22398         ac_cv_have_decl_gethostbyaddr_r=no
22399 fi
22400
22401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22402 fi
22403 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
22404 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
22405 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
22406
22407 cat >>confdefs.h <<_ACEOF
22408 #define HAVE_DECL_GETHOSTBYADDR_R 1
22409 _ACEOF
22410
22411
22412 else
22413   cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL_GETHOSTBYADDR_R 0
22415 _ACEOF
22416
22417
22418
22419 cat >>confdefs.h <<\_ACEOF
22420 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22421 _ACEOF
22422
22423                 gethostbyaddrrstyle=BSD
22424                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
22425 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22426
22427 fi
22428
22429
22430         ;;
22431 esac
22432 if test "x$gethostbyaddrrstyle" = "x"; then
22433         cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439
22440 #include <stdio.h>
22441 #include <netdb.h>
22442
22443 int
22444 main ()
22445 {
22446  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22447   ;
22448   return 0;
22449 }
22450 _ACEOF
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458   (eval "$ac_link") 2>conftest.er1
22459   ac_status=$?
22460   grep -v '^ *+' conftest.er1 >conftest.err
22461   rm -f conftest.er1
22462   cat conftest.err >&5
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } && {
22465          test -z "$ac_c_werror_flag" ||
22466          test ! -s conftest.err
22467        } && test -s conftest$ac_exeext &&
22468        $as_test_x conftest$ac_exeext; then
22469
22470
22471 cat >>confdefs.h <<\_ACEOF
22472 #define GETHOSTBYADDRRSTYLE GNUSTYLE
22473 _ACEOF
22474
22475         gethostbyaddrrstyle=GNU
22476
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481
22482 fi
22483
22484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22485       conftest$ac_exeext conftest.$ac_ext
22486 fi
22487 if test "x$gethostbyaddrrstyle" = "x"; then
22488         cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494
22495 #include <stdio.h>
22496 #include <netdb.h>
22497
22498 int
22499 main ()
22500 {
22501  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22502   ;
22503   return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510   *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513   (eval "$ac_link") 2>conftest.er1
22514   ac_status=$?
22515   grep -v '^ *+' conftest.er1 >conftest.err
22516   rm -f conftest.er1
22517   cat conftest.err >&5
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); } && {
22520          test -z "$ac_c_werror_flag" ||
22521          test ! -s conftest.err
22522        } && test -s conftest$ac_exeext &&
22523        $as_test_x conftest$ac_exeext; then
22524
22525
22526 cat >>confdefs.h <<\_ACEOF
22527 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
22528 _ACEOF
22529
22530                 gethostbyaddrrstyle=SYSV
22531
22532 else
22533   echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536
22537 fi
22538
22539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22540       conftest$ac_exeext conftest.$ac_ext
22541 fi
22542 if test "x$gethostbyaddrrstyle" = "x"; then
22543         cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549
22550 #include <stdio.h>
22551 #include <netdb.h>
22552
22553 int
22554 main ()
22555 {
22556  gethostbyaddr(NULL, 0, 0)
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_link") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_c_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest$ac_exeext &&
22578        $as_test_x conftest$ac_exeext; then
22579
22580
22581 cat >>confdefs.h <<\_ACEOF
22582 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22583 _ACEOF
22584
22585                 gethostbyaddrrstyle=BSD
22586
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591
22592 fi
22593
22594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22595       conftest$ac_exeext conftest.$ac_ext
22596 fi
22597
22598 if test "x$gethostbyaddrrstyle" = "x"; then
22599         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
22600 echo "${ECHO_T}none!  It must not exist, here." >&6; }
22601 else
22602         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
22603 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
22604 fi
22605
22606 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22607         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22608 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22609 fi
22610
22611 gethostbynamerstyle=""
22612 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
22613 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620
22621 #include <stdio.h>
22622 #include <netdb.h>
22623
22624 int
22625 main ()
22626 {
22627  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22628   ;
22629   return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_link") 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && {
22646          test -z "$ac_c_werror_flag" ||
22647          test ! -s conftest.err
22648        } && test -s conftest$ac_exeext &&
22649        $as_test_x conftest$ac_exeext; then
22650
22651
22652 cat >>confdefs.h <<\_ACEOF
22653 #define GETHOSTBYNAMERSTYLE GNUSTYLE
22654 _ACEOF
22655
22656         gethostbynamerstyle=GNU
22657
22658 else
22659   echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22661
22662
22663 fi
22664
22665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22666       conftest$ac_exeext conftest.$ac_ext
22667 if test "x$gethostbynamerstyle" = "x"; then
22668         cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674
22675 #include <stdio.h>
22676 #include <netdb.h>
22677
22678 int
22679 main ()
22680 {
22681  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22682   ;
22683   return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest.$ac_objext conftest$ac_exeext
22687 if { (ac_try="$ac_link"
22688 case "(($ac_try" in
22689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690   *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693   (eval "$ac_link") 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } && {
22700          test -z "$ac_c_werror_flag" ||
22701          test ! -s conftest.err
22702        } && test -s conftest$ac_exeext &&
22703        $as_test_x conftest$ac_exeext; then
22704
22705
22706 cat >>confdefs.h <<\_ACEOF
22707 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
22708 _ACEOF
22709
22710                 gethostbynamerstyle=SYSV
22711
22712 else
22713   echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716
22717 fi
22718
22719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720       conftest$ac_exeext conftest.$ac_ext
22721 fi
22722 if test "x$gethostbynamerstyle" = "x"; then
22723         cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h.  */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h.  */
22729
22730 #include <stdio.h>
22731 #include <netdb.h>
22732
22733 int
22734 main ()
22735 {
22736  gethostbyname(NULL)
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_link") 2>conftest.er1
22749   ac_status=$?
22750   grep -v '^ *+' conftest.er1 >conftest.err
22751   rm -f conftest.er1
22752   cat conftest.err >&5
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } && {
22755          test -z "$ac_c_werror_flag" ||
22756          test ! -s conftest.err
22757        } && test -s conftest$ac_exeext &&
22758        $as_test_x conftest$ac_exeext; then
22759
22760
22761 cat >>confdefs.h <<\_ACEOF
22762 #define GETHOSTBYNAMERSTYLE BSDSTYLE
22763 _ACEOF
22764
22765                 gethostbynamerstyle=BSD
22766
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771
22772 fi
22773
22774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22775       conftest$ac_exeext conftest.$ac_ext
22776 fi
22777
22778 if test "x$gethostbynamerstyle" = "x"; then
22779         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
22780 echo "${ECHO_T}none!  It must not exist, here." >&6; }
22781 else
22782         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
22783 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
22784 fi
22785
22786 if test "x$gethostbynamerstyle" = "xBSD"; then
22787         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22788 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22789 fi
22790
22791
22792 cat >>confdefs.h <<\_ACEOF
22793 #define POSIXSTYLE 1
22794 _ACEOF
22795
22796
22797 cat >>confdefs.h <<\_ACEOF
22798 #define SOLARISSTYLE 2
22799 _ACEOF
22800
22801 ctimerstyle=""
22802 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
22803 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
22804 cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h.  */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h.  */
22810
22811 #include <time.h>
22812
22813 int
22814 main ()
22815 {
22816  ctime_r(NULL, NULL, 0)
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825   *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828   (eval "$ac_link") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest$ac_exeext &&
22838        $as_test_x conftest$ac_exeext; then
22839
22840
22841 cat >>confdefs.h <<\_ACEOF
22842 #define CTIMERSTYLE SOLARISSTYLE
22843 _ACEOF
22844
22845         ctimerstyle="SOLARIS"
22846
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851
22852 fi
22853
22854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22855       conftest$ac_exeext conftest.$ac_ext
22856 if test "x$ctimerstyle" = "x"; then
22857         cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863
22864 #include <time.h>
22865
22866 int
22867 main ()
22868 {
22869  ctime_r(NULL, NULL)
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (ac_try="$ac_link"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881   (eval "$ac_link") 2>conftest.er1
22882   ac_status=$?
22883   grep -v '^ *+' conftest.er1 >conftest.err
22884   rm -f conftest.er1
22885   cat conftest.err >&5
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); } && {
22888          test -z "$ac_c_werror_flag" ||
22889          test ! -s conftest.err
22890        } && test -s conftest$ac_exeext &&
22891        $as_test_x conftest$ac_exeext; then
22892
22893
22894 cat >>confdefs.h <<\_ACEOF
22895 #define CTIMERSTYLE POSIXSTYLE
22896 _ACEOF
22897
22898                 ctimerstyle="POSIX"
22899
22900 else
22901   echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903
22904
22905 fi
22906
22907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22908       conftest$ac_exeext conftest.$ac_ext
22909 fi
22910
22911 if test "x$ctimerstyle" = "x"; then
22912         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
22913 echo "${ECHO_T}none!  It must not exist, here." >&6; }
22914 else
22915         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
22916 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
22917 fi
22918
22919 HOSTINFO=$host
22920
22921
22922
22923 top_builddir=`pwd`
22924 export top_builddir
22925 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
22926 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
22927
22928
22929
22930
22931
22932 mysubdirs="$LIBLTDLPATH"
22933 if test "x$EXPERIMENTAL" = "xyes"; then
22934   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22935     mysubdirs=`echo $mysubdirs $bar`
22936 else
22937         for bar in `cat "${srcdir}"/src/modules/stable`; do
22938     if test -f "${srcdir}"/src/modules/$bar/configure; then
22939       mysubdirs="$mysubdirs src/modules/$bar"
22940     fi
22941   done
22942 fi
22943
22944 if test "x$EXPERIMENTAL" = "xyes"; then
22945   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22946     MODULES="$MODULES $foo"
22947   done
22948 else
22949             for foo in `cat "${srcdir}"/src/modules/stable`; do
22950     MODULES="$MODULES $foo"
22951    done
22952 fi
22953
22954 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22955
22956
22957
22958
22959 ac_config_commands="$ac_config_commands stamp-h"
22960
22961 ac_config_commands="$ac_config_commands build-radpaths-h"
22962
22963 ac_config_commands="$ac_config_commands main-chmod"
22964
22965 ac_config_commands="$ac_config_commands scripts-chmod"
22966
22967
22968
22969
22970
22971 USE_SHARED_LIBS=$enable_shared
22972
22973 USE_STATIC_LIBS=$enable_static
22974
22975
22976
22977
22978
22979
22980
22981   unset ac_cv_env_LIBS_set
22982   unset ac_cv_env_LIBS_value
22983
22984   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
22985
22986 cat >confcache <<\_ACEOF
22987 # This file is a shell script that caches the results of configure
22988 # tests run on this system so they can be shared between configure
22989 # scripts and configure runs, see configure's option --config-cache.
22990 # It is not useful on other systems.  If it contains results you don't
22991 # want to keep, you may remove or edit it.
22992 #
22993 # config.status only pays attention to the cache file if you give it
22994 # the --recheck option to rerun configure.
22995 #
22996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22998 # following values.
22999
23000 _ACEOF
23001
23002 # The following way of writing the cache mishandles newlines in values,
23003 # but we know of no workaround that is simple, portable, and efficient.
23004 # So, we kill variables containing newlines.
23005 # Ultrix sh set writes to stderr and can't be redirected directly,
23006 # and sets the high bit in the cache file unless we assign to the vars.
23007 (
23008   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23009     eval ac_val=\$$ac_var
23010     case $ac_val in #(
23011     *${as_nl}*)
23012       case $ac_var in #(
23013       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23014 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23015       esac
23016       case $ac_var in #(
23017       _ | IFS | as_nl) ;; #(
23018       *) $as_unset $ac_var ;;
23019       esac ;;
23020     esac
23021   done
23022
23023   (set) 2>&1 |
23024     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23025     *${as_nl}ac_space=\ *)
23026       # `set' does not quote correctly, so add quotes (double-quote
23027       # substitution turns \\\\ into \\, and sed turns \\ into \).
23028       sed -n \
23029         "s/'/'\\\\''/g;
23030           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23031       ;; #(
23032     *)
23033       # `set' quotes correctly as required by POSIX, so do not add quotes.
23034       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23035       ;;
23036     esac |
23037     sort
23038 ) |
23039   sed '
23040      /^ac_cv_env_/b end
23041      t clear
23042      :clear
23043      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23044      t end
23045      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23046      :end' >>confcache
23047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23048   if test -w "$cache_file"; then
23049     test "x$cache_file" != "x/dev/null" &&
23050       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23051 echo "$as_me: updating cache $cache_file" >&6;}
23052     cat confcache >$cache_file
23053   else
23054     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23055 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23056   fi
23057 fi
23058 rm -f confcache
23059
23060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23061 # Let make expand exec_prefix.
23062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23063
23064 DEFS=-DHAVE_CONFIG_H
23065
23066 ac_libobjs=
23067 ac_ltlibobjs=
23068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23069   # 1. Remove the extension, and $U if already installed.
23070   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23071   ac_i=`echo "$ac_i" | sed "$ac_script"`
23072   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23073   #    will be set to the directory where LIBOBJS objects are built.
23074   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23075   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23076 done
23077 LIBOBJS=$ac_libobjs
23078
23079 LTLIBOBJS=$ac_ltlibobjs
23080
23081
23082 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23083   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23084 Usually this means the macro was only invoked conditionally." >&5
23085 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23086 Usually this means the macro was only invoked conditionally." >&2;}
23087    { (exit 1); exit 1; }; }
23088 fi
23089 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23090   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23091 Usually this means the macro was only invoked conditionally." >&5
23092 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23093 Usually this means the macro was only invoked conditionally." >&2;}
23094    { (exit 1); exit 1; }; }
23095 fi
23096 LT_CONFIG_H=src/include/autoconf.h
23097
23098     _ltdl_libobjs=
23099     _ltdl_ltlibobjs=
23100     if test -n "$_LT_LIBOBJS"; then
23101       # Remove the extension.
23102       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
23103       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
23104         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
23105         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
23106       done
23107     fi
23108     ltdl_LIBOBJS=$_ltdl_libobjs
23109
23110     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23111
23112
23113
23114 : ${CONFIG_STATUS=./config.status}
23115 ac_clean_files_save=$ac_clean_files
23116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23117 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23118 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23119 cat >$CONFIG_STATUS <<_ACEOF
23120 #! $SHELL
23121 # Generated by $as_me.
23122 # Run this file to recreate the current configuration.
23123 # Compiler output produced by configure, useful for debugging
23124 # configure, is in config.log if it exists.
23125
23126 debug=false
23127 ac_cs_recheck=false
23128 ac_cs_silent=false
23129 SHELL=\${CONFIG_SHELL-$SHELL}
23130 _ACEOF
23131
23132 cat >>$CONFIG_STATUS <<\_ACEOF
23133 ## --------------------- ##
23134 ## M4sh Initialization.  ##
23135 ## --------------------- ##
23136
23137 # Be more Bourne compatible
23138 DUALCASE=1; export DUALCASE # for MKS sh
23139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23140   emulate sh
23141   NULLCMD=:
23142   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23143   # is contrary to our usage.  Disable this feature.
23144   alias -g '${1+"$@"}'='"$@"'
23145   setopt NO_GLOB_SUBST
23146 else
23147   case `(set -o) 2>/dev/null` in
23148   *posix*) set -o posix ;;
23149 esac
23150
23151 fi
23152
23153
23154
23155
23156 # PATH needs CR
23157 # Avoid depending upon Character Ranges.
23158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23161 as_cr_digits='0123456789'
23162 as_cr_alnum=$as_cr_Letters$as_cr_digits
23163
23164 # The user is always right.
23165 if test "${PATH_SEPARATOR+set}" != set; then
23166   echo "#! /bin/sh" >conf$$.sh
23167   echo  "exit 0"   >>conf$$.sh
23168   chmod +x conf$$.sh
23169   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23170     PATH_SEPARATOR=';'
23171   else
23172     PATH_SEPARATOR=:
23173   fi
23174   rm -f conf$$.sh
23175 fi
23176
23177 # Support unset when possible.
23178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23179   as_unset=unset
23180 else
23181   as_unset=false
23182 fi
23183
23184
23185 # IFS
23186 # We need space, tab and new line, in precisely that order.  Quoting is
23187 # there to prevent editors from complaining about space-tab.
23188 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23189 # splitting by setting IFS to empty value.)
23190 as_nl='
23191 '
23192 IFS=" ""        $as_nl"
23193
23194 # Find who we are.  Look in the path if we contain no directory separator.
23195 case $0 in
23196   *[\\/]* ) as_myself=$0 ;;
23197   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23198 for as_dir in $PATH
23199 do
23200   IFS=$as_save_IFS
23201   test -z "$as_dir" && as_dir=.
23202   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23203 done
23204 IFS=$as_save_IFS
23205
23206      ;;
23207 esac
23208 # We did not find ourselves, most probably we were run as `sh COMMAND'
23209 # in which case we are not to be found in the path.
23210 if test "x$as_myself" = x; then
23211   as_myself=$0
23212 fi
23213 if test ! -f "$as_myself"; then
23214   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23215   { (exit 1); exit 1; }
23216 fi
23217
23218 # Work around bugs in pre-3.0 UWIN ksh.
23219 for as_var in ENV MAIL MAILPATH
23220 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23221 done
23222 PS1='$ '
23223 PS2='> '
23224 PS4='+ '
23225
23226 # NLS nuisances.
23227 for as_var in \
23228   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23229   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23230   LC_TELEPHONE LC_TIME
23231 do
23232   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23233     eval $as_var=C; export $as_var
23234   else
23235     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23236   fi
23237 done
23238
23239 # Required to use basename.
23240 if expr a : '\(a\)' >/dev/null 2>&1 &&
23241    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23242   as_expr=expr
23243 else
23244   as_expr=false
23245 fi
23246
23247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23248   as_basename=basename
23249 else
23250   as_basename=false
23251 fi
23252
23253
23254 # Name of the executable.
23255 as_me=`$as_basename -- "$0" ||
23256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23257          X"$0" : 'X\(//\)$' \| \
23258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23259 echo X/"$0" |
23260     sed '/^.*\/\([^/][^/]*\)\/*$/{
23261             s//\1/
23262             q
23263           }
23264           /^X\/\(\/\/\)$/{
23265             s//\1/
23266             q
23267           }
23268           /^X\/\(\/\).*/{
23269             s//\1/
23270             q
23271           }
23272           s/.*/./; q'`
23273
23274 # CDPATH.
23275 $as_unset CDPATH
23276
23277
23278
23279   as_lineno_1=$LINENO
23280   as_lineno_2=$LINENO
23281   test "x$as_lineno_1" != "x$as_lineno_2" &&
23282   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23283
23284   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23285   # uniformly replaced by the line number.  The first 'sed' inserts a
23286   # line-number line after each line using $LINENO; the second 'sed'
23287   # does the real work.  The second script uses 'N' to pair each
23288   # line-number line with the line containing $LINENO, and appends
23289   # trailing '-' during substitution so that $LINENO is not a special
23290   # case at line end.
23291   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23292   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23293   # E. McMahon (1931-1989) for sed's syntax.  :-)
23294   sed -n '
23295     p
23296     /[$]LINENO/=
23297   ' <$as_myself |
23298     sed '
23299       s/[$]LINENO.*/&-/
23300       t lineno
23301       b
23302       :lineno
23303       N
23304       :loop
23305       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23306       t loop
23307       s/-\n.*//
23308     ' >$as_me.lineno &&
23309   chmod +x "$as_me.lineno" ||
23310     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23311    { (exit 1); exit 1; }; }
23312
23313   # Don't try to exec as it changes $[0], causing all sort of problems
23314   # (the dirname of $[0] is not the place where we might find the
23315   # original and so on.  Autoconf is especially sensitive to this).
23316   . "./$as_me.lineno"
23317   # Exit status is that of the last command.
23318   exit
23319 }
23320
23321
23322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23323   as_dirname=dirname
23324 else
23325   as_dirname=false
23326 fi
23327
23328 ECHO_C= ECHO_N= ECHO_T=
23329 case `echo -n x` in
23330 -n*)
23331   case `echo 'x\c'` in
23332   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23333   *)   ECHO_C='\c';;
23334   esac;;
23335 *)
23336   ECHO_N='-n';;
23337 esac
23338
23339 if expr a : '\(a\)' >/dev/null 2>&1 &&
23340    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23341   as_expr=expr
23342 else
23343   as_expr=false
23344 fi
23345
23346 rm -f conf$$ conf$$.exe conf$$.file
23347 if test -d conf$$.dir; then
23348   rm -f conf$$.dir/conf$$.file
23349 else
23350   rm -f conf$$.dir
23351   mkdir conf$$.dir
23352 fi
23353 echo >conf$$.file
23354 if ln -s conf$$.file conf$$ 2>/dev/null; then
23355   as_ln_s='ln -s'
23356   # ... but there are two gotchas:
23357   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23358   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23359   # In both cases, we have to default to `cp -p'.
23360   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23361     as_ln_s='cp -p'
23362 elif ln conf$$.file conf$$ 2>/dev/null; then
23363   as_ln_s=ln
23364 else
23365   as_ln_s='cp -p'
23366 fi
23367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23368 rmdir conf$$.dir 2>/dev/null
23369
23370 if mkdir -p . 2>/dev/null; then
23371   as_mkdir_p=:
23372 else
23373   test -d ./-p && rmdir ./-p
23374   as_mkdir_p=false
23375 fi
23376
23377 if test -x / >/dev/null 2>&1; then
23378   as_test_x='test -x'
23379 else
23380   if ls -dL / >/dev/null 2>&1; then
23381     as_ls_L_option=L
23382   else
23383     as_ls_L_option=
23384   fi
23385   as_test_x='
23386     eval sh -c '\''
23387       if test -d "$1"; then
23388         test -d "$1/.";
23389       else
23390         case $1 in
23391         -*)set "./$1";;
23392         esac;
23393         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23394         ???[sx]*):;;*)false;;esac;fi
23395     '\'' sh
23396   '
23397 fi
23398 as_executable_p=$as_test_x
23399
23400 # Sed expression to map a string onto a valid CPP name.
23401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23402
23403 # Sed expression to map a string onto a valid variable name.
23404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23405
23406
23407 exec 6>&1
23408
23409 # Save the log message, to keep $[0] and so on meaningful, and to
23410 # report actual input values of CONFIG_FILES etc. instead of their
23411 # values after options handling.
23412 ac_log="
23413 This file was extended by $as_me, which was
23414 generated by GNU Autoconf 2.61.  Invocation command line was
23415
23416   CONFIG_FILES    = $CONFIG_FILES
23417   CONFIG_HEADERS  = $CONFIG_HEADERS
23418   CONFIG_LINKS    = $CONFIG_LINKS
23419   CONFIG_COMMANDS = $CONFIG_COMMANDS
23420   $ $0 $@
23421
23422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23423 "
23424
23425 _ACEOF
23426
23427 cat >>$CONFIG_STATUS <<_ACEOF
23428 # Files that config.status was made for.
23429 config_files="$ac_config_files"
23430 config_headers="$ac_config_headers"
23431 config_commands="$ac_config_commands"
23432
23433 _ACEOF
23434
23435 cat >>$CONFIG_STATUS <<\_ACEOF
23436 ac_cs_usage="\
23437 \`$as_me' instantiates files from templates according to the
23438 current configuration.
23439
23440 Usage: $0 [OPTIONS] [FILE]...
23441
23442   -h, --help       print this help, then exit
23443   -V, --version    print version number and configuration settings, then exit
23444   -q, --quiet      do not print progress messages
23445   -d, --debug      don't remove temporary files
23446       --recheck    update $as_me by reconfiguring in the same conditions
23447   --file=FILE[:TEMPLATE]
23448                    instantiate the configuration file FILE
23449   --header=FILE[:TEMPLATE]
23450                    instantiate the configuration header FILE
23451
23452 Configuration files:
23453 $config_files
23454
23455 Configuration headers:
23456 $config_headers
23457
23458 Configuration commands:
23459 $config_commands
23460
23461 Report bugs to <bug-autoconf@gnu.org>."
23462
23463 _ACEOF
23464 cat >>$CONFIG_STATUS <<_ACEOF
23465 ac_cs_version="\\
23466 config.status
23467 configured by $0, generated by GNU Autoconf 2.61,
23468   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23469
23470 Copyright (C) 2006 Free Software Foundation, Inc.
23471 This config.status script is free software; the Free Software Foundation
23472 gives unlimited permission to copy, distribute and modify it."
23473
23474 ac_pwd='$ac_pwd'
23475 srcdir='$srcdir'
23476 _ACEOF
23477
23478 cat >>$CONFIG_STATUS <<\_ACEOF
23479 # If no file are specified by the user, then we need to provide default
23480 # value.  By we need to know if files were specified by the user.
23481 ac_need_defaults=:
23482 while test $# != 0
23483 do
23484   case $1 in
23485   --*=*)
23486     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23487     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23488     ac_shift=:
23489     ;;
23490   *)
23491     ac_option=$1
23492     ac_optarg=$2
23493     ac_shift=shift
23494     ;;
23495   esac
23496
23497   case $ac_option in
23498   # Handling of the options.
23499   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23500     ac_cs_recheck=: ;;
23501   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23502     echo "$ac_cs_version"; exit ;;
23503   --debug | --debu | --deb | --de | --d | -d )
23504     debug=: ;;
23505   --file | --fil | --fi | --f )
23506     $ac_shift
23507     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23508     ac_need_defaults=false;;
23509   --header | --heade | --head | --hea )
23510     $ac_shift
23511     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23512     ac_need_defaults=false;;
23513   --he | --h)
23514     # Conflict between --help and --header
23515     { echo "$as_me: error: ambiguous option: $1
23516 Try \`$0 --help' for more information." >&2
23517    { (exit 1); exit 1; }; };;
23518   --help | --hel | -h )
23519     echo "$ac_cs_usage"; exit ;;
23520   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23521   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23522     ac_cs_silent=: ;;
23523
23524   # This is an error.
23525   -*) { echo "$as_me: error: unrecognized option: $1
23526 Try \`$0 --help' for more information." >&2
23527    { (exit 1); exit 1; }; } ;;
23528
23529   *) ac_config_targets="$ac_config_targets $1"
23530      ac_need_defaults=false ;;
23531
23532   esac
23533   shift
23534 done
23535
23536 ac_configure_extra_args=
23537
23538 if $ac_cs_silent; then
23539   exec 6>/dev/null
23540   ac_configure_extra_args="$ac_configure_extra_args --silent"
23541 fi
23542
23543 _ACEOF
23544 cat >>$CONFIG_STATUS <<_ACEOF
23545 if \$ac_cs_recheck; then
23546   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23547   CONFIG_SHELL=$SHELL
23548   export CONFIG_SHELL
23549   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23550 fi
23551
23552 _ACEOF
23553 cat >>$CONFIG_STATUS <<\_ACEOF
23554 exec 5>>config.log
23555 {
23556   echo
23557   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23558 ## Running $as_me. ##
23559 _ASBOX
23560   echo "$ac_log"
23561 } >&5
23562
23563 _ACEOF
23564 cat >>$CONFIG_STATUS <<_ACEOF
23565 #
23566 # INIT-COMMANDS
23567 #
23568
23569
23570 # The HP-UX ksh and POSIX shell print the target directory to stdout
23571 # if CDPATH is set.
23572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23573
23574 sed_quote_subst='$sed_quote_subst'
23575 double_quote_subst='$double_quote_subst'
23576 delay_variable_subst='$delay_variable_subst'
23577 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23578 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23579 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23580 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23581 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23582 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23583 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23584 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23585 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23586 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23587 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23588 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23589 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23590 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23591 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23592 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23593 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23594 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23595 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23596 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23597 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23598 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23599 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23600 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23601 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23602 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23603 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23604 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23605 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23606 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23607 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23608 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23609 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23610 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23611 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23612 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23613 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23614 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23615 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23616 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23617 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23618 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23620 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23622 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23623 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23624 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23625 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23626 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23627 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23628 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23629 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23630 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23631 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23632 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23633 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23634 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23635 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23636 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23637 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23638 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23639 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23640 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23641 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23642 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23643 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23644 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23645 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23646 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23647 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23648 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23649 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23650 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23651 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23652 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23653 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23654 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23655 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23656 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23657 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23658 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23659 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23660 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23661 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23662 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23663 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23664 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23665 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23666 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23667 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23668 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23669 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23670 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23671 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23672 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23673 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23674 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23675 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23676 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23677 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23678 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23679 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23680 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23681 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23682 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23683 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23684 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23685 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23686 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23687 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23688 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23689 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23690 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23691 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23692 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23693 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23694 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
23695 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23696 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23697 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
23698 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
23699 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
23700 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23701 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23702 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23703 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23704 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23705 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23706 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23707 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23708 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23709 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23710 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23711 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23712 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23713 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23714 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23715 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23716 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23717 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23718 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23719 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23720 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23721 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23722 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23723 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23724 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23725 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23726 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23727 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23728 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23729 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23730 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23731 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23732 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23733 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23734 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23735 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23736 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23737 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23738 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23739 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23740 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23741 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23742 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23743 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23744 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23745 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23746 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23747
23748 LTCC='$LTCC'
23749 LTCFLAGS='$LTCFLAGS'
23750 compiler='$compiler_DEFAULT'
23751
23752 # Quote evaled strings.
23753 for var in SED \
23754 GREP \
23755 EGREP \
23756 FGREP \
23757 LD \
23758 NM \
23759 LN_S \
23760 lt_SP2NL \
23761 lt_NL2SP \
23762 reload_flag \
23763 deplibs_check_method \
23764 file_magic_cmd \
23765 AR \
23766 AR_FLAGS \
23767 STRIP \
23768 RANLIB \
23769 CC \
23770 CFLAGS \
23771 compiler \
23772 lt_cv_sys_global_symbol_pipe \
23773 lt_cv_sys_global_symbol_to_cdecl \
23774 lt_cv_sys_global_symbol_to_c_name_address \
23775 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23776 SHELL \
23777 ECHO \
23778 lt_prog_compiler_no_builtin_flag \
23779 lt_prog_compiler_wl \
23780 lt_prog_compiler_pic \
23781 lt_prog_compiler_static \
23782 lt_cv_prog_compiler_c_o \
23783 need_locks \
23784 DSYMUTIL \
23785 NMEDIT \
23786 LIPO \
23787 OTOOL \
23788 OTOOL64 \
23789 shrext_cmds \
23790 export_dynamic_flag_spec \
23791 whole_archive_flag_spec \
23792 compiler_needs_object \
23793 with_gnu_ld \
23794 allow_undefined_flag \
23795 no_undefined_flag \
23796 hardcode_libdir_flag_spec \
23797 hardcode_libdir_flag_spec_ld \
23798 hardcode_libdir_separator \
23799 fix_srcfile_path \
23800 exclude_expsyms \
23801 include_expsyms \
23802 file_list_spec \
23803 variables_saved_for_relink \
23804 libname_spec \
23805 library_names_spec \
23806 soname_spec \
23807 finish_eval \
23808 old_striplib \
23809 striplib \
23810 compiler_lib_search_dirs \
23811 predep_objects \
23812 postdep_objects \
23813 predeps \
23814 postdeps \
23815 compiler_lib_search_path \
23816 LD_CXX \
23817 compiler_CXX \
23818 lt_prog_compiler_no_builtin_flag_CXX \
23819 lt_prog_compiler_wl_CXX \
23820 lt_prog_compiler_pic_CXX \
23821 lt_prog_compiler_static_CXX \
23822 lt_cv_prog_compiler_c_o_CXX \
23823 export_dynamic_flag_spec_CXX \
23824 whole_archive_flag_spec_CXX \
23825 compiler_needs_object_CXX \
23826 with_gnu_ld_CXX \
23827 allow_undefined_flag_CXX \
23828 no_undefined_flag_CXX \
23829 hardcode_libdir_flag_spec_CXX \
23830 hardcode_libdir_flag_spec_ld_CXX \
23831 hardcode_libdir_separator_CXX \
23832 fix_srcfile_path_CXX \
23833 exclude_expsyms_CXX \
23834 include_expsyms_CXX \
23835 file_list_spec_CXX \
23836 compiler_lib_search_dirs_CXX \
23837 predep_objects_CXX \
23838 postdep_objects_CXX \
23839 predeps_CXX \
23840 postdeps_CXX \
23841 compiler_lib_search_path_CXX; do
23842     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23843     *[\\\\\\\`\\"\\\$]*)
23844       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23845       ;;
23846     *)
23847       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23848       ;;
23849     esac
23850 done
23851
23852 # Double-quote double-evaled strings.
23853 for var in reload_cmds \
23854 old_postinstall_cmds \
23855 old_postuninstall_cmds \
23856 old_archive_cmds \
23857 extract_expsyms_cmds \
23858 old_archive_from_new_cmds \
23859 old_archive_from_expsyms_cmds \
23860 archive_cmds \
23861 archive_expsym_cmds \
23862 module_cmds \
23863 module_expsym_cmds \
23864 export_symbols_cmds \
23865 prelink_cmds \
23866 postinstall_cmds \
23867 postuninstall_cmds \
23868 finish_cmds \
23869 sys_lib_search_path_spec \
23870 sys_lib_dlsearch_path_spec \
23871 old_archive_cmds_CXX \
23872 old_archive_from_new_cmds_CXX \
23873 old_archive_from_expsyms_cmds_CXX \
23874 archive_cmds_CXX \
23875 archive_expsym_cmds_CXX \
23876 module_cmds_CXX \
23877 module_expsym_cmds_CXX \
23878 export_symbols_cmds_CXX \
23879 prelink_cmds_CXX; do
23880     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23881     *[\\\\\\\`\\"\\\$]*)
23882       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23883       ;;
23884     *)
23885       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23886       ;;
23887     esac
23888 done
23889
23890 # Fix-up fallback echo if it was mangled by the above quoting rules.
23891 case \$lt_ECHO in
23892 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23893   ;;
23894 esac
23895
23896 ac_aux_dir='$ac_aux_dir'
23897 xsi_shell='$xsi_shell'
23898 lt_shell_append='$lt_shell_append'
23899
23900 # See if we are running on zsh, and set the options which allow our
23901 # commands through without removal of \ escapes INIT.
23902 if test -n "\${ZSH_VERSION+set}" ; then
23903    setopt NO_GLOB_SUBST
23904 fi
23905
23906
23907     PACKAGE='$PACKAGE'
23908     VERSION='$VERSION'
23909     TIMESTAMP='$TIMESTAMP'
23910     RM='$RM'
23911     ofile='$ofile'
23912
23913
23914
23915
23916
23917
23918 _ACEOF
23919
23920 cat >>$CONFIG_STATUS <<\_ACEOF
23921
23922 # Handling of arguments.
23923 for ac_config_target in $ac_config_targets
23924 do
23925   case $ac_config_target in
23926     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23927     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23928     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23929     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23930     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23931     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23932     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23933     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23934     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23935     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23936     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23937     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23938     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23939     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23940     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23941     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23942     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23943     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23944     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23945
23946   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23948    { (exit 1); exit 1; }; };;
23949   esac
23950 done
23951
23952
23953 # If the user did not use the arguments to specify the items to instantiate,
23954 # then the envvar interface is used.  Set only those that are not.
23955 # We use the long form for the default assignment because of an extremely
23956 # bizarre bug on SunOS 4.1.3.
23957 if $ac_need_defaults; then
23958   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23959   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23960   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23961 fi
23962
23963 # Have a temporary directory for convenience.  Make it in the build tree
23964 # simply because there is no reason against having it here, and in addition,
23965 # creating and moving files from /tmp can sometimes cause problems.
23966 # Hook for its removal unless debugging.
23967 # Note that there is a small window in which the directory will not be cleaned:
23968 # after its creation but before its name has been assigned to `$tmp'.
23969 $debug ||
23970 {
23971   tmp=
23972   trap 'exit_status=$?
23973   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23974 ' 0
23975   trap '{ (exit 1); exit 1; }' 1 2 13 15
23976 }
23977 # Create a (secure) tmp directory for tmp files.
23978
23979 {
23980   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23981   test -n "$tmp" && test -d "$tmp"
23982 }  ||
23983 {
23984   tmp=./conf$$-$RANDOM
23985   (umask 077 && mkdir "$tmp")
23986 } ||
23987 {
23988    echo "$me: cannot create a temporary directory in ." >&2
23989    { (exit 1); exit 1; }
23990 }
23991
23992 #
23993 # Set up the sed scripts for CONFIG_FILES section.
23994 #
23995
23996 # No need to generate the scripts if there are no CONFIG_FILES.
23997 # This happens for instance when ./config.status config.h
23998 if test -n "$CONFIG_FILES"; then
23999
24000 _ACEOF
24001
24002
24003
24004 ac_delim='%!_!# '
24005 for ac_last_try in false false false false false :; do
24006   cat >conf$$subs.sed <<_ACEOF
24007 SHELL!$SHELL$ac_delim
24008 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24009 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24010 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24011 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24012 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24013 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24014 exec_prefix!$exec_prefix$ac_delim
24015 prefix!$prefix$ac_delim
24016 program_transform_name!$program_transform_name$ac_delim
24017 bindir!$bindir$ac_delim
24018 sbindir!$sbindir$ac_delim
24019 libexecdir!$libexecdir$ac_delim
24020 datarootdir!$datarootdir$ac_delim
24021 datadir!$datadir$ac_delim
24022 sysconfdir!$sysconfdir$ac_delim
24023 sharedstatedir!$sharedstatedir$ac_delim
24024 localstatedir!$localstatedir$ac_delim
24025 includedir!$includedir$ac_delim
24026 oldincludedir!$oldincludedir$ac_delim
24027 docdir!$docdir$ac_delim
24028 infodir!$infodir$ac_delim
24029 htmldir!$htmldir$ac_delim
24030 dvidir!$dvidir$ac_delim
24031 pdfdir!$pdfdir$ac_delim
24032 psdir!$psdir$ac_delim
24033 libdir!$libdir$ac_delim
24034 localedir!$localedir$ac_delim
24035 mandir!$mandir$ac_delim
24036 DEFS!$DEFS$ac_delim
24037 ECHO_C!$ECHO_C$ac_delim
24038 ECHO_N!$ECHO_N$ac_delim
24039 ECHO_T!$ECHO_T$ac_delim
24040 LIBS!$LIBS$ac_delim
24041 build_alias!$build_alias$ac_delim
24042 host_alias!$host_alias$ac_delim
24043 target_alias!$target_alias$ac_delim
24044 CC!$CC$ac_delim
24045 CFLAGS!$CFLAGS$ac_delim
24046 LDFLAGS!$LDFLAGS$ac_delim
24047 CPPFLAGS!$CPPFLAGS$ac_delim
24048 ac_ct_CC!$ac_ct_CC$ac_delim
24049 EXEEXT!$EXEEXT$ac_delim
24050 OBJEXT!$OBJEXT$ac_delim
24051 CXX!$CXX$ac_delim
24052 CXXFLAGS!$CXXFLAGS$ac_delim
24053 ac_ct_CXX!$ac_ct_CXX$ac_delim
24054 CPP!$CPP$ac_delim
24055 GREP!$GREP$ac_delim
24056 EGREP!$EGREP$ac_delim
24057 GMAKE!$GMAKE$ac_delim
24058 MAKE!$MAKE$ac_delim
24059 LIBLTDL!$LIBLTDL$ac_delim
24060 LTDLDEPS!$LTDLDEPS$ac_delim
24061 LTDLINCL!$LTDLINCL$ac_delim
24062 INCLTDL!$INCLTDL$ac_delim
24063 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
24064 LIBTOOL!$LIBTOOL$ac_delim
24065 build!$build$ac_delim
24066 build_cpu!$build_cpu$ac_delim
24067 build_vendor!$build_vendor$ac_delim
24068 build_os!$build_os$ac_delim
24069 host!$host$ac_delim
24070 host_cpu!$host_cpu$ac_delim
24071 host_vendor!$host_vendor$ac_delim
24072 host_os!$host_os$ac_delim
24073 SED!$SED$ac_delim
24074 FGREP!$FGREP$ac_delim
24075 LD!$LD$ac_delim
24076 DUMPBIN!$DUMPBIN$ac_delim
24077 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24078 NM!$NM$ac_delim
24079 LN_S!$LN_S$ac_delim
24080 AR!$AR$ac_delim
24081 STRIP!$STRIP$ac_delim
24082 RANLIB!$RANLIB$ac_delim
24083 lt_ECHO!$lt_ECHO$ac_delim
24084 DSYMUTIL!$DSYMUTIL$ac_delim
24085 NMEDIT!$NMEDIT$ac_delim
24086 LIPO!$LIPO$ac_delim
24087 OTOOL!$OTOOL$ac_delim
24088 OTOOL64!$OTOOL64$ac_delim
24089 CXXCPP!$CXXCPP$ac_delim
24090 LT_DLLOADERS!$LT_DLLOADERS$ac_delim
24091 LIBADD_DLOPEN!$LIBADD_DLOPEN$ac_delim
24092 LIBADD_SHL_LOAD!$LIBADD_SHL_LOAD$ac_delim
24093 LIBADD_DLD_LINK!$LIBADD_DLD_LINK$ac_delim
24094 LT_DLPREOPEN!$LT_DLPREOPEN$ac_delim
24095 LIBADD_DL!$LIBADD_DL$ac_delim
24096 sys_symbol_underscore!$sys_symbol_underscore$ac_delim
24097 ARGZ_H!$ARGZ_H$ac_delim
24098 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
24099 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
24100 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
24101 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
24102 subdirs!$subdirs$ac_delim
24103 LT_CONFIG_H!$LT_CONFIG_H$ac_delim
24104 _ACEOF
24105
24106   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24107     break
24108   elif $ac_last_try; then
24109     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24110 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24111    { (exit 1); exit 1; }; }
24112   else
24113     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24114   fi
24115 done
24116
24117 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24118 if test -n "$ac_eof"; then
24119   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24120   ac_eof=`expr $ac_eof + 1`
24121 fi
24122
24123 cat >>$CONFIG_STATUS <<_ACEOF
24124 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24126 _ACEOF
24127 sed '
24128 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24129 s/^/s,@/; s/!/@,|#_!!_#|/
24130 :n
24131 t n
24132 s/'"$ac_delim"'$/,g/; t
24133 s/$/\\/; p
24134 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24135 ' >>$CONFIG_STATUS <conf$$subs.sed
24136 rm -f conf$$subs.sed
24137 cat >>$CONFIG_STATUS <<_ACEOF
24138 CEOF$ac_eof
24139 _ACEOF
24140
24141
24142 ac_delim='%!_!# '
24143 for ac_last_try in false false false false false :; do
24144   cat >conf$$subs.sed <<_ACEOF
24145 LTDLOPEN!$LTDLOPEN$ac_delim
24146 logdir!$logdir$ac_delim
24147 radacctdir!$radacctdir$ac_delim
24148 raddbdir!$raddbdir$ac_delim
24149 PERL!$PERL$ac_delim
24150 SNMPGET!$SNMPGET$ac_delim
24151 SNMPWALK!$SNMPWALK$ac_delim
24152 RUSERS!$RUSERS$ac_delim
24153 ACLOCAL!$ACLOCAL$ac_delim
24154 AUTOCONF!$AUTOCONF$ac_delim
24155 AUTOHEADER!$AUTOHEADER$ac_delim
24156 LOCATE!$LOCATE$ac_delim
24157 DIRNAME!$DIRNAME$ac_delim
24158 LIBREADLINE!$LIBREADLINE$ac_delim
24159 REGEX!$REGEX$ac_delim
24160 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
24161 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
24162 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
24163 PCAP_LIBS!$PCAP_LIBS$ac_delim
24164 LIBPREFIX!$LIBPREFIX$ac_delim
24165 CRYPTLIB!$CRYPTLIB$ac_delim
24166 HOSTINFO!$HOSTINFO$ac_delim
24167 MODULES!$MODULES$ac_delim
24168 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
24169 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
24170 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
24171 STATIC_MODULES!$STATIC_MODULES$ac_delim
24172 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
24173 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
24174 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
24175 LIBOBJS!$LIBOBJS$ac_delim
24176 LTLIBOBJS!$LTLIBOBJS$ac_delim
24177 ltdl_LIBOBJS!$ltdl_LIBOBJS$ac_delim
24178 ltdl_LTLIBOBJS!$ltdl_LTLIBOBJS$ac_delim
24179 _ACEOF
24180
24181   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24182     break
24183   elif $ac_last_try; then
24184     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24186    { (exit 1); exit 1; }; }
24187   else
24188     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24189   fi
24190 done
24191
24192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24193 if test -n "$ac_eof"; then
24194   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24195   ac_eof=`expr $ac_eof + 1`
24196 fi
24197
24198 cat >>$CONFIG_STATUS <<_ACEOF
24199 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24201 _ACEOF
24202 sed '
24203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24204 s/^/s,@/; s/!/@,|#_!!_#|/
24205 :n
24206 t n
24207 s/'"$ac_delim"'$/,g/; t
24208 s/$/\\/; p
24209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24210 ' >>$CONFIG_STATUS <conf$$subs.sed
24211 rm -f conf$$subs.sed
24212 cat >>$CONFIG_STATUS <<_ACEOF
24213 :end
24214 s/|#_!!_#|//g
24215 CEOF$ac_eof
24216 _ACEOF
24217
24218
24219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24221 # trailing colons and then remove the whole line if VPATH becomes empty
24222 # (actually we leave an empty line to preserve line numbers).
24223 if test "x$srcdir" = x.; then
24224   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24225 s/:*\$(srcdir):*/:/
24226 s/:*\${srcdir}:*/:/
24227 s/:*@srcdir@:*/:/
24228 s/^\([^=]*=[     ]*\):*/\1/
24229 s/:*$//
24230 s/^[^=]*=[       ]*$//
24231 }'
24232 fi
24233
24234 cat >>$CONFIG_STATUS <<\_ACEOF
24235 fi # test -n "$CONFIG_FILES"
24236
24237
24238 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24239 do
24240   case $ac_tag in
24241   :[FHLC]) ac_mode=$ac_tag; continue;;
24242   esac
24243   case $ac_mode$ac_tag in
24244   :[FHL]*:*);;
24245   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24246 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24247    { (exit 1); exit 1; }; };;
24248   :[FH]-) ac_tag=-:-;;
24249   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24250   esac
24251   ac_save_IFS=$IFS
24252   IFS=:
24253   set x $ac_tag
24254   IFS=$ac_save_IFS
24255   shift
24256   ac_file=$1
24257   shift
24258
24259   case $ac_mode in
24260   :L) ac_source=$1;;
24261   :[FH])
24262     ac_file_inputs=
24263     for ac_f
24264     do
24265       case $ac_f in
24266       -) ac_f="$tmp/stdin";;
24267       *) # Look for the file first in the build tree, then in the source tree
24268          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24269          # because $ac_f cannot contain `:'.
24270          test -f "$ac_f" ||
24271            case $ac_f in
24272            [\\/$]*) false;;
24273            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24274            esac ||
24275            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24276 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24277    { (exit 1); exit 1; }; };;
24278       esac
24279       ac_file_inputs="$ac_file_inputs $ac_f"
24280     done
24281
24282     # Let's still pretend it is `configure' which instantiates (i.e., don't
24283     # use $as_me), people would be surprised to read:
24284     #    /* config.h.  Generated by config.status.  */
24285     configure_input="Generated from "`IFS=:
24286           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24287     if test x"$ac_file" != x-; then
24288       configure_input="$ac_file.  $configure_input"
24289       { echo "$as_me:$LINENO: creating $ac_file" >&5
24290 echo "$as_me: creating $ac_file" >&6;}
24291     fi
24292
24293     case $ac_tag in
24294     *:-:* | *:-) cat >"$tmp/stdin";;
24295     esac
24296     ;;
24297   esac
24298
24299   ac_dir=`$as_dirname -- "$ac_file" ||
24300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301          X"$ac_file" : 'X\(//\)[^/]' \| \
24302          X"$ac_file" : 'X\(//\)$' \| \
24303          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24304 echo X"$ac_file" |
24305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24306             s//\1/
24307             q
24308           }
24309           /^X\(\/\/\)[^/].*/{
24310             s//\1/
24311             q
24312           }
24313           /^X\(\/\/\)$/{
24314             s//\1/
24315             q
24316           }
24317           /^X\(\/\).*/{
24318             s//\1/
24319             q
24320           }
24321           s/.*/./; q'`
24322   { as_dir="$ac_dir"
24323   case $as_dir in #(
24324   -*) as_dir=./$as_dir;;
24325   esac
24326   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24327     as_dirs=
24328     while :; do
24329       case $as_dir in #(
24330       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24331       *) as_qdir=$as_dir;;
24332       esac
24333       as_dirs="'$as_qdir' $as_dirs"
24334       as_dir=`$as_dirname -- "$as_dir" ||
24335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24336          X"$as_dir" : 'X\(//\)[^/]' \| \
24337          X"$as_dir" : 'X\(//\)$' \| \
24338          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24339 echo X"$as_dir" |
24340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24341             s//\1/
24342             q
24343           }
24344           /^X\(\/\/\)[^/].*/{
24345             s//\1/
24346             q
24347           }
24348           /^X\(\/\/\)$/{
24349             s//\1/
24350             q
24351           }
24352           /^X\(\/\).*/{
24353             s//\1/
24354             q
24355           }
24356           s/.*/./; q'`
24357       test -d "$as_dir" && break
24358     done
24359     test -z "$as_dirs" || eval "mkdir $as_dirs"
24360   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24361 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24362    { (exit 1); exit 1; }; }; }
24363   ac_builddir=.
24364
24365 case "$ac_dir" in
24366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24367 *)
24368   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24369   # A ".." for each directory in $ac_dir_suffix.
24370   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24371   case $ac_top_builddir_sub in
24372   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24373   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24374   esac ;;
24375 esac
24376 ac_abs_top_builddir=$ac_pwd
24377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24378 # for backward compatibility:
24379 ac_top_builddir=$ac_top_build_prefix
24380
24381 case $srcdir in
24382   .)  # We are building in place.
24383     ac_srcdir=.
24384     ac_top_srcdir=$ac_top_builddir_sub
24385     ac_abs_top_srcdir=$ac_pwd ;;
24386   [\\/]* | ?:[\\/]* )  # Absolute name.
24387     ac_srcdir=$srcdir$ac_dir_suffix;
24388     ac_top_srcdir=$srcdir
24389     ac_abs_top_srcdir=$srcdir ;;
24390   *) # Relative name.
24391     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24392     ac_top_srcdir=$ac_top_build_prefix$srcdir
24393     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24394 esac
24395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24396
24397
24398   case $ac_mode in
24399   :F)
24400   #
24401   # CONFIG_FILE
24402   #
24403
24404 _ACEOF
24405
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 # If the template does not know about datarootdir, expand it.
24408 # FIXME: This hack should be removed a few years after 2.60.
24409 ac_datarootdir_hack=; ac_datarootdir_seen=
24410
24411 case `sed -n '/datarootdir/ {
24412   p
24413   q
24414 }
24415 /@datadir@/p
24416 /@docdir@/p
24417 /@infodir@/p
24418 /@localedir@/p
24419 /@mandir@/p
24420 ' $ac_file_inputs` in
24421 *datarootdir*) ac_datarootdir_seen=yes;;
24422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24423   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24424 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24425 _ACEOF
24426 cat >>$CONFIG_STATUS <<_ACEOF
24427   ac_datarootdir_hack='
24428   s&@datadir@&$datadir&g
24429   s&@docdir@&$docdir&g
24430   s&@infodir@&$infodir&g
24431   s&@localedir@&$localedir&g
24432   s&@mandir@&$mandir&g
24433     s&\\\${datarootdir}&$datarootdir&g' ;;
24434 esac
24435 _ACEOF
24436
24437 # Neutralize VPATH when `$srcdir' = `.'.
24438 # Shell code in configure.ac might set extrasub.
24439 # FIXME: do we really want to maintain this feature?
24440 cat >>$CONFIG_STATUS <<_ACEOF
24441   sed "$ac_vpsub
24442 $extrasub
24443 _ACEOF
24444 cat >>$CONFIG_STATUS <<\_ACEOF
24445 :t
24446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24447 s&@configure_input@&$configure_input&;t t
24448 s&@top_builddir@&$ac_top_builddir_sub&;t t
24449 s&@srcdir@&$ac_srcdir&;t t
24450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24451 s&@top_srcdir@&$ac_top_srcdir&;t t
24452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24453 s&@builddir@&$ac_builddir&;t t
24454 s&@abs_builddir@&$ac_abs_builddir&;t t
24455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24456 $ac_datarootdir_hack
24457 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24458
24459 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24460   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24461   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24462   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24463 which seems to be undefined.  Please make sure it is defined." >&5
24464 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24465 which seems to be undefined.  Please make sure it is defined." >&2;}
24466
24467   rm -f "$tmp/stdin"
24468   case $ac_file in
24469   -) cat "$tmp/out"; rm -f "$tmp/out";;
24470   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24471   esac
24472  ;;
24473   :H)
24474   #
24475   # CONFIG_HEADER
24476   #
24477 _ACEOF
24478
24479 # Transform confdefs.h into a sed script `conftest.defines', that
24480 # substitutes the proper values into config.h.in to produce config.h.
24481 rm -f conftest.defines conftest.tail
24482 # First, append a space to every undef/define line, to ease matching.
24483 echo 's/$/ /' >conftest.defines
24484 # Then, protect against being on the right side of a sed subst, or in
24485 # an unquoted here document, in config.status.  If some macros were
24486 # called several times there might be several #defines for the same
24487 # symbol, which is useless.  But do not sort them, since the last
24488 # AC_DEFINE must be honored.
24489 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24490 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24491 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24492 # PARAMS is the parameter list in the macro definition--in most cases, it's
24493 # just an empty string.
24494 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24495 ac_dB='\\)[      (].*,\\1define\\2'
24496 ac_dC=' '
24497 ac_dD=' ,'
24498
24499 uniq confdefs.h |
24500   sed -n '
24501         t rset
24502         :rset
24503         s/^[     ]*#[    ]*define[       ][      ]*//
24504         t ok
24505         d
24506         :ok
24507         s/[\\&,]/\\&/g
24508         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24509         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24510   ' >>conftest.defines
24511
24512 # Remove the space that was appended to ease matching.
24513 # Then replace #undef with comments.  This is necessary, for
24514 # example, in the case of _POSIX_SOURCE, which is predefined and required
24515 # on some systems where configure will not decide to define it.
24516 # (The regexp can be short, since the line contains either #define or #undef.)
24517 echo 's/ $//
24518 s,^[     #]*u.*,/* & */,' >>conftest.defines
24519
24520 # Break up conftest.defines:
24521 ac_max_sed_lines=50
24522
24523 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24524 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24525 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24526 # et cetera.
24527 ac_in='$ac_file_inputs'
24528 ac_out='"$tmp/out1"'
24529 ac_nxt='"$tmp/out2"'
24530
24531 while :
24532 do
24533   # Write a here document:
24534     cat >>$CONFIG_STATUS <<_ACEOF
24535     # First, check the format of the line:
24536     cat >"\$tmp/defines.sed" <<\\CEOF
24537 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24538 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24539 b
24540 :def
24541 _ACEOF
24542   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24543   echo 'CEOF
24544     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24545   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24546   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24547   grep . conftest.tail >/dev/null || break
24548   rm -f conftest.defines
24549   mv conftest.tail conftest.defines
24550 done
24551 rm -f conftest.defines conftest.tail
24552
24553 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24554 cat >>$CONFIG_STATUS <<\_ACEOF
24555   if test x"$ac_file" != x-; then
24556     echo "/* $configure_input  */" >"$tmp/config.h"
24557     cat "$ac_result" >>"$tmp/config.h"
24558     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24559       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24560 echo "$as_me: $ac_file is unchanged" >&6;}
24561     else
24562       rm -f $ac_file
24563       mv "$tmp/config.h" $ac_file
24564     fi
24565   else
24566     echo "/* $configure_input  */"
24567     cat "$ac_result"
24568   fi
24569   rm -f "$tmp/out12"
24570  ;;
24571
24572   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24573 echo "$as_me: executing $ac_file commands" >&6;}
24574  ;;
24575   esac
24576
24577
24578   case $ac_file$ac_mode in
24579     "libtool":C)
24580
24581     # See if we are running on zsh, and set the options which allow our
24582     # commands through without removal of \ escapes.
24583     if test -n "${ZSH_VERSION+set}" ; then
24584       setopt NO_GLOB_SUBST
24585     fi
24586
24587     cfgfile="${ofile}T"
24588     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24589     $RM "$cfgfile"
24590
24591     cat <<_LT_EOF >> "$cfgfile"
24592 #! $SHELL
24593
24594 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24595 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24597 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24598 #
24599 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24600 #                 2006, 2007, 2008 Free Software Foundation, Inc.
24601 #   Written by Gordon Matzigkeit, 1996
24602 #
24603 #   This file is part of GNU Libtool.
24604 #
24605 # GNU Libtool is free software; you can redistribute it and/or
24606 # modify it under the terms of the GNU General Public License as
24607 # published by the Free Software Foundation; either version 2 of
24608 # the License, or (at your option) any later version.
24609 #
24610 # As a special exception to the GNU General Public License,
24611 # if you distribute this file as part of a program or library that
24612 # is built using GNU Libtool, you may include this file under the
24613 # same distribution terms that you use for the rest of that program.
24614 #
24615 # GNU Libtool is distributed in the hope that it will be useful,
24616 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24618 # GNU General Public License for more details.
24619 #
24620 # You should have received a copy of the GNU General Public License
24621 # along with GNU Libtool; see the file COPYING.  If not, a copy
24622 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24623 # obtained by writing to the Free Software Foundation, Inc.,
24624 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24625
24626
24627 # The names of the tagged configurations supported by this script.
24628 available_tags="CXX "
24629
24630 # ### BEGIN LIBTOOL CONFIG
24631
24632 # Which release of libtool.m4 was used?
24633 macro_version=$macro_version
24634 macro_revision=$macro_revision
24635
24636 # Whether or not to build shared libraries.
24637 build_libtool_libs=$enable_shared
24638
24639 # Whether or not to build static libraries.
24640 build_old_libs=$enable_static
24641
24642 # What type of objects to build.
24643 pic_mode=$pic_mode
24644
24645 # Whether or not to optimize for fast installation.
24646 fast_install=$enable_fast_install
24647
24648 # The host system.
24649 host_alias=$host_alias
24650 host=$host
24651 host_os=$host_os
24652
24653 # The build system.
24654 build_alias=$build_alias
24655 build=$build
24656 build_os=$build_os
24657
24658 # A sed program that does not truncate output.
24659 SED=$lt_SED
24660
24661 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24662 Xsed="\$SED -e 1s/^X//"
24663
24664 # A grep program that handles long lines.
24665 GREP=$lt_GREP
24666
24667 # An ERE matcher.
24668 EGREP=$lt_EGREP
24669
24670 # A literal string matcher.
24671 FGREP=$lt_FGREP
24672
24673 # A BSD- or MS-compatible name lister.
24674 NM=$lt_NM
24675
24676 # Whether we need soft or hard links.
24677 LN_S=$lt_LN_S
24678
24679 # What is the maximum length of a command?
24680 max_cmd_len=$max_cmd_len
24681
24682 # Object file suffix (normally "o").
24683 objext=$ac_objext
24684
24685 # Executable file suffix (normally "").
24686 exeext=$exeext
24687
24688 # whether the shell understands "unset".
24689 lt_unset=$lt_unset
24690
24691 # turn spaces into newlines.
24692 SP2NL=$lt_lt_SP2NL
24693
24694 # turn newlines into spaces.
24695 NL2SP=$lt_lt_NL2SP
24696
24697 # How to create reloadable object files.
24698 reload_flag=$lt_reload_flag
24699 reload_cmds=$lt_reload_cmds
24700
24701 # Method to check whether dependent libraries are shared objects.
24702 deplibs_check_method=$lt_deplibs_check_method
24703
24704 # Command to use when deplibs_check_method == "file_magic".
24705 file_magic_cmd=$lt_file_magic_cmd
24706
24707 # The archiver.
24708 AR=$lt_AR
24709 AR_FLAGS=$lt_AR_FLAGS
24710
24711 # A symbol stripping program.
24712 STRIP=$lt_STRIP
24713
24714 # Commands used to install an old-style archive.
24715 RANLIB=$lt_RANLIB
24716 old_postinstall_cmds=$lt_old_postinstall_cmds
24717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24718
24719 # A C compiler.
24720 LTCC=$lt_CC
24721
24722 # LTCC compiler flags.
24723 LTCFLAGS=$lt_CFLAGS
24724
24725 # Take the output of nm and produce a listing of raw symbols and C names.
24726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24727
24728 # Transform the output of nm in a proper C declaration.
24729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24730
24731 # Transform the output of nm in a C name address pair.
24732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24733
24734 # Transform the output of nm in a C name address pair when lib prefix is needed.
24735 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24736
24737 # The name of the directory that contains temporary libtool files.
24738 objdir=$objdir
24739
24740 # Shell to use when invoking shell scripts.
24741 SHELL=$lt_SHELL
24742
24743 # An echo program that does not interpret backslashes.
24744 ECHO=$lt_ECHO
24745
24746 # Used to examine libraries when file_magic_cmd begins with "file".
24747 MAGIC_CMD=$MAGIC_CMD
24748
24749 # Must we lock files when doing compilation?
24750 need_locks=$lt_need_locks
24751
24752 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24753 DSYMUTIL=$lt_DSYMUTIL
24754
24755 # Tool to change global to local symbols on Mac OS X.
24756 NMEDIT=$lt_NMEDIT
24757
24758 # Tool to manipulate fat objects and archives on Mac OS X.
24759 LIPO=$lt_LIPO
24760
24761 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24762 OTOOL=$lt_OTOOL
24763
24764 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24765 OTOOL64=$lt_OTOOL64
24766
24767 # Old archive suffix (normally "a").
24768 libext=$libext
24769
24770 # Shared library suffix (normally ".so").
24771 shrext_cmds=$lt_shrext_cmds
24772
24773 # The commands to extract the exported symbol list from a shared archive.
24774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24775
24776 # Variables whose values should be saved in libtool wrapper scripts and
24777 # restored at link time.
24778 variables_saved_for_relink=$lt_variables_saved_for_relink
24779
24780 # Do we need the "lib" prefix for modules?
24781 need_lib_prefix=$need_lib_prefix
24782
24783 # Do we need a version for libraries?
24784 need_version=$need_version
24785
24786 # Library versioning type.
24787 version_type=$version_type
24788
24789 # Shared library runtime path variable.
24790 runpath_var=$runpath_var
24791
24792 # Shared library path variable.
24793 shlibpath_var=$shlibpath_var
24794
24795 # Is shlibpath searched before the hard-coded library search path?
24796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24797
24798 # Format of library name prefix.
24799 libname_spec=$lt_libname_spec
24800
24801 # List of archive names.  First name is the real one, the rest are links.
24802 # The last name is the one that the linker finds with -lNAME
24803 library_names_spec=$lt_library_names_spec
24804
24805 # The coded name of the library, if different from the real name.
24806 soname_spec=$lt_soname_spec
24807
24808 # Command to use after installation of a shared archive.
24809 postinstall_cmds=$lt_postinstall_cmds
24810
24811 # Command to use after uninstallation of a shared archive.
24812 postuninstall_cmds=$lt_postuninstall_cmds
24813
24814 # Commands used to finish a libtool library installation in a directory.
24815 finish_cmds=$lt_finish_cmds
24816
24817 # As "finish_cmds", except a single script fragment to be evaled but
24818 # not shown.
24819 finish_eval=$lt_finish_eval
24820
24821 # Whether we should hardcode library paths into libraries.
24822 hardcode_into_libs=$hardcode_into_libs
24823
24824 # Compile-time system search path for libraries.
24825 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24826
24827 # Run-time system search path for libraries.
24828 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24829
24830 # Whether dlopen is supported.
24831 dlopen_support=$enable_dlopen
24832
24833 # Whether dlopen of programs is supported.
24834 dlopen_self=$enable_dlopen_self
24835
24836 # Whether dlopen of statically linked programs is supported.
24837 dlopen_self_static=$enable_dlopen_self_static
24838
24839 # Commands to strip libraries.
24840 old_striplib=$lt_old_striplib
24841 striplib=$lt_striplib
24842
24843
24844 # The linker used to build libraries.
24845 LD=$lt_LD
24846
24847 # Commands used to build an old-style archive.
24848 old_archive_cmds=$lt_old_archive_cmds
24849
24850 # A language specific compiler.
24851 CC=$lt_compiler
24852
24853 # Is the compiler the GNU compiler?
24854 with_gcc=$GCC
24855
24856 # Compiler flag to turn off builtin functions.
24857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24858
24859 # How to pass a linker flag through the compiler.
24860 wl=$lt_lt_prog_compiler_wl
24861
24862 # Additional compiler flags for building library objects.
24863 pic_flag=$lt_lt_prog_compiler_pic
24864
24865 # Compiler flag to prevent dynamic linking.
24866 link_static_flag=$lt_lt_prog_compiler_static
24867
24868 # Does compiler simultaneously support -c and -o options?
24869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24870
24871 # Whether or not to add -lc for building shared libraries.
24872 build_libtool_need_lc=$archive_cmds_need_lc
24873
24874 # Whether or not to disallow shared libs when runtime libs are static.
24875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24876
24877 # Compiler flag to allow reflexive dlopens.
24878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24879
24880 # Compiler flag to generate shared objects directly from archives.
24881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24882
24883 # Whether the compiler copes with passing no objects directly.
24884 compiler_needs_object=$lt_compiler_needs_object
24885
24886 # Create an old-style archive from a shared archive.
24887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24888
24889 # Create a temporary old-style archive to link instead of a shared archive.
24890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24891
24892 # Commands used to build a shared archive.
24893 archive_cmds=$lt_archive_cmds
24894 archive_expsym_cmds=$lt_archive_expsym_cmds
24895
24896 # Commands used to build a loadable module if different from building
24897 # a shared archive.
24898 module_cmds=$lt_module_cmds
24899 module_expsym_cmds=$lt_module_expsym_cmds
24900
24901 # Whether we are building with GNU ld or not.
24902 with_gnu_ld=$lt_with_gnu_ld
24903
24904 # Flag that allows shared libraries with undefined symbols to be built.
24905 allow_undefined_flag=$lt_allow_undefined_flag
24906
24907 # Flag that enforces no undefined symbols.
24908 no_undefined_flag=$lt_no_undefined_flag
24909
24910 # Flag to hardcode \$libdir into a binary during linking.
24911 # This must work even if \$libdir does not exist
24912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24913
24914 # If ld is used when linking, flag to hardcode \$libdir into a binary
24915 # during linking.  This must work even if \$libdir does not exist.
24916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24917
24918 # Whether we need a single "-rpath" flag with a separated argument.
24919 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24920
24921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24922 # DIR into the resulting binary.
24923 hardcode_direct=$hardcode_direct
24924
24925 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24926 # DIR into the resulting binary and the resulting library dependency is
24927 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24928 # library is relocated.
24929 hardcode_direct_absolute=$hardcode_direct_absolute
24930
24931 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24932 # into the resulting binary.
24933 hardcode_minus_L=$hardcode_minus_L
24934
24935 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24936 # into the resulting binary.
24937 hardcode_shlibpath_var=$hardcode_shlibpath_var
24938
24939 # Set to "yes" if building a shared library automatically hardcodes DIR
24940 # into the library and all subsequent libraries and executables linked
24941 # against it.
24942 hardcode_automatic=$hardcode_automatic
24943
24944 # Set to yes if linker adds runtime paths of dependent libraries
24945 # to runtime path list.
24946 inherit_rpath=$inherit_rpath
24947
24948 # Whether libtool must link a program against all its dependency libraries.
24949 link_all_deplibs=$link_all_deplibs
24950
24951 # Fix the shell variable \$srcfile for the compiler.
24952 fix_srcfile_path=$lt_fix_srcfile_path
24953
24954 # Set to "yes" if exported symbols are required.
24955 always_export_symbols=$always_export_symbols
24956
24957 # The commands to list exported symbols.
24958 export_symbols_cmds=$lt_export_symbols_cmds
24959
24960 # Symbols that should not be listed in the preloaded symbols.
24961 exclude_expsyms=$lt_exclude_expsyms
24962
24963 # Symbols that must always be exported.
24964 include_expsyms=$lt_include_expsyms
24965
24966 # Commands necessary for linking programs (against libraries) with templates.
24967 prelink_cmds=$lt_prelink_cmds
24968
24969 # Specify filename containing input files.
24970 file_list_spec=$lt_file_list_spec
24971
24972 # How to hardcode a shared library path into an executable.
24973 hardcode_action=$hardcode_action
24974
24975 # The directories searched by this compiler when creating a shared library.
24976 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24977
24978 # Dependencies to place before and after the objects being linked to
24979 # create a shared library.
24980 predep_objects=$lt_predep_objects
24981 postdep_objects=$lt_postdep_objects
24982 predeps=$lt_predeps
24983 postdeps=$lt_postdeps
24984
24985 # The library search path used internally by the compiler when linking
24986 # a shared library.
24987 compiler_lib_search_path=$lt_compiler_lib_search_path
24988
24989 # ### END LIBTOOL CONFIG
24990
24991 _LT_EOF
24992
24993   case $host_os in
24994   aix3*)
24995     cat <<\_LT_EOF >> "$cfgfile"
24996 # AIX sometimes has problems with the GCC collect2 program.  For some
24997 # reason, if we set the COLLECT_NAMES environment variable, the problems
24998 # vanish in a puff of smoke.
24999 if test "X${COLLECT_NAMES+set}" != Xset; then
25000   COLLECT_NAMES=
25001   export COLLECT_NAMES
25002 fi
25003 _LT_EOF
25004     ;;
25005   esac
25006
25007
25008 ltmain="$ac_aux_dir/ltmain.sh"
25009
25010
25011   # We use sed instead of cat because bash on DJGPP gets confused if
25012   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25013   # text mode, it properly converts lines to CR/LF.  This bash problem
25014   # is reportedly fixed, but why not run on old versions too?
25015   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25016     || (rm -f "$cfgfile"; exit 1)
25017
25018   case $xsi_shell in
25019   yes)
25020     cat << \_LT_EOF >> "$cfgfile"
25021
25022 # func_dirname file append nondir_replacement
25023 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25024 # otherwise set result to NONDIR_REPLACEMENT.
25025 func_dirname ()
25026 {
25027   case ${1} in
25028     */*) func_dirname_result="${1%/*}${2}" ;;
25029     *  ) func_dirname_result="${3}" ;;
25030   esac
25031 }
25032
25033 # func_basename file
25034 func_basename ()
25035 {
25036   func_basename_result="${1##*/}"
25037 }
25038
25039 # func_dirname_and_basename file append nondir_replacement
25040 # perform func_basename and func_dirname in a single function
25041 # call:
25042 #   dirname:  Compute the dirname of FILE.  If nonempty,
25043 #             add APPEND to the result, otherwise set result
25044 #             to NONDIR_REPLACEMENT.
25045 #             value returned in "$func_dirname_result"
25046 #   basename: Compute filename of FILE.
25047 #             value retuned in "$func_basename_result"
25048 # Implementation must be kept synchronized with func_dirname
25049 # and func_basename. For efficiency, we do not delegate to
25050 # those functions but instead duplicate the functionality here.
25051 func_dirname_and_basename ()
25052 {
25053   case ${1} in
25054     */*) func_dirname_result="${1%/*}${2}" ;;
25055     *  ) func_dirname_result="${3}" ;;
25056   esac
25057   func_basename_result="${1##*/}"
25058 }
25059
25060 # func_stripname prefix suffix name
25061 # strip PREFIX and SUFFIX off of NAME.
25062 # PREFIX and SUFFIX must not contain globbing or regex special
25063 # characters, hashes, percent signs, but SUFFIX may contain a leading
25064 # dot (in which case that matches only a dot).
25065 func_stripname ()
25066 {
25067   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25068   # positional parameters, so assign one to ordinary parameter first.
25069   func_stripname_result=${3}
25070   func_stripname_result=${func_stripname_result#"${1}"}
25071   func_stripname_result=${func_stripname_result%"${2}"}
25072 }
25073
25074 # func_opt_split
25075 func_opt_split ()
25076 {
25077   func_opt_split_opt=${1%%=*}
25078   func_opt_split_arg=${1#*=}
25079 }
25080
25081 # func_lo2o object
25082 func_lo2o ()
25083 {
25084   case ${1} in
25085     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25086     *)    func_lo2o_result=${1} ;;
25087   esac
25088 }
25089
25090 # func_xform libobj-or-source
25091 func_xform ()
25092 {
25093   func_xform_result=${1%.*}.lo
25094 }
25095
25096 # func_arith arithmetic-term...
25097 func_arith ()
25098 {
25099   func_arith_result=$(( $* ))
25100 }
25101
25102 # func_len string
25103 # STRING may not start with a hyphen.
25104 func_len ()
25105 {
25106   func_len_result=${#1}
25107 }
25108
25109 _LT_EOF
25110     ;;
25111   *) # Bourne compatible functions.
25112     cat << \_LT_EOF >> "$cfgfile"
25113
25114 # func_dirname file append nondir_replacement
25115 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25116 # otherwise set result to NONDIR_REPLACEMENT.
25117 func_dirname ()
25118 {
25119   # Extract subdirectory from the argument.
25120   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25121   if test "X$func_dirname_result" = "X${1}"; then
25122     func_dirname_result="${3}"
25123   else
25124     func_dirname_result="$func_dirname_result${2}"
25125   fi
25126 }
25127
25128 # func_basename file
25129 func_basename ()
25130 {
25131   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25132 }
25133
25134
25135 # func_stripname prefix suffix name
25136 # strip PREFIX and SUFFIX off of NAME.
25137 # PREFIX and SUFFIX must not contain globbing or regex special
25138 # characters, hashes, percent signs, but SUFFIX may contain a leading
25139 # dot (in which case that matches only a dot).
25140 # func_strip_suffix prefix name
25141 func_stripname ()
25142 {
25143   case ${2} in
25144     .*) func_stripname_result=`$ECHO "X${3}" \
25145            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25146     *)  func_stripname_result=`$ECHO "X${3}" \
25147            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25148   esac
25149 }
25150
25151 # sed scripts:
25152 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25153 my_sed_long_arg='1s/^-[^=]*=//'
25154
25155 # func_opt_split
25156 func_opt_split ()
25157 {
25158   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25159   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25160 }
25161
25162 # func_lo2o object
25163 func_lo2o ()
25164 {
25165   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25166 }
25167
25168 # func_xform libobj-or-source
25169 func_xform ()
25170 {
25171   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25172 }
25173
25174 # func_arith arithmetic-term...
25175 func_arith ()
25176 {
25177   func_arith_result=`expr "$@"`
25178 }
25179
25180 # func_len string
25181 # STRING may not start with a hyphen.
25182 func_len ()
25183 {
25184   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25185 }
25186
25187 _LT_EOF
25188 esac
25189
25190 case $lt_shell_append in
25191   yes)
25192     cat << \_LT_EOF >> "$cfgfile"
25193
25194 # func_append var value
25195 # Append VALUE to the end of shell variable VAR.
25196 func_append ()
25197 {
25198   eval "$1+=\$2"
25199 }
25200 _LT_EOF
25201     ;;
25202   *)
25203     cat << \_LT_EOF >> "$cfgfile"
25204
25205 # func_append var value
25206 # Append VALUE to the end of shell variable VAR.
25207 func_append ()
25208 {
25209   eval "$1=\$$1\$2"
25210 }
25211
25212 _LT_EOF
25213     ;;
25214   esac
25215
25216
25217   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25218     || (rm -f "$cfgfile"; exit 1)
25219
25220   mv -f "$cfgfile" "$ofile" ||
25221     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25222   chmod +x "$ofile"
25223
25224
25225     cat <<_LT_EOF >> "$ofile"
25226
25227 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25228
25229 # The linker used to build libraries.
25230 LD=$lt_LD_CXX
25231
25232 # Commands used to build an old-style archive.
25233 old_archive_cmds=$lt_old_archive_cmds_CXX
25234
25235 # A language specific compiler.
25236 CC=$lt_compiler_CXX
25237
25238 # Is the compiler the GNU compiler?
25239 with_gcc=$GCC_CXX
25240
25241 # Compiler flag to turn off builtin functions.
25242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25243
25244 # How to pass a linker flag through the compiler.
25245 wl=$lt_lt_prog_compiler_wl_CXX
25246
25247 # Additional compiler flags for building library objects.
25248 pic_flag=$lt_lt_prog_compiler_pic_CXX
25249
25250 # Compiler flag to prevent dynamic linking.
25251 link_static_flag=$lt_lt_prog_compiler_static_CXX
25252
25253 # Does compiler simultaneously support -c and -o options?
25254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25255
25256 # Whether or not to add -lc for building shared libraries.
25257 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25258
25259 # Whether or not to disallow shared libs when runtime libs are static.
25260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25261
25262 # Compiler flag to allow reflexive dlopens.
25263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25264
25265 # Compiler flag to generate shared objects directly from archives.
25266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25267
25268 # Whether the compiler copes with passing no objects directly.
25269 compiler_needs_object=$lt_compiler_needs_object_CXX
25270
25271 # Create an old-style archive from a shared archive.
25272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25273
25274 # Create a temporary old-style archive to link instead of a shared archive.
25275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25276
25277 # Commands used to build a shared archive.
25278 archive_cmds=$lt_archive_cmds_CXX
25279 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25280
25281 # Commands used to build a loadable module if different from building
25282 # a shared archive.
25283 module_cmds=$lt_module_cmds_CXX
25284 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25285
25286 # Whether we are building with GNU ld or not.
25287 with_gnu_ld=$lt_with_gnu_ld_CXX
25288
25289 # Flag that allows shared libraries with undefined symbols to be built.
25290 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25291
25292 # Flag that enforces no undefined symbols.
25293 no_undefined_flag=$lt_no_undefined_flag_CXX
25294
25295 # Flag to hardcode \$libdir into a binary during linking.
25296 # This must work even if \$libdir does not exist
25297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25298
25299 # If ld is used when linking, flag to hardcode \$libdir into a binary
25300 # during linking.  This must work even if \$libdir does not exist.
25301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25302
25303 # Whether we need a single "-rpath" flag with a separated argument.
25304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25305
25306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25307 # DIR into the resulting binary.
25308 hardcode_direct=$hardcode_direct_CXX
25309
25310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25311 # DIR into the resulting binary and the resulting library dependency is
25312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25313 # library is relocated.
25314 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25315
25316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25317 # into the resulting binary.
25318 hardcode_minus_L=$hardcode_minus_L_CXX
25319
25320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25321 # into the resulting binary.
25322 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25323
25324 # Set to "yes" if building a shared library automatically hardcodes DIR
25325 # into the library and all subsequent libraries and executables linked
25326 # against it.
25327 hardcode_automatic=$hardcode_automatic_CXX
25328
25329 # Set to yes if linker adds runtime paths of dependent libraries
25330 # to runtime path list.
25331 inherit_rpath=$inherit_rpath_CXX
25332
25333 # Whether libtool must link a program against all its dependency libraries.
25334 link_all_deplibs=$link_all_deplibs_CXX
25335
25336 # Fix the shell variable \$srcfile for the compiler.
25337 fix_srcfile_path=$lt_fix_srcfile_path_CXX
25338
25339 # Set to "yes" if exported symbols are required.
25340 always_export_symbols=$always_export_symbols_CXX
25341
25342 # The commands to list exported symbols.
25343 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25344
25345 # Symbols that should not be listed in the preloaded symbols.
25346 exclude_expsyms=$lt_exclude_expsyms_CXX
25347
25348 # Symbols that must always be exported.
25349 include_expsyms=$lt_include_expsyms_CXX
25350
25351 # Commands necessary for linking programs (against libraries) with templates.
25352 prelink_cmds=$lt_prelink_cmds_CXX
25353
25354 # Specify filename containing input files.
25355 file_list_spec=$lt_file_list_spec_CXX
25356
25357 # How to hardcode a shared library path into an executable.
25358 hardcode_action=$hardcode_action_CXX
25359
25360 # The directories searched by this compiler when creating a shared library.
25361 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25362
25363 # Dependencies to place before and after the objects being linked to
25364 # create a shared library.
25365 predep_objects=$lt_predep_objects_CXX
25366 postdep_objects=$lt_postdep_objects_CXX
25367 predeps=$lt_predeps_CXX
25368 postdeps=$lt_postdeps_CXX
25369
25370 # The library search path used internally by the compiler when linking
25371 # a shared library.
25372 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25373
25374 # ### END LIBTOOL TAG CONFIG: CXX
25375 _LT_EOF
25376
25377  ;;
25378     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
25379     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25380     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
25381     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25382
25383   esac
25384 done # for ac_tag
25385
25386
25387 { (exit 0); exit 0; }
25388 _ACEOF
25389 chmod +x $CONFIG_STATUS
25390 ac_clean_files=$ac_clean_files_save
25391
25392
25393 # configure is writing to config.log, and then calls config.status.
25394 # config.status does its own redirection, appending to config.log.
25395 # Unfortunately, on DOS this fails, as config.log is still kept open
25396 # by configure, so config.status won't be able to write to it; its
25397 # output is simply discarded.  So we exec the FD to /dev/null,
25398 # effectively closing config.log, so it can be properly (re)opened and
25399 # appended to by config.status.  When coming back to configure, we
25400 # need to make the FD available again.
25401 if test "$no_create" != yes; then
25402   ac_cs_success=:
25403   ac_config_status_args=
25404   test "$silent" = yes &&
25405     ac_config_status_args="$ac_config_status_args --quiet"
25406   exec 5>/dev/null
25407   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25408   exec 5>>config.log
25409   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25410   # would make configure fail if this is the last instruction.
25411   $ac_cs_success || { (exit 1); exit 1; }
25412 fi
25413
25414 #
25415 # CONFIG_SUBDIRS section.
25416 #
25417 if test "$no_recursion" != yes; then
25418
25419   # Remove --cache-file and --srcdir arguments so they do not pile up.
25420   ac_sub_configure_args=
25421   ac_prev=
25422   eval "set x $ac_configure_args"
25423   shift
25424   for ac_arg
25425   do
25426     if test -n "$ac_prev"; then
25427       ac_prev=
25428       continue
25429     fi
25430     case $ac_arg in
25431     -cache-file | --cache-file | --cache-fil | --cache-fi \
25432     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25433       ac_prev=cache_file ;;
25434     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25435     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25436     | --c=*)
25437       ;;
25438     --config-cache | -C)
25439       ;;
25440     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25441       ac_prev=srcdir ;;
25442     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25443       ;;
25444     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25445       ac_prev=prefix ;;
25446     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25447       ;;
25448     *)
25449       case $ac_arg in
25450       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25451       esac
25452       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25453     esac
25454   done
25455
25456   # Always prepend --prefix to ensure using the same prefix
25457   # in subdir configurations.
25458   ac_arg="--prefix=$prefix"
25459   case $ac_arg in
25460   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25461   esac
25462   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25463
25464   # Pass --silent
25465   if test "$silent" = yes; then
25466     ac_sub_configure_args="--silent $ac_sub_configure_args"
25467   fi
25468
25469   ac_popdir=`pwd`
25470   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25471
25472     # Do not complain, so a configure script can configure whichever
25473     # parts of a large source tree are present.
25474     test -d "$srcdir/$ac_dir" || continue
25475
25476     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25477     echo "$as_me:$LINENO: $ac_msg" >&5
25478     echo "$ac_msg" >&6
25479     { as_dir="$ac_dir"
25480   case $as_dir in #(
25481   -*) as_dir=./$as_dir;;
25482   esac
25483   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25484     as_dirs=
25485     while :; do
25486       case $as_dir in #(
25487       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25488       *) as_qdir=$as_dir;;
25489       esac
25490       as_dirs="'$as_qdir' $as_dirs"
25491       as_dir=`$as_dirname -- "$as_dir" ||
25492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25493          X"$as_dir" : 'X\(//\)[^/]' \| \
25494          X"$as_dir" : 'X\(//\)$' \| \
25495          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25496 echo X"$as_dir" |
25497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25498             s//\1/
25499             q
25500           }
25501           /^X\(\/\/\)[^/].*/{
25502             s//\1/
25503             q
25504           }
25505           /^X\(\/\/\)$/{
25506             s//\1/
25507             q
25508           }
25509           /^X\(\/\).*/{
25510             s//\1/
25511             q
25512           }
25513           s/.*/./; q'`
25514       test -d "$as_dir" && break
25515     done
25516     test -z "$as_dirs" || eval "mkdir $as_dirs"
25517   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25518 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25519    { (exit 1); exit 1; }; }; }
25520     ac_builddir=.
25521
25522 case "$ac_dir" in
25523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25524 *)
25525   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25526   # A ".." for each directory in $ac_dir_suffix.
25527   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25528   case $ac_top_builddir_sub in
25529   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25530   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25531   esac ;;
25532 esac
25533 ac_abs_top_builddir=$ac_pwd
25534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25535 # for backward compatibility:
25536 ac_top_builddir=$ac_top_build_prefix
25537
25538 case $srcdir in
25539   .)  # We are building in place.
25540     ac_srcdir=.
25541     ac_top_srcdir=$ac_top_builddir_sub
25542     ac_abs_top_srcdir=$ac_pwd ;;
25543   [\\/]* | ?:[\\/]* )  # Absolute name.
25544     ac_srcdir=$srcdir$ac_dir_suffix;
25545     ac_top_srcdir=$srcdir
25546     ac_abs_top_srcdir=$srcdir ;;
25547   *) # Relative name.
25548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25549     ac_top_srcdir=$ac_top_build_prefix$srcdir
25550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25551 esac
25552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25553
25554
25555     cd "$ac_dir"
25556
25557     # Check for guested configure; otherwise get Cygnus style configure.
25558     if test -f "$ac_srcdir/configure.gnu"; then
25559       ac_sub_configure=$ac_srcdir/configure.gnu
25560     elif test -f "$ac_srcdir/configure"; then
25561       ac_sub_configure=$ac_srcdir/configure
25562     elif test -f "$ac_srcdir/configure.in"; then
25563       # This should be Cygnus configure.
25564       ac_sub_configure=$ac_aux_dir/configure
25565     else
25566       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25568       ac_sub_configure=
25569     fi
25570
25571     # The recursion is here.
25572     if test -n "$ac_sub_configure"; then
25573       # Make the cache file name correct relative to the subdirectory.
25574       case $cache_file in
25575       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25576       *) # Relative name.
25577         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25578       esac
25579
25580       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25581 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25582       # The eval makes quoting arguments work.
25583       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25584            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25585         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25586 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25587    { (exit 1); exit 1; }; }
25588     fi
25589
25590     cd "$ac_popdir"
25591   done
25592 fi
25593
25594