]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Put back aclocal
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 QMAKE_LIBTOOL
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
891 HAVE_SUN_OS_TRUE
892 HAVE_SUN_OS_FALSE
893 HAVE_OSF1_OS_TRUE
894 HAVE_OSF1_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_HPUX_OS_TRUE
898 HAVE_HPUX_OS_FALSE
899 HAVE_LINUX_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_FREEBSD_OS_FALSE
903 HAVE_NETBSD_OS_TRUE
904 HAVE_NETBSD_OS_FALSE
905 HAVE_OPENBSD_OS_TRUE
906 HAVE_OPENBSD_OS_FALSE
907 HAVE_BSDI_OS_TRUE
908 HAVE_BSDI_OS_FALSE
909 HAVE_SGI_OS_TRUE
910 HAVE_SGI_OS_FALSE
911 HAVE_IRIX_OS_TRUE
912 HAVE_IRIX_OS_FALSE
913 HAVE_DARWIN_OS_TRUE
914 HAVE_DARWIN_OS_FALSE
915 SET_MAKE
916 MKINSTALLDIRS
917 USE_NLS
918 MSGFMT
919 GMSGFMT
920 XGETTEXT
921 MSGMERGE
922 INTL_MACOSX_LIBS
923 LIBICONV
924 LTLIBICONV
925 INTLLIBS
926 LIBINTL
927 LTLIBINTL
928 POSUB
929 GLIBC2
930 ALLOCA
931 GLIBC21
932 HAVE_POSIX_PRINTF
933 HAVE_ASPRINTF
934 HAVE_SNPRINTF
935 HAVE_WPRINTF
936 INTLBISON
937 BUILD_INCLUDED_LIBINTL
938 USE_INCLUDED_LIBINTL
939 CATOBJEXT
940 DATADIRNAME
941 INSTOBJEXT
942 GENCAT
943 INTLOBJS
944 INTL_LIBTOOL_SUFFIX_PREFIX
945 GNOME_INCLUDEDIR
946 GNOMEUI_LIBS
947 GNOME_LIBDIR
948 GNOME_LIBS
949 GNOME_DIR
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 scriptdir
985 plugindir
986 dump_email
987 job_email
988 smtp_host
989 piddir
990 subsysdir
991 baseport
992 dir_port
993 fd_port
994 sd_port
995 dir_password
996 fd_password
997 sd_password
998 mon_dir_password
999 mon_fd_password
1000 mon_sd_password
1001 db_name
1002 db_user
1003 db_password
1004 db_port
1005 dir_user
1006 dir_group
1007 sd_user
1008 sd_group
1009 fd_user
1010 fd_group
1011 SBINPERM
1012 SQL_LFLAGS
1013 SQL_INCLUDE
1014 SQL_BINDIR
1015 DBI_DBD_DRIVERDIR
1016 uncomment_dbi
1017 DB_PROG
1018 DB_PROG_LIB
1019 cats
1020 DB_TYPE
1021 GETCONF
1022 XMKMF
1023 X_CFLAGS
1024 X_PRE_LIBS
1025 X_LIBS
1026 X_EXTRA_LIBS
1027 LIBOBJS
1028 FDLIBS
1029 DEBUG
1030 DINCLUDE
1031 DLIB
1032 DB_LIBS
1033 WCFLAGS
1034 WLDFLAGS
1035 WRAPLIBS
1036 OBJLIST
1037 hostname
1038 TAPEDRIVE
1039 PSCMD
1040 WIN32
1041 MACOSX
1042 DISTNAME
1043 DISTVER
1044 LTLIBOBJS'
1045 ac_subst_files='MCOMMON'
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 WXCONFIG
1059 WXFLAGS
1060 CXXCPP
1061 XMKMF'
1062
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures this package to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638   --enable-libtool        enable building using GNU libtool [default=yes]
1639   --enable-shared[=PKGS]  build shared libraries [default=yes]
1640   --enable-static[=PKGS]  build static libraries [default=no]
1641   --enable-fast-install[=PKGS]
1642                           optimize for fast installation [default=yes]
1643   --disable-libtool-lock  avoid locking (might break parallel builds)
1644   --enable-includes       enable installing of include files [default=yes]
1645   --disable-nls           do not use Native Language Support
1646   --disable-rpath         do not hardcode runtime library paths
1647   --enable-gnome          enable build of bgnome-console GUI [default=no]
1648   --enable-bat            enable build of bat Qt4 GUI [default=no]
1649   --enable-bwx-console    enable build of wxWidgets console [default=no]
1650   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1651                           KDE [default=no]
1652   --enable-smartalloc     enable smartalloc debugging support [default=no]
1653   --enable-static-tools   enable static tape tools [default=no]
1654   --enable-static-fd      enable static File daemon [default=no]
1655   --enable-static-sd      enable static Storage daemon [default=no]
1656   --enable-static-dir     enable static Director [default=no]
1657   --enable-static-cons    enable static Console [default=no]
1658   --enable-client-only    build client (File daemon) only [default=no]
1659   --enable-build-dird     enable building of dird (Director) [default=yes]
1660   --enable-build-stored   enable building of stored (Storage daemon)
1661                           [default=yes]
1662   --disable-conio         disable conio support [default=no]
1663   --enable-ipv6           enable ipv6 support [default=yes]
1664   --disable-readline      disable readline support [default=yes]
1665   --enable-batch-insert   enable the DB batch insert code [default=no]
1666   --disable-largefile     omit support for large files
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1678   --without-libintl-prefix     don't search for libintl in includedir and libdir
1679   --with-included-gettext use the GNU gettext library included here
1680   --with-qwt[=DIR]        specify qwt library directory
1681   --with-readline[=DIR]   specify readline library directory
1682   --with-python[=DIR]     Include Python support. DIR is the Python base
1683                           install directory, default is to search through a
1684                           number of common places for the Python files.
1685   --with-tcp-wrappers[=DIR]
1686                           enable tcpwrappers support
1687   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1688   --with-working-dir=PATH specify path of Bacula working directory
1689   --with-archivedir=PATH  specify path of SD archive directory
1690   --with-scriptdir=PATH   specify path of Bacula scripts directory
1691   --with-plugindir=PATH   specify path of Bacula plugins directory
1692   --with-dump-email=EMAIL dump email address
1693   --with-job-email=EMAIL  job output email address
1694   --with-smtp-host=HOST   SMTP mail host address
1695   --with-pid-dir=PATH     specify location of Bacula pid files
1696   --with-subsys-dir=PATH  specify location of Bacula subsys file
1697   --with-baseport=PORT    specify base port address for daemons
1698   --with-dir-password=PASSWORD
1699                           specify Director's password
1700   --with-fd-password=PASSWORD
1701                           specify Client's password
1702   --with-sd-password=PASSWORD
1703                           specify Storage daemon's password
1704   --with-mon-dir-password=PASSWORD
1705                           specify Director's password used by the monitor
1706   --with-mon-fd-password=PASSWORD
1707                           specify Client's password used by the monitor
1708   --with-mon-sd-password=PASSWORD
1709                           specify Storage daemon's password used by the
1710                           monitor
1711   --with-db-name=DBNAME   specify database name [default=bacula]
1712   --with-db-user=UNAME    specify database user [default=bacula]
1713   --with-db-password=PWD  specify database password [default=*none*]
1714   --with-db-port=DBPORT   specify a database port [default=null]
1715   --with-dir-user=USER    specify user for Director daemon
1716   --with-dir-group=GROUP  specify group for Director daemon
1717   --with-sd-user=USER     specify user for Storage daemon
1718   --with-sd-group=GROUP   specify group for Storage daemon
1719   --with-fd-user=USER     specify user for File daemon
1720   --with-fd-group=GROUP   specify group for File daemon
1721   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1722   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723                           base install directory, [default=/usr/local/pgsql]
1724   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1725                           directory, default is to search through a number of
1726                           common places for the MySQL files.
1727   --with-embedded-mysql[=DIR]
1728                           Include MySQL support. DIR is the MySQL base install
1729                           directory, default is to search through a number of
1730                           common places for the MySQL files.
1731   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1732                           install directory, default is to search through a
1733                           number of common places for the SQLite3 files.
1734   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1735                           install directory, default is to search through a
1736                           number of common places for the SQLite files.
1737   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1738                           directory, default is to search through a number of
1739                           common places for the DBI files.
1740   --with-dbi-driver[=DRIVER]
1741                           Suport for DBI driver. DRIVER is the one DBI driver
1742                           like Mysql, Postgresql, others. Default is to not
1743                           configure any driver.
1744   --with-x                use the X Window System
1745
1746 Some influential environment variables:
1747   CC          C compiler command
1748   CFLAGS      C compiler flags
1749   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1750               nonstandard directory <lib dir>
1751   LIBS        libraries to pass to the linker, e.g. -l<library>
1752   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753               you have headers in a nonstandard directory <include dir>
1754   CXX         C++ compiler command
1755   CXXFLAGS    C++ compiler flags
1756   CPP         C preprocessor
1757   WXCONFIG    wx-config command. On some systems, you must set it to
1758               wx-config-2.6 to use wxWidgets 2.6.
1759   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1760   CXXCPP      C++ preprocessor
1761   XMKMF       Path to xmkmf, Makefile generator for X Window System
1762
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1765
1766 _ACEOF
1767 ac_status=$?
1768 fi
1769
1770 if test "$ac_init_help" = "recursive"; then
1771   # If there are subdirs, report their specific --help.
1772   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773     test -d "$ac_dir" || continue
1774     ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780   # A ".." for each directory in $ac_dir_suffix.
1781   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782   case $ac_top_builddir_sub in
1783   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785   esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793   .)  # We are building in place.
1794     ac_srcdir=.
1795     ac_top_srcdir=$ac_top_builddir_sub
1796     ac_abs_top_srcdir=$ac_pwd ;;
1797   [\\/]* | ?:[\\/]* )  # Absolute name.
1798     ac_srcdir=$srcdir$ac_dir_suffix;
1799     ac_top_srcdir=$srcdir
1800     ac_abs_top_srcdir=$srcdir ;;
1801   *) # Relative name.
1802     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803     ac_top_srcdir=$ac_top_build_prefix$srcdir
1804     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808     cd "$ac_dir" || { ac_status=$?; continue; }
1809     # Check for guested configure.
1810     if test -f "$ac_srcdir/configure.gnu"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813     elif test -f "$ac_srcdir/configure"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure" --help=recursive
1816     else
1817       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818     fi || ac_status=$?
1819     cd "$ac_pwd" || { ac_status=$?; break; }
1820   done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825   cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.61
1828
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1833 _ACEOF
1834   exit
1835 fi
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1839
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61.  Invocation command line was
1842
1843   $ $0 $@
1844
1845 _ACEOF
1846 exec 5>>config.log
1847 {
1848 cat <<_ASUNAME
1849 ## --------- ##
1850 ## Platform. ##
1851 ## --------- ##
1852
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1861
1862 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1863 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1866 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1867 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1868 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1869
1870 _ASUNAME
1871
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   echo "PATH: $as_dir"
1878 done
1879 IFS=$as_save_IFS
1880
1881 } >&5
1882
1883 cat >&5 <<_ACEOF
1884
1885
1886 ## ----------- ##
1887 ## Core tests. ##
1888 ## ----------- ##
1889
1890 _ACEOF
1891
1892
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_configure_args=
1899 ac_configure_args0=
1900 ac_configure_args1=
1901 ac_must_keep_next=false
1902 for ac_pass in 1 2
1903 do
1904   for ac_arg
1905   do
1906     case $ac_arg in
1907     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909     | -silent | --silent | --silen | --sile | --sil)
1910       continue ;;
1911     *\'*)
1912       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913     esac
1914     case $ac_pass in
1915     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1916     2)
1917       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918       if test $ac_must_keep_next = true; then
1919         ac_must_keep_next=false # Got value, back to normal.
1920       else
1921         case $ac_arg in
1922           *=* | --config-cache | -C | -disable-* | --disable-* \
1923           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925           | -with-* | --with-* | -without-* | --without-* | --x)
1926             case "$ac_configure_args0 " in
1927               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928             esac
1929             ;;
1930           -* ) ac_must_keep_next=true ;;
1931         esac
1932       fi
1933       ac_configure_args="$ac_configure_args '$ac_arg'"
1934       ;;
1935     esac
1936   done
1937 done
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1940
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log.  We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947   # Save into config.log some information that might help in debugging.
1948   {
1949     echo
1950
1951     cat <<\_ASBOX
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1955 _ASBOX
1956     echo
1957     # The following way of writing the cache mishandles newlines in values,
1958 (
1959   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960     eval ac_val=\$$ac_var
1961     case $ac_val in #(
1962     *${as_nl}*)
1963       case $ac_var in #(
1964       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1966       esac
1967       case $ac_var in #(
1968       _ | IFS | as_nl) ;; #(
1969       *) $as_unset $ac_var ;;
1970       esac ;;
1971     esac
1972   done
1973   (set) 2>&1 |
1974     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975     *${as_nl}ac_space=\ *)
1976       sed -n \
1977         "s/'\''/'\''\\\\'\'''\''/g;
1978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979       ;; #(
1980     *)
1981       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982       ;;
1983     esac |
1984     sort
1985 )
1986     echo
1987
1988     cat <<\_ASBOX
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1992 _ASBOX
1993     echo
1994     for ac_var in $ac_subst_vars
1995     do
1996       eval ac_val=\$$ac_var
1997       case $ac_val in
1998       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999       esac
2000       echo "$ac_var='\''$ac_val'\''"
2001     done | sort
2002     echo
2003
2004     if test -n "$ac_subst_files"; then
2005       cat <<\_ASBOX
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2009 _ASBOX
2010       echo
2011       for ac_var in $ac_subst_files
2012       do
2013         eval ac_val=\$$ac_var
2014         case $ac_val in
2015         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016         esac
2017         echo "$ac_var='\''$ac_val'\''"
2018       done | sort
2019       echo
2020     fi
2021
2022     if test -s confdefs.h; then
2023       cat <<\_ASBOX
2024 ## ----------- ##
2025 ## confdefs.h. ##
2026 ## ----------- ##
2027 _ASBOX
2028       echo
2029       cat confdefs.h
2030       echo
2031     fi
2032     test "$ac_signal" != 0 &&
2033       echo "$as_me: caught signal $ac_signal"
2034     echo "$as_me: exit $exit_status"
2035   } >&5
2036   rm -f core *.core core.conftest.* &&
2037     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038     exit $exit_status
2039 ' 0
2040 for ac_signal in 1 2 13 15; do
2041   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2042 done
2043 ac_signal=0
2044
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2047
2048 # Predefined preprocessor variables.
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2052 _ACEOF
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 _ACEOF
2058
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 _ACEOF
2073
2074
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078   set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2081 else
2082   set x "$ac_default_prefix/share/config.site" \
2083         "$ac_default_prefix/etc/config.site"
2084 fi
2085 shift
2086 for ac_site_file
2087 do
2088   if test -r "$ac_site_file"; then
2089     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091     sed 's/^/| /' "$ac_site_file" >&5
2092     . "$ac_site_file"
2093   fi
2094 done
2095
2096 if test -r "$cache_file"; then
2097   # Some versions of bash will fail to source /dev/null (special
2098   # files actually), so we avoid doing that.
2099   if test -f "$cache_file"; then
2100     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2102     case $cache_file in
2103       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104       *)                      . "./$cache_file";;
2105     esac
2106   fi
2107 else
2108   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2110   >$cache_file
2111 fi
2112
2113 # Check that the precious variables saved in the cache have kept the same
2114 # value.
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118   eval ac_new_set=\$ac_env_${ac_var}_set
2119   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120   eval ac_new_val=\$ac_env_${ac_var}_value
2121   case $ac_old_set,$ac_new_set in
2122     set,)
2123       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125       ac_cache_corrupted=: ;;
2126     ,set)
2127       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129       ac_cache_corrupted=: ;;
2130     ,);;
2131     *)
2132       if test "x$ac_old_val" != "x$ac_new_val"; then
2133         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2136 echo "$as_me:   former value:  $ac_old_val" >&2;}
2137         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2138 echo "$as_me:   current value: $ac_new_val" >&2;}
2139         ac_cache_corrupted=:
2140       fi;;
2141   esac
2142   # Pass precious variables to config.status.
2143   if test "$ac_new_set" = set; then
2144     case $ac_new_val in
2145     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146     *) ac_arg=$ac_var=$ac_new_val ;;
2147     esac
2148     case " $ac_configure_args " in
2149       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2150       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2151     esac
2152   fi
2153 done
2154 if $ac_cache_corrupted; then
2155   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178 ac_ext=c
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
2184
2185 BUILD_DIR=`pwd`
2186 cd ..
2187 TOP_DIR=`pwd`
2188 cd ${BUILD_DIR}
2189
2190
2191 ac_aux_dir=
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193   if test -f "$ac_dir/install-sh"; then
2194     ac_aux_dir=$ac_dir
2195     ac_install_sh="$ac_aux_dir/install-sh -c"
2196     break
2197   elif test -f "$ac_dir/install.sh"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/install.sh -c"
2200     break
2201   elif test -f "$ac_dir/shtool"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/shtool install -c"
2204     break
2205   fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2223
2224
2225
2226
2227 for ac_prog in true
2228 do
2229   # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   case $TRUEPRG in
2237   [\\/]* | ?:[\\/]*)
2238   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2239   ;;
2240   *)
2241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256   ;;
2257 esac
2258 fi
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269   test -n "$TRUEPRG" && break
2270 done
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2272
2273 for ac_prog in false
2274 do
2275   # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   case $FALSEPRG in
2283   [\\/]* | ?:[\\/]*)
2284   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2285   ;;
2286   *)
2287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302   ;;
2303 esac
2304 fi
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2309 else
2310   { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2312 fi
2313
2314
2315   test -n "$FALSEPRG" && break
2316 done
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2318
2319
2320 post_host=
2321 if test "x$BACULA" != x; then
2322    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2323 fi
2324 BACULA=${BACULA-Bacula}
2325 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 echo "configuring for ${BACULA} $VERSION ($DATE)"
2329
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$CC"; then
2345   ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366   { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374 fi
2375 if test -z "$ac_cv_prog_CC"; then
2376   ac_ct_CC=$CC
2377   # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   if test -n "$ac_ct_CC"; then
2385   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392   for ac_exec_ext in '' $ac_executable_extensions; do
2393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394     ac_cv_prog_ac_ct_CC="gcc"
2395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2408 else
2409   { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2411 fi
2412
2413   if test "x$ac_ct_CC" = x; then
2414     CC=""
2415   else
2416     case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet.  If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet.  If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426     CC=$ac_ct_CC
2427   fi
2428 else
2429   CC="$ac_cv_prog_CC"
2430 fi
2431
2432 if test -z "$CC"; then
2433           if test -n "$ac_tool_prefix"; then
2434     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   if test -n "$CC"; then
2442   ac_cv_prog_CC="$CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449   for ac_exec_ext in '' $ac_executable_extensions; do
2450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451     ac_cv_prog_CC="${ac_tool_prefix}cc"
2452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453     break 2
2454   fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2465 else
2466   { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2468 fi
2469
2470
2471   fi
2472 fi
2473 if test -z "$CC"; then
2474   # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$CC"; then
2482   ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484   ac_prog_rejected=no
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493        ac_prog_rejected=yes
2494        continue
2495      fi
2496     ac_cv_prog_CC="cc"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 if test $ac_prog_rejected = yes; then
2505   # We found a bogon in the path, so make sure we never use it.
2506   set dummy $ac_cv_prog_CC
2507   shift
2508   if test $# != 0; then
2509     # We chose a different compiler from the bogus one.
2510     # However, it has the same basename, so the bogon will be chosen
2511     # first if we set CC to just the basename; use the full file name.
2512     shift
2513     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514   fi
2515 fi
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520   { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527
2528 fi
2529 if test -z "$CC"; then
2530   if test -n "$ac_tool_prefix"; then
2531   for ac_prog in cl.exe
2532   do
2533     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570     test -n "$CC" && break
2571   done
2572 fi
2573 if test -z "$CC"; then
2574   ac_ct_CC=$CC
2575   for ac_prog in cl.exe
2576 do
2577   # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$ac_ct_CC"; then
2585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     ac_cv_prog_ac_ct_CC="$ac_prog"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2608 else
2609   { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614   test -n "$ac_ct_CC" && break
2615 done
2616
2617   if test "x$ac_ct_CC" = x; then
2618     CC=""
2619   else
2620     case $cross_compiling:$ac_tool_warned in
2621 yes:)
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet.  If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet.  If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2629 esac
2630     CC=$ac_ct_CC
2631   fi
2632 fi
2633
2634 fi
2635
2636
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641    { (exit 1); exit 1; }; }
2642
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_compiler --version >&5") 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compiler -v >&5") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compiler -V >&5") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2696 # of exeext.
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2700 #
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort.  b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2705 #
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions.  Remove them first so a
2708 # subsequent execution test works.
2709 ac_rmfiles=
2710 for ac_file in $ac_files
2711 do
2712   case $ac_file in
2713     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715   esac
2716 done
2717 rm -f $ac_rmfiles
2718
2719 if { (ac_try="$ac_link_default"
2720 case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_link_default") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; then
2729   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2733 # Autoconf.
2734 for ac_file in $ac_files ''
2735 do
2736   test -f "$ac_file" || continue
2737   case $ac_file in
2738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2739         ;;
2740     [ab].out )
2741         # We found the default executable, but exeext='' is most
2742         # certainly right.
2743         break;;
2744     *.* )
2745         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2746         then :; else
2747            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748         fi
2749         # We set ac_cv_exeext here because the later test for it is not
2750         # safe: cross compilers may not add the suffix if given an `-o'
2751         # argument, so we may need to know it at that point already.
2752         # Even if this section looks crufty: it has the advantage of
2753         # actually working.
2754         break;;
2755     * )
2756         break;;
2757   esac
2758 done
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2760
2761 else
2762   ac_file=''
2763 fi
2764
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775    { (exit 77); exit 77; }; }
2776 fi
2777
2778 ac_exeext=$ac_cv_exeext
2779
2780 # Check that the compiler produces executables we can run.  If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787   if { ac_try='./$ac_file'
2788   { (case "(($ac_try" in
2789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790   *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793   (eval "$ac_try") 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797     cross_compiling=no
2798   else
2799     if test "$cross_compiling" = maybe; then
2800         cross_compiling=yes
2801     else
2802         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808    { (exit 1); exit 1; }; }
2809     fi
2810   fi
2811 fi
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2814
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run.  If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2823
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_link") 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; then
2836   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 # `rm'.
2840 for ac_file in conftest.exe conftest conftest.*; do
2841   test -f "$ac_file" || continue
2842   case $ac_file in
2843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845           break;;
2846     * ) break;;
2847   esac
2848 done
2849 else
2850   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854    { (exit 1); exit 1; }; }
2855 fi
2856
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2860
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2863 ac_exeext=$EXEEXT
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869   cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875
2876 int
2877 main ()
2878 {
2879
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_compile") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; then
2895   for ac_file in conftest.o conftest.obj conftest.*; do
2896   test -f "$ac_file" || continue;
2897   case $ac_file in
2898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2900        break;;
2901   esac
2902 done
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911    { (exit 1); exit 1; }; }
2912 fi
2913
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2915 fi
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2919 ac_objext=$OBJEXT
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935 #ifndef __GNUC__
2936        choke me
2937 #endif
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_compile") 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } && {
2957          test -z "$ac_c_werror_flag" ||
2958          test ! -s conftest.err
2959        } && test -s conftest.$ac_objext; then
2960   ac_compiler_gnu=yes
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965         ac_compiler_gnu=no
2966 fi
2967
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   ac_save_c_werror_flag=$ac_c_werror_flag
2983    ac_c_werror_flag=yes
2984    ac_cv_prog_cc_g=no
2985    CFLAGS="-g"
2986    cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } && {
3015          test -z "$ac_c_werror_flag" ||
3016          test ! -s conftest.err
3017        } && test -s conftest.$ac_objext; then
3018   ac_cv_prog_cc_g=yes
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023         CFLAGS=""
3024       cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_c_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   :
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_c_werror_flag=$ac_save_c_werror_flag
3062          CFLAGS="-g"
3063          cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compile") 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } && {
3092          test -z "$ac_c_werror_flag" ||
3093          test ! -s conftest.err
3094        } && test -s conftest.$ac_objext; then
3095   ac_cv_prog_cc_g=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100
3101 fi
3102
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110    ac_c_werror_flag=$ac_save_c_werror_flag
3111 fi
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115   CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117   if test "$GCC" = yes; then
3118     CFLAGS="-g -O2"
3119   else
3120     CFLAGS="-g"
3121   fi
3122 else
3123   if test "$GCC" = yes; then
3124     CFLAGS="-O2"
3125   else
3126     CFLAGS=
3127   fi
3128 fi
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   ac_cv_prog_cc_c89=no
3135 ac_save_CC=$CC
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142 #include <stdarg.h>
3143 #include <stdio.h>
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3150      char **p;
3151      int i;
3152 {
3153   return p[i];
3154 }
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3156 {
3157   char *s;
3158   va_list v;
3159   va_start (v,p);
3160   s = g (p, va_arg (v,int));
3161   va_end (v);
3162   return s;
3163 }
3164
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3166    function prototypes and stuff, but not '\xHH' hex character constants.
3167    These don't provoke an error unfortunately, instead are silently treated
3168    as 'x'.  The following induces an error, until -std is added to get
3169    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3170    array size at least.  It's necessary to write '\x00'==0 to get something
3171    that's true only with -std.  */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175    inside strings and character constants.  */
3176 #define FOO(x) 'x'
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183 int argc;
3184 char **argv;
3185 int
3186 main ()
3187 {
3188 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3195 do
3196   CC="$ac_save_CC $ac_arg"
3197   rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } && {
3211          test -z "$ac_c_werror_flag" ||
3212          test ! -s conftest.err
3213        } && test -s conftest.$ac_objext; then
3214   ac_cv_prog_cc_c89=$ac_arg
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext
3223   test "x$ac_cv_prog_cc_c89" != "xno" && break
3224 done
3225 rm -f conftest.$ac_ext
3226 CC=$ac_save_CC
3227
3228 fi
3229 # AC_CACHE_VAL
3230 case "x$ac_cv_prog_cc_c89" in
3231   x)
3232     { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3234   xno)
3235     { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3237   *)
3238     CC="$CC $ac_cv_prog_cc_c89"
3239     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3241 esac
3242
3243
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250 ac_ext=cpp
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -z "$CXX"; then
3256   if test -n "$CCC"; then
3257     CXX=$CCC
3258   else
3259     if test -n "$ac_tool_prefix"; then
3260   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3261   do
3262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   if test -n "$CXX"; then
3270   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277   for ac_exec_ext in '' $ac_executable_extensions; do
3278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CXX=$ac_cv_prog_CXX
3290 if test -n "$CXX"; then
3291   { echo "$as_me:$LINENO: result: $CXX" >&5
3292 echo "${ECHO_T}$CXX" >&6; }
3293 else
3294   { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3296 fi
3297
3298
3299     test -n "$CXX" && break
3300   done
3301 fi
3302 if test -z "$CXX"; then
3303   ac_ct_CXX=$CXX
3304   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3305 do
3306   # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   if test -n "$ac_ct_CXX"; then
3314   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_ac_ct_CXX="$ac_prog"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334 if test -n "$ac_ct_CXX"; then
3335   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3337 else
3338   { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3340 fi
3341
3342
3343   test -n "$ac_ct_CXX" && break
3344 done
3345
3346   if test "x$ac_ct_CXX" = x; then
3347     CXX="g++"
3348   else
3349     case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet.  If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet.  If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CXX=$ac_ct_CXX
3360   fi
3361 fi
3362
3363   fi
3364 fi
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_compiler --version >&5") 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_compiler -v >&5") 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_compiler -V >&5") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415        choke me
3416 #endif
3417
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429   (eval "$ac_compile") 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } && {
3436          test -z "$ac_cxx_werror_flag" ||
3437          test ! -s conftest.err
3438        } && test -s conftest.$ac_objext; then
3439   ac_compiler_gnu=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444         ac_compiler_gnu=no
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3453 GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CXXFLAGS=${CXXFLAGS+set}
3455 ac_save_CXXFLAGS=$CXXFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cxx_g+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3462    ac_cxx_werror_flag=yes
3463    ac_cv_prog_cxx_g=no
3464    CXXFLAGS="-g"
3465    cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && {
3494          test -z "$ac_cxx_werror_flag" ||
3495          test ! -s conftest.err
3496        } && test -s conftest.$ac_objext; then
3497   ac_cv_prog_cxx_g=yes
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502         CXXFLAGS=""
3503       cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_compile") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } && {
3532          test -z "$ac_cxx_werror_flag" ||
3533          test ! -s conftest.err
3534        } && test -s conftest.$ac_objext; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3541          CXXFLAGS="-g"
3542          cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_compile") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } && {
3571          test -z "$ac_cxx_werror_flag" ||
3572          test ! -s conftest.err
3573        } && test -s conftest.$ac_objext; then
3574   ac_cv_prog_cxx_g=yes
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579
3580 fi
3581
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 fi
3584
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3590 fi
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594   CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596   if test "$GXX" = yes; then
3597     CXXFLAGS="-g -O2"
3598   else
3599     CXXFLAGS="-g"
3600   fi
3601 else
3602   if test "$GXX" = yes; then
3603     CXXFLAGS="-O2"
3604   else
3605     CXXFLAGS=
3606   fi
3607 fi
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 if test "x$CC" != xcc; then
3615   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3616 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3617 else
3618   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3619 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3620 fi
3621 set dummy $CC; ac_cc=`echo $2 |
3622                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3623 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632
3633 int
3634 main ()
3635 {
3636
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 # Make sure it works both with $CC and with simple cc.
3642 # We do the test twice because some compilers refuse to overwrite an
3643 # existing .o file with -o, though they will create one.
3644 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3645 rm -f conftest2.*
3646 if { (case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651   (eval "$ac_try") 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660   (eval "$ac_try") 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); };
3664 then
3665   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3666   if test "x$CC" != xcc; then
3667     # Test first that cc exists at all.
3668     if { ac_try='cc -c conftest.$ac_ext >&5'
3669   { (case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3679       rm -f conftest2.*
3680       if { (case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685   (eval "$ac_try") 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } &&
3689          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); };
3698       then
3699         # cc works too.
3700         :
3701       else
3702         # cc exists but doesn't like -o.
3703         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3704       fi
3705     fi
3706   fi
3707 else
3708   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3709 fi
3710 rm -f core conftest*
3711
3712 fi
3713 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3714   { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3716 else
3717   { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719
3720 cat >>confdefs.h <<\_ACEOF
3721 #define NO_MINUS_C_MINUS_O 1
3722 _ACEOF
3723
3724 fi
3725
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3733 # On Suns, sometimes $CPP names a directory.
3734 if test -n "$CPP" && test -d "$CPP"; then
3735   CPP=
3736 fi
3737 if test -z "$CPP"; then
3738   if test "${ac_cv_prog_CPP+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741       # Double quotes because CPP needs to be expanded
3742     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3743     do
3744       ac_preproc_ok=false
3745 for ac_c_preproc_warn_flag in '' yes
3746 do
3747   # Use a header file that comes with gcc, so configuring glibc
3748   # with a fresh cross-compiler works.
3749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750   # <limits.h> exists even on freestanding compilers.
3751   # On the NeXT, cc -E runs the code through the compiler's parser,
3752   # not just through cpp. "Syntax error" is here to catch this case.
3753   cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h.  */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h.  */
3759 #ifdef __STDC__
3760 # include <limits.h>
3761 #else
3762 # include <assert.h>
3763 #endif
3764                      Syntax error
3765 _ACEOF
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } >/dev/null && {
3779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780          test ! -s conftest.err
3781        }; then
3782   :
3783 else
3784   echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787   # Broken: fails on valid input.
3788 continue
3789 fi
3790
3791 rm -f conftest.err conftest.$ac_ext
3792
3793   # OK, works on sane cases.  Now check whether nonexistent headers
3794   # can be detected and how.
3795   cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801 #include <ac_nonexistent.h>
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } >/dev/null && {
3816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        }; then
3819   # Broken: success on invalid input.
3820 continue
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825   # Passes both tests.
3826 ac_preproc_ok=:
3827 break
3828 fi
3829
3830 rm -f conftest.err conftest.$ac_ext
3831
3832 done
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then
3836   break
3837 fi
3838
3839     done
3840     ac_cv_prog_CPP=$CPP
3841
3842 fi
3843   CPP=$ac_cv_prog_CPP
3844 else
3845   ac_cv_prog_CPP=$CPP
3846 fi
3847 { echo "$as_me:$LINENO: result: $CPP" >&5
3848 echo "${ECHO_T}$CPP" >&6; }
3849 ac_preproc_ok=false
3850 for ac_c_preproc_warn_flag in '' yes
3851 do
3852   # Use a header file that comes with gcc, so configuring glibc
3853   # with a fresh cross-compiler works.
3854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855   # <limits.h> exists even on freestanding compilers.
3856   # On the NeXT, cc -E runs the code through the compiler's parser,
3857   # not just through cpp. "Syntax error" is here to catch this case.
3858   cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h.  */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h.  */
3864 #ifdef __STDC__
3865 # include <limits.h>
3866 #else
3867 # include <assert.h>
3868 #endif
3869                      Syntax error
3870 _ACEOF
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878   ac_status=$?
3879   grep -v '^ *+' conftest.er1 >conftest.err
3880   rm -f conftest.er1
3881   cat conftest.err >&5
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } >/dev/null && {
3884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885          test ! -s conftest.err
3886        }; then
3887   :
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892   # Broken: fails on valid input.
3893 continue
3894 fi
3895
3896 rm -f conftest.err conftest.$ac_ext
3897
3898   # OK, works on sane cases.  Now check whether nonexistent headers
3899   # can be detected and how.
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <ac_nonexistent.h>
3907 _ACEOF
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } >/dev/null && {
3921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        }; then
3924   # Broken: success on invalid input.
3925 continue
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930   # Passes both tests.
3931 ac_preproc_ok=:
3932 break
3933 fi
3934
3935 rm -f conftest.err conftest.$ac_ext
3936
3937 done
3938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939 rm -f conftest.err conftest.$ac_ext
3940 if $ac_preproc_ok; then
3941   :
3942 else
3943   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&2;}
3947    { (exit 1); exit 1; }; }
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_prog in grep ggrep; do
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979     # Check for GNU ac_path_GREP and select it if it is found.
3980   # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3982 *GNU*)
3983   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 *)
3985   ac_count=0
3986   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987   while :
3988   do
3989     cat "conftest.in" "conftest.in" >"conftest.tmp"
3990     mv "conftest.tmp" "conftest.in"
3991     cp "conftest.in" "conftest.nl"
3992     echo 'GREP' >> "conftest.nl"
3993     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995     ac_count=`expr $ac_count + 1`
3996     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997       # Best one so far, save it but keep looking for a better one
3998       ac_cv_path_GREP="$ac_path_GREP"
3999       ac_path_GREP_max=$ac_count
4000     fi
4001     # 10*(2^10) chars as input seems more than enough
4002     test $ac_count -gt 10 && break
4003   done
4004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007
4008     $ac_path_GREP_found && break 3
4009   done
4010 done
4011
4012 done
4013 IFS=$as_save_IFS
4014
4015
4016 fi
4017
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024
4025 else
4026   ac_cv_path_GREP=$GREP
4027 fi
4028
4029
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033  GREP="$ac_cv_path_GREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042    then ac_cv_path_EGREP="$GREP -E"
4043    else
4044      # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_prog in egrep; do
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4061     # Check for GNU ac_path_EGREP and select it if it is found.
4062   # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4064 *GNU*)
4065   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066 *)
4067   ac_count=0
4068   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4069   while :
4070   do
4071     cat "conftest.in" "conftest.in" >"conftest.tmp"
4072     mv "conftest.tmp" "conftest.in"
4073     cp "conftest.in" "conftest.nl"
4074     echo 'EGREP' >> "conftest.nl"
4075     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077     ac_count=`expr $ac_count + 1`
4078     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079       # Best one so far, save it but keep looking for a better one
4080       ac_cv_path_EGREP="$ac_path_EGREP"
4081       ac_path_EGREP_max=$ac_count
4082     fi
4083     # 10*(2^10) chars as input seems more than enough
4084     test $ac_count -gt 10 && break
4085   done
4086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089
4090     $ac_path_EGREP_found && break 3
4091   done
4092 done
4093
4094 done
4095 IFS=$as_save_IFS
4096
4097
4098 fi
4099
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111
4112    fi
4113 fi
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116  EGREP="$ac_cv_path_EGREP"
4117
4118
4119 if test $ac_cv_c_compiler_gnu = yes; then
4120     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4121 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4122 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125     ac_pattern="Autoconf.*'x'"
4126   cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <sgtty.h>
4133 Autoconf TIOCGETP
4134 _ACEOF
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4137   ac_cv_prog_gcc_traditional=yes
4138 else
4139   ac_cv_prog_gcc_traditional=no
4140 fi
4141 rm -f conftest*
4142
4143
4144   if test $ac_cv_prog_gcc_traditional = no; then
4145     cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <termio.h>
4152 Autoconf TCGETA
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 fi
4158 rm -f conftest*
4159
4160   fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4164   if test $ac_cv_prog_gcc_traditional = yes; then
4165     CC="$CC -traditional"
4166   fi
4167 fi
4168
4169 BASECC=`basename $CC`
4170 have_gcc=no
4171 if test "x$BASECC" = xgcc; then
4172    cat >>confdefs.h <<\_ACEOF
4173 #define HAVE_GCC 1
4174 _ACEOF
4175
4176    have_gcc=yes
4177 fi
4178 # Extract the first word of "$CXX", so it can be a program name with args.
4179 set dummy $CXX; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_CXX+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $CXX in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4206   ;;
4207 esac
4208 fi
4209 CXX=$ac_cv_path_CXX
4210 if test -n "$CXX"; then
4211   { echo "$as_me:$LINENO: result: $CXX" >&5
4212 echo "${ECHO_T}$CXX" >&6; }
4213 else
4214   { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4216 fi
4217
4218
4219 if test ! -e $CXX; then
4220    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4221 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4222    { (exit 1); exit 1; }; }
4223 fi
4224
4225 # Find a good install program.  We prefer a C program (faster),
4226 # so one script is as good as another.  But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4231 # AIX /bin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   # Account for people who put trailing slashes in PATH elements.
4250 case $as_dir/ in
4251   ./ | .// | /cC/* | \
4252   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4254   /usr/ucb/* ) ;;
4255   *)
4256     # OSF1 and SCO ODT 3.0 have their own names for install.
4257     # Don't use installbsd from OSF since it installs stuff as root
4258     # by default.
4259     for ac_prog in ginstall scoinst install; do
4260       for ac_exec_ext in '' $ac_executable_extensions; do
4261         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4262           if test $ac_prog = install &&
4263             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264             # AIX install.  It has an incompatible calling convention.
4265             :
4266           elif test $ac_prog = install &&
4267             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # program-specific install script used by HP pwplus--don't use.
4269             :
4270           else
4271             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4272             break 3
4273           fi
4274         fi
4275       done
4276     done
4277     ;;
4278 esac
4279 done
4280 IFS=$as_save_IFS
4281
4282
4283 fi
4284   if test "${ac_cv_path_install+set}" = set; then
4285     INSTALL=$ac_cv_path_install
4286   else
4287     # As a last resort, use the slow shell script.  Don't cache a
4288     # value for INSTALL within a source directory, because that will
4289     # break other packages using the cache if that directory is
4290     # removed, or if the value is a relative name.
4291     INSTALL=$ac_install_sh
4292   fi
4293 fi
4294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4295 echo "${ECHO_T}$INSTALL" >&6; }
4296
4297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298 # It thinks the first close brace ends the variable substitution.
4299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4300
4301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4302
4303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4304
4305 # Extract the first word of "mv", so it can be a program name with args.
4306 set dummy mv; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_path_MV+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   case $MV in
4313   [\\/]* | ?:[\\/]*)
4314   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4315   ;;
4316   *)
4317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322   for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4333   ;;
4334 esac
4335 fi
4336 MV=$ac_cv_path_MV
4337 if test -n "$MV"; then
4338   { echo "$as_me:$LINENO: result: $MV" >&5
4339 echo "${ECHO_T}$MV" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346 # Extract the first word of "rm", so it can be a program name with args.
4347 set dummy rm; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_REMOVE+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $REMOVE in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4374   ;;
4375 esac
4376 fi
4377 REMOVE=$ac_cv_path_REMOVE
4378 if test -n "$REMOVE"; then
4379   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4380 echo "${ECHO_T}$REMOVE" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387 # Extract the first word of "cp", so it can be a program name with args.
4388 set dummy cp; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_CP+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   case $CP in
4395   [\\/]* | ?:[\\/]*)
4396   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4397   ;;
4398   *)
4399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4415   ;;
4416 esac
4417 fi
4418 CP=$ac_cv_path_CP
4419 if test -n "$CP"; then
4420   { echo "$as_me:$LINENO: result: $CP" >&5
4421 echo "${ECHO_T}$CP" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   case $SED in
4436   [\\/]* | ?:[\\/]*)
4437   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4438   ;;
4439   *)
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4456   ;;
4457 esac
4458 fi
4459 SED=$ac_cv_path_SED
4460 if test -n "$SED"; then
4461   { echo "$as_me:$LINENO: result: $SED" >&5
4462 echo "${ECHO_T}$SED" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 # Extract the first word of "echo", so it can be a program name with args.
4470 set dummy echo; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ECHO+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ECHO in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4497   ;;
4498 esac
4499 fi
4500 ECHO=$ac_cv_path_ECHO
4501 if test -n "$ECHO"; then
4502   { echo "$as_me:$LINENO: result: $ECHO" >&5
4503 echo "${ECHO_T}$ECHO" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4508
4509
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $CMP in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4538   ;;
4539 esac
4540 fi
4541 CMP=$ac_cv_path_CMP
4542 if test -n "$CMP"; then
4543   { echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6; }
4545 else
4546   { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4548 fi
4549
4550
4551 # Extract the first word of "tbl", so it can be a program name with args.
4552 set dummy tbl; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_TBL+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $TBL in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4579   ;;
4580 esac
4581 fi
4582 TBL=$ac_cv_path_TBL
4583 if test -n "$TBL"; then
4584   { echo "$as_me:$LINENO: result: $TBL" >&5
4585 echo "${ECHO_T}$TBL" >&6; }
4586 else
4587   { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 fi
4590
4591
4592 # Extract the first word of "ar", so it can be a program name with args.
4593 set dummy ar; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_AR+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   case $AR in
4600   [\\/]* | ?:[\\/]*)
4601   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4602   ;;
4603   *)
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4620   ;;
4621 esac
4622 fi
4623 AR=$ac_cv_path_AR
4624 if test -n "$AR"; then
4625   { echo "$as_me:$LINENO: result: $AR" >&5
4626 echo "${ECHO_T}$AR" >&6; }
4627 else
4628   { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4630 fi
4631
4632
4633 # Extract the first word of "openssl", so it can be a program name with args.
4634 set dummy openssl; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_OPENSSL+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   case $OPENSSL in
4641   [\\/]* | ?:[\\/]*)
4642   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4643   ;;
4644   *)
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650   for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4661   ;;
4662 esac
4663 fi
4664 OPENSSL=$ac_cv_path_OPENSSL
4665 if test -n "$OPENSSL"; then
4666   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4667 echo "${ECHO_T}$OPENSSL" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674 # Extract the first word of "mtx", so it can be a program name with args.
4675 set dummy mtx; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_MTX+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   case $MTX in
4682   [\\/]* | ?:[\\/]*)
4683   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4684   ;;
4685   *)
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4702   ;;
4703 esac
4704 fi
4705 MTX=$ac_cv_path_MTX
4706 if test -n "$MTX"; then
4707   { echo "$as_me:$LINENO: result: $MTX" >&5
4708 echo "${ECHO_T}$MTX" >&6; }
4709 else
4710   { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4712 fi
4713
4714
4715 # Extract the first word of "dd", so it can be a program name with args.
4716 set dummy dd; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_DD+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   case $DD in
4723   [\\/]* | ?:[\\/]*)
4724   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4725   ;;
4726   *)
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4743   ;;
4744 esac
4745 fi
4746 DD=$ac_cv_path_DD
4747 if test -n "$DD"; then
4748   { echo "$as_me:$LINENO: result: $DD" >&5
4749 echo "${ECHO_T}$DD" >&6; }
4750 else
4751   { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4753 fi
4754
4755
4756 # Extract the first word of "mkisofs", so it can be a program name with args.
4757 set dummy mkisofs; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_MKISOFS+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $MKISOFS in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4784   ;;
4785 esac
4786 fi
4787 MKISOFS=$ac_cv_path_MKISOFS
4788 if test -n "$MKISOFS"; then
4789   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4790 echo "${ECHO_T}$MKISOFS" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797 # Extract the first word of "python", so it can be a program name with args.
4798 set dummy python; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_PYTHON+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   case $PYTHON in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4825   ;;
4826 esac
4827 fi
4828 PYTHON=$ac_cv_path_PYTHON
4829 if test -n "$PYTHON"; then
4830   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4831 echo "${ECHO_T}$PYTHON" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838 # Extract the first word of "growisofs", so it can be a program name with args.
4839 set dummy growisofs; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   case $GROWISOFS in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4866   ;;
4867 esac
4868 fi
4869 GROWISOFS=$ac_cv_path_GROWISOFS
4870 if test -n "$GROWISOFS"; then
4871   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4872 echo "${ECHO_T}$GROWISOFS" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4880 set dummy dvd+rw-mediainfo; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   case $DVDRWMEDIAINFO in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4907   ;;
4908 esac
4909 fi
4910 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4911 if test -n "$DVDRWMEDIAINFO"; then
4912   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4913 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4914 else
4915   { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4921 set dummy dvd+rw-format; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   case $DVDRWFORMAT in
4928   [\\/]* | ?:[\\/]*)
4929   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4930   ;;
4931   *)
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4948   ;;
4949 esac
4950 fi
4951 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4952 if test -n "$DVDRWFORMAT"; then
4953   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4954 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4955 else
4956   { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4958 fi
4959
4960
4961 # Extract the first word of "pkg-config", so it can be a program name with args.
4962 set dummy pkg-config; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   case $PKGCONFIG in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4989   ;;
4990 esac
4991 fi
4992 PKGCONFIG=$ac_cv_path_PKGCONFIG
4993 if test -n "$PKGCONFIG"; then
4994   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4995 echo "${ECHO_T}$PKGCONFIG" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 # Extract the first word of "qmake", so it can be a program name with args.
5003 set dummy qmake; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_QMAKE+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   case $QMAKE in
5010   [\\/]* | ?:[\\/]*)
5011   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5012   ;;
5013   *)
5014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5030   ;;
5031 esac
5032 fi
5033 QMAKE=$ac_cv_path_QMAKE
5034 if test -n "$QMAKE"; then
5035   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5036 echo "${ECHO_T}$QMAKE" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5044 set dummy qmake-qt4; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   case $QMAKEQT4 in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5071   ;;
5072 esac
5073 fi
5074 QMAKEQT4=$ac_cv_path_QMAKEQT4
5075 if test -n "$QMAKEQT4"; then
5076   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5077 echo "${ECHO_T}$QMAKEQT4" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084
5085 if test "x$WXCONFIG" = x; then
5086    WXCONFIG=wx-config
5087 fi
5088 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5089 set dummy ${WXCONFIG}; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   case $WXCONFIG in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5116   ;;
5117 esac
5118 fi
5119 WXCONFIG=$ac_cv_path_WXCONFIG
5120 if test -n "$WXCONFIG"; then
5121   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5122 echo "${ECHO_T}$WXCONFIG" >&6; }
5123 else
5124   { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5126 fi
5127
5128
5129
5130 # Extract the first word of "cdrecord", so it can be a program name with args.
5131 set dummy cdrecord; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_CDRECORD+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $CDRECORD in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5158   ;;
5159 esac
5160 fi
5161 CDRECORD=$ac_cv_path_CDRECORD
5162 if test -n "$CDRECORD"; then
5163   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5164 echo "${ECHO_T}$CDRECORD" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171 # Extract the first word of "pidof", so it can be a program name with args.
5172 set dummy pidof; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_PIDOF+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   case $PIDOF in
5179   [\\/]* | ?:[\\/]*)
5180   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5181   ;;
5182   *)
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5199   ;;
5200 esac
5201 fi
5202 PIDOF=$ac_cv_path_PIDOF
5203 if test -n "$PIDOF"; then
5204   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5205 echo "${ECHO_T}$PIDOF" >&6; }
5206 else
5207   { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210
5211
5212 for ac_prog in gawk mawk nawk awk
5213 do
5214   # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_AWK+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test -n "$AWK"; then
5222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231     ac_cv_prog_AWK="$ac_prog"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 AWK=$ac_cv_prog_AWK
5242 if test -n "$AWK"; then
5243   { echo "$as_me:$LINENO: result: $AWK" >&5
5244 echo "${ECHO_T}$AWK" >&6; }
5245 else
5246   { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5248 fi
5249
5250
5251   test -n "$AWK" && break
5252 done
5253
5254 # Some AWK programs fail, so test it and warn the user
5255 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5256       { if ((prog == $2) || (("(" prog ")") == $2) ||
5257       (("" prog "") == $2) ||
5258       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5259 else
5260   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5261    The regex engine of $AWK is too broken to be used you
5262    might want to install GNU AWK.
5263    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5264 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265    The regex engine of $AWK is too broken to be used you
5266    might want to install GNU AWK.
5267    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5268    { (exit 1); exit 1; }; }
5269 fi
5270 THE_AWK=$AWK
5271 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5272 set dummy $THE_AWK; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_AWK+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   case $AWK in
5279   [\\/]* | ?:[\\/]*)
5280   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5281   ;;
5282   *)
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5299   ;;
5300 esac
5301 fi
5302 AWK=$ac_cv_path_AWK
5303 if test -n "$AWK"; then
5304   { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5306 else
5307   { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5309 fi
5310
5311
5312
5313
5314 test -n "$ARFLAG" || ARFLAGS="cr"
5315
5316
5317 MAKE_SHELL=/bin/sh
5318
5319
5320
5321
5322
5323
5324
5325 # Check whether --enable-libtool was given.
5326 if test "${enable_libtool+set}" = set; then
5327   enableval=$enable_libtool;
5328        if test x$enableval = xno; then
5329           use_libtool=no
5330        fi
5331
5332
5333 fi
5334
5335 case `pwd` in
5336   *\ * | *\     *)
5337     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5338 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5339 esac
5340
5341
5342
5343 macro_version='2.2.6'
5344 macro_revision='1.3012'
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 ltmain="$ac_aux_dir/ltmain.sh"
5359
5360 # Make sure we can run config.sub.
5361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5362   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5363 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5364    { (exit 1); exit 1; }; }
5365
5366 { echo "$as_me:$LINENO: checking build system type" >&5
5367 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5368 if test "${ac_cv_build+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   ac_build_alias=$build_alias
5372 test "x$ac_build_alias" = x &&
5373   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374 test "x$ac_build_alias" = x &&
5375   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5377    { (exit 1); exit 1; }; }
5378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5379   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5380 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5381    { (exit 1); exit 1; }; }
5382
5383 fi
5384 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5385 echo "${ECHO_T}$ac_cv_build" >&6; }
5386 case $ac_cv_build in
5387 *-*-*) ;;
5388 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5389 echo "$as_me: error: invalid value of canonical build" >&2;}
5390    { (exit 1); exit 1; }; };;
5391 esac
5392 build=$ac_cv_build
5393 ac_save_IFS=$IFS; IFS='-'
5394 set x $ac_cv_build
5395 shift
5396 build_cpu=$1
5397 build_vendor=$2
5398 shift; shift
5399 # Remember, the first character of IFS is used to create $*,
5400 # except with old shells:
5401 build_os=$*
5402 IFS=$ac_save_IFS
5403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5404
5405
5406 { echo "$as_me:$LINENO: checking host system type" >&5
5407 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5408 if test "${ac_cv_host+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if test "x$host_alias" = x; then
5412   ac_cv_host=$ac_cv_build
5413 else
5414   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5415     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5417    { (exit 1); exit 1; }; }
5418 fi
5419
5420 fi
5421 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422 echo "${ECHO_T}$ac_cv_host" >&6; }
5423 case $ac_cv_host in
5424 *-*-*) ;;
5425 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5426 echo "$as_me: error: invalid value of canonical host" >&2;}
5427    { (exit 1); exit 1; }; };;
5428 esac
5429 host=$ac_cv_host
5430 ac_save_IFS=$IFS; IFS='-'
5431 set x $ac_cv_host
5432 shift
5433 host_cpu=$1
5434 host_vendor=$2
5435 shift; shift
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5438 host_os=$*
5439 IFS=$ac_save_IFS
5440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5441
5442
5443 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5445 if test "${ac_cv_path_SED+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5449      for ac_i in 1 2 3 4 5 6 7; do
5450        ac_script="$ac_script$as_nl$ac_script"
5451      done
5452      echo "$ac_script" | sed 99q >conftest.sed
5453      $as_unset ac_script || ac_script=
5454      # Extract the first word of "sed gsed" to use in msg output
5455 if test -z "$SED"; then
5456 set dummy sed gsed; ac_prog_name=$2
5457 if test "${ac_cv_path_SED+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   ac_path_SED_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467   for ac_prog in sed gsed; do
5468   for ac_exec_ext in '' $ac_executable_extensions; do
5469     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5470     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5471     # Check for GNU ac_path_SED and select it if it is found.
5472   # Check for GNU $ac_path_SED
5473 case `"$ac_path_SED" --version 2>&1` in
5474 *GNU*)
5475   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5476 *)
5477   ac_count=0
5478   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5479   while :
5480   do
5481     cat "conftest.in" "conftest.in" >"conftest.tmp"
5482     mv "conftest.tmp" "conftest.in"
5483     cp "conftest.in" "conftest.nl"
5484     echo '' >> "conftest.nl"
5485     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487     ac_count=`expr $ac_count + 1`
5488     if test $ac_count -gt ${ac_path_SED_max-0}; then
5489       # Best one so far, save it but keep looking for a better one
5490       ac_cv_path_SED="$ac_path_SED"
5491       ac_path_SED_max=$ac_count
5492     fi
5493     # 10*(2^10) chars as input seems more than enough
5494     test $ac_count -gt 10 && break
5495   done
5496   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5497 esac
5498
5499
5500     $ac_path_SED_found && break 3
5501   done
5502 done
5503
5504 done
5505 IFS=$as_save_IFS
5506
5507
5508 fi
5509
5510 SED="$ac_cv_path_SED"
5511 if test -z "$SED"; then
5512   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5513 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5514    { (exit 1); exit 1; }; }
5515 fi
5516
5517 else
5518   ac_cv_path_SED=$SED
5519 fi
5520
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5523 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5524  SED="$ac_cv_path_SED"
5525   rm -f conftest.sed
5526
5527 test -z "$SED" && SED=sed
5528 Xsed="$SED -e 1s/^X//"
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 { echo "$as_me:$LINENO: checking for fgrep" >&5
5541 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546    then ac_cv_path_FGREP="$GREP -F"
5547    else
5548      # Extract the first word of "fgrep" to use in msg output
5549 if test -z "$FGREP"; then
5550 set dummy fgrep; ac_prog_name=$2
5551 if test "${ac_cv_path_FGREP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_prog in fgrep; do
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5564     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5565     # Check for GNU ac_path_FGREP and select it if it is found.
5566   # Check for GNU $ac_path_FGREP
5567 case `"$ac_path_FGREP" --version 2>&1` in
5568 *GNU*)
5569   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5570 *)
5571   ac_count=0
5572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5573   while :
5574   do
5575     cat "conftest.in" "conftest.in" >"conftest.tmp"
5576     mv "conftest.tmp" "conftest.in"
5577     cp "conftest.in" "conftest.nl"
5578     echo 'FGREP' >> "conftest.nl"
5579     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581     ac_count=`expr $ac_count + 1`
5582     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583       # Best one so far, save it but keep looking for a better one
5584       ac_cv_path_FGREP="$ac_path_FGREP"
5585       ac_path_FGREP_max=$ac_count
5586     fi
5587     # 10*(2^10) chars as input seems more than enough
5588     test $ac_count -gt 10 && break
5589   done
5590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593
5594     $ac_path_FGREP_found && break 3
5595   done
5596 done
5597
5598 done
5599 IFS=$as_save_IFS
5600
5601
5602 fi
5603
5604 FGREP="$ac_cv_path_FGREP"
5605 if test -z "$FGREP"; then
5606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610
5611 else
5612   ac_cv_path_FGREP=$FGREP
5613 fi
5614
5615
5616    fi
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5620  FGREP="$ac_cv_path_FGREP"
5621
5622
5623 test -z "$GREP" && GREP=grep
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 # Check whether --with-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5646 else
5647   with_gnu_ld=no
5648 fi
5649
5650 ac_prog=ld
5651 if test "$GCC" = yes; then
5652   # Check if gcc -print-prog-name=ld gives a path.
5653   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5655   case $host in
5656   *-*-mingw*)
5657     # gcc leaves a trailing carriage return which upsets mingw
5658     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5659   *)
5660     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5661   esac
5662   case $ac_prog in
5663     # Accept absolute paths.
5664     [\\/]* | ?:[\\/]*)
5665       re_direlt='/[^/][^/]*/\.\./'
5666       # Canonicalize the pathname of ld
5667       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5670       done
5671       test -z "$LD" && LD="$ac_prog"
5672       ;;
5673   "")
5674     # If it fails, then pretend we aren't using GCC.
5675     ac_prog=ld
5676     ;;
5677   *)
5678     # If it is relative, then search for the first ld in PATH.
5679     with_gnu_ld=unknown
5680     ;;
5681   esac
5682 elif test "$with_gnu_ld" = yes; then
5683   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5685 else
5686   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5688 fi
5689 if test "${lt_cv_path_LD+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -z "$LD"; then
5693   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694   for ac_dir in $PATH; do
5695     IFS="$lt_save_ifs"
5696     test -z "$ac_dir" && ac_dir=.
5697     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698       lt_cv_path_LD="$ac_dir/$ac_prog"
5699       # Check to see if the program is GNU ld.  I'd rather use --version,
5700       # but apparently some variants of GNU ld only accept -v.
5701       # Break only if it was the GNU/non-GNU ld that we prefer.
5702       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703       *GNU* | *'with BFD'*)
5704         test "$with_gnu_ld" != no && break
5705         ;;
5706       *)
5707         test "$with_gnu_ld" != yes && break
5708         ;;
5709       esac
5710     fi
5711   done
5712   IFS="$lt_save_ifs"
5713 else
5714   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5715 fi
5716 fi
5717
5718 LD="$lt_cv_path_LD"
5719 if test -n "$LD"; then
5720   { echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6; }
5722 else
5723   { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5725 fi
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728    { (exit 1); exit 1; }; }
5729 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737   lt_cv_prog_gnu_ld=yes
5738   ;;
5739 *)
5740   lt_cv_prog_gnu_ld=no
5741   ;;
5742 esac
5743 fi
5744 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$NM"; then
5762   # Let the user override the test.
5763   lt_cv_path_NM="$NM"
5764 else
5765   lt_nm_to_check="${ac_tool_prefix}nm"
5766   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767     lt_nm_to_check="$lt_nm_to_check nm"
5768   fi
5769   for lt_tmp_nm in $lt_nm_to_check; do
5770     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772       IFS="$lt_save_ifs"
5773       test -z "$ac_dir" && ac_dir=.
5774       tmp_nm="$ac_dir/$lt_tmp_nm"
5775       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776         # Check to see if the nm accepts a BSD-compat flag.
5777         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778         #   nm: unknown option "B" ignored
5779         # Tru64's nm complains that /dev/null is an invalid object file
5780         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781         */dev/null* | *'Invalid file or object type'*)
5782           lt_cv_path_NM="$tmp_nm -B"
5783           break
5784           ;;
5785         *)
5786           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5787           */dev/null*)
5788             lt_cv_path_NM="$tmp_nm -p"
5789             break
5790             ;;
5791           *)
5792             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793             continue # so that we can try to find one that supports BSD flags
5794             ;;
5795           esac
5796           ;;
5797         esac
5798       fi
5799     done
5800     IFS="$lt_save_ifs"
5801   done
5802   : ${lt_cv_path_NM=no}
5803 fi
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 if test "$lt_cv_path_NM" != "no"; then
5808   NM="$lt_cv_path_NM"
5809 else
5810   # Didn't find any BSD compatible name lister, look for dumpbin.
5811   if test -n "$ac_tool_prefix"; then
5812   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5813   do
5814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   if test -n "$DUMPBIN"; then
5822   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829   for ac_exec_ext in '' $ac_executable_extensions; do
5830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5844 echo "${ECHO_T}$DUMPBIN" >&6; }
5845 else
5846   { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5848 fi
5849
5850
5851     test -n "$DUMPBIN" && break
5852   done
5853 fi
5854 if test -z "$DUMPBIN"; then
5855   ac_ct_DUMPBIN=$DUMPBIN
5856   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   if test -n "$ac_ct_DUMPBIN"; then
5866   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873   for ac_exec_ext in '' $ac_executable_extensions; do
5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5888 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5889 else
5890   { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5892 fi
5893
5894
5895   test -n "$ac_ct_DUMPBIN" && break
5896 done
5897
5898   if test "x$ac_ct_DUMPBIN" = x; then
5899     DUMPBIN=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet.  If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet.  If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     DUMPBIN=$ac_ct_DUMPBIN
5912   fi
5913 fi
5914
5915
5916   if test "$DUMPBIN" != ":"; then
5917     NM="$DUMPBIN"
5918   fi
5919 fi
5920 test -z "$NM" && NM=nm
5921
5922
5923
5924
5925
5926
5927 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5928 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5929 if test "${lt_cv_nm_interface+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   lt_cv_nm_interface="BSD nm"
5933   echo "int some_variable = 0;" > conftest.$ac_ext
5934   (eval echo "\"\$as_me:5934: $ac_compile\"" >&5)
5935   (eval "$ac_compile" 2>conftest.err)
5936   cat conftest.err >&5
5937   (eval echo "\"\$as_me:5937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939   cat conftest.err >&5
5940   (eval echo "\"\$as_me:5940: output\"" >&5)
5941   cat conftest.out >&5
5942   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943     lt_cv_nm_interface="MS dumpbin"
5944   fi
5945   rm -f conftest*
5946 fi
5947 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5948 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5949
5950 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5952 LN_S=$as_ln_s
5953 if test "$LN_S" = "ln -s"; then
5954   { echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5958 echo "${ECHO_T}no, using $LN_S" >&6; }
5959 fi
5960
5961 # find the maximum length of command line arguments
5962 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5963 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5964 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967     i=0
5968   teststring="ABCD"
5969
5970   case $build_os in
5971   msdosdjgpp*)
5972     # On DJGPP, this test can blow up pretty badly due to problems in libc
5973     # (any single argument exceeding 2000 bytes causes a buffer overrun
5974     # during glob expansion).  Even if it were fixed, the result of this
5975     # check would be larger than it should be.
5976     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5977     ;;
5978
5979   gnu*)
5980     # Under GNU Hurd, this test is not required because there is
5981     # no limit to the length of command line arguments.
5982     # Libtool will interpret -1 as no limit whatsoever
5983     lt_cv_sys_max_cmd_len=-1;
5984     ;;
5985
5986   cygwin* | mingw* | cegcc*)
5987     # On Win9x/ME, this test blows up -- it succeeds, but takes
5988     # about 5 minutes as the teststring grows exponentially.
5989     # Worse, since 9x/ME are not pre-emptively multitasking,
5990     # you end up with a "frozen" computer, even though with patience
5991     # the test eventually succeeds (with a max line length of 256k).
5992     # Instead, let's just punt: use the minimum linelength reported by
5993     # all of the supported platforms: 8192 (on NT/2K/XP).
5994     lt_cv_sys_max_cmd_len=8192;
5995     ;;
5996
5997   amigaos*)
5998     # On AmigaOS with pdksh, this test takes hours, literally.
5999     # So we just punt and use a minimum line length of 8192.
6000     lt_cv_sys_max_cmd_len=8192;
6001     ;;
6002
6003   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004     # This has been around since 386BSD, at least.  Likely further.
6005     if test -x /sbin/sysctl; then
6006       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007     elif test -x /usr/sbin/sysctl; then
6008       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6009     else
6010       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6011     fi
6012     # And add a safety zone
6013     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6015     ;;
6016
6017   interix*)
6018     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019     lt_cv_sys_max_cmd_len=196608
6020     ;;
6021
6022   osf*)
6023     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025     # nice to cause kernel panics so lets avoid the loop below.
6026     # First set a reasonable default.
6027     lt_cv_sys_max_cmd_len=16384
6028     #
6029     if test -x /sbin/sysconfig; then
6030       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6032       esac
6033     fi
6034     ;;
6035   sco3.2v5*)
6036     lt_cv_sys_max_cmd_len=102400
6037     ;;
6038   sysv5* | sco5v6* | sysv4.2uw2*)
6039     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040     if test -n "$kargmax"; then
6041       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6042     else
6043       lt_cv_sys_max_cmd_len=32768
6044     fi
6045     ;;
6046   *)
6047     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048     if test -n "$lt_cv_sys_max_cmd_len"; then
6049       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6051     else
6052       # Make teststring a little bigger before we do anything with it.
6053       # a 1K string should be a reasonable start.
6054       for i in 1 2 3 4 5 6 7 8 ; do
6055         teststring=$teststring$teststring
6056       done
6057       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058       # If test is not a shell built-in, we'll probably end up computing a
6059       # maximum length that is only half of the actual maximum length, but
6060       # we can't tell.
6061       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6062                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6063               test $i != 17 # 1/2 MB should be enough
6064       do
6065         i=`expr $i + 1`
6066         teststring=$teststring$teststring
6067       done
6068       # Only check the string length outside the loop.
6069       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6070       teststring=
6071       # Add a significant safety factor because C++ compilers can tack on
6072       # massive amounts of additional arguments before passing them to the
6073       # linker.  It appears as though 1/2 is a usable value.
6074       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6075     fi
6076     ;;
6077   esac
6078
6079 fi
6080
6081 if test -n $lt_cv_sys_max_cmd_len ; then
6082   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6084 else
6085   { echo "$as_me:$LINENO: result: none" >&5
6086 echo "${ECHO_T}none" >&6; }
6087 fi
6088 max_cmd_len=$lt_cv_sys_max_cmd_len
6089
6090
6091
6092
6093
6094
6095 : ${CP="cp -f"}
6096 : ${MV="mv -f"}
6097 : ${RM="rm -f"}
6098
6099 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6100 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6101 # Try some XSI features
6102 xsi_shell=no
6103 ( _lt_dummy="a/b/c"
6104   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6105       = c,a/b,, \
6106     && eval 'test $(( 1 + 1 )) -eq 2 \
6107     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6108   && xsi_shell=yes
6109 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6110 echo "${ECHO_T}$xsi_shell" >&6; }
6111
6112
6113 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6114 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6115 lt_shell_append=no
6116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6117     >/dev/null 2>&1 \
6118   && lt_shell_append=yes
6119 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6120 echo "${ECHO_T}$lt_shell_append" >&6; }
6121
6122
6123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6124   lt_unset=unset
6125 else
6126   lt_unset=false
6127 fi
6128
6129
6130
6131
6132
6133 # test EBCDIC or ASCII
6134 case `echo X|tr X '\101'` in
6135  A) # ASCII based system
6136     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137   lt_SP2NL='tr \040 \012'
6138   lt_NL2SP='tr \015\012 \040\040'
6139   ;;
6140  *) # EBCDIC based system
6141   lt_SP2NL='tr \100 \n'
6142   lt_NL2SP='tr \r\n \100\100'
6143   ;;
6144 esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6156 if test "${lt_cv_ld_reload_flag+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   lt_cv_ld_reload_flag='-r'
6160 fi
6161 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6163 reload_flag=$lt_cv_ld_reload_flag
6164 case $reload_flag in
6165 "" | " "*) ;;
6166 *) reload_flag=" $reload_flag" ;;
6167 esac
6168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169 case $host_os in
6170   darwin*)
6171     if test "$GCC" = yes; then
6172       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6173     else
6174       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175     fi
6176     ;;
6177 esac
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 if test -n "$ac_tool_prefix"; then
6188   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   if test -n "$OBJDUMP"; then
6196   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225 fi
6226 if test -z "$ac_cv_prog_OBJDUMP"; then
6227   ac_ct_OBJDUMP=$OBJDUMP
6228   # Extract the first word of "objdump", so it can be a program name with args.
6229 set dummy objdump; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   if test -n "$ac_ct_OBJDUMP"; then
6236   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256 if test -n "$ac_ct_OBJDUMP"; then
6257   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6258 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264   if test "x$ac_ct_OBJDUMP" = x; then
6265     OBJDUMP="false"
6266   else
6267     case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet.  If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&5
6272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6273 whose name does not start with the host triplet.  If you think this
6274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     OBJDUMP=$ac_ct_OBJDUMP
6278   fi
6279 else
6280   OBJDUMP="$ac_cv_prog_OBJDUMP"
6281 fi
6282
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6294 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6295 if test "${lt_cv_deplibs_check_method+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # `unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # which responds to the $file_magic_cmd with a given extended regex.
6309 # If you have `file' or equivalent on your system and you're not sure
6310 # whether `pass_all' will *always* work, you probably want this one.
6311
6312 case $host_os in
6313 aix[4-9]*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 beos*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 bsdi[45]*)
6322   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323   lt_cv_file_magic_cmd='/usr/bin/file -L'
6324   lt_cv_file_magic_test_file=/shlib/libc.so
6325   ;;
6326
6327 cygwin*)
6328   # func_win32_libid is a shell function defined in ltmain.sh
6329   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330   lt_cv_file_magic_cmd='func_win32_libid'
6331   ;;
6332
6333 mingw* | pw32*)
6334   # Base MSYS/MinGW do not provide the 'file' command needed by
6335   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336   # unless we find 'file', for example because we are cross-compiling.
6337   if ( file / ) >/dev/null 2>&1; then
6338     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339     lt_cv_file_magic_cmd='func_win32_libid'
6340   else
6341     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342     lt_cv_file_magic_cmd='$OBJDUMP -f'
6343   fi
6344   ;;
6345
6346 cegcc)
6347   # use the weaker test based on 'objdump'. See mingw*.
6348   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349   lt_cv_file_magic_cmd='$OBJDUMP -f'
6350   ;;
6351
6352 darwin* | rhapsody*)
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 freebsd* | dragonfly*)
6357   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6358     case $host_cpu in
6359     i*86 )
6360       # Not sure whether the presence of OpenBSD here was a mistake.
6361       # Let's accept both of them until this is cleared up.
6362       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363       lt_cv_file_magic_cmd=/usr/bin/file
6364       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6365       ;;
6366     esac
6367   else
6368     lt_cv_deplibs_check_method=pass_all
6369   fi
6370   ;;
6371
6372 gnu*)
6373   lt_cv_deplibs_check_method=pass_all
6374   ;;
6375
6376 hpux10.20* | hpux11*)
6377   lt_cv_file_magic_cmd=/usr/bin/file
6378   case $host_cpu in
6379   ia64*)
6380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6382     ;;
6383   hppa*64*)
6384     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]'
6385     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6386     ;;
6387   *)
6388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6389     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6390     ;;
6391   esac
6392   ;;
6393
6394 interix[3-9]*)
6395   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6397   ;;
6398
6399 irix5* | irix6* | nonstopux*)
6400   case $LD in
6401   *-32|*"-32 ") libmagic=32-bit;;
6402   *-n32|*"-n32 ") libmagic=N32;;
6403   *-64|*"-64 ") libmagic=64-bit;;
6404   *) libmagic=never-match;;
6405   esac
6406   lt_cv_deplibs_check_method=pass_all
6407   ;;
6408
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu)
6411   lt_cv_deplibs_check_method=pass_all
6412   ;;
6413
6414 netbsd*)
6415   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6417   else
6418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6419   fi
6420   ;;
6421
6422 newos6*)
6423   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424   lt_cv_file_magic_cmd=/usr/bin/file
6425   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6426   ;;
6427
6428 *nto* | *qnx*)
6429   lt_cv_deplibs_check_method=pass_all
6430   ;;
6431
6432 openbsd*)
6433   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6435   else
6436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6437   fi
6438   ;;
6439
6440 osf3* | osf4* | osf5*)
6441   lt_cv_deplibs_check_method=pass_all
6442   ;;
6443
6444 rdos*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 solaris*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 sysv4 | sysv4.3*)
6457   case $host_vendor in
6458   motorola)
6459     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]'
6460     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6461     ;;
6462   ncr)
6463     lt_cv_deplibs_check_method=pass_all
6464     ;;
6465   sequent)
6466     lt_cv_file_magic_cmd='/bin/file'
6467     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6468     ;;
6469   sni)
6470     lt_cv_file_magic_cmd='/bin/file'
6471     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472     lt_cv_file_magic_test_file=/lib/libc.so
6473     ;;
6474   siemens)
6475     lt_cv_deplibs_check_method=pass_all
6476     ;;
6477   pc)
6478     lt_cv_deplibs_check_method=pass_all
6479     ;;
6480   esac
6481   ;;
6482
6483 tpf*)
6484   lt_cv_deplibs_check_method=pass_all
6485   ;;
6486 esac
6487
6488 fi
6489 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 if test -n "$ac_tool_prefix"; then
6507   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   if test -n "$AR"; then
6515   ac_cv_prog_AR="$AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522   for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_prog_AR="${ac_tool_prefix}ar"
6525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 AR=$ac_cv_prog_AR
6535 if test -n "$AR"; then
6536   { echo "$as_me:$LINENO: result: $AR" >&5
6537 echo "${ECHO_T}$AR" >&6; }
6538 else
6539   { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_AR"; then
6546   ac_ct_AR=$AR
6547   # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   if test -n "$ac_ct_AR"; then
6555   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_ac_ct_AR="ar"
6565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6577 echo "${ECHO_T}$ac_ct_AR" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583   if test "x$ac_ct_AR" = x; then
6584     AR="false"
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6589 whose name does not start with the host triplet.  If you think this
6590 configuration is useful to you, please write to autoconf@gnu.org." >&5
6591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6592 whose name does not start with the host triplet.  If you think this
6593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596     AR=$ac_ct_AR
6597   fi
6598 else
6599   AR="$ac_cv_prog_AR"
6600 fi
6601
6602 test -z "$AR" && AR=ar
6603 test -z "$AR_FLAGS" && AR_FLAGS=cru
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}strip; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_STRIP+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   if test -n "$STRIP"; then
6624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 STRIP=$ac_cv_prog_STRIP
6644 if test -n "$STRIP"; then
6645   { echo "$as_me:$LINENO: result: $STRIP" >&5
6646 echo "${ECHO_T}$STRIP" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_STRIP"; then
6655   ac_ct_STRIP=$STRIP
6656   # Extract the first word of "strip", so it can be a program name with args.
6657 set dummy strip; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   if test -n "$ac_ct_STRIP"; then
6664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_ac_ct_STRIP="strip"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6684 if test -n "$ac_ct_STRIP"; then
6685   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6686 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6687 else
6688   { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6690 fi
6691
6692   if test "x$ac_ct_STRIP" = x; then
6693     STRIP=":"
6694   else
6695     case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet.  If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&5
6700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6701 whose name does not start with the host triplet.  If you think this
6702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705     STRIP=$ac_ct_STRIP
6706   fi
6707 else
6708   STRIP="$ac_cv_prog_STRIP"
6709 fi
6710
6711 test -z "$STRIP" && STRIP=:
6712
6713
6714
6715
6716
6717
6718 if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$RANLIB"; then
6727   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758   ac_ct_RANLIB=$RANLIB
6759   # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$ac_ct_RANLIB"; then
6767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_ac_ct_RANLIB="ranlib"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795   if test "x$ac_ct_RANLIB" = x; then
6796     RANLIB=":"
6797   else
6798     case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet.  If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 test -z "$RANLIB" && RANLIB=:
6815
6816
6817
6818
6819
6820
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6825
6826 if test -n "$RANLIB"; then
6827   case $host_os in
6828   openbsd*)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6830     ;;
6831   *)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6833     ;;
6834   esac
6835   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6873
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900   symcode='[BCDT]'
6901   ;;
6902 cygwin* | mingw* | pw32* | cegcc*)
6903   symcode='[ABCDGISTW]'
6904   ;;
6905 hpux*)
6906   if test "$host_cpu" = ia64; then
6907     symcode='[ABCDEGRST]'
6908   fi
6909   ;;
6910 irix* | nonstopux*)
6911   symcode='[BCDEGRST]'
6912   ;;
6913 osf*)
6914   symcode='[BCDEGQRST]'
6915   ;;
6916 solaris*)
6917   symcode='[BDRT]'
6918   ;;
6919 sco3.2v5*)
6920   symcode='[DT]'
6921   ;;
6922 sysv4.2uw2*)
6923   symcode='[DT]'
6924   ;;
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926   symcode='[ABDT]'
6927   ;;
6928 sysv4)
6929   symcode='[DFNSTU]'
6930   ;;
6931 esac
6932
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936   symcode='[ABCDGIRSTW]' ;;
6937 esac
6938
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6943
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6946 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'"
6947
6948 # Handle CRLF in mingw tool chain
6949 opt_cr=
6950 case $build_os in
6951 mingw*)
6952   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953   ;;
6954 esac
6955
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6958
6959   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960   symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962   # Write the raw and C identifiers.
6963   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964     # Fake it for dumpbin and say T for any non-static function
6965     # and D for any global variable.
6966     # Also find C++ and __fastcall symbols from MSVC++,
6967     # which start with @ or ?.
6968     lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 "     {last_section=section; section=\$ 3};"\
6970 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 "     \$ 0!~/External *\|/{next};"\
6972 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 "     {if(hide[section]) next};"\
6974 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 "     ' prfx=^$ac_symprfx"
6979   else
6980     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6981   fi
6982
6983   # Check to see that the pipe works correctly.
6984   pipe_works=no
6985
6986   rm -f conftest*
6987   cat > conftest.$ac_ext <<_LT_EOF
6988 #ifdef __cplusplus
6989 extern "C" {
6990 #endif
6991 char nm_test_var;
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6994 #ifdef __cplusplus
6995 }
6996 #endif
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 _LT_EOF
6999
7000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; then
7005     # Now try to grab the symbols.
7006     nlist=conftest.nm
7007     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7008   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } && test -s "$nlist"; then
7012       # Try sorting and uniquifying the output.
7013       if sort "$nlist" | uniq > "$nlist"T; then
7014         mv -f "$nlist"T "$nlist"
7015       else
7016         rm -f "$nlist"T
7017       fi
7018
7019       # Make sure that we snagged all the symbols we need.
7020       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022           cat <<_LT_EOF > conftest.$ac_ext
7023 #ifdef __cplusplus
7024 extern "C" {
7025 #endif
7026
7027 _LT_EOF
7028           # Now generate the symbol file.
7029           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7030
7031           cat <<_LT_EOF >> conftest.$ac_ext
7032
7033 /* The mapping between symbol names and symbols.  */
7034 const struct {
7035   const char *name;
7036   void       *address;
7037 }
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7039 {
7040   { "@PROGRAM@", (void *) 0 },
7041 _LT_EOF
7042           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043           cat <<\_LT_EOF >> conftest.$ac_ext
7044   {0, (void *) 0}
7045 };
7046
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050   return lt__PROGRAM__LTX_preloaded_symbols;
7051 }
7052 #endif
7053
7054 #ifdef __cplusplus
7055 }
7056 #endif
7057 _LT_EOF
7058           # Now try linking the two files.
7059           mv conftest.$ac_objext conftstm.$ac_objext
7060           lt_save_LIBS="$LIBS"
7061           lt_save_CFLAGS="$CFLAGS"
7062           LIBS="conftstm.$ac_objext"
7063           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7069             pipe_works=yes
7070           fi
7071           LIBS="$lt_save_LIBS"
7072           CFLAGS="$lt_save_CFLAGS"
7073         else
7074           echo "cannot find nm_test_func in $nlist" >&5
7075         fi
7076       else
7077         echo "cannot find nm_test_var in $nlist" >&5
7078       fi
7079     else
7080       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7081     fi
7082   else
7083     echo "$progname: failed program was:" >&5
7084     cat conftest.$ac_ext >&5
7085   fi
7086   rm -rf conftest* conftst*
7087
7088   # Do not use the global_symbol_pipe unless it works.
7089   if test "$pipe_works" = yes; then
7090     break
7091   else
7092     lt_cv_sys_global_symbol_pipe=
7093   fi
7094 done
7095
7096 fi
7097
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099   lt_cv_sys_global_symbol_to_cdecl=
7100 fi
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102   { echo "$as_me:$LINENO: result: failed" >&5
7103 echo "${ECHO_T}failed" >&6; }
7104 else
7105   { echo "$as_me:$LINENO: result: ok" >&5
7106 echo "${ECHO_T}ok" >&6; }
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then
7132   enableval=$enable_libtool_lock;
7133 fi
7134
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7136
7137 # Some flags need to be propagated to the compiler or linker for good
7138 # libtool support.
7139 case $host in
7140 ia64-*-hpux*)
7141   # Find out which ABI we are using.
7142   echo 'int i;' > conftest.$ac_ext
7143   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; then
7148     case `/usr/bin/file conftest.$ac_objext` in
7149       *ELF-32*)
7150         HPUX_IA64_MODE="32"
7151         ;;
7152       *ELF-64*)
7153         HPUX_IA64_MODE="64"
7154         ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159 *-*-irix6*)
7160   # Find out which ABI we are using.
7161   echo '#line 7161 "configure"' > conftest.$ac_ext
7162   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163   (eval $ac_compile) 2>&5
7164   ac_status=$?
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); }; then
7167     if test "$lt_cv_prog_gnu_ld" = yes; then
7168       case `/usr/bin/file conftest.$ac_objext` in
7169         *32-bit*)
7170           LD="${LD-ld} -melf32bsmip"
7171           ;;
7172         *N32*)
7173           LD="${LD-ld} -melf32bmipn32"
7174           ;;
7175         *64-bit*)
7176           LD="${LD-ld} -melf64bmip"
7177         ;;
7178       esac
7179     else
7180       case `/usr/bin/file conftest.$ac_objext` in
7181         *32-bit*)
7182           LD="${LD-ld} -32"
7183           ;;
7184         *N32*)
7185           LD="${LD-ld} -n32"
7186           ;;
7187         *64-bit*)
7188           LD="${LD-ld} -64"
7189           ;;
7190       esac
7191     fi
7192   fi
7193   rm -rf conftest*
7194   ;;
7195
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198   # Find out which ABI we are using.
7199   echo 'int i;' > conftest.$ac_ext
7200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; then
7205     case `/usr/bin/file conftest.o` in
7206       *32-bit*)
7207         case $host in
7208           x86_64-*kfreebsd*-gnu)
7209             LD="${LD-ld} -m elf_i386_fbsd"
7210             ;;
7211           x86_64-*linux*)
7212             LD="${LD-ld} -m elf_i386"
7213             ;;
7214           ppc64-*linux*|powerpc64-*linux*)
7215             LD="${LD-ld} -m elf32ppclinux"
7216             ;;
7217           s390x-*linux*)
7218             LD="${LD-ld} -m elf_s390"
7219             ;;
7220           sparc64-*linux*)
7221             LD="${LD-ld} -m elf32_sparc"
7222             ;;
7223         esac
7224         ;;
7225       *64-bit*)
7226         case $host in
7227           x86_64-*kfreebsd*-gnu)
7228             LD="${LD-ld} -m elf_x86_64_fbsd"
7229             ;;
7230           x86_64-*linux*)
7231             LD="${LD-ld} -m elf_x86_64"
7232             ;;
7233           ppc*-*linux*|powerpc*-*linux*)
7234             LD="${LD-ld} -m elf64ppc"
7235             ;;
7236           s390*-*linux*|s390*-*tpf*)
7237             LD="${LD-ld} -m elf64_s390"
7238             ;;
7239           sparc*-*linux*)
7240             LD="${LD-ld} -m elf64_sparc"
7241             ;;
7242         esac
7243         ;;
7244     esac
7245   fi
7246   rm -rf conftest*
7247   ;;
7248
7249 *-*-sco3.2v5*)
7250   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251   SAVE_CFLAGS="$CFLAGS"
7252   CFLAGS="$CFLAGS -belf"
7253   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7254 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264      cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270
7271 int
7272 main ()
7273 {
7274
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7281 case "(($ac_try" in
7282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283   *) ac_try_echo=$ac_try;;
7284 esac
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286   (eval "$ac_link") 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } && {
7293          test -z "$ac_c_werror_flag" ||
7294          test ! -s conftest.err
7295        } && test -s conftest$ac_exeext &&
7296        $as_test_x conftest$ac_exeext; then
7297   lt_cv_cc_needs_belf=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302         lt_cv_cc_needs_belf=no
7303 fi
7304
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306       conftest$ac_exeext conftest.$ac_ext
7307      ac_ext=c
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313 fi
7314 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7315 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7316   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7317     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318     CFLAGS="$SAVE_CFLAGS"
7319   fi
7320   ;;
7321 sparc*-*solaris*)
7322   # Find out which ABI we are using.
7323   echo 'int i;' > conftest.$ac_ext
7324   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325   (eval $ac_compile) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; then
7329     case `/usr/bin/file conftest.o` in
7330     *64-bit*)
7331       case $lt_cv_prog_gnu_ld in
7332       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7333       *)
7334         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7335           LD="${LD-ld} -64"
7336         fi
7337         ;;
7338       esac
7339       ;;
7340     esac
7341   fi
7342   rm -rf conftest*
7343   ;;
7344 esac
7345
7346 need_locks="$enable_libtool_lock"
7347
7348
7349   case $host_os in
7350     rhapsody* | darwin*)
7351     if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   if test -n "$DSYMUTIL"; then
7360   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367   for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7380 if test -n "$DSYMUTIL"; then
7381   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7382 echo "${ECHO_T}$DSYMUTIL" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_DSYMUTIL"; then
7391   ac_ct_DSYMUTIL=$DSYMUTIL
7392   # Extract the first word of "dsymutil", so it can be a program name with args.
7393 set dummy dsymutil; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   if test -n "$ac_ct_DSYMUTIL"; then
7400   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7420 if test -n "$ac_ct_DSYMUTIL"; then
7421   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7422 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_DSYMUTIL" = x; then
7429     DSYMUTIL=":"
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7434 whose name does not start with the host triplet.  If you think this
7435 configuration is useful to you, please write to autoconf@gnu.org." >&5
7436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7437 whose name does not start with the host triplet.  If you think this
7438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     DSYMUTIL=$ac_ct_DSYMUTIL
7442   fi
7443 else
7444   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7445 fi
7446
7447     if test -n "$ac_tool_prefix"; then
7448   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   if test -n "$NMEDIT"; then
7456   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 NMEDIT=$ac_cv_prog_NMEDIT
7476 if test -n "$NMEDIT"; then
7477   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7478 echo "${ECHO_T}$NMEDIT" >&6; }
7479 else
7480   { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7482 fi
7483
7484
7485 fi
7486 if test -z "$ac_cv_prog_NMEDIT"; then
7487   ac_ct_NMEDIT=$NMEDIT
7488   # Extract the first word of "nmedit", so it can be a program name with args.
7489 set dummy nmedit; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   if test -n "$ac_ct_NMEDIT"; then
7496   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513 fi
7514 fi
7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7516 if test -n "$ac_ct_NMEDIT"; then
7517   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7518 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7519 else
7520   { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7522 fi
7523
7524   if test "x$ac_ct_NMEDIT" = x; then
7525     NMEDIT=":"
7526   else
7527     case $cross_compiling:$ac_tool_warned in
7528 yes:)
7529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet.  If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&5
7532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet.  If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7535 ac_tool_warned=yes ;;
7536 esac
7537     NMEDIT=$ac_ct_NMEDIT
7538   fi
7539 else
7540   NMEDIT="$ac_cv_prog_NMEDIT"
7541 fi
7542
7543     if test -n "$ac_tool_prefix"; then
7544   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_LIPO+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   if test -n "$LIPO"; then
7552   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573   { echo "$as_me:$LINENO: result: $LIPO" >&5
7574 echo "${ECHO_T}$LIPO" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 fi
7582 if test -z "$ac_cv_prog_LIPO"; then
7583   ac_ct_LIPO=$LIPO
7584   # Extract the first word of "lipo", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   if test -n "$ac_ct_LIPO"; then
7592   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_prog_ac_ct_LIPO="lipo"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7614 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620   if test "x$ac_ct_LIPO" = x; then
7621     LIPO=":"
7622   else
7623     case $cross_compiling:$ac_tool_warned in
7624 yes:)
7625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7626 whose name does not start with the host triplet.  If you think this
7627 configuration is useful to you, please write to autoconf@gnu.org." >&5
7628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7629 whose name does not start with the host triplet.  If you think this
7630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7631 ac_tool_warned=yes ;;
7632 esac
7633     LIPO=$ac_ct_LIPO
7634   fi
7635 else
7636   LIPO="$ac_cv_prog_LIPO"
7637 fi
7638
7639     if test -n "$ac_tool_prefix"; then
7640   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   if test -n "$OTOOL"; then
7648   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7670 echo "${ECHO_T}$OTOOL" >&6; }
7671 else
7672   { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_OTOOL"; then
7679   ac_ct_OTOOL=$OTOOL
7680   # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   if test -n "$ac_ct_OTOOL"; then
7688   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_prog_ac_ct_OTOOL="otool"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7710 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716   if test "x$ac_ct_OTOOL" = x; then
7717     OTOOL=":"
7718   else
7719     case $cross_compiling:$ac_tool_warned in
7720 yes:)
7721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7722 whose name does not start with the host triplet.  If you think this
7723 configuration is useful to you, please write to autoconf@gnu.org." >&5
7724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7725 whose name does not start with the host triplet.  If you think this
7726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     OTOOL=$ac_ct_OTOOL
7730   fi
7731 else
7732   OTOOL="$ac_cv_prog_OTOOL"
7733 fi
7734
7735     if test -n "$ac_tool_prefix"; then
7736   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   if test -n "$OTOOL64"; then
7744   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751   for ac_exec_ext in '' $ac_executable_extensions; do
7752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7766 echo "${ECHO_T}$OTOOL64" >&6; }
7767 else
7768   { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7770 fi
7771
7772
7773 fi
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775   ac_ct_OTOOL64=$OTOOL64
7776   # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   if test -n "$ac_ct_OTOOL64"; then
7784   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791   for ac_exec_ext in '' $ac_executable_extensions; do
7792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793     ac_cv_prog_ac_ct_OTOOL64="otool64"
7794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7806 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812   if test "x$ac_ct_OTOOL64" = x; then
7813     OTOOL64=":"
7814   else
7815     case $cross_compiling:$ac_tool_warned in
7816 yes:)
7817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7818 whose name does not start with the host triplet.  If you think this
7819 configuration is useful to you, please write to autoconf@gnu.org." >&5
7820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7821 whose name does not start with the host triplet.  If you think this
7822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825     OTOOL64=$ac_ct_OTOOL64
7826   fi
7827 else
7828   OTOOL64="$ac_cv_prog_OTOOL64"
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7858 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7859 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   lt_cv_apple_cc_single_mod=no
7863       if test -z "${LT_MULTI_MODULE}"; then
7864         # By default we will add the -single_module flag. You can override
7865         # by either setting the environment variable LT_MULTI_MODULE
7866         # non-empty at configure time, or by adding -multi_module to the
7867         # link flags.
7868         rm -rf libconftest.dylib*
7869         echo "int foo(void){return 1;}" > conftest.c
7870         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c" >&5
7872         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7874         _lt_result=$?
7875         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876           lt_cv_apple_cc_single_mod=yes
7877         else
7878           cat conftest.err >&5
7879         fi
7880         rm -rf libconftest.dylib*
7881         rm -f conftest.*
7882       fi
7883 fi
7884 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7885 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7886     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7887 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7888 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   lt_cv_ld_exported_symbols_list=no
7892       save_LDFLAGS=$LDFLAGS
7893       echo "_main" > conftest.sym
7894       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895       cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h.  */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h.  */
7901
7902 int
7903 main ()
7904 {
7905
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7912 case "(($ac_try" in
7913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914   *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917   (eval "$ac_link") 2>conftest.er1
7918   ac_status=$?
7919   grep -v '^ *+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } && {
7924          test -z "$ac_c_werror_flag" ||
7925          test ! -s conftest.err
7926        } && test -s conftest$ac_exeext &&
7927        $as_test_x conftest$ac_exeext; then
7928   lt_cv_ld_exported_symbols_list=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933         lt_cv_ld_exported_symbols_list=no
7934 fi
7935
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937       conftest$ac_exeext conftest.$ac_ext
7938         LDFLAGS="$save_LDFLAGS"
7939
7940 fi
7941 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7942 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7943     case $host_os in
7944     rhapsody* | darwin1.[012])
7945       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7946     darwin1.*)
7947       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948     darwin*) # darwin 5.x on
7949       # if running on 10.5 or later, the deployment target defaults
7950       # to the OS version, if on x86, and 10.4, the deployment
7951       # target defaults to 10.4. Don't you love it?
7952       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7955         10.[012]*)
7956           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7957         10.*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959       esac
7960     ;;
7961   esac
7962     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7963       _lt_dar_single_mod='$single_module'
7964     fi
7965     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7966       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7967     else
7968       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7969     fi
7970     if test "$DSYMUTIL" != ":"; then
7971       _lt_dsymutil='~$DSYMUTIL $lib || :'
7972     else
7973       _lt_dsymutil=
7974     fi
7975     ;;
7976   esac
7977
7978 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7980 if test "${ac_cv_header_stdc+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <stdlib.h>
7990 #include <stdarg.h>
7991 #include <string.h>
7992 #include <float.h>
7993
7994 int
7995 main ()
7996 {
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_compile") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } && {
8016          test -z "$ac_c_werror_flag" ||
8017          test ! -s conftest.err
8018        } && test -s conftest.$ac_objext; then
8019   ac_cv_header_stdc=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024         ac_cv_header_stdc=no
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028
8029 if test $ac_cv_header_stdc = yes; then
8030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031   cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <string.h>
8038
8039 _ACEOF
8040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041   $EGREP "memchr" >/dev/null 2>&1; then
8042   :
8043 else
8044   ac_cv_header_stdc=no
8045 fi
8046 rm -f conftest*
8047
8048 fi
8049
8050 if test $ac_cv_header_stdc = yes; then
8051   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052   cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 #include <stdlib.h>
8059
8060 _ACEOF
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062   $EGREP "free" >/dev/null 2>&1; then
8063   :
8064 else
8065   ac_cv_header_stdc=no
8066 fi
8067 rm -f conftest*
8068
8069 fi
8070
8071 if test $ac_cv_header_stdc = yes; then
8072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073   if test "$cross_compiling" = yes; then
8074   :
8075 else
8076   cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 #include <ctype.h>
8083 #include <stdlib.h>
8084 #if ((' ' & 0x0FF) == 0x020)
8085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8087 #else
8088 # define ISLOWER(c) \
8089                    (('a' <= (c) && (c) <= 'i') \
8090                      || ('j' <= (c) && (c) <= 'r') \
8091                      || ('s' <= (c) && (c) <= 'z'))
8092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8093 #endif
8094
8095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8096 int
8097 main ()
8098 {
8099   int i;
8100   for (i = 0; i < 256; i++)
8101     if (XOR (islower (i), ISLOWER (i))
8102         || toupper (i) != TOUPPER (i))
8103       return 2;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_link") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   :
8128 else
8129   echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ( exit $ac_status )
8134 ac_cv_header_stdc=no
8135 fi
8136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8137 fi
8138
8139
8140 fi
8141 fi
8142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8144 if test $ac_cv_header_stdc = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define STDC_HEADERS 1
8148 _ACEOF
8149
8150 fi
8151
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8163                   inttypes.h stdint.h unistd.h
8164 do
8165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 $ac_includes_default
8178
8179 #include <$ac_header>
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8183 case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_compile") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } && {
8195          test -z "$ac_c_werror_flag" ||
8196          test ! -s conftest.err
8197        } && test -s conftest.$ac_objext; then
8198   eval "$as_ac_Header=yes"
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203         eval "$as_ac_Header=no"
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209                { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212   cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 _ACEOF
8215
8216 fi
8217
8218 done
8219
8220
8221
8222 for ac_header in dlfcn.h
8223 do
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 $ac_includes_default
8237
8238 #include <$ac_header>
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_compile") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } && {
8254          test -z "$ac_c_werror_flag" ||
8255          test ! -s conftest.err
8256        } && test -s conftest.$ac_objext; then
8257   eval "$as_ac_Header=yes"
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262         eval "$as_ac_Header=no"
8263 fi
8264
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 fi
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268                { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8271   cat >>confdefs.h <<_ACEOF
8272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8273 _ACEOF
8274
8275 fi
8276
8277 done
8278
8279
8280
8281 ac_ext=cpp
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8286 if test -z "$CXX"; then
8287   if test -n "$CCC"; then
8288     CXX=$CCC
8289   else
8290     if test -n "$ac_tool_prefix"; then
8291   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8292   do
8293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_prog_CXX+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   if test -n "$CXX"; then
8301   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308   for ac_exec_ext in '' $ac_executable_extensions; do
8309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 CXX=$ac_cv_prog_CXX
8321 if test -n "$CXX"; then
8322   { echo "$as_me:$LINENO: result: $CXX" >&5
8323 echo "${ECHO_T}$CXX" >&6; }
8324 else
8325   { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8327 fi
8328
8329
8330     test -n "$CXX" && break
8331   done
8332 fi
8333 if test -z "$CXX"; then
8334   ac_ct_CXX=$CXX
8335   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8336 do
8337   # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   if test -n "$ac_ct_CXX"; then
8345   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352   for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_ac_ct_CXX="$ac_prog"
8355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8365 if test -n "$ac_ct_CXX"; then
8366   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8368 else
8369   { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8371 fi
8372
8373
8374   test -n "$ac_ct_CXX" && break
8375 done
8376
8377   if test "x$ac_ct_CXX" = x; then
8378     CXX="g++"
8379   else
8380     case $cross_compiling:$ac_tool_warned in
8381 yes:)
8382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8383 whose name does not start with the host triplet.  If you think this
8384 configuration is useful to you, please write to autoconf@gnu.org." >&5
8385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8386 whose name does not start with the host triplet.  If you think this
8387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390     CXX=$ac_ct_CXX
8391   fi
8392 fi
8393
8394   fi
8395 fi
8396 # Provide some information about the compiler.
8397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8398 ac_compiler=`set X $ac_compile; echo $2`
8399 { (ac_try="$ac_compiler --version >&5"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_compiler --version >&5") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }
8409 { (ac_try="$ac_compiler -v >&5"
8410 case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_compiler -v >&5") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }
8419 { (ac_try="$ac_compiler -V >&5"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compiler -V >&5") 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }
8429
8430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442 int
8443 main ()
8444 {
8445 #ifndef __GNUC__
8446        choke me
8447 #endif
8448
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_compile") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } && {
8467          test -z "$ac_cxx_werror_flag" ||
8468          test ! -s conftest.err
8469        } && test -s conftest.$ac_objext; then
8470   ac_compiler_gnu=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475         ac_compiler_gnu=no
8476 fi
8477
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8480
8481 fi
8482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8484 GXX=`test $ac_compiler_gnu = yes && echo yes`
8485 ac_test_CXXFLAGS=${CXXFLAGS+set}
8486 ac_save_CXXFLAGS=$CXXFLAGS
8487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8489 if test "${ac_cv_prog_cxx_g+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8493    ac_cxx_werror_flag=yes
8494    ac_cv_prog_cxx_g=no
8495    CXXFLAGS="-g"
8496    cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_compile") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_cxx_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest.$ac_objext; then
8528   ac_cv_prog_cxx_g=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533         CXXFLAGS=""
8534       cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 int
8542 main ()
8543 {
8544
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_compile") 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } && {
8563          test -z "$ac_cxx_werror_flag" ||
8564          test ! -s conftest.err
8565        } && test -s conftest.$ac_objext; then
8566   :
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8572          CXXFLAGS="-g"
8573          cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 int
8581 main ()
8582 {
8583
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_compile") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_cxx_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest.$ac_objext; then
8605   ac_cv_prog_cxx_g=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8621 fi
8622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8624 if test "$ac_test_CXXFLAGS" = set; then
8625   CXXFLAGS=$ac_save_CXXFLAGS
8626 elif test $ac_cv_prog_cxx_g = yes; then
8627   if test "$GXX" = yes; then
8628     CXXFLAGS="-g -O2"
8629   else
8630     CXXFLAGS="-g"
8631   fi
8632 else
8633   if test "$GXX" = yes; then
8634     CXXFLAGS="-O2"
8635   else
8636     CXXFLAGS=
8637   fi
8638 fi
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644
8645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8646     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8647     (test "X$CXX" != "Xg++"))) ; then
8648   ac_ext=cpp
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8655 if test -z "$CXXCPP"; then
8656   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659       # Double quotes because CXXCPP needs to be expanded
8660     for CXXCPP in "$CXX -E" "/lib/cpp"
8661     do
8662       ac_preproc_ok=false
8663 for ac_cxx_preproc_warn_flag in '' yes
8664 do
8665   # Use a header file that comes with gcc, so configuring glibc
8666   # with a fresh cross-compiler works.
8667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668   # <limits.h> exists even on freestanding compilers.
8669   # On the NeXT, cc -E runs the code through the compiler's parser,
8670   # not just through cpp. "Syntax error" is here to catch this case.
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682                      Syntax error
8683 _ACEOF
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } >/dev/null && {
8697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8698          test ! -s conftest.err
8699        }; then
8700   :
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705   # Broken: fails on valid input.
8706 continue
8707 fi
8708
8709 rm -f conftest.err conftest.$ac_ext
8710
8711   # OK, works on sane cases.  Now check whether nonexistent headers
8712   # can be detected and how.
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 <ac_nonexistent.h>
8720 _ACEOF
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8722 case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8728   ac_status=$?
8729   grep -v '^ *+' conftest.er1 >conftest.err
8730   rm -f conftest.er1
8731   cat conftest.err >&5
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } >/dev/null && {
8734          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8735          test ! -s conftest.err
8736        }; then
8737   # Broken: success on invalid input.
8738 continue
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743   # Passes both tests.
8744 ac_preproc_ok=:
8745 break
8746 fi
8747
8748 rm -f conftest.err conftest.$ac_ext
8749
8750 done
8751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8752 rm -f conftest.err conftest.$ac_ext
8753 if $ac_preproc_ok; then
8754   break
8755 fi
8756
8757     done
8758     ac_cv_prog_CXXCPP=$CXXCPP
8759
8760 fi
8761   CXXCPP=$ac_cv_prog_CXXCPP
8762 else
8763   ac_cv_prog_CXXCPP=$CXXCPP
8764 fi
8765 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8766 echo "${ECHO_T}$CXXCPP" >&6; }
8767 ac_preproc_ok=false
8768 for ac_cxx_preproc_warn_flag in '' yes
8769 do
8770   # Use a header file that comes with gcc, so configuring glibc
8771   # with a fresh cross-compiler works.
8772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773   # <limits.h> exists even on freestanding compilers.
8774   # On the NeXT, cc -E runs the code through the compiler's parser,
8775   # not just through cpp. "Syntax error" is here to catch this case.
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #ifdef __STDC__
8783 # include <limits.h>
8784 #else
8785 # include <assert.h>
8786 #endif
8787                      Syntax error
8788 _ACEOF
8789 if { (ac_try="$ac_cpp conftest.$ac_ext"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } >/dev/null && {
8802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803          test ! -s conftest.err
8804        }; then
8805   :
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810   # Broken: fails on valid input.
8811 continue
8812 fi
8813
8814 rm -f conftest.err conftest.$ac_ext
8815
8816   # OK, works on sane cases.  Now check whether nonexistent headers
8817   # can be detected and how.
8818   cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824 #include <ac_nonexistent.h>
8825 _ACEOF
8826 if { (ac_try="$ac_cpp conftest.$ac_ext"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } >/dev/null && {
8839          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8840          test ! -s conftest.err
8841        }; then
8842   # Broken: success on invalid input.
8843 continue
8844 else
8845   echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848   # Passes both tests.
8849 ac_preproc_ok=:
8850 break
8851 fi
8852
8853 rm -f conftest.err conftest.$ac_ext
8854
8855 done
8856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8857 rm -f conftest.err conftest.$ac_ext
8858 if $ac_preproc_ok; then
8859   :
8860 else
8861   _lt_caught_CXX_error=yes
8862 fi
8863
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870 else
8871   _lt_caught_CXX_error=yes
8872 fi
8873
8874
8875
8876
8877
8878 # Set options
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then
8881   enableval=$enable_shared; p=${PACKAGE-default}
8882     case $enableval in
8883     yes) enable_shared=yes ;;
8884     no) enable_shared=no ;;
8885     *)
8886       enable_shared=no
8887       # Look at the argument we got.  We use all the common list separators.
8888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889       for pkg in $enableval; do
8890         IFS="$lt_save_ifs"
8891         if test "X$pkg" = "X$p"; then
8892           enable_shared=yes
8893         fi
8894       done
8895       IFS="$lt_save_ifs"
8896       ;;
8897     esac
8898 else
8899   enable_shared=yes
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908 # Check whether --enable-static was given.
8909 if test "${enable_static+set}" = set; then
8910   enableval=$enable_static; p=${PACKAGE-default}
8911     case $enableval in
8912     yes) enable_static=yes ;;
8913     no) enable_static=no ;;
8914     *)
8915      enable_static=no
8916       # Look at the argument we got.  We use all the common list separators.
8917       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918       for pkg in $enableval; do
8919         IFS="$lt_save_ifs"
8920         if test "X$pkg" = "X$p"; then
8921           enable_static=yes
8922         fi
8923       done
8924       IFS="$lt_save_ifs"
8925       ;;
8926     esac
8927 else
8928   enable_static=no
8929 fi
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940         enable_dlopen=no
8941
8942
8943   enable_win32_dll=no
8944
8945
8946
8947
8948
8949 # Check whether --with-pic was given.
8950 if test "${with_pic+set}" = set; then
8951   withval=$with_pic; pic_mode="$withval"
8952 else
8953   pic_mode=default
8954 fi
8955
8956
8957 test -z "$pic_mode" && pic_mode=default
8958
8959
8960
8961
8962
8963
8964
8965   # Check whether --enable-fast-install was given.
8966 if test "${enable_fast_install+set}" = set; then
8967   enableval=$enable_fast_install; p=${PACKAGE-default}
8968     case $enableval in
8969     yes) enable_fast_install=yes ;;
8970     no) enable_fast_install=no ;;
8971     *)
8972       enable_fast_install=no
8973       # Look at the argument we got.  We use all the common list separators.
8974       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975       for pkg in $enableval; do
8976         IFS="$lt_save_ifs"
8977         if test "X$pkg" = "X$p"; then
8978           enable_fast_install=yes
8979         fi
8980       done
8981       IFS="$lt_save_ifs"
8982       ;;
8983     esac
8984 else
8985   enable_fast_install=yes
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998 # This can be used to rebuild libtool when needed
8999 LIBTOOL_DEPS="$ltmain"
9000
9001 # Always use our own libtool.
9002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028 test -z "$LN_S" && LN_S="ln -s"
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 if test -n "${ZSH_VERSION+set}" ; then
9044    setopt NO_GLOB_SUBST
9045 fi
9046
9047 { echo "$as_me:$LINENO: checking for objdir" >&5
9048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9049 if test "${lt_cv_objdir+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9055   lt_cv_objdir=.libs
9056 else
9057   # MS-DOS does not allow filenames that begin with a dot.
9058   lt_cv_objdir=_libs
9059 fi
9060 rmdir .libs 2>/dev/null
9061 fi
9062 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9063 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9065
9066
9067
9068
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define LT_OBJDIR "$lt_cv_objdir/"
9072 _ACEOF
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 case $host_os in
9091 aix3*)
9092   # AIX sometimes has problems with the GCC collect2 program.  For some
9093   # reason, if we set the COLLECT_NAMES environment variable, the problems
9094   # vanish in a puff of smoke.
9095   if test "X${COLLECT_NAMES+set}" != Xset; then
9096     COLLECT_NAMES=
9097     export COLLECT_NAMES
9098   fi
9099   ;;
9100 esac
9101
9102 # Sed substitution that helps us do robust quoting.  It backslashifies
9103 # metacharacters that are still active within double-quoted strings.
9104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9105
9106 # Same as above, but do not quote variable references.
9107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9108
9109 # Sed substitution to delay expansion of an escaped shell variable in a
9110 # double_quote_subst'ed string.
9111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9112
9113 # Sed substitution to delay expansion of an escaped single quote.
9114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9115
9116 # Sed substitution to avoid accidental globbing in evaled expressions
9117 no_glob_subst='s/\*/\\\*/g'
9118
9119 # Global variables:
9120 ofile=libtool
9121 can_build_shared=yes
9122
9123 # All known linkers require a `.a' archive for static linking (except MSVC,
9124 # which needs '.lib').
9125 libext=a
9126
9127 with_gnu_ld="$lt_cv_prog_gnu_ld"
9128
9129 old_CC="$CC"
9130 old_CFLAGS="$CFLAGS"
9131
9132 # Set sane defaults for various variables
9133 test -z "$CC" && CC=cc
9134 test -z "$LTCC" && LTCC=$CC
9135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9136 test -z "$LD" && LD=ld
9137 test -z "$ac_objext" && ac_objext=o
9138
9139 for cc_temp in $compiler""; do
9140   case $cc_temp in
9141     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9142     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9143     \-*) ;;
9144     *) break;;
9145   esac
9146 done
9147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9148
9149
9150 # Only perform the check for file, if the check method requires it
9151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9152 case $deplibs_check_method in
9153 file_magic*)
9154   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9155     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9156 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   case $MAGIC_CMD in
9161 [\\/*] |  ?:[\\/]*)
9162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9163   ;;
9164 *)
9165   lt_save_MAGIC_CMD="$MAGIC_CMD"
9166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168   for ac_dir in $ac_dummy; do
9169     IFS="$lt_save_ifs"
9170     test -z "$ac_dir" && ac_dir=.
9171     if test -f $ac_dir/${ac_tool_prefix}file; then
9172       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9173       if test -n "$file_magic_test_file"; then
9174         case $deplibs_check_method in
9175         "file_magic "*)
9176           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179             $EGREP "$file_magic_regex" > /dev/null; then
9180             :
9181           else
9182             cat <<_LT_EOF 1>&2
9183
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such.  This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem.  Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9192
9193 _LT_EOF
9194           fi ;;
9195         esac
9196       fi
9197       break
9198     fi
9199   done
9200   IFS="$lt_save_ifs"
9201   MAGIC_CMD="$lt_save_MAGIC_CMD"
9202   ;;
9203 esac
9204 fi
9205
9206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207 if test -n "$MAGIC_CMD"; then
9208   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9209 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9210 else
9211   { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9213 fi
9214
9215
9216
9217
9218
9219 if test -z "$lt_cv_path_MAGIC_CMD"; then
9220   if test -n "$ac_tool_prefix"; then
9221     { echo "$as_me:$LINENO: checking for file" >&5
9222 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   case $MAGIC_CMD in
9227 [\\/*] |  ?:[\\/]*)
9228   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9229   ;;
9230 *)
9231   lt_save_MAGIC_CMD="$MAGIC_CMD"
9232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234   for ac_dir in $ac_dummy; do
9235     IFS="$lt_save_ifs"
9236     test -z "$ac_dir" && ac_dir=.
9237     if test -f $ac_dir/file; then
9238       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9239       if test -n "$file_magic_test_file"; then
9240         case $deplibs_check_method in
9241         "file_magic "*)
9242           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245             $EGREP "$file_magic_regex" > /dev/null; then
9246             :
9247           else
9248             cat <<_LT_EOF 1>&2
9249
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such.  This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem.  Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9258
9259 _LT_EOF
9260           fi ;;
9261         esac
9262       fi
9263       break
9264     fi
9265   done
9266   IFS="$lt_save_ifs"
9267   MAGIC_CMD="$lt_save_MAGIC_CMD"
9268   ;;
9269 esac
9270 fi
9271
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9276 else
9277   { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9279 fi
9280
9281
9282   else
9283     MAGIC_CMD=:
9284   fi
9285 fi
9286
9287   fi
9288   ;;
9289 esac
9290
9291 # Use C for the default configuration in the libtool script
9292
9293 lt_save_CC="$CC"
9294 ac_ext=c
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9299
9300
9301 # Source file extension for C test sources.
9302 ac_ext=c
9303
9304 # Object file extension for compiled C test sources.
9305 objext=o
9306 objext=$objext
9307
9308 # Code to be used in simple compile tests
9309 lt_simple_compile_test_code="int some_variable = 0;"
9310
9311 # Code to be used in simple link tests
9312 lt_simple_link_test_code='int main(){return(0);}'
9313
9314
9315
9316
9317
9318
9319
9320 # If no C compiler was specified, use CC.
9321 LTCC=${LTCC-"$CC"}
9322
9323 # If no C compiler flags were specified, use CFLAGS.
9324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9325
9326 # Allow CC to be a program name with arguments.
9327 compiler=$CC
9328
9329 # Save the default compiler, since it gets overwritten when the other
9330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9331 compiler_DEFAULT=$CC
9332
9333 # save warnings/boilerplate of simple test code
9334 ac_outfile=conftest.$ac_objext
9335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9337 _lt_compiler_boilerplate=`cat conftest.err`
9338 $RM conftest*
9339
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343 _lt_linker_boilerplate=`cat conftest.err`
9344 $RM -r conftest*
9345
9346
9347 ## CAVEAT EMPTOR:
9348 ## There is no encapsulation within the following macros, do not change
9349 ## the running order or otherwise move them around unless you know exactly
9350 ## what you are doing...
9351 if test -n "$compiler"; then
9352
9353 lt_prog_compiler_no_builtin_flag=
9354
9355 if test "$GCC" = yes; then
9356   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9357
9358   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9359 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9360 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   lt_cv_prog_compiler_rtti_exceptions=no
9364    ac_outfile=conftest.$ac_objext
9365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366    lt_compiler_flag="-fno-rtti -fno-exceptions"
9367    # Insert the option either (1) after the last *FLAGS variable, or
9368    # (2) before a word containing "conftest.", or (3) at the end.
9369    # Note that $ac_compile itself does not contain backslashes and begins
9370    # with a dollar sign (not a hyphen), so the echo should work correctly.
9371    # The option is referenced via a variable to avoid confusing sed.
9372    lt_compile=`echo "$ac_compile" | $SED \
9373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375    -e 's:$: $lt_compiler_flag:'`
9376    (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377    (eval "$lt_compile" 2>conftest.err)
9378    ac_status=$?
9379    cat conftest.err >&5
9380    echo "$as_me:9380: \$? = $ac_status" >&5
9381    if (exit $ac_status) && test -s "$ac_outfile"; then
9382      # The compiler can only warn and ignore the option if not recognized
9383      # So say no if there are warnings other than the usual output.
9384      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9385      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387        lt_cv_prog_compiler_rtti_exceptions=yes
9388      fi
9389    fi
9390    $RM conftest*
9391
9392 fi
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9395
9396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9397     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9398 else
9399     :
9400 fi
9401
9402 fi
9403
9404
9405
9406
9407
9408
9409   lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9412
9413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9415
9416   if test "$GCC" = yes; then
9417     lt_prog_compiler_wl='-Wl,'
9418     lt_prog_compiler_static='-static'
9419
9420     case $host_os in
9421       aix*)
9422       # All AIX code is PIC.
9423       if test "$host_cpu" = ia64; then
9424         # AIX 5 now supports IA64 processor
9425         lt_prog_compiler_static='-Bstatic'
9426       fi
9427       ;;
9428
9429     amigaos*)
9430       case $host_cpu in
9431       powerpc)
9432             # see comment about AmigaOS4 .so support
9433             lt_prog_compiler_pic='-fPIC'
9434         ;;
9435       m68k)
9436             # FIXME: we need at least 68020 code to build shared libraries, but
9437             # adding the `-m68020' flag to GCC prevents building anything better,
9438             # like `-m68040'.
9439             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9440         ;;
9441       esac
9442       ;;
9443
9444     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9445       # PIC is the default for these OSes.
9446       ;;
9447
9448     mingw* | cygwin* | pw32* | os2* | cegcc*)
9449       # This hack is so that the source file can tell whether it is being
9450       # built for inclusion in a dll (and should export symbols for example).
9451       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9452       # (--disable-auto-import) libraries
9453       lt_prog_compiler_pic='-DDLL_EXPORT'
9454       ;;
9455
9456     darwin* | rhapsody*)
9457       # PIC is the default on this platform
9458       # Common symbols not allowed in MH_DYLIB files
9459       lt_prog_compiler_pic='-fno-common'
9460       ;;
9461
9462     hpux*)
9463       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9464       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9465       # sets the default TLS model and affects inlining.
9466       case $host_cpu in
9467       hppa*64*)
9468         # +Z the default
9469         ;;
9470       *)
9471         lt_prog_compiler_pic='-fPIC'
9472         ;;
9473       esac
9474       ;;
9475
9476     interix[3-9]*)
9477       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9478       # Instead, we relocate shared libraries at runtime.
9479       ;;
9480
9481     msdosdjgpp*)
9482       # Just because we use GCC doesn't mean we suddenly get shared libraries
9483       # on systems that don't support them.
9484       lt_prog_compiler_can_build_shared=no
9485       enable_shared=no
9486       ;;
9487
9488     *nto* | *qnx*)
9489       # QNX uses GNU C++, but need to define -shared option too, otherwise
9490       # it will coredump.
9491       lt_prog_compiler_pic='-fPIC -shared'
9492       ;;
9493
9494     sysv4*MP*)
9495       if test -d /usr/nec; then
9496         lt_prog_compiler_pic=-Kconform_pic
9497       fi
9498       ;;
9499
9500     *)
9501       lt_prog_compiler_pic='-fPIC'
9502       ;;
9503     esac
9504   else
9505     # PORTME Check for flag to pass linker flags through the system compiler.
9506     case $host_os in
9507     aix*)
9508       lt_prog_compiler_wl='-Wl,'
9509       if test "$host_cpu" = ia64; then
9510         # AIX 5 now supports IA64 processor
9511         lt_prog_compiler_static='-Bstatic'
9512       else
9513         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9514       fi
9515       ;;
9516
9517     mingw* | cygwin* | pw32* | os2* | cegcc*)
9518       # This hack is so that the source file can tell whether it is being
9519       # built for inclusion in a dll (and should export symbols for example).
9520       lt_prog_compiler_pic='-DDLL_EXPORT'
9521       ;;
9522
9523     hpux9* | hpux10* | hpux11*)
9524       lt_prog_compiler_wl='-Wl,'
9525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9526       # not for PA HP-UX.
9527       case $host_cpu in
9528       hppa*64*|ia64*)
9529         # +Z the default
9530         ;;
9531       *)
9532         lt_prog_compiler_pic='+Z'
9533         ;;
9534       esac
9535       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9536       lt_prog_compiler_static='${wl}-a ${wl}archive'
9537       ;;
9538
9539     irix5* | irix6* | nonstopux*)
9540       lt_prog_compiler_wl='-Wl,'
9541       # PIC (with -KPIC) is the default.
9542       lt_prog_compiler_static='-non_shared'
9543       ;;
9544
9545     linux* | k*bsd*-gnu)
9546       case $cc_basename in
9547       # old Intel for x86_64 which still supported -KPIC.
9548       ecc*)
9549         lt_prog_compiler_wl='-Wl,'
9550         lt_prog_compiler_pic='-KPIC'
9551         lt_prog_compiler_static='-static'
9552         ;;
9553       # icc used to be incompatible with GCC.
9554       # ICC 10 doesn't accept -KPIC any more.
9555       icc* | ifort*)
9556         lt_prog_compiler_wl='-Wl,'
9557         lt_prog_compiler_pic='-fPIC'
9558         lt_prog_compiler_static='-static'
9559         ;;
9560       # Lahey Fortran 8.1.
9561       lf95*)
9562         lt_prog_compiler_wl='-Wl,'
9563         lt_prog_compiler_pic='--shared'
9564         lt_prog_compiler_static='--static'
9565         ;;
9566       pgcc* | pgf77* | pgf90* | pgf95*)
9567         # Portland Group compilers (*not* the Pentium gcc compiler,
9568         # which looks to be a dead project)
9569         lt_prog_compiler_wl='-Wl,'
9570         lt_prog_compiler_pic='-fpic'
9571         lt_prog_compiler_static='-Bstatic'
9572         ;;
9573       ccc*)
9574         lt_prog_compiler_wl='-Wl,'
9575         # All Alpha code is PIC.
9576         lt_prog_compiler_static='-non_shared'
9577         ;;
9578       xl*)
9579         # IBM XL C 8.0/Fortran 10.1 on PPC
9580         lt_prog_compiler_wl='-Wl,'
9581         lt_prog_compiler_pic='-qpic'
9582         lt_prog_compiler_static='-qstaticlink'
9583         ;;
9584       *)
9585         case `$CC -V 2>&1 | sed 5q` in
9586         *Sun\ C*)
9587           # Sun C 5.9
9588           lt_prog_compiler_pic='-KPIC'
9589           lt_prog_compiler_static='-Bstatic'
9590           lt_prog_compiler_wl='-Wl,'
9591           ;;
9592         *Sun\ F*)
9593           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9594           lt_prog_compiler_pic='-KPIC'
9595           lt_prog_compiler_static='-Bstatic'
9596           lt_prog_compiler_wl=''
9597           ;;
9598         esac
9599         ;;
9600       esac
9601       ;;
9602
9603     newsos6)
9604       lt_prog_compiler_pic='-KPIC'
9605       lt_prog_compiler_static='-Bstatic'
9606       ;;
9607
9608     *nto* | *qnx*)
9609       # QNX uses GNU C++, but need to define -shared option too, otherwise
9610       # it will coredump.
9611       lt_prog_compiler_pic='-fPIC -shared'
9612       ;;
9613
9614     osf3* | osf4* | osf5*)
9615       lt_prog_compiler_wl='-Wl,'
9616       # All OSF/1 code is PIC.
9617       lt_prog_compiler_static='-non_shared'
9618       ;;
9619
9620     rdos*)
9621       lt_prog_compiler_static='-non_shared'
9622       ;;
9623
9624     solaris*)
9625       lt_prog_compiler_pic='-KPIC'
9626       lt_prog_compiler_static='-Bstatic'
9627       case $cc_basename in
9628       f77* | f90* | f95*)
9629         lt_prog_compiler_wl='-Qoption ld ';;
9630       *)
9631         lt_prog_compiler_wl='-Wl,';;
9632       esac
9633       ;;
9634
9635     sunos4*)
9636       lt_prog_compiler_wl='-Qoption ld '
9637       lt_prog_compiler_pic='-PIC'
9638       lt_prog_compiler_static='-Bstatic'
9639       ;;
9640
9641     sysv4 | sysv4.2uw2* | sysv4.3*)
9642       lt_prog_compiler_wl='-Wl,'
9643       lt_prog_compiler_pic='-KPIC'
9644       lt_prog_compiler_static='-Bstatic'
9645       ;;
9646
9647     sysv4*MP*)
9648       if test -d /usr/nec ;then
9649         lt_prog_compiler_pic='-Kconform_pic'
9650         lt_prog_compiler_static='-Bstatic'
9651       fi
9652       ;;
9653
9654     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9655       lt_prog_compiler_wl='-Wl,'
9656       lt_prog_compiler_pic='-KPIC'
9657       lt_prog_compiler_static='-Bstatic'
9658       ;;
9659
9660     unicos*)
9661       lt_prog_compiler_wl='-Wl,'
9662       lt_prog_compiler_can_build_shared=no
9663       ;;
9664
9665     uts4*)
9666       lt_prog_compiler_pic='-pic'
9667       lt_prog_compiler_static='-Bstatic'
9668       ;;
9669
9670     *)
9671       lt_prog_compiler_can_build_shared=no
9672       ;;
9673     esac
9674   fi
9675
9676 case $host_os in
9677   # For platforms which do not support PIC, -DPIC is meaningless:
9678   *djgpp*)
9679     lt_prog_compiler_pic=
9680     ;;
9681   *)
9682     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9683     ;;
9684 esac
9685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9687
9688
9689
9690
9691
9692
9693 #
9694 # Check to make sure the PIC flag actually works.
9695 #
9696 if test -n "$lt_prog_compiler_pic"; then
9697   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9699 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   lt_cv_prog_compiler_pic_works=no
9703    ac_outfile=conftest.$ac_objext
9704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706    # Insert the option either (1) after the last *FLAGS variable, or
9707    # (2) before a word containing "conftest.", or (3) at the end.
9708    # Note that $ac_compile itself does not contain backslashes and begins
9709    # with a dollar sign (not a hyphen), so the echo should work correctly.
9710    # The option is referenced via a variable to avoid confusing sed.
9711    lt_compile=`echo "$ac_compile" | $SED \
9712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714    -e 's:$: $lt_compiler_flag:'`
9715    (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716    (eval "$lt_compile" 2>conftest.err)
9717    ac_status=$?
9718    cat conftest.err >&5
9719    echo "$as_me:9719: \$? = $ac_status" >&5
9720    if (exit $ac_status) && test -s "$ac_outfile"; then
9721      # The compiler can only warn and ignore the option if not recognized
9722      # So say no if there are warnings other than the usual output.
9723      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726        lt_cv_prog_compiler_pic_works=yes
9727      fi
9728    fi
9729    $RM conftest*
9730
9731 fi
9732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9733 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9734
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736     case $lt_prog_compiler_pic in
9737      "" | " "*) ;;
9738      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9739      esac
9740 else
9741     lt_prog_compiler_pic=
9742      lt_prog_compiler_can_build_shared=no
9743 fi
9744
9745 fi
9746
9747
9748
9749
9750
9751
9752 #
9753 # Check to make sure the static flag actually works.
9754 #
9755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   lt_cv_prog_compiler_static_works=no
9762    save_LDFLAGS="$LDFLAGS"
9763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9766      # The linker can only warn and ignore the option if not recognized
9767      # So say no if there are warnings
9768      if test -s conftest.err; then
9769        # Append any errors to the config.log.
9770        cat conftest.err 1>&5
9771        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773        if diff conftest.exp conftest.er2 >/dev/null; then
9774          lt_cv_prog_compiler_static_works=yes
9775        fi
9776      else
9777        lt_cv_prog_compiler_static_works=yes
9778      fi
9779    fi
9780    $RM -r conftest*
9781    LDFLAGS="$save_LDFLAGS"
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9786
9787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9788     :
9789 else
9790     lt_prog_compiler_static=
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   lt_cv_prog_compiler_c_o=no
9805    $RM -r conftest 2>/dev/null
9806    mkdir conftest
9807    cd conftest
9808    mkdir out
9809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810
9811    lt_compiler_flag="-o out/conftest2.$ac_objext"
9812    # Insert the option either (1) after the last *FLAGS variable, or
9813    # (2) before a word containing "conftest.", or (3) at the end.
9814    # Note that $ac_compile itself does not contain backslashes and begins
9815    # with a dollar sign (not a hyphen), so the echo should work correctly.
9816    lt_compile=`echo "$ac_compile" | $SED \
9817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819    -e 's:$: $lt_compiler_flag:'`
9820    (eval echo "\"\$as_me:9820: $lt_compile\"" >&5)
9821    (eval "$lt_compile" 2>out/conftest.err)
9822    ac_status=$?
9823    cat out/conftest.err >&5
9824    echo "$as_me:9824: \$? = $ac_status" >&5
9825    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9826    then
9827      # The compiler can only warn and ignore the option if not recognized
9828      # So say no if there are warnings
9829      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9830      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9831      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9832        lt_cv_prog_compiler_c_o=yes
9833      fi
9834    fi
9835    chmod u+w . 2>&5
9836    $RM conftest*
9837    # SGI C++ compiler will create directory out/ii_files/ for
9838    # template instantiation
9839    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9840    $RM out/* && rmdir out
9841    cd ..
9842    $RM -r conftest
9843    $RM conftest*
9844
9845 fi
9846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9848
9849
9850
9851
9852
9853
9854   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   lt_cv_prog_compiler_c_o=no
9860    $RM -r conftest 2>/dev/null
9861    mkdir conftest
9862    cd conftest
9863    mkdir out
9864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9865
9866    lt_compiler_flag="-o out/conftest2.$ac_objext"
9867    # Insert the option either (1) after the last *FLAGS variable, or
9868    # (2) before a word containing "conftest.", or (3) at the end.
9869    # Note that $ac_compile itself does not contain backslashes and begins
9870    # with a dollar sign (not a hyphen), so the echo should work correctly.
9871    lt_compile=`echo "$ac_compile" | $SED \
9872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874    -e 's:$: $lt_compiler_flag:'`
9875    (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876    (eval "$lt_compile" 2>out/conftest.err)
9877    ac_status=$?
9878    cat out/conftest.err >&5
9879    echo "$as_me:9879: \$? = $ac_status" >&5
9880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9881    then
9882      # The compiler can only warn and ignore the option if not recognized
9883      # So say no if there are warnings
9884      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887        lt_cv_prog_compiler_c_o=yes
9888      fi
9889    fi
9890    chmod u+w . 2>&5
9891    $RM conftest*
9892    # SGI C++ compiler will create directory out/ii_files/ for
9893    # template instantiation
9894    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895    $RM out/* && rmdir out
9896    cd ..
9897    $RM -r conftest
9898    $RM conftest*
9899
9900 fi
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9903
9904
9905
9906
9907 hard_links="nottested"
9908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9909   # do not overwrite the value of need_locks provided by the user
9910   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9912   hard_links=yes
9913   $RM conftest*
9914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9915   touch conftest.a
9916   ln conftest.a conftest.b 2>&5 || hard_links=no
9917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918   { echo "$as_me:$LINENO: result: $hard_links" >&5
9919 echo "${ECHO_T}$hard_links" >&6; }
9920   if test "$hard_links" = no; then
9921     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9923     need_locks=warn
9924   fi
9925 else
9926   need_locks=no
9927 fi
9928
9929
9930
9931
9932
9933
9934   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9936
9937   runpath_var=
9938   allow_undefined_flag=
9939   always_export_symbols=no
9940   archive_cmds=
9941   archive_expsym_cmds=
9942   compiler_needs_object=no
9943   enable_shared_with_static_runtimes=no
9944   export_dynamic_flag_spec=
9945   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9946   hardcode_automatic=no
9947   hardcode_direct=no
9948   hardcode_direct_absolute=no
9949   hardcode_libdir_flag_spec=
9950   hardcode_libdir_flag_spec_ld=
9951   hardcode_libdir_separator=
9952   hardcode_minus_L=no
9953   hardcode_shlibpath_var=unsupported
9954   inherit_rpath=no
9955   link_all_deplibs=unknown
9956   module_cmds=
9957   module_expsym_cmds=
9958   old_archive_from_new_cmds=
9959   old_archive_from_expsyms_cmds=
9960   thread_safe_flag_spec=
9961   whole_archive_flag_spec=
9962   # include_expsyms should be a list of space-separated symbols to be *always*
9963   # included in the symbol list
9964   include_expsyms=
9965   # exclude_expsyms can be an extended regexp of symbols to exclude
9966   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9967   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9968   # as well as any symbol that contains `d'.
9969   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9970   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9971   # platforms (ab)use it in PIC code, but their linkers get confused if
9972   # the symbol is explicitly referenced.  Since portable code cannot
9973   # rely on this symbol name, it's probably fine to never include it in
9974   # preloaded symbol tables.
9975   # Exclude shared library initialization/finalization symbols.
9976   extract_expsyms_cmds=
9977
9978   case $host_os in
9979   cygwin* | mingw* | pw32* | cegcc*)
9980     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9981     # When not using gcc, we currently assume that we are using
9982     # Microsoft Visual C++.
9983     if test "$GCC" != yes; then
9984       with_gnu_ld=no
9985     fi
9986     ;;
9987   interix*)
9988     # we just hope/assume this is gcc and not c89 (= MSVC++)
9989     with_gnu_ld=yes
9990     ;;
9991   openbsd*)
9992     with_gnu_ld=no
9993     ;;
9994   esac
9995
9996   ld_shlibs=yes
9997   if test "$with_gnu_ld" = yes; then
9998     # If archive_cmds runs LD, not CC, wlarc should be empty
9999     wlarc='${wl}'
10000
10001     # Set some defaults for GNU ld with shared library support. These
10002     # are reset later if shared libraries are not supported. Putting them
10003     # here allows them to be overridden if necessary.
10004     runpath_var=LD_RUN_PATH
10005     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006     export_dynamic_flag_spec='${wl}--export-dynamic'
10007     # ancient GNU ld didn't support --whole-archive et. al.
10008     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10009       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10010     else
10011       whole_archive_flag_spec=
10012     fi
10013     supports_anon_versioning=no
10014     case `$LD -v 2>&1` in
10015       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018       *\ 2.11.*) ;; # other 2.11 versions
10019       *) supports_anon_versioning=yes ;;
10020     esac
10021
10022     # See if GNU ld supports shared libraries.
10023     case $host_os in
10024     aix[3-9]*)
10025       # On AIX/PPC, the GNU linker is very broken
10026       if test "$host_cpu" != ia64; then
10027         ld_shlibs=no
10028         cat <<_LT_EOF 1>&2
10029
10030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support.  If you
10033 *** really care for shared libraries, you may want to modify your PATH
10034 *** so that a non-GNU linker is found, and then restart.
10035
10036 _LT_EOF
10037       fi
10038       ;;
10039
10040     amigaos*)
10041       case $host_cpu in
10042       powerpc)
10043             # see comment about AmigaOS4 .so support
10044             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045             archive_expsym_cmds=''
10046         ;;
10047       m68k)
10048             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)'
10049             hardcode_libdir_flag_spec='-L$libdir'
10050             hardcode_minus_L=yes
10051         ;;
10052       esac
10053       ;;
10054
10055     beos*)
10056       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057         allow_undefined_flag=unsupported
10058         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059         # support --undefined.  This deserves some investigation.  FIXME
10060         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061       else
10062         ld_shlibs=no
10063       fi
10064       ;;
10065
10066     cygwin* | mingw* | pw32* | cegcc*)
10067       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068       # as there is no search path for DLLs.
10069       hardcode_libdir_flag_spec='-L$libdir'
10070       allow_undefined_flag=unsupported
10071       always_export_symbols=no
10072       enable_shared_with_static_runtimes=yes
10073       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10074
10075       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077         # If the export-symbols file already is a .def file (1st line
10078         # is EXPORTS), use it as is; otherwise, prepend...
10079         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080           cp $export_symbols $output_objdir/$soname.def;
10081         else
10082           echo EXPORTS > $output_objdir/$soname.def;
10083           cat $export_symbols >> $output_objdir/$soname.def;
10084         fi~
10085         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086       else
10087         ld_shlibs=no
10088       fi
10089       ;;
10090
10091     interix[3-9]*)
10092       hardcode_direct=no
10093       hardcode_shlibpath_var=no
10094       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095       export_dynamic_flag_spec='${wl}-E'
10096       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097       # Instead, shared libraries are loaded at an image base (0x10000000 by
10098       # default) and relocated if they conflict, which is a slow very memory
10099       # consuming and fragmenting process.  To avoid this, we pick a random,
10100       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10102       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103       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'
10104       ;;
10105
10106     gnu* | linux* | tpf* | k*bsd*-gnu)
10107       tmp_diet=no
10108       if test "$host_os" = linux-dietlibc; then
10109         case $cc_basename in
10110           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10111         esac
10112       fi
10113       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114          && test "$tmp_diet" = no
10115       then
10116         tmp_addflag=
10117         tmp_sharedflag='-shared'
10118         case $cc_basename,$host_cpu in
10119         pgcc*)                          # Portland Group C compiler
10120           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'
10121           tmp_addflag=' $pic_flag'
10122           ;;
10123         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10124           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'
10125           tmp_addflag=' $pic_flag -Mnomain' ;;
10126         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10127           tmp_addflag=' -i_dynamic' ;;
10128         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10129           tmp_addflag=' -i_dynamic -nofor_main' ;;
10130         ifc* | ifort*)                  # Intel Fortran compiler
10131           tmp_addflag=' -nofor_main' ;;
10132         lf95*)                          # Lahey Fortran 8.1
10133           whole_archive_flag_spec=
10134           tmp_sharedflag='--shared' ;;
10135         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10136           tmp_sharedflag='-qmkshrobj'
10137           tmp_addflag= ;;
10138         esac
10139         case `$CC -V 2>&1 | sed 5q` in
10140         *Sun\ C*)                       # Sun C 5.9
10141           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'
10142           compiler_needs_object=yes
10143           tmp_sharedflag='-G' ;;
10144         *Sun\ F*)                       # Sun Fortran 8.3
10145           tmp_sharedflag='-G' ;;
10146         esac
10147         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148
10149         if test "x$supports_anon_versioning" = xyes; then
10150           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152             echo "local: *; };" >> $output_objdir/$libname.ver~
10153             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10154         fi
10155
10156         case $cc_basename in
10157         xlf*)
10158           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10159           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10160           hardcode_libdir_flag_spec=
10161           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10162           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10163           if test "x$supports_anon_versioning" = xyes; then
10164             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10165               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10166               echo "local: *; };" >> $output_objdir/$libname.ver~
10167               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10168           fi
10169           ;;
10170         esac
10171       else
10172         ld_shlibs=no
10173       fi
10174       ;;
10175
10176     netbsd*)
10177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10179         wlarc=
10180       else
10181         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10183       fi
10184       ;;
10185
10186     solaris*)
10187       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10188         ld_shlibs=no
10189         cat <<_LT_EOF 1>&2
10190
10191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10192 *** create shared libraries on Solaris systems.  Therefore, libtool
10193 *** is disabling shared libraries support.  We urge you to upgrade GNU
10194 *** binutils to release 2.9.1 or newer.  Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10197
10198 _LT_EOF
10199       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10202       else
10203         ld_shlibs=no
10204       fi
10205       ;;
10206
10207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10208       case `$LD -v 2>&1` in
10209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10210         ld_shlibs=no
10211         cat <<_LT_EOF 1>&2
10212
10213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10215 *** is disabling shared libraries support.  We urge you to upgrade GNU
10216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10217 *** your PATH or compiler configuration so that the native linker is
10218 *** used, and then restart.
10219
10220 _LT_EOF
10221         ;;
10222         *)
10223           # For security reasons, it is highly recommended that you always
10224           # use absolute paths for naming shared libraries, and exclude the
10225           # DT_RUNPATH tag from executables and libraries.  But doing so
10226           # requires that you compile everything twice, which is a pain.
10227           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10228             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10231           else
10232             ld_shlibs=no
10233           fi
10234         ;;
10235       esac
10236       ;;
10237
10238     sunos4*)
10239       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10240       wlarc=
10241       hardcode_direct=yes
10242       hardcode_shlibpath_var=no
10243       ;;
10244
10245     *)
10246       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10249       else
10250         ld_shlibs=no
10251       fi
10252       ;;
10253     esac
10254
10255     if test "$ld_shlibs" = no; then
10256       runpath_var=
10257       hardcode_libdir_flag_spec=
10258       export_dynamic_flag_spec=
10259       whole_archive_flag_spec=
10260     fi
10261   else
10262     # PORTME fill in a description of your system's linker (not GNU ld)
10263     case $host_os in
10264     aix3*)
10265       allow_undefined_flag=unsupported
10266       always_export_symbols=yes
10267       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'
10268       # Note: this linker hardcodes the directories in LIBPATH if there
10269       # are no directories specified by -L.
10270       hardcode_minus_L=yes
10271       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10272         # Neither direct hardcoding nor static linking is supported with a
10273         # broken collect2.
10274         hardcode_direct=unsupported
10275       fi
10276       ;;
10277
10278     aix[4-9]*)
10279       if test "$host_cpu" = ia64; then
10280         # On IA64, the linker does run time linking by default, so we don't
10281         # have to do anything special.
10282         aix_use_runtimelinking=no
10283         exp_sym_flag='-Bexport'
10284         no_entry_flag=""
10285       else
10286         # If we're using GNU nm, then we don't want the "-C" option.
10287         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10288         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289           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'
10290         else
10291           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'
10292         fi
10293         aix_use_runtimelinking=no
10294
10295         # Test if we are trying to use run time linking or normal
10296         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297         # need to do runtime linking.
10298         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299           for ld_flag in $LDFLAGS; do
10300           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301             aix_use_runtimelinking=yes
10302             break
10303           fi
10304           done
10305           ;;
10306         esac
10307
10308         exp_sym_flag='-bexport'
10309         no_entry_flag='-bnoentry'
10310       fi
10311
10312       # When large executables or shared objects are built, AIX ld can
10313       # have problems creating the table of contents.  If linking a library
10314       # or program results in "error TOC overflow" add -mminimal-toc to
10315       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10316       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10317
10318       archive_cmds=''
10319       hardcode_direct=yes
10320       hardcode_direct_absolute=yes
10321       hardcode_libdir_separator=':'
10322       link_all_deplibs=yes
10323       file_list_spec='${wl}-f,'
10324
10325       if test "$GCC" = yes; then
10326         case $host_os in aix4.[012]|aix4.[012].*)
10327         # We only want to do this on AIX 4.2 and lower, the check
10328         # below for broken collect2 doesn't work under 4.3+
10329           collect2name=`${CC} -print-prog-name=collect2`
10330           if test -f "$collect2name" &&
10331            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10332           then
10333           # We have reworked collect2
10334           :
10335           else
10336           # We have old collect2
10337           hardcode_direct=unsupported
10338           # It fails to find uninstalled libraries when the uninstalled
10339           # path is not listed in the libpath.  Setting hardcode_minus_L
10340           # to unsupported forces relinking
10341           hardcode_minus_L=yes
10342           hardcode_libdir_flag_spec='-L$libdir'
10343           hardcode_libdir_separator=
10344           fi
10345           ;;
10346         esac
10347         shared_flag='-shared'
10348         if test "$aix_use_runtimelinking" = yes; then
10349           shared_flag="$shared_flag "'${wl}-G'
10350         fi
10351       else
10352         # not using gcc
10353         if test "$host_cpu" = ia64; then
10354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355         # chokes on -Wl,-G. The following line is correct:
10356           shared_flag='-G'
10357         else
10358           if test "$aix_use_runtimelinking" = yes; then
10359             shared_flag='${wl}-G'
10360           else
10361             shared_flag='${wl}-bM:SRE'
10362           fi
10363         fi
10364       fi
10365
10366       export_dynamic_flag_spec='${wl}-bexpall'
10367       # It seems that -bexpall does not export symbols beginning with
10368       # underscore (_), so it is better to generate a list of symbols to export.
10369       always_export_symbols=yes
10370       if test "$aix_use_runtimelinking" = yes; then
10371         # Warning - without using the other runtime loading flags (-brtl),
10372         # -berok will link without error, but may produce a broken library.
10373         allow_undefined_flag='-berok'
10374         # Determine the default libpath from the value encoded in an
10375         # empty executable.
10376         cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382
10383 int
10384 main ()
10385 {
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_link") 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && {
10405          test -z "$ac_c_werror_flag" ||
10406          test ! -s conftest.err
10407        } && test -s conftest$ac_exeext &&
10408        $as_test_x conftest$ac_exeext; then
10409
10410 lt_aix_libpath_sed='
10411     /Import File Strings/,/^$/ {
10412         /^0/ {
10413             s/^0  *\(.*\)$/\1/
10414             p
10415         }
10416     }'
10417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 # Check for a 64-bit object if we didn't find anything.
10419 if test -z "$aix_libpath"; then
10420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421 fi
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426
10427 fi
10428
10429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430       conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10432
10433         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434         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"
10435       else
10436         if test "$host_cpu" = ia64; then
10437           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10438           allow_undefined_flag="-z nodefs"
10439           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"
10440         else
10441          # Determine the default libpath from the value encoded in an
10442          # empty executable.
10443          cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 int
10451 main ()
10452 {
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_link") 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } && {
10472          test -z "$ac_c_werror_flag" ||
10473          test ! -s conftest.err
10474        } && test -s conftest$ac_exeext &&
10475        $as_test_x conftest$ac_exeext; then
10476
10477 lt_aix_libpath_sed='
10478     /Import File Strings/,/^$/ {
10479         /^0/ {
10480             s/^0  *\(.*\)$/\1/
10481             p
10482         }
10483     }'
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10488 fi
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497       conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499
10500          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501           # Warning - without using the other run time loading flags,
10502           # -berok will link without error, but may produce a broken library.
10503           no_undefined_flag=' ${wl}-bernotok'
10504           allow_undefined_flag=' ${wl}-berok'
10505           # Exported symbols can be pulled into shared objects from archives
10506           whole_archive_flag_spec='$convenience'
10507           archive_cmds_need_lc=yes
10508           # This is similar to how AIX traditionally builds its shared libraries.
10509           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'
10510         fi
10511       fi
10512       ;;
10513
10514     amigaos*)
10515       case $host_cpu in
10516       powerpc)
10517             # see comment about AmigaOS4 .so support
10518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519             archive_expsym_cmds=''
10520         ;;
10521       m68k)
10522             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)'
10523             hardcode_libdir_flag_spec='-L$libdir'
10524             hardcode_minus_L=yes
10525         ;;
10526       esac
10527       ;;
10528
10529     bsdi[45]*)
10530       export_dynamic_flag_spec=-rdynamic
10531       ;;
10532
10533     cygwin* | mingw* | pw32* | cegcc*)
10534       # When not using gcc, we currently assume that we are using
10535       # Microsoft Visual C++.
10536       # hardcode_libdir_flag_spec is actually meaningless, as there is
10537       # no search path for DLLs.
10538       hardcode_libdir_flag_spec=' '
10539       allow_undefined_flag=unsupported
10540       # Tell ltmain to make .lib files, not .a files.
10541       libext=lib
10542       # Tell ltmain to make .dll files, not .so files.
10543       shrext_cmds=".dll"
10544       # FIXME: Setting linknames here is a bad hack.
10545       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10546       # The linker will automatically build a .lib file if we build a DLL.
10547       old_archive_from_new_cmds='true'
10548       # FIXME: Should let the user specify the lib program.
10549       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10550       fix_srcfile_path='`cygpath -w "$srcfile"`'
10551       enable_shared_with_static_runtimes=yes
10552       ;;
10553
10554     darwin* | rhapsody*)
10555
10556
10557   archive_cmds_need_lc=no
10558   hardcode_direct=no
10559   hardcode_automatic=yes
10560   hardcode_shlibpath_var=unsupported
10561   whole_archive_flag_spec=''
10562   link_all_deplibs=yes
10563   allow_undefined_flag="$_lt_dar_allow_undefined"
10564   case $cc_basename in
10565      ifort*) _lt_dar_can_shared=yes ;;
10566      *) _lt_dar_can_shared=$GCC ;;
10567   esac
10568   if test "$_lt_dar_can_shared" = "yes"; then
10569     output_verbose_link_cmd=echo
10570     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572     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}"
10573     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}"
10574
10575   else
10576   ld_shlibs=no
10577   fi
10578
10579       ;;
10580
10581     dgux*)
10582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583       hardcode_libdir_flag_spec='-L$libdir'
10584       hardcode_shlibpath_var=no
10585       ;;
10586
10587     freebsd1*)
10588       ld_shlibs=no
10589       ;;
10590
10591     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10592     # support.  Future versions do this automatically, but an explicit c++rt0.o
10593     # does not break anything, and helps significantly (at the cost of a little
10594     # extra space).
10595     freebsd2.2*)
10596       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10597       hardcode_libdir_flag_spec='-R$libdir'
10598       hardcode_direct=yes
10599       hardcode_shlibpath_var=no
10600       ;;
10601
10602     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10603     freebsd2*)
10604       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605       hardcode_direct=yes
10606       hardcode_minus_L=yes
10607       hardcode_shlibpath_var=no
10608       ;;
10609
10610     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10611     freebsd* | dragonfly*)
10612       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10613       hardcode_libdir_flag_spec='-R$libdir'
10614       hardcode_direct=yes
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     hpux9*)
10619       if test "$GCC" = yes; then
10620         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'
10621       else
10622         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'
10623       fi
10624       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625       hardcode_libdir_separator=:
10626       hardcode_direct=yes
10627
10628       # hardcode_minus_L: Not really in the search PATH,
10629       # but as the default location of the library.
10630       hardcode_minus_L=yes
10631       export_dynamic_flag_spec='${wl}-E'
10632       ;;
10633
10634     hpux10*)
10635       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10636         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10637       else
10638         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10639       fi
10640       if test "$with_gnu_ld" = no; then
10641         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642         hardcode_libdir_flag_spec_ld='+b $libdir'
10643         hardcode_libdir_separator=:
10644         hardcode_direct=yes
10645         hardcode_direct_absolute=yes
10646         export_dynamic_flag_spec='${wl}-E'
10647         # hardcode_minus_L: Not really in the search PATH,
10648         # but as the default location of the library.
10649         hardcode_minus_L=yes
10650       fi
10651       ;;
10652
10653     hpux11*)
10654       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10655         case $host_cpu in
10656         hppa*64*)
10657           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10658           ;;
10659         ia64*)
10660           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10661           ;;
10662         *)
10663           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10664           ;;
10665         esac
10666       else
10667         case $host_cpu in
10668         hppa*64*)
10669           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10670           ;;
10671         ia64*)
10672           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10673           ;;
10674         *)
10675           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10676           ;;
10677         esac
10678       fi
10679       if test "$with_gnu_ld" = no; then
10680         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681         hardcode_libdir_separator=:
10682
10683         case $host_cpu in
10684         hppa*64*|ia64*)
10685           hardcode_direct=no
10686           hardcode_shlibpath_var=no
10687           ;;
10688         *)
10689           hardcode_direct=yes
10690           hardcode_direct_absolute=yes
10691           export_dynamic_flag_spec='${wl}-E'
10692
10693           # hardcode_minus_L: Not really in the search PATH,
10694           # but as the default location of the library.
10695           hardcode_minus_L=yes
10696           ;;
10697         esac
10698       fi
10699       ;;
10700
10701     irix5* | irix6* | nonstopux*)
10702       if test "$GCC" = yes; then
10703         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'
10704         # Try to use the -exported_symbol ld option, if it does not
10705         # work, assume that -exports_file does not work either and
10706         # implicitly export all symbols.
10707         save_LDFLAGS="$LDFLAGS"
10708         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10709         cat >conftest.$ac_ext <<_ACEOF
10710 int foo(void) {}
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_link") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } && {
10726          test -z "$ac_c_werror_flag" ||
10727          test ! -s conftest.err
10728        } && test -s conftest$ac_exeext &&
10729        $as_test_x conftest$ac_exeext; then
10730   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'
10731
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741         LDFLAGS="$save_LDFLAGS"
10742       else
10743         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'
10744         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'
10745       fi
10746       archive_cmds_need_lc='no'
10747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748       hardcode_libdir_separator=:
10749       inherit_rpath=yes
10750       link_all_deplibs=yes
10751       ;;
10752
10753     netbsd*)
10754       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10756       else
10757         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10758       fi
10759       hardcode_libdir_flag_spec='-R$libdir'
10760       hardcode_direct=yes
10761       hardcode_shlibpath_var=no
10762       ;;
10763
10764     newsos6)
10765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766       hardcode_direct=yes
10767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768       hardcode_libdir_separator=:
10769       hardcode_shlibpath_var=no
10770       ;;
10771
10772     *nto* | *qnx*)
10773       ;;
10774
10775     openbsd*)
10776       if test -f /usr/libexec/ld.so; then
10777         hardcode_direct=yes
10778         hardcode_shlibpath_var=no
10779         hardcode_direct_absolute=yes
10780         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10783           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784           export_dynamic_flag_spec='${wl}-E'
10785         else
10786           case $host_os in
10787            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10788              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789              hardcode_libdir_flag_spec='-R$libdir'
10790              ;;
10791            *)
10792              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10794              ;;
10795           esac
10796         fi
10797       else
10798         ld_shlibs=no
10799       fi
10800       ;;
10801
10802     os2*)
10803       hardcode_libdir_flag_spec='-L$libdir'
10804       hardcode_minus_L=yes
10805       allow_undefined_flag=unsupported
10806       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'
10807       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10808       ;;
10809
10810     osf3*)
10811       if test "$GCC" = yes; then
10812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813         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'
10814       else
10815         allow_undefined_flag=' -expect_unresolved \*'
10816         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'
10817       fi
10818       archive_cmds_need_lc='no'
10819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820       hardcode_libdir_separator=:
10821       ;;
10822
10823     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10824       if test "$GCC" = yes; then
10825         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826         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'
10827         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       else
10829         allow_undefined_flag=' -expect_unresolved \*'
10830         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'
10831         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~
10832         $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'
10833
10834         # Both c and cxx compiler support -rpath directly
10835         hardcode_libdir_flag_spec='-rpath $libdir'
10836       fi
10837       archive_cmds_need_lc='no'
10838       hardcode_libdir_separator=:
10839       ;;
10840
10841     solaris*)
10842       no_undefined_flag=' -z defs'
10843       if test "$GCC" = yes; then
10844         wlarc='${wl}'
10845         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10848       else
10849         case `$CC -V 2>&1` in
10850         *"Compilers 5.0"*)
10851           wlarc=''
10852           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10855           ;;
10856         *)
10857           wlarc='${wl}'
10858           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10861           ;;
10862         esac
10863       fi
10864       hardcode_libdir_flag_spec='-R$libdir'
10865       hardcode_shlibpath_var=no
10866       case $host_os in
10867       solaris2.[0-5] | solaris2.[0-5].*) ;;
10868       *)
10869         # The compiler driver will combine and reorder linker options,
10870         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10871         # but is careful enough not to reorder.
10872         # Supported since Solaris 2.6 (maybe 2.5.1?)
10873         if test "$GCC" = yes; then
10874           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10875         else
10876           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10877         fi
10878         ;;
10879       esac
10880       link_all_deplibs=yes
10881       ;;
10882
10883     sunos4*)
10884       if test "x$host_vendor" = xsequent; then
10885         # Use $CC to link under sequent, because it throws in some extra .o
10886         # files that make .init and .fini sections work.
10887         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10888       else
10889         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10890       fi
10891       hardcode_libdir_flag_spec='-L$libdir'
10892       hardcode_direct=yes
10893       hardcode_minus_L=yes
10894       hardcode_shlibpath_var=no
10895       ;;
10896
10897     sysv4)
10898       case $host_vendor in
10899         sni)
10900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901           hardcode_direct=yes # is this really true???
10902         ;;
10903         siemens)
10904           ## LD is ld it makes a PLAMLIB
10905           ## CC just makes a GrossModule.
10906           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10907           reload_cmds='$CC -r -o $output$reload_objs'
10908           hardcode_direct=no
10909         ;;
10910         motorola)
10911           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10913         ;;
10914       esac
10915       runpath_var='LD_RUN_PATH'
10916       hardcode_shlibpath_var=no
10917       ;;
10918
10919     sysv4.3*)
10920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921       hardcode_shlibpath_var=no
10922       export_dynamic_flag_spec='-Bexport'
10923       ;;
10924
10925     sysv4*MP*)
10926       if test -d /usr/nec; then
10927         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928         hardcode_shlibpath_var=no
10929         runpath_var=LD_RUN_PATH
10930         hardcode_runpath_var=yes
10931         ld_shlibs=yes
10932       fi
10933       ;;
10934
10935     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10936       no_undefined_flag='${wl}-z,text'
10937       archive_cmds_need_lc=no
10938       hardcode_shlibpath_var=no
10939       runpath_var='LD_RUN_PATH'
10940
10941       if test "$GCC" = yes; then
10942         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944       else
10945         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947       fi
10948       ;;
10949
10950     sysv5* | sco3.2v5* | sco5v6*)
10951       # Note: We can NOT use -z defs as we might desire, because we do not
10952       # link with -lc, and that would cause any symbols used from libc to
10953       # always be unresolved, which means just about no library would
10954       # ever link correctly.  If we're not using GNU ld we use -z text
10955       # though, which does catch some bad symbols but isn't as heavy-handed
10956       # as -z defs.
10957       no_undefined_flag='${wl}-z,text'
10958       allow_undefined_flag='${wl}-z,nodefs'
10959       archive_cmds_need_lc=no
10960       hardcode_shlibpath_var=no
10961       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10962       hardcode_libdir_separator=':'
10963       link_all_deplibs=yes
10964       export_dynamic_flag_spec='${wl}-Bexport'
10965       runpath_var='LD_RUN_PATH'
10966
10967       if test "$GCC" = yes; then
10968         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970       else
10971         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973       fi
10974       ;;
10975
10976     uts4*)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_libdir_flag_spec='-L$libdir'
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     *)
10983       ld_shlibs=no
10984       ;;
10985     esac
10986
10987     if test x$host_vendor = xsni; then
10988       case $host in
10989       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10990         export_dynamic_flag_spec='${wl}-Blargedynsym'
10991         ;;
10992       esac
10993     fi
10994   fi
10995
10996 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10997 echo "${ECHO_T}$ld_shlibs" >&6; }
10998 test "$ld_shlibs" = no && can_build_shared=no
10999
11000 with_gnu_ld=$with_gnu_ld
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 #
11017 # Do we need to explicitly link libc?
11018 #
11019 case "x$archive_cmds_need_lc" in
11020 x|xyes)
11021   # Assume -lc should be added
11022   archive_cmds_need_lc=yes
11023
11024   if test "$enable_shared" = yes && test "$GCC" = yes; then
11025     case $archive_cmds in
11026     *'~'*)
11027       # FIXME: we may have to deal with multi-command sequences.
11028       ;;
11029     '$CC '*)
11030       # Test whether the compiler implicitly links with -lc since on some
11031       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11032       # to ld, don't add -lc before -lgcc.
11033       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11035       $RM conftest*
11036       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11037
11038       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039   (eval $ac_compile) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } 2>conftest.err; then
11043         soname=conftest
11044         lib=conftest
11045         libobjs=conftest.$ac_objext
11046         deplibs=
11047         wl=$lt_prog_compiler_wl
11048         pic_flag=$lt_prog_compiler_pic
11049         compiler_flags=-v
11050         linker_flags=-v
11051         verstring=
11052         output_objdir=.
11053         libname=conftest
11054         lt_save_allow_undefined_flag=$allow_undefined_flag
11055         allow_undefined_flag=
11056         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }
11061         then
11062           archive_cmds_need_lc=no
11063         else
11064           archive_cmds_need_lc=yes
11065         fi
11066         allow_undefined_flag=$lt_save_allow_undefined_flag
11067       else
11068         cat conftest.err 1>&5
11069       fi
11070       $RM conftest*
11071       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11072 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11073       ;;
11074     esac
11075   fi
11076   ;;
11077 esac
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11237
11238 if test "$GCC" = yes; then
11239   case $host_os in
11240     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11241     *) lt_awk_arg="/^libraries:/" ;;
11242   esac
11243   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11245     # if the path contains ";" then we assume it to be the separator
11246     # otherwise default to the standard path separator (i.e. ":") - it is
11247     # assumed that no part of a normal pathname contains ";" but that should
11248     # okay in the real world where ";" in dirpaths is itself problematic.
11249     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11250   else
11251     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11252   fi
11253   # Ok, now we have the path, separated by spaces, we can step through it
11254   # and add multilib dir if necessary.
11255   lt_tmp_lt_search_path_spec=
11256   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257   for lt_sys_path in $lt_search_path_spec; do
11258     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11260     else
11261       test -d "$lt_sys_path" && \
11262         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263     fi
11264   done
11265   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11267   lt_foo="";
11268   lt_count=0;
11269   for (lt_i = NF; lt_i > 0; lt_i--) {
11270     if ($lt_i != "" && $lt_i != ".") {
11271       if ($lt_i == "..") {
11272         lt_count++;
11273       } else {
11274         if (lt_count == 0) {
11275           lt_foo="/" $lt_i lt_foo;
11276         } else {
11277           lt_count--;
11278         }
11279       }
11280     }
11281   }
11282   if (lt_foo != "") { lt_freq[lt_foo]++; }
11283   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11284 }'`
11285   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11286 else
11287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288 fi
11289 library_names_spec=
11290 libname_spec='lib$name'
11291 soname_spec=
11292 shrext_cmds=".so"
11293 postinstall_cmds=
11294 postuninstall_cmds=
11295 finish_cmds=
11296 finish_eval=
11297 shlibpath_var=
11298 shlibpath_overrides_runpath=unknown
11299 version_type=none
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11304
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11308
11309 case $host_os in
11310 aix3*)
11311   version_type=linux
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313   shlibpath_var=LIBPATH
11314
11315   # AIX 3 has no versioning support, so we append a major version to the name.
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   ;;
11318
11319 aix[4-9]*)
11320   version_type=linux
11321   need_lib_prefix=no
11322   need_version=no
11323   hardcode_into_libs=yes
11324   if test "$host_cpu" = ia64; then
11325     # AIX 5 supports IA64
11326     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327     shlibpath_var=LD_LIBRARY_PATH
11328   else
11329     # With GCC up to 2.95.x, collect2 would create an import file
11330     # for dependence libraries.  The import file would start with
11331     # the line `#! .'.  This would cause the generated library to
11332     # depend on `.', always an invalid library.  This was fixed in
11333     # development snapshots of GCC prior to 3.0.
11334     case $host_os in
11335       aix4 | aix4.[01] | aix4.[01].*)
11336       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337            echo ' yes '
11338            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11339         :
11340       else
11341         can_build_shared=no
11342       fi
11343       ;;
11344     esac
11345     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346     # soname into executable. Probably we can add versioning support to
11347     # collect2, so additional links can be useful in future.
11348     if test "$aix_use_runtimelinking" = yes; then
11349       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350       # instead of lib<name>.a to let people know that these are not
11351       # typical AIX shared libraries.
11352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     else
11354       # We preserve .a as extension for shared libraries through AIX4.2
11355       # and later when we are not doing run time linking.
11356       library_names_spec='${libname}${release}.a $libname.a'
11357       soname_spec='${libname}${release}${shared_ext}$major'
11358     fi
11359     shlibpath_var=LIBPATH
11360   fi
11361   ;;
11362
11363 amigaos*)
11364   case $host_cpu in
11365   powerpc)
11366     # Since July 2007 AmigaOS4 officially supports .so libraries.
11367     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369     ;;
11370   m68k)
11371     library_names_spec='$libname.ixlibrary $libname.a'
11372     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373     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'
11374     ;;
11375   esac
11376   ;;
11377
11378 beos*)
11379   library_names_spec='${libname}${shared_ext}'
11380   dynamic_linker="$host_os ld.so"
11381   shlibpath_var=LIBRARY_PATH
11382   ;;
11383
11384 bsdi[45]*)
11385   version_type=linux
11386   need_version=no
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390   shlibpath_var=LD_LIBRARY_PATH
11391   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393   # the default ld.so.conf also contains /usr/contrib/lib and
11394   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395   # libtool to hard-code these into programs
11396   ;;
11397
11398 cygwin* | mingw* | pw32* | cegcc*)
11399   version_type=windows
11400   shrext_cmds=".dll"
11401   need_version=no
11402   need_lib_prefix=no
11403
11404   case $GCC,$host_os in
11405   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406     library_names_spec='$libname.dll.a'
11407     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408     postinstall_cmds='base_file=`basename \${file}`~
11409       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410       dldir=$destdir/`dirname \$dlpath`~
11411       test -d \$dldir || mkdir -p \$dldir~
11412       $install_prog $dir/$dlname \$dldir/$dlname~
11413       chmod a+x \$dldir/$dlname~
11414       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11416       fi'
11417     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418       dlpath=$dir/\$dldll~
11419        $RM \$dlpath'
11420     shlibpath_overrides_runpath=yes
11421
11422     case $host_os in
11423     cygwin*)
11424       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11427       ;;
11428     mingw* | cegcc*)
11429       # MinGW DLLs use traditional 'lib' prefix
11430       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11432       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11433         # It is most probably a Windows format PATH printed by
11434         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11435         # path with ; separators, and with drive letters. We can handle the
11436         # drive letters (cygwin fileutils understands them), so leave them,
11437         # especially as we might pass files found there to a mingw objdump,
11438         # which wouldn't understand a cygwinified path. Ahh.
11439         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11440       else
11441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11442       fi
11443       ;;
11444     pw32*)
11445       # pw32 DLLs use 'pw' prefix rather than 'lib'
11446       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447       ;;
11448     esac
11449     ;;
11450
11451   *)
11452     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11453     ;;
11454   esac
11455   dynamic_linker='Win32 ld.exe'
11456   # FIXME: first we should search . and the directory the executable is in
11457   shlibpath_var=PATH
11458   ;;
11459
11460 darwin* | rhapsody*)
11461   dynamic_linker="$host_os dyld"
11462   version_type=darwin
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11466   soname_spec='${libname}${release}${major}$shared_ext'
11467   shlibpath_overrides_runpath=yes
11468   shlibpath_var=DYLD_LIBRARY_PATH
11469   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11470
11471   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11473   ;;
11474
11475 dgux*)
11476   version_type=linux
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   ;;
11483
11484 freebsd1*)
11485   dynamic_linker=no
11486   ;;
11487
11488 freebsd* | dragonfly*)
11489   # DragonFly does not have aout.  When/if they implement a new
11490   # versioning mechanism, adjust this.
11491   if test -x /usr/bin/objformat; then
11492     objformat=`/usr/bin/objformat`
11493   else
11494     case $host_os in
11495     freebsd[123]*) objformat=aout ;;
11496     *) objformat=elf ;;
11497     esac
11498   fi
11499   version_type=freebsd-$objformat
11500   case $version_type in
11501     freebsd-elf*)
11502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11503       need_version=no
11504       need_lib_prefix=no
11505       ;;
11506     freebsd-*)
11507       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11508       need_version=yes
11509       ;;
11510   esac
11511   shlibpath_var=LD_LIBRARY_PATH
11512   case $host_os in
11513   freebsd2*)
11514     shlibpath_overrides_runpath=yes
11515     ;;
11516   freebsd3.[01]* | freebsdelf3.[01]*)
11517     shlibpath_overrides_runpath=yes
11518     hardcode_into_libs=yes
11519     ;;
11520   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11521   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11522     shlibpath_overrides_runpath=no
11523     hardcode_into_libs=yes
11524     ;;
11525   *) # from 4.6 on, and DragonFly
11526     shlibpath_overrides_runpath=yes
11527     hardcode_into_libs=yes
11528     ;;
11529   esac
11530   ;;
11531
11532 gnu*)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   hardcode_into_libs=yes
11540   ;;
11541
11542 hpux9* | hpux10* | hpux11*)
11543   # Give a soname corresponding to the major version so that dld.sl refuses to
11544   # link against other versions.
11545   version_type=sunos
11546   need_lib_prefix=no
11547   need_version=no
11548   case $host_cpu in
11549   ia64*)
11550     shrext_cmds='.so'
11551     hardcode_into_libs=yes
11552     dynamic_linker="$host_os dld.so"
11553     shlibpath_var=LD_LIBRARY_PATH
11554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556     soname_spec='${libname}${release}${shared_ext}$major'
11557     if test "X$HPUX_IA64_MODE" = X32; then
11558       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11559     else
11560       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11561     fi
11562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563     ;;
11564   hppa*64*)
11565     shrext_cmds='.sl'
11566     hardcode_into_libs=yes
11567     dynamic_linker="$host_os dld.sl"
11568     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571     soname_spec='${libname}${release}${shared_ext}$major'
11572     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11574     ;;
11575   *)
11576     shrext_cmds='.sl'
11577     dynamic_linker="$host_os dld.sl"
11578     shlibpath_var=SHLIB_PATH
11579     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581     soname_spec='${libname}${release}${shared_ext}$major'
11582     ;;
11583   esac
11584   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585   postinstall_cmds='chmod 555 $lib'
11586   ;;
11587
11588 interix[3-9]*)
11589   version_type=linux
11590   need_lib_prefix=no
11591   need_version=no
11592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=no
11597   hardcode_into_libs=yes
11598   ;;
11599
11600 irix5* | irix6* | nonstopux*)
11601   case $host_os in
11602     nonstopux*) version_type=nonstopux ;;
11603     *)
11604         if test "$lt_cv_prog_gnu_ld" = yes; then
11605                 version_type=linux
11606         else
11607                 version_type=irix
11608         fi ;;
11609   esac
11610   need_lib_prefix=no
11611   need_version=no
11612   soname_spec='${libname}${release}${shared_ext}$major'
11613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11614   case $host_os in
11615   irix5* | nonstopux*)
11616     libsuff= shlibsuff=
11617     ;;
11618   *)
11619     case $LD in # libtool.m4 will add one of these switches to LD
11620     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621       libsuff= shlibsuff= libmagic=32-bit;;
11622     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623       libsuff=32 shlibsuff=N32 libmagic=N32;;
11624     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626     *) libsuff= shlibsuff= libmagic=never-match;;
11627     esac
11628     ;;
11629   esac
11630   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631   shlibpath_overrides_runpath=no
11632   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634   hardcode_into_libs=yes
11635   ;;
11636
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11639   dynamic_linker=no
11640   ;;
11641
11642 # This must be Linux ELF.
11643 linux* | k*bsd*-gnu)
11644   version_type=linux
11645   need_lib_prefix=no
11646   need_version=no
11647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648   soname_spec='${libname}${release}${shared_ext}$major'
11649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650   shlibpath_var=LD_LIBRARY_PATH
11651   shlibpath_overrides_runpath=no
11652   # Some binutils ld are patched to set DT_RUNPATH
11653   save_LDFLAGS=$LDFLAGS
11654   save_libdir=$libdir
11655   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657   cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663
11664 int
11665 main ()
11666 {
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_link") 2>conftest.er1
11680   ac_status=$?
11681   grep -v '^ *+' conftest.er1 >conftest.err
11682   rm -f conftest.er1
11683   cat conftest.err >&5
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } && {
11686          test -z "$ac_c_werror_flag" ||
11687          test ! -s conftest.err
11688        } && test -s conftest$ac_exeext &&
11689        $as_test_x conftest$ac_exeext; then
11690   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11691   shlibpath_overrides_runpath=yes
11692 fi
11693
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11702       conftest$ac_exeext conftest.$ac_ext
11703   LDFLAGS=$save_LDFLAGS
11704   libdir=$save_libdir
11705
11706   # This implies no fast_install, which is unacceptable.
11707   # Some rework will be needed to allow for fast_install
11708   # before this can be enabled.
11709   hardcode_into_libs=yes
11710
11711   # Append ld.so.conf contents to the search path
11712   if test -f /etc/ld.so.conf; then
11713     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' ' '`
11714     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11715   fi
11716
11717   # We used to test for /lib/ld.so.1 and disable shared libraries on
11718   # powerpc, because MkLinux only supported shared libraries with the
11719   # GNU dynamic linker.  Since this was broken with cross compilers,
11720   # most powerpc-linux boxes support dynamic linking these days and
11721   # people can always --disable-shared, the test was removed, and we
11722   # assume the GNU/Linux dynamic linker is in use.
11723   dynamic_linker='GNU/Linux ld.so'
11724   ;;
11725
11726 netbsd*)
11727   version_type=sunos
11728   need_lib_prefix=no
11729   need_version=no
11730   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733     dynamic_linker='NetBSD (a.out) ld.so'
11734   else
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736     soname_spec='${libname}${release}${shared_ext}$major'
11737     dynamic_linker='NetBSD ld.elf_so'
11738   fi
11739   shlibpath_var=LD_LIBRARY_PATH
11740   shlibpath_overrides_runpath=yes
11741   hardcode_into_libs=yes
11742   ;;
11743
11744 newsos6)
11745   version_type=linux
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747   shlibpath_var=LD_LIBRARY_PATH
11748   shlibpath_overrides_runpath=yes
11749   ;;
11750
11751 *nto* | *qnx*)
11752   version_type=qnx
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   shlibpath_overrides_runpath=no
11759   hardcode_into_libs=yes
11760   dynamic_linker='ldqnx.so'
11761   ;;
11762
11763 openbsd*)
11764   version_type=sunos
11765   sys_lib_dlsearch_path_spec="/usr/lib"
11766   need_lib_prefix=no
11767   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11768   case $host_os in
11769     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11770     *)                          need_version=no  ;;
11771   esac
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11776     case $host_os in
11777       openbsd2.[89] | openbsd2.[89].*)
11778         shlibpath_overrides_runpath=no
11779         ;;
11780       *)
11781         shlibpath_overrides_runpath=yes
11782         ;;
11783       esac
11784   else
11785     shlibpath_overrides_runpath=yes
11786   fi
11787   ;;
11788
11789 os2*)
11790   libname_spec='$name'
11791   shrext_cmds=".dll"
11792   need_lib_prefix=no
11793   library_names_spec='$libname${shared_ext} $libname.a'
11794   dynamic_linker='OS/2 ld.exe'
11795   shlibpath_var=LIBPATH
11796   ;;
11797
11798 osf3* | osf4* | osf5*)
11799   version_type=osf
11800   need_lib_prefix=no
11801   need_version=no
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11807   ;;
11808
11809 rdos*)
11810   dynamic_linker=no
11811   ;;
11812
11813 solaris*)
11814   version_type=linux
11815   need_lib_prefix=no
11816   need_version=no
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   soname_spec='${libname}${release}${shared_ext}$major'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   shlibpath_overrides_runpath=yes
11821   hardcode_into_libs=yes
11822   # ldd complains unless libraries are executable
11823   postinstall_cmds='chmod +x $lib'
11824   ;;
11825
11826 sunos4*)
11827   version_type=sunos
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   if test "$with_gnu_ld" = yes; then
11833     need_lib_prefix=no
11834   fi
11835   need_version=yes
11836   ;;
11837
11838 sysv4 | sysv4.3*)
11839   version_type=linux
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   case $host_vendor in
11844     sni)
11845       shlibpath_overrides_runpath=no
11846       need_lib_prefix=no
11847       runpath_var=LD_RUN_PATH
11848       ;;
11849     siemens)
11850       need_lib_prefix=no
11851       ;;
11852     motorola)
11853       need_lib_prefix=no
11854       need_version=no
11855       shlibpath_overrides_runpath=no
11856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857       ;;
11858   esac
11859   ;;
11860
11861 sysv4*MP*)
11862   if test -d /usr/nec ;then
11863     version_type=linux
11864     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865     soname_spec='$libname${shared_ext}.$major'
11866     shlibpath_var=LD_LIBRARY_PATH
11867   fi
11868   ;;
11869
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871   version_type=freebsd-elf
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   hardcode_into_libs=yes
11879   if test "$with_gnu_ld" = yes; then
11880     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11881   else
11882     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11883     case $host_os in
11884       sco3.2v5*)
11885         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886         ;;
11887     esac
11888   fi
11889   sys_lib_dlsearch_path_spec='/usr/lib'
11890   ;;
11891
11892 tpf*)
11893   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11894   version_type=linux
11895   need_lib_prefix=no
11896   need_version=no
11897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898   shlibpath_var=LD_LIBRARY_PATH
11899   shlibpath_overrides_runpath=no
11900   hardcode_into_libs=yes
11901   ;;
11902
11903 uts4*)
11904   version_type=linux
11905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906   soname_spec='${libname}${release}${shared_ext}$major'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   ;;
11909
11910 *)
11911   dynamic_linker=no
11912   ;;
11913 esac
11914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11915 echo "${ECHO_T}$dynamic_linker" >&6; }
11916 test "$dynamic_linker" = no && can_build_shared=no
11917
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test "$GCC" = yes; then
11920   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11921 fi
11922
11923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11925 fi
11926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11928 fi
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12018 hardcode_action=
12019 if test -n "$hardcode_libdir_flag_spec" ||
12020    test -n "$runpath_var" ||
12021    test "X$hardcode_automatic" = "Xyes" ; then
12022
12023   # We can hardcode non-existent directories.
12024   if test "$hardcode_direct" != no &&
12025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026      # have to relink, otherwise we might link with an installed library
12027      # when we should be linking with a yet-to-be-installed one
12028      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12029      test "$hardcode_minus_L" != no; then
12030     # Linking always hardcodes the temporary library directory.
12031     hardcode_action=relink
12032   else
12033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034     hardcode_action=immediate
12035   fi
12036 else
12037   # We cannot hardcode anything, or else we can only hardcode existing
12038   # directories.
12039   hardcode_action=unsupported
12040 fi
12041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12042 echo "${ECHO_T}$hardcode_action" >&6; }
12043
12044 if test "$hardcode_action" = relink ||
12045    test "$inherit_rpath" = yes; then
12046   # Fast installation is not supported
12047   enable_fast_install=no
12048 elif test "$shlibpath_overrides_runpath" = yes ||
12049      test "$enable_shared" = no; then
12050   # Fast installation is not necessary
12051   enable_fast_install=needless
12052 fi
12053
12054
12055
12056
12057
12058
12059   if test "x$enable_dlopen" != xyes; then
12060   enable_dlopen=unknown
12061   enable_dlopen_self=unknown
12062   enable_dlopen_self_static=unknown
12063 else
12064   lt_cv_dlopen=no
12065   lt_cv_dlopen_libs=
12066
12067   case $host_os in
12068   beos*)
12069     lt_cv_dlopen="load_add_on"
12070     lt_cv_dlopen_libs=
12071     lt_cv_dlopen_self=yes
12072     ;;
12073
12074   mingw* | pw32* | cegcc*)
12075     lt_cv_dlopen="LoadLibrary"
12076     lt_cv_dlopen_libs=
12077     ;;
12078
12079   cygwin*)
12080     lt_cv_dlopen="dlopen"
12081     lt_cv_dlopen_libs=
12082     ;;
12083
12084   darwin*)
12085   # if libdl is installed we need to link against it
12086     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-ldl  $LIBS"
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101    Use char because int might match the return type of a GCC
12102    builtin and then its argument prototype would still apply.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char dlopen ();
12107 int
12108 main ()
12109 {
12110 return dlopen ();
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_link") 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } && {
12129          test -z "$ac_c_werror_flag" ||
12130          test ! -s conftest.err
12131        } && test -s conftest$ac_exeext &&
12132        $as_test_x conftest$ac_exeext; then
12133   ac_cv_lib_dl_dlopen=yes
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138         ac_cv_lib_dl_dlopen=no
12139 fi
12140
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142       conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12144 fi
12145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12147 if test $ac_cv_lib_dl_dlopen = yes; then
12148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12149 else
12150
12151     lt_cv_dlopen="dyld"
12152     lt_cv_dlopen_libs=
12153     lt_cv_dlopen_self=yes
12154
12155 fi
12156
12157     ;;
12158
12159   *)
12160     { echo "$as_me:$LINENO: checking for shl_load" >&5
12161 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_shl_load+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12173 #define shl_load innocuous_shl_load
12174
12175 /* System header to define __stub macros and hopefully few prototypes,
12176     which can conflict with char shl_load (); below.
12177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178     <limits.h> exists even on freestanding compilers.  */
12179
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12185
12186 #undef shl_load
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189    Use char because int might match the return type of a GCC
12190    builtin and then its argument prototype would still apply.  */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char shl_load ();
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined __stub_shl_load || defined __stub___shl_load
12199 choke me
12200 #endif
12201
12202 int
12203 main ()
12204 {
12205 return shl_load ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_link") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } && {
12224          test -z "$ac_c_werror_flag" ||
12225          test ! -s conftest.err
12226        } && test -s conftest$ac_exeext &&
12227        $as_test_x conftest$ac_exeext; then
12228   ac_cv_func_shl_load=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         ac_cv_func_shl_load=no
12234 fi
12235
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237       conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12240 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12241 if test $ac_cv_func_shl_load = yes; then
12242   lt_cv_dlopen="shl_load"
12243 else
12244   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldld  $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char shl_load ();
12265 int
12266 main ()
12267 {
12268 return shl_load ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } && {
12287          test -z "$ac_c_werror_flag" ||
12288          test ! -s conftest.err
12289        } && test -s conftest$ac_exeext &&
12290        $as_test_x conftest$ac_exeext; then
12291   ac_cv_lib_dld_shl_load=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_lib_dld_shl_load=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300       conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12305 if test $ac_cv_lib_dld_shl_load = yes; then
12306   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12307 else
12308   { echo "$as_me:$LINENO: checking for dlopen" >&5
12309 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12310 if test "${ac_cv_func_dlopen+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12321 #define dlopen innocuous_dlopen
12322
12323 /* System header to define __stub macros and hopefully few prototypes,
12324     which can conflict with char dlopen (); below.
12325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326     <limits.h> exists even on freestanding compilers.  */
12327
12328 #ifdef __STDC__
12329 # include <limits.h>
12330 #else
12331 # include <assert.h>
12332 #endif
12333
12334 #undef dlopen
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char dlopen ();
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined __stub_dlopen || defined __stub___dlopen
12347 choke me
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 return dlopen ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_link") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } && {
12372          test -z "$ac_c_werror_flag" ||
12373          test ! -s conftest.err
12374        } && test -s conftest$ac_exeext &&
12375        $as_test_x conftest$ac_exeext; then
12376   ac_cv_func_dlopen=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         ac_cv_func_dlopen=no
12382 fi
12383
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385       conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12389 if test $ac_cv_func_dlopen = yes; then
12390   lt_cv_dlopen="dlopen"
12391 else
12392   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-ldl  $LIBS"
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407    Use char because int might match the return type of a GCC
12408    builtin and then its argument prototype would still apply.  */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char dlopen ();
12413 int
12414 main ()
12415 {
12416 return dlopen ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext &&
12438        $as_test_x conftest$ac_exeext; then
12439   ac_cv_lib_dl_dlopen=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_cv_lib_dl_dlopen=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448       conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12450 fi
12451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12453 if test $ac_cv_lib_dl_dlopen = yes; then
12454   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12455 else
12456   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lsvld  $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h.  */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h.  */
12469
12470 /* Override any GCC internal prototype to avoid an error.
12471    Use char because int might match the return type of a GCC
12472    builtin and then its argument prototype would still apply.  */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char dlopen ();
12477 int
12478 main ()
12479 {
12480 return dlopen ();
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492   (eval "$ac_link") 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } && {
12499          test -z "$ac_c_werror_flag" ||
12500          test ! -s conftest.err
12501        } && test -s conftest$ac_exeext &&
12502        $as_test_x conftest$ac_exeext; then
12503   ac_cv_lib_svld_dlopen=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         ac_cv_lib_svld_dlopen=no
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512       conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12519 else
12520   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ldld  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char dld_link ();
12541 int
12542 main ()
12543 {
12544 return dld_link ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_c_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest$ac_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   ac_cv_lib_dld_dld_link=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_dld_dld_link=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12581 if test $ac_cv_lib_dld_dld_link = yes; then
12582   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12583 fi
12584
12585
12586 fi
12587
12588
12589 fi
12590
12591
12592 fi
12593
12594
12595 fi
12596
12597
12598 fi
12599
12600     ;;
12601   esac
12602
12603   if test "x$lt_cv_dlopen" != xno; then
12604     enable_dlopen=yes
12605   else
12606     enable_dlopen=no
12607   fi
12608
12609   case $lt_cv_dlopen in
12610   dlopen)
12611     save_CPPFLAGS="$CPPFLAGS"
12612     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12613
12614     save_LDFLAGS="$LDFLAGS"
12615     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12616
12617     save_LIBS="$LIBS"
12618     LIBS="$lt_cv_dlopen_libs $LIBS"
12619
12620     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12622 if test "${lt_cv_dlopen_self+set}" = set; then
12623   echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625           if test "$cross_compiling" = yes; then :
12626   lt_cv_dlopen_self=cross
12627 else
12628   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629   lt_status=$lt_dlunknown
12630   cat > conftest.$ac_ext <<_LT_EOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12633
12634 #if HAVE_DLFCN_H
12635 #include <dlfcn.h>
12636 #endif
12637
12638 #include <stdio.h>
12639
12640 #ifdef RTLD_GLOBAL
12641 #  define LT_DLGLOBAL           RTLD_GLOBAL
12642 #else
12643 #  ifdef DL_GLOBAL
12644 #    define LT_DLGLOBAL         DL_GLOBAL
12645 #  else
12646 #    define LT_DLGLOBAL         0
12647 #  endif
12648 #endif
12649
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651    find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12653 #  ifdef RTLD_LAZY
12654 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12655 #  else
12656 #    ifdef DL_LAZY
12657 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12658 #    else
12659 #      ifdef RTLD_NOW
12660 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12661 #      else
12662 #        ifdef DL_NOW
12663 #          define LT_DLLAZY_OR_NOW      DL_NOW
12664 #        else
12665 #          define LT_DLLAZY_OR_NOW      0
12666 #        endif
12667 #      endif
12668 #    endif
12669 #  endif
12670 #endif
12671
12672 void fnord() { int i=42;}
12673 int main ()
12674 {
12675   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676   int status = $lt_dlunknown;
12677
12678   if (self)
12679     {
12680       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12681       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682       /* dlclose (self); */
12683     }
12684   else
12685     puts (dlerror ());
12686
12687   return status;
12688 }
12689 _LT_EOF
12690   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12695     (./conftest; exit; ) >&5 2>/dev/null
12696     lt_status=$?
12697     case x$lt_status in
12698       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12699       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12700       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12701     esac
12702   else :
12703     # compilation failed
12704     lt_cv_dlopen_self=no
12705   fi
12706 fi
12707 rm -fr conftest*
12708
12709
12710 fi
12711 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12713
12714     if test "x$lt_cv_dlopen_self" = xyes; then
12715       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12716       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12718 if test "${lt_cv_dlopen_self_static+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721           if test "$cross_compiling" = yes; then :
12722   lt_cv_dlopen_self_static=cross
12723 else
12724   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725   lt_status=$lt_dlunknown
12726   cat > conftest.$ac_ext <<_LT_EOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12729
12730 #if HAVE_DLFCN_H
12731 #include <dlfcn.h>
12732 #endif
12733
12734 #include <stdio.h>
12735
12736 #ifdef RTLD_GLOBAL
12737 #  define LT_DLGLOBAL           RTLD_GLOBAL
12738 #else
12739 #  ifdef DL_GLOBAL
12740 #    define LT_DLGLOBAL         DL_GLOBAL
12741 #  else
12742 #    define LT_DLGLOBAL         0
12743 #  endif
12744 #endif
12745
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747    find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12749 #  ifdef RTLD_LAZY
12750 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12751 #  else
12752 #    ifdef DL_LAZY
12753 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12754 #    else
12755 #      ifdef RTLD_NOW
12756 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12757 #      else
12758 #        ifdef DL_NOW
12759 #          define LT_DLLAZY_OR_NOW      DL_NOW
12760 #        else
12761 #          define LT_DLLAZY_OR_NOW      0
12762 #        endif
12763 #      endif
12764 #    endif
12765 #  endif
12766 #endif
12767
12768 void fnord() { int i=42;}
12769 int main ()
12770 {
12771   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772   int status = $lt_dlunknown;
12773
12774   if (self)
12775     {
12776       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12777       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778       /* dlclose (self); */
12779     }
12780   else
12781     puts (dlerror ());
12782
12783   return status;
12784 }
12785 _LT_EOF
12786   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787   (eval $ac_link) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12791     (./conftest; exit; ) >&5 2>/dev/null
12792     lt_status=$?
12793     case x$lt_status in
12794       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12795       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12796       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12797     esac
12798   else :
12799     # compilation failed
12800     lt_cv_dlopen_self_static=no
12801   fi
12802 fi
12803 rm -fr conftest*
12804
12805
12806 fi
12807 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12809     fi
12810
12811     CPPFLAGS="$save_CPPFLAGS"
12812     LDFLAGS="$save_LDFLAGS"
12813     LIBS="$save_LIBS"
12814     ;;
12815   esac
12816
12817   case $lt_cv_dlopen_self in
12818   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12819   *) enable_dlopen_self=unknown ;;
12820   esac
12821
12822   case $lt_cv_dlopen_self_static in
12823   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12824   *) enable_dlopen_self_static=unknown ;;
12825   esac
12826 fi
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 striplib=
12845 old_striplib=
12846 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12849   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12850   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12851   { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12853 else
12854 # FIXME - insert some real tests, host_os isn't really good enough
12855   case $host_os in
12856   darwin*)
12857     if test -n "$STRIP" ; then
12858       striplib="$STRIP -x"
12859       old_striplib="$STRIP -S"
12860       { echo "$as_me:$LINENO: result: yes" >&5
12861 echo "${ECHO_T}yes" >&6; }
12862     else
12863       { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865     fi
12866     ;;
12867   *)
12868     { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12870     ;;
12871   esac
12872 fi
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885   # Report which library types will actually be built
12886   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12888   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12889 echo "${ECHO_T}$can_build_shared" >&6; }
12890
12891   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12893   test "$can_build_shared" = "no" && enable_shared=no
12894
12895   # On AIX, shared libraries and static libraries use the same namespace, and
12896   # are all built from PIC.
12897   case $host_os in
12898   aix3*)
12899     test "$enable_shared" = yes && enable_static=no
12900     if test -n "$RANLIB"; then
12901       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12902       postinstall_cmds='$RANLIB $lib'
12903     fi
12904     ;;
12905
12906   aix[4-9]*)
12907     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12908       test "$enable_shared" = yes && enable_static=no
12909     fi
12910     ;;
12911   esac
12912   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12913 echo "${ECHO_T}$enable_shared" >&6; }
12914
12915   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12917   # Make sure either enable_shared or enable_static is yes.
12918   test "$enable_shared" = yes || enable_static=yes
12919   { echo "$as_me:$LINENO: result: $enable_static" >&5
12920 echo "${ECHO_T}$enable_static" >&6; }
12921
12922
12923
12924
12925 fi
12926 ac_ext=c
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931
12932 CC="$lt_save_CC"
12933
12934
12935 ac_ext=cpp
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12940
12941 archive_cmds_need_lc_CXX=no
12942 allow_undefined_flag_CXX=
12943 always_export_symbols_CXX=no
12944 archive_expsym_cmds_CXX=
12945 compiler_needs_object_CXX=no
12946 export_dynamic_flag_spec_CXX=
12947 hardcode_direct_CXX=no
12948 hardcode_direct_absolute_CXX=no
12949 hardcode_libdir_flag_spec_CXX=
12950 hardcode_libdir_flag_spec_ld_CXX=
12951 hardcode_libdir_separator_CXX=
12952 hardcode_minus_L_CXX=no
12953 hardcode_shlibpath_var_CXX=unsupported
12954 hardcode_automatic_CXX=no
12955 inherit_rpath_CXX=no
12956 module_cmds_CXX=
12957 module_expsym_cmds_CXX=
12958 link_all_deplibs_CXX=unknown
12959 old_archive_cmds_CXX=$old_archive_cmds
12960 no_undefined_flag_CXX=
12961 whole_archive_flag_spec_CXX=
12962 enable_shared_with_static_runtimes_CXX=no
12963
12964 # Source file extension for C++ test sources.
12965 ac_ext=cpp
12966
12967 # Object file extension for compiled C++ test sources.
12968 objext=o
12969 objext_CXX=$objext
12970
12971 # No sense in running all these tests if we already determined that
12972 # the CXX compiler isn't working.  Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_caught_CXX_error" != yes; then
12976   # Code to be used in simple compile tests
12977   lt_simple_compile_test_code="int some_variable = 0;"
12978
12979   # Code to be used in simple link tests
12980   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12981
12982   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12983
12984
12985
12986
12987
12988
12989 # If no C compiler was specified, use CC.
12990 LTCC=${LTCC-"$CC"}
12991
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12994
12995 # Allow CC to be a program name with arguments.
12996 compiler=$CC
12997
12998
12999   # save warnings/boilerplate of simple test code
13000   ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13004 $RM conftest*
13005
13006   ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13010 $RM -r conftest*
13011
13012
13013   # Allow CC to be a program name with arguments.
13014   lt_save_CC=$CC
13015   lt_save_LD=$LD
13016   lt_save_GCC=$GCC
13017   GCC=$GXX
13018   lt_save_with_gnu_ld=$with_gnu_ld
13019   lt_save_path_LD=$lt_cv_path_LD
13020   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13021     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13022   else
13023     $as_unset lt_cv_prog_gnu_ld
13024   fi
13025   if test -n "${lt_cv_path_LDCXX+set}"; then
13026     lt_cv_path_LD=$lt_cv_path_LDCXX
13027   else
13028     $as_unset lt_cv_path_LD
13029   fi
13030   test -z "${LDCXX+set}" || LD=$LDCXX
13031   CC=${CXX-"c++"}
13032   compiler=$CC
13033   compiler_CXX=$CC
13034   for cc_temp in $compiler""; do
13035   case $cc_temp in
13036     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13037     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13038     \-*) ;;
13039     *) break;;
13040   esac
13041 done
13042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13043
13044
13045   if test -n "$compiler"; then
13046     # We don't want -fno-exception when compiling C++ code, so set the
13047     # no_builtin_flag separately
13048     if test "$GXX" = yes; then
13049       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13050     else
13051       lt_prog_compiler_no_builtin_flag_CXX=
13052     fi
13053
13054     if test "$GXX" = yes; then
13055       # Set up default GNU C++ configuration
13056
13057
13058
13059 # Check whether --with-gnu-ld was given.
13060 if test "${with_gnu_ld+set}" = set; then
13061   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13062 else
13063   with_gnu_ld=no
13064 fi
13065
13066 ac_prog=ld
13067 if test "$GCC" = yes; then
13068   # Check if gcc -print-prog-name=ld gives a path.
13069   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13071   case $host in
13072   *-*-mingw*)
13073     # gcc leaves a trailing carriage return which upsets mingw
13074     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13075   *)
13076     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13077   esac
13078   case $ac_prog in
13079     # Accept absolute paths.
13080     [\\/]* | ?:[\\/]*)
13081       re_direlt='/[^/][^/]*/\.\./'
13082       # Canonicalize the pathname of ld
13083       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13084       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13085         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13086       done
13087       test -z "$LD" && LD="$ac_prog"
13088       ;;
13089   "")
13090     # If it fails, then pretend we aren't using GCC.
13091     ac_prog=ld
13092     ;;
13093   *)
13094     # If it is relative, then search for the first ld in PATH.
13095     with_gnu_ld=unknown
13096     ;;
13097   esac
13098 elif test "$with_gnu_ld" = yes; then
13099   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13101 else
13102   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13104 fi
13105 if test "${lt_cv_path_LD+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   if test -z "$LD"; then
13109   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13110   for ac_dir in $PATH; do
13111     IFS="$lt_save_ifs"
13112     test -z "$ac_dir" && ac_dir=.
13113     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13114       lt_cv_path_LD="$ac_dir/$ac_prog"
13115       # Check to see if the program is GNU ld.  I'd rather use --version,
13116       # but apparently some variants of GNU ld only accept -v.
13117       # Break only if it was the GNU/non-GNU ld that we prefer.
13118       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13119       *GNU* | *'with BFD'*)
13120         test "$with_gnu_ld" != no && break
13121         ;;
13122       *)
13123         test "$with_gnu_ld" != yes && break
13124         ;;
13125       esac
13126     fi
13127   done
13128   IFS="$lt_save_ifs"
13129 else
13130   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13131 fi
13132 fi
13133
13134 LD="$lt_cv_path_LD"
13135 if test -n "$LD"; then
13136   { echo "$as_me:$LINENO: result: $LD" >&5
13137 echo "${ECHO_T}$LD" >&6; }
13138 else
13139   { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13141 fi
13142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13144    { (exit 1); exit 1; }; }
13145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13151 case `$LD -v 2>&1 </dev/null` in
13152 *GNU* | *'with BFD'*)
13153   lt_cv_prog_gnu_ld=yes
13154   ;;
13155 *)
13156   lt_cv_prog_gnu_ld=no
13157   ;;
13158 esac
13159 fi
13160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13162 with_gnu_ld=$lt_cv_prog_gnu_ld
13163
13164
13165
13166
13167
13168
13169
13170       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13171       # archiving commands below assume that GNU ld is being used.
13172       if test "$with_gnu_ld" = yes; then
13173         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174         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'
13175
13176         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13178
13179         # If archive_cmds runs LD, not CC, wlarc should be empty
13180         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13181         #     investigate it a little bit more. (MM)
13182         wlarc='${wl}'
13183
13184         # ancient GNU ld didn't support --whole-archive et. al.
13185         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13186           $GREP 'no-whole-archive' > /dev/null; then
13187           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13188         else
13189           whole_archive_flag_spec_CXX=
13190         fi
13191       else
13192         with_gnu_ld=no
13193         wlarc=
13194
13195         # A generic and very simple default shared library creation
13196         # command for GNU C++ for the case where it uses the native
13197         # linker, instead of GNU ld.  If possible, this setting should
13198         # overridden to take advantage of the native linker features on
13199         # the platform it is being used on.
13200         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13201       fi
13202
13203       # Commands to make compiler produce verbose output that lists
13204       # what "hidden" libraries, object files and flags are used when
13205       # linking a shared library.
13206       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13207
13208     else
13209       GXX=no
13210       with_gnu_ld=no
13211       wlarc=
13212     fi
13213
13214     # PORTME: fill in a description of your system's C++ link characteristics
13215     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13217     ld_shlibs_CXX=yes
13218     case $host_os in
13219       aix3*)
13220         # FIXME: insert proper C++ library support
13221         ld_shlibs_CXX=no
13222         ;;
13223       aix[4-9]*)
13224         if test "$host_cpu" = ia64; then
13225           # On IA64, the linker does run time linking by default, so we don't
13226           # have to do anything special.
13227           aix_use_runtimelinking=no
13228           exp_sym_flag='-Bexport'
13229           no_entry_flag=""
13230         else
13231           aix_use_runtimelinking=no
13232
13233           # Test if we are trying to use run time linking or normal
13234           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235           # need to do runtime linking.
13236           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237             for ld_flag in $LDFLAGS; do
13238               case $ld_flag in
13239               *-brtl*)
13240                 aix_use_runtimelinking=yes
13241                 break
13242                 ;;
13243               esac
13244             done
13245             ;;
13246           esac
13247
13248           exp_sym_flag='-bexport'
13249           no_entry_flag='-bnoentry'
13250         fi
13251
13252         # When large executables or shared objects are built, AIX ld can
13253         # have problems creating the table of contents.  If linking a library
13254         # or program results in "error TOC overflow" add -mminimal-toc to
13255         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13256         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13257
13258         archive_cmds_CXX=''
13259         hardcode_direct_CXX=yes
13260         hardcode_direct_absolute_CXX=yes
13261         hardcode_libdir_separator_CXX=':'
13262         link_all_deplibs_CXX=yes
13263         file_list_spec_CXX='${wl}-f,'
13264
13265         if test "$GXX" = yes; then
13266           case $host_os in aix4.[012]|aix4.[012].*)
13267           # We only want to do this on AIX 4.2 and lower, the check
13268           # below for broken collect2 doesn't work under 4.3+
13269           collect2name=`${CC} -print-prog-name=collect2`
13270           if test -f "$collect2name" &&
13271              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13272           then
13273             # We have reworked collect2
13274             :
13275           else
13276             # We have old collect2
13277             hardcode_direct_CXX=unsupported
13278             # It fails to find uninstalled libraries when the uninstalled
13279             # path is not listed in the libpath.  Setting hardcode_minus_L
13280             # to unsupported forces relinking
13281             hardcode_minus_L_CXX=yes
13282             hardcode_libdir_flag_spec_CXX='-L$libdir'
13283             hardcode_libdir_separator_CXX=
13284           fi
13285           esac
13286           shared_flag='-shared'
13287           if test "$aix_use_runtimelinking" = yes; then
13288             shared_flag="$shared_flag "'${wl}-G'
13289           fi
13290         else
13291           # not using gcc
13292           if test "$host_cpu" = ia64; then
13293           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13294           # chokes on -Wl,-G. The following line is correct:
13295           shared_flag='-G'
13296           else
13297             if test "$aix_use_runtimelinking" = yes; then
13298               shared_flag='${wl}-G'
13299             else
13300               shared_flag='${wl}-bM:SRE'
13301             fi
13302           fi
13303         fi
13304
13305         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13306         # It seems that -bexpall does not export symbols beginning with
13307         # underscore (_), so it is better to generate a list of symbols to
13308         # export.
13309         always_export_symbols_CXX=yes
13310         if test "$aix_use_runtimelinking" = yes; then
13311           # Warning - without using the other runtime loading flags (-brtl),
13312           # -berok will link without error, but may produce a broken library.
13313           allow_undefined_flag_CXX='-berok'
13314           # Determine the default libpath from the value encoded in an empty
13315           # executable.
13316           cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322
13323 int
13324 main ()
13325 {
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_link") 2>conftest.er1
13339   ac_status=$?
13340   grep -v '^ *+' conftest.er1 >conftest.err
13341   rm -f conftest.er1
13342   cat conftest.err >&5
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); } && {
13345          test -z "$ac_cxx_werror_flag" ||
13346          test ! -s conftest.err
13347        } && test -s conftest$ac_exeext &&
13348        $as_test_x conftest$ac_exeext; then
13349
13350 lt_aix_libpath_sed='
13351     /Import File Strings/,/^$/ {
13352         /^0/ {
13353             s/^0  *\(.*\)$/\1/
13354             p
13355         }
13356     }'
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361 fi
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370       conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13372
13373           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13374
13375           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"
13376         else
13377           if test "$host_cpu" = ia64; then
13378             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379             allow_undefined_flag_CXX="-z nodefs"
13380             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"
13381           else
13382             # Determine the default libpath from the value encoded in an
13383             # empty executable.
13384             cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390
13391 int
13392 main ()
13393 {
13394
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406   (eval "$ac_link") 2>conftest.er1
13407   ac_status=$?
13408   grep -v '^ *+' conftest.er1 >conftest.err
13409   rm -f conftest.er1
13410   cat conftest.err >&5
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); } && {
13413          test -z "$ac_cxx_werror_flag" ||
13414          test ! -s conftest.err
13415        } && test -s conftest$ac_exeext &&
13416        $as_test_x conftest$ac_exeext; then
13417
13418 lt_aix_libpath_sed='
13419     /Import File Strings/,/^$/ {
13420         /^0/ {
13421             s/^0  *\(.*\)$/\1/
13422             p
13423         }
13424     }'
13425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$aix_libpath"; then
13428   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13429 fi
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434
13435 fi
13436
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438       conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13440
13441             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442             # Warning - without using the other run time loading flags,
13443             # -berok will link without error, but may produce a broken library.
13444             no_undefined_flag_CXX=' ${wl}-bernotok'
13445             allow_undefined_flag_CXX=' ${wl}-berok'
13446             # Exported symbols can be pulled into shared objects from archives
13447             whole_archive_flag_spec_CXX='$convenience'
13448             archive_cmds_need_lc_CXX=yes
13449             # This is similar to how AIX traditionally builds its shared
13450             # libraries.
13451             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'
13452           fi
13453         fi
13454         ;;
13455
13456       beos*)
13457         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13458           allow_undefined_flag_CXX=unsupported
13459           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13460           # support --undefined.  This deserves some investigation.  FIXME
13461           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462         else
13463           ld_shlibs_CXX=no
13464         fi
13465         ;;
13466
13467       chorus*)
13468         case $cc_basename in
13469           *)
13470           # FIXME: insert proper C++ library support
13471           ld_shlibs_CXX=no
13472           ;;
13473         esac
13474         ;;
13475
13476       cygwin* | mingw* | pw32* | cegcc*)
13477         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13478         # as there is no search path for DLLs.
13479         hardcode_libdir_flag_spec_CXX='-L$libdir'
13480         allow_undefined_flag_CXX=unsupported
13481         always_export_symbols_CXX=no
13482         enable_shared_with_static_runtimes_CXX=yes
13483
13484         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485           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'
13486           # If the export-symbols file already is a .def file (1st line
13487           # is EXPORTS), use it as is; otherwise, prepend...
13488           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489             cp $export_symbols $output_objdir/$soname.def;
13490           else
13491             echo EXPORTS > $output_objdir/$soname.def;
13492             cat $export_symbols >> $output_objdir/$soname.def;
13493           fi~
13494           $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'
13495         else
13496           ld_shlibs_CXX=no
13497         fi
13498         ;;
13499       darwin* | rhapsody*)
13500
13501
13502   archive_cmds_need_lc_CXX=no
13503   hardcode_direct_CXX=no
13504   hardcode_automatic_CXX=yes
13505   hardcode_shlibpath_var_CXX=unsupported
13506   whole_archive_flag_spec_CXX=''
13507   link_all_deplibs_CXX=yes
13508   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13509   case $cc_basename in
13510      ifort*) _lt_dar_can_shared=yes ;;
13511      *) _lt_dar_can_shared=$GCC ;;
13512   esac
13513   if test "$_lt_dar_can_shared" = "yes"; then
13514     output_verbose_link_cmd=echo
13515     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}"
13516     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13517     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}"
13518     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}"
13519        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13520       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}"
13521       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}"
13522     fi
13523
13524   else
13525   ld_shlibs_CXX=no
13526   fi
13527
13528         ;;
13529
13530       dgux*)
13531         case $cc_basename in
13532           ec++*)
13533             # FIXME: insert proper C++ library support
13534             ld_shlibs_CXX=no
13535             ;;
13536           ghcx*)
13537             # Green Hills C++ Compiler
13538             # FIXME: insert proper C++ library support
13539             ld_shlibs_CXX=no
13540             ;;
13541           *)
13542             # FIXME: insert proper C++ library support
13543             ld_shlibs_CXX=no
13544             ;;
13545         esac
13546         ;;
13547
13548       freebsd[12]*)
13549         # C++ shared libraries reported to be fairly broken before
13550         # switch to ELF
13551         ld_shlibs_CXX=no
13552         ;;
13553
13554       freebsd-elf*)
13555         archive_cmds_need_lc_CXX=no
13556         ;;
13557
13558       freebsd* | dragonfly*)
13559         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13560         # conventions
13561         ld_shlibs_CXX=yes
13562         ;;
13563
13564       gnu*)
13565         ;;
13566
13567       hpux9*)
13568         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13569         hardcode_libdir_separator_CXX=:
13570         export_dynamic_flag_spec_CXX='${wl}-E'
13571         hardcode_direct_CXX=yes
13572         hardcode_minus_L_CXX=yes # Not in the search PATH,
13573                                              # but as the default
13574                                              # location of the library.
13575
13576         case $cc_basename in
13577           CC*)
13578             # FIXME: insert proper C++ library support
13579             ld_shlibs_CXX=no
13580             ;;
13581           aCC*)
13582             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'
13583             # Commands to make compiler produce verbose output that lists
13584             # what "hidden" libraries, object files and flags are used when
13585             # linking a shared library.
13586             #
13587             # There doesn't appear to be a way to prevent this compiler from
13588             # explicitly linking system object files so we need to strip them
13589             # from the output so that they don't get included in the library
13590             # dependencies.
13591             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'
13592             ;;
13593           *)
13594             if test "$GXX" = yes; then
13595               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'
13596             else
13597               # FIXME: insert proper C++ library support
13598               ld_shlibs_CXX=no
13599             fi
13600             ;;
13601         esac
13602         ;;
13603
13604       hpux10*|hpux11*)
13605         if test $with_gnu_ld = no; then
13606           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13607           hardcode_libdir_separator_CXX=:
13608
13609           case $host_cpu in
13610             hppa*64*|ia64*)
13611               ;;
13612             *)
13613               export_dynamic_flag_spec_CXX='${wl}-E'
13614               ;;
13615           esac
13616         fi
13617         case $host_cpu in
13618           hppa*64*|ia64*)
13619             hardcode_direct_CXX=no
13620             hardcode_shlibpath_var_CXX=no
13621             ;;
13622           *)
13623             hardcode_direct_CXX=yes
13624             hardcode_direct_absolute_CXX=yes
13625             hardcode_minus_L_CXX=yes # Not in the search PATH,
13626                                                  # but as the default
13627                                                  # location of the library.
13628             ;;
13629         esac
13630
13631         case $cc_basename in
13632           CC*)
13633             # FIXME: insert proper C++ library support
13634             ld_shlibs_CXX=no
13635             ;;
13636           aCC*)
13637             case $host_cpu in
13638               hppa*64*)
13639                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13640                 ;;
13641               ia64*)
13642                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13643                 ;;
13644               *)
13645                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646                 ;;
13647             esac
13648             # Commands to make compiler produce verbose output that lists
13649             # what "hidden" libraries, object files and flags are used when
13650             # linking a shared library.
13651             #
13652             # There doesn't appear to be a way to prevent this compiler from
13653             # explicitly linking system object files so we need to strip them
13654             # from the output so that they don't get included in the library
13655             # dependencies.
13656             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'
13657             ;;
13658           *)
13659             if test "$GXX" = yes; then
13660               if test $with_gnu_ld = no; then
13661                 case $host_cpu in
13662                   hppa*64*)
13663                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13664                     ;;
13665                   ia64*)
13666                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13667                     ;;
13668                   *)
13669                     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'
13670                     ;;
13671                 esac
13672               fi
13673             else
13674               # FIXME: insert proper C++ library support
13675               ld_shlibs_CXX=no
13676             fi
13677             ;;
13678         esac
13679         ;;
13680
13681       interix[3-9]*)
13682         hardcode_direct_CXX=no
13683         hardcode_shlibpath_var_CXX=no
13684         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685         export_dynamic_flag_spec_CXX='${wl}-E'
13686         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13687         # Instead, shared libraries are loaded at an image base (0x10000000 by
13688         # default) and relocated if they conflict, which is a slow very memory
13689         # consuming and fragmenting process.  To avoid this, we pick a random,
13690         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13691         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13692         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'
13693         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'
13694         ;;
13695       irix5* | irix6*)
13696         case $cc_basename in
13697           CC*)
13698             # SGI C++
13699             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'
13700
13701             # Archives containing C++ object files must be created using
13702             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13703             # necessary to make sure instantiated templates are included
13704             # in the archive.
13705             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13706             ;;
13707           *)
13708             if test "$GXX" = yes; then
13709               if test "$with_gnu_ld" = no; then
13710                 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'
13711               else
13712                 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'
13713               fi
13714             fi
13715             link_all_deplibs_CXX=yes
13716             ;;
13717         esac
13718         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13719         hardcode_libdir_separator_CXX=:
13720         inherit_rpath_CXX=yes
13721         ;;
13722
13723       linux* | k*bsd*-gnu)
13724         case $cc_basename in
13725           KCC*)
13726             # Kuck and Associates, Inc. (KAI) C++ Compiler
13727
13728             # KCC will only create a shared library if the output file
13729             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13730             # to its proper name (with version) after linking.
13731             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'
13732             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'
13733             # Commands to make compiler produce verbose output that lists
13734             # what "hidden" libraries, object files and flags are used when
13735             # linking a shared library.
13736             #
13737             # There doesn't appear to be a way to prevent this compiler from
13738             # explicitly linking system object files so we need to strip them
13739             # from the output so that they don't get included in the library
13740             # dependencies.
13741             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'
13742
13743             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13745
13746             # Archives containing C++ object files must be created using
13747             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13748             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13749             ;;
13750           icpc* | ecpc* )
13751             # Intel C++
13752             with_gnu_ld=yes
13753             # version 8.0 and above of icpc choke on multiply defined symbols
13754             # if we add $predep_objects and $postdep_objects, however 7.1 and
13755             # earlier do not add the objects themselves.
13756             case `$CC -V 2>&1` in
13757               *"Version 7."*)
13758                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759                 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'
13760                 ;;
13761               *)  # Version 8.0 or newer
13762                 tmp_idyn=
13763                 case $host_cpu in
13764                   ia64*) tmp_idyn=' -i_dynamic';;
13765                 esac
13766                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767                 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'
13768                 ;;
13769             esac
13770             archive_cmds_need_lc_CXX=no
13771             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13773             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13774             ;;
13775           pgCC* | pgcpp*)
13776             # Portland Group C++ compiler
13777             case `$CC -V` in
13778             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13779               prelink_cmds_CXX='tpldir=Template.dir~
13780                 rm -rf $tpldir~
13781                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13782                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13783               old_archive_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13786                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13787                 $RANLIB $oldlib'
13788               archive_cmds_CXX='tpldir=Template.dir~
13789                 rm -rf $tpldir~
13790                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13791                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13792               archive_expsym_cmds_CXX='tpldir=Template.dir~
13793                 rm -rf $tpldir~
13794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795                 $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'
13796               ;;
13797             *) # Version 6 will use weak symbols
13798               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13799               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'
13800               ;;
13801             esac
13802
13803             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13804             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805             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'
13806             ;;
13807           cxx*)
13808             # Compaq C++
13809             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810             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'
13811
13812             runpath_var=LD_RUN_PATH
13813             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13814             hardcode_libdir_separator_CXX=:
13815
13816             # Commands to make compiler produce verbose output that lists
13817             # what "hidden" libraries, object files and flags are used when
13818             # linking a shared library.
13819             #
13820             # There doesn't appear to be a way to prevent this compiler from
13821             # explicitly linking system object files so we need to strip them
13822             # from the output so that they don't get included in the library
13823             # dependencies.
13824             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'
13825             ;;
13826           xl*)
13827             # IBM XL 8.0 on PPC, with GNU ld
13828             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831             if test "x$supports_anon_versioning" = xyes; then
13832               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13833                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13834                 echo "local: *; };" >> $output_objdir/$libname.ver~
13835                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13836             fi
13837             ;;
13838           *)
13839             case `$CC -V 2>&1 | sed 5q` in
13840             *Sun\ C*)
13841               # Sun C++ 5.9
13842               no_undefined_flag_CXX=' -zdefs'
13843               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844               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'
13845               hardcode_libdir_flag_spec_CXX='-R$libdir'
13846               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'
13847               compiler_needs_object_CXX=yes
13848
13849               # Not sure whether something based on
13850               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13851               # would be better.
13852               output_verbose_link_cmd='echo'
13853
13854               # Archives containing C++ object files must be created using
13855               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13856               # necessary to make sure instantiated templates are included
13857               # in the archive.
13858               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13859               ;;
13860             esac
13861             ;;
13862         esac
13863         ;;
13864
13865       lynxos*)
13866         # FIXME: insert proper C++ library support
13867         ld_shlibs_CXX=no
13868         ;;
13869
13870       m88k*)
13871         # FIXME: insert proper C++ library support
13872         ld_shlibs_CXX=no
13873         ;;
13874
13875       mvs*)
13876         case $cc_basename in
13877           cxx*)
13878             # FIXME: insert proper C++ library support
13879             ld_shlibs_CXX=no
13880             ;;
13881           *)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885         esac
13886         ;;
13887
13888       netbsd*)
13889         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13890           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13891           wlarc=
13892           hardcode_libdir_flag_spec_CXX='-R$libdir'
13893           hardcode_direct_CXX=yes
13894           hardcode_shlibpath_var_CXX=no
13895         fi
13896         # Workaround some broken pre-1.5 toolchains
13897         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13898         ;;
13899
13900       *nto* | *qnx*)
13901         ld_shlibs_CXX=yes
13902         ;;
13903
13904       openbsd2*)
13905         # C++ shared libraries are fairly broken
13906         ld_shlibs_CXX=no
13907         ;;
13908
13909       openbsd*)
13910         if test -f /usr/libexec/ld.so; then
13911           hardcode_direct_CXX=yes
13912           hardcode_shlibpath_var_CXX=no
13913           hardcode_direct_absolute_CXX=yes
13914           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13915           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13917             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13918             export_dynamic_flag_spec_CXX='${wl}-E'
13919             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13920           fi
13921           output_verbose_link_cmd=echo
13922         else
13923           ld_shlibs_CXX=no
13924         fi
13925         ;;
13926
13927       osf3* | osf4* | osf5*)
13928         case $cc_basename in
13929           KCC*)
13930             # Kuck and Associates, Inc. (KAI) C++ Compiler
13931
13932             # KCC will only create a shared library if the output file
13933             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934             # to its proper name (with version) after linking.
13935             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'
13936
13937             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938             hardcode_libdir_separator_CXX=:
13939
13940             # Archives containing C++ object files must be created using
13941             # the KAI C++ compiler.
13942             case $host in
13943               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13944               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13945             esac
13946             ;;
13947           RCC*)
13948             # Rational C++ 2.4.1
13949             # FIXME: insert proper C++ library support
13950             ld_shlibs_CXX=no
13951             ;;
13952           cxx*)
13953             case $host in
13954               osf3*)
13955                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13956                 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'
13957                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13958                 ;;
13959               *)
13960                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13961                 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'
13962                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13963                   echo "-hidden">> $lib.exp~
13964                   $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~
13965                   $RM $lib.exp'
13966                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13967                 ;;
13968             esac
13969
13970             hardcode_libdir_separator_CXX=:
13971
13972             # Commands to make compiler produce verbose output that lists
13973             # what "hidden" libraries, object files and flags are used when
13974             # linking a shared library.
13975             #
13976             # There doesn't appear to be a way to prevent this compiler from
13977             # explicitly linking system object files so we need to strip them
13978             # from the output so that they don't get included in the library
13979             # dependencies.
13980             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'
13981             ;;
13982           *)
13983             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13985               case $host in
13986                 osf3*)
13987                   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'
13988                   ;;
13989                 *)
13990                   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'
13991                   ;;
13992               esac
13993
13994               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995               hardcode_libdir_separator_CXX=:
13996
13997               # Commands to make compiler produce verbose output that lists
13998               # what "hidden" libraries, object files and flags are used when
13999               # linking a shared library.
14000               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14001
14002             else
14003               # FIXME: insert proper C++ library support
14004               ld_shlibs_CXX=no
14005             fi
14006             ;;
14007         esac
14008         ;;
14009
14010       psos*)
14011         # FIXME: insert proper C++ library support
14012         ld_shlibs_CXX=no
14013         ;;
14014
14015       sunos4*)
14016         case $cc_basename in
14017           CC*)
14018             # Sun C++ 4.x
14019             # FIXME: insert proper C++ library support
14020             ld_shlibs_CXX=no
14021             ;;
14022           lcc*)
14023             # Lucid
14024             # FIXME: insert proper C++ library support
14025             ld_shlibs_CXX=no
14026             ;;
14027           *)
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031         esac
14032         ;;
14033
14034       solaris*)
14035         case $cc_basename in
14036           CC*)
14037             # Sun C++ 4.2, 5.x and Centerline C++
14038             archive_cmds_need_lc_CXX=yes
14039             no_undefined_flag_CXX=' -zdefs'
14040             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14042               $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'
14043
14044             hardcode_libdir_flag_spec_CXX='-R$libdir'
14045             hardcode_shlibpath_var_CXX=no
14046             case $host_os in
14047               solaris2.[0-5] | solaris2.[0-5].*) ;;
14048               *)
14049                 # The compiler driver will combine and reorder linker options,
14050                 # but understands `-z linker_flag'.
14051                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14052                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14053                 ;;
14054             esac
14055             link_all_deplibs_CXX=yes
14056
14057             output_verbose_link_cmd='echo'
14058
14059             # Archives containing C++ object files must be created using
14060             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14061             # necessary to make sure instantiated templates are included
14062             # in the archive.
14063             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14064             ;;
14065           gcx*)
14066             # Green Hills C++ Compiler
14067             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14068
14069             # The C++ compiler must be used to create the archive.
14070             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14071             ;;
14072           *)
14073             # GNU C++ compiler with Solaris linker
14074             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14075               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14076               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14077                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14080
14081                 # Commands to make compiler produce verbose output that lists
14082                 # what "hidden" libraries, object files and flags are used when
14083                 # linking a shared library.
14084                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14085               else
14086                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14087                 # platform.
14088                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14089                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14091
14092                 # Commands to make compiler produce verbose output that lists
14093                 # what "hidden" libraries, object files and flags are used when
14094                 # linking a shared library.
14095                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14096               fi
14097
14098               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14099               case $host_os in
14100                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14101                 *)
14102                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14103                   ;;
14104               esac
14105             fi
14106             ;;
14107         esac
14108         ;;
14109
14110     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14111       no_undefined_flag_CXX='${wl}-z,text'
14112       archive_cmds_need_lc_CXX=no
14113       hardcode_shlibpath_var_CXX=no
14114       runpath_var='LD_RUN_PATH'
14115
14116       case $cc_basename in
14117         CC*)
14118           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14120           ;;
14121         *)
14122           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           ;;
14125       esac
14126       ;;
14127
14128       sysv5* | sco3.2v5* | sco5v6*)
14129         # Note: We can NOT use -z defs as we might desire, because we do not
14130         # link with -lc, and that would cause any symbols used from libc to
14131         # always be unresolved, which means just about no library would
14132         # ever link correctly.  If we're not using GNU ld we use -z text
14133         # though, which does catch some bad symbols but isn't as heavy-handed
14134         # as -z defs.
14135         no_undefined_flag_CXX='${wl}-z,text'
14136         allow_undefined_flag_CXX='${wl}-z,nodefs'
14137         archive_cmds_need_lc_CXX=no
14138         hardcode_shlibpath_var_CXX=no
14139         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14140         hardcode_libdir_separator_CXX=':'
14141         link_all_deplibs_CXX=yes
14142         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14143         runpath_var='LD_RUN_PATH'
14144
14145         case $cc_basename in
14146           CC*)
14147             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14149             ;;
14150           *)
14151             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             ;;
14154         esac
14155       ;;
14156
14157       tandem*)
14158         case $cc_basename in
14159           NCC*)
14160             # NonStop-UX NCC 3.20
14161             # FIXME: insert proper C++ library support
14162             ld_shlibs_CXX=no
14163             ;;
14164           *)
14165             # FIXME: insert proper C++ library support
14166             ld_shlibs_CXX=no
14167             ;;
14168         esac
14169         ;;
14170
14171       vxworks*)
14172         # FIXME: insert proper C++ library support
14173         ld_shlibs_CXX=no
14174         ;;
14175
14176       *)
14177         # FIXME: insert proper C++ library support
14178         ld_shlibs_CXX=no
14179         ;;
14180     esac
14181
14182     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184     test "$ld_shlibs_CXX" = no && can_build_shared=no
14185
14186     GCC_CXX="$GXX"
14187     LD_CXX="$LD"
14188
14189     ## CAVEAT EMPTOR:
14190     ## There is no encapsulation within the following macros, do not change
14191     ## the running order or otherwise move them around unless you know exactly
14192     ## what you are doing...
14193     # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14196 predeps_CXX=
14197 postdeps_CXX=
14198 compiler_lib_search_path_CXX=
14199
14200 cat > conftest.$ac_ext <<_LT_EOF
14201 class Foo
14202 {
14203 public:
14204   Foo (void) { a = 0; }
14205 private:
14206   int a;
14207 };
14208 _LT_EOF
14209
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211   (eval $ac_compile) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; then
14215   # Parse the compiler output and extract the necessary
14216   # objects, libraries and library flags.
14217
14218   # Sentinel used to keep track of whether or not we are before
14219   # the conftest object file.
14220   pre_test_object_deps_done=no
14221
14222   for p in `eval "$output_verbose_link_cmd"`; do
14223     case $p in
14224
14225     -L* | -R* | -l*)
14226        # Some compilers place space between "-{L,R}" and the path.
14227        # Remove the space.
14228        if test $p = "-L" ||
14229           test $p = "-R"; then
14230          prev=$p
14231          continue
14232        else
14233          prev=
14234        fi
14235
14236        if test "$pre_test_object_deps_done" = no; then
14237          case $p in
14238          -L* | -R*)
14239            # Internal compiler library paths should come after those
14240            # provided the user.  The postdeps already come after the
14241            # user supplied libs so there is no need to process them.
14242            if test -z "$compiler_lib_search_path_CXX"; then
14243              compiler_lib_search_path_CXX="${prev}${p}"
14244            else
14245              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14246            fi
14247            ;;
14248          # The "-l" case would never come before the object being
14249          # linked, so don't bother handling this case.
14250          esac
14251        else
14252          if test -z "$postdeps_CXX"; then
14253            postdeps_CXX="${prev}${p}"
14254          else
14255            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14256          fi
14257        fi
14258        ;;
14259
14260     *.$objext)
14261        # This assumes that the test object file only shows up
14262        # once in the compiler output.
14263        if test "$p" = "conftest.$objext"; then
14264          pre_test_object_deps_done=yes
14265          continue
14266        fi
14267
14268        if test "$pre_test_object_deps_done" = no; then
14269          if test -z "$predep_objects_CXX"; then
14270            predep_objects_CXX="$p"
14271          else
14272            predep_objects_CXX="$predep_objects_CXX $p"
14273          fi
14274        else
14275          if test -z "$postdep_objects_CXX"; then
14276            postdep_objects_CXX="$p"
14277          else
14278            postdep_objects_CXX="$postdep_objects_CXX $p"
14279          fi
14280        fi
14281        ;;
14282
14283     *) ;; # Ignore the rest.
14284
14285     esac
14286   done
14287
14288   # Clean up.
14289   rm -f a.out a.exe
14290 else
14291   echo "libtool.m4: error: problem compiling CXX test program"
14292 fi
14293
14294 $RM -f confest.$objext
14295
14296 # PORTME: override above test on systems where it is broken
14297 case $host_os in
14298 interix[3-9]*)
14299   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300   # hack all around it, let's just trust "g++" to DTRT.
14301   predep_objects_CXX=
14302   postdep_objects_CXX=
14303   postdeps_CXX=
14304   ;;
14305
14306 linux*)
14307   case `$CC -V 2>&1 | sed 5q` in
14308   *Sun\ C*)
14309     # Sun C++ 5.9
14310
14311     # The more standards-conforming stlport4 library is
14312     # incompatible with the Cstd library. Avoid specifying
14313     # it if it's in CXXFLAGS. Ignore libCrun as
14314     # -library=stlport4 depends on it.
14315     case " $CXX $CXXFLAGS " in
14316     *" -library=stlport4 "*)
14317       solaris_use_stlport4=yes
14318       ;;
14319     esac
14320
14321     if test "$solaris_use_stlport4" != yes; then
14322       postdeps_CXX='-library=Cstd -library=Crun'
14323     fi
14324     ;;
14325   esac
14326   ;;
14327
14328 solaris*)
14329   case $cc_basename in
14330   CC*)
14331     # The more standards-conforming stlport4 library is
14332     # incompatible with the Cstd library. Avoid specifying
14333     # it if it's in CXXFLAGS. Ignore libCrun as
14334     # -library=stlport4 depends on it.
14335     case " $CXX $CXXFLAGS " in
14336     *" -library=stlport4 "*)
14337       solaris_use_stlport4=yes
14338       ;;
14339     esac
14340
14341     # Adding this requires a known-good setup of shared libraries for
14342     # Sun compiler versions before 5.6, else PIC objects from an old
14343     # archive will be linked into the output, leading to subtle bugs.
14344     if test "$solaris_use_stlport4" != yes; then
14345       postdeps_CXX='-library=Cstd -library=Crun'
14346     fi
14347     ;;
14348   esac
14349   ;;
14350 esac
14351
14352
14353 case " $postdeps_CXX " in
14354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14355 esac
14356  compiler_lib_search_dirs_CXX=
14357 if test -n "${compiler_lib_search_path_CXX}"; then
14358  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14359 fi
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391     lt_prog_compiler_wl_CXX=
14392 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_static_CXX=
14394
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14397
14398   # C++ specific cases for pic, static, wl, etc.
14399   if test "$GXX" = yes; then
14400     lt_prog_compiler_wl_CXX='-Wl,'
14401     lt_prog_compiler_static_CXX='-static'
14402
14403     case $host_os in
14404     aix*)
14405       # All AIX code is PIC.
14406       if test "$host_cpu" = ia64; then
14407         # AIX 5 now supports IA64 processor
14408         lt_prog_compiler_static_CXX='-Bstatic'
14409       fi
14410       ;;
14411
14412     amigaos*)
14413       case $host_cpu in
14414       powerpc)
14415             # see comment about AmigaOS4 .so support
14416             lt_prog_compiler_pic_CXX='-fPIC'
14417         ;;
14418       m68k)
14419             # FIXME: we need at least 68020 code to build shared libraries, but
14420             # adding the `-m68020' flag to GCC prevents building anything better,
14421             # like `-m68040'.
14422             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14423         ;;
14424       esac
14425       ;;
14426
14427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14428       # PIC is the default for these OSes.
14429       ;;
14430     mingw* | cygwin* | os2* | pw32* | cegcc*)
14431       # This hack is so that the source file can tell whether it is being
14432       # built for inclusion in a dll (and should export symbols for example).
14433       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14434       # (--disable-auto-import) libraries
14435       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14436       ;;
14437     darwin* | rhapsody*)
14438       # PIC is the default on this platform
14439       # Common symbols not allowed in MH_DYLIB files
14440       lt_prog_compiler_pic_CXX='-fno-common'
14441       ;;
14442     *djgpp*)
14443       # DJGPP does not support shared libraries at all
14444       lt_prog_compiler_pic_CXX=
14445       ;;
14446     interix[3-9]*)
14447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448       # Instead, we relocate shared libraries at runtime.
14449       ;;
14450     sysv4*MP*)
14451       if test -d /usr/nec; then
14452         lt_prog_compiler_pic_CXX=-Kconform_pic
14453       fi
14454       ;;
14455     hpux*)
14456       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14457       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14458       # sets the default TLS model and affects inlining.
14459       case $host_cpu in
14460       hppa*64*)
14461         ;;
14462       *)
14463         lt_prog_compiler_pic_CXX='-fPIC'
14464         ;;
14465       esac
14466       ;;
14467     *qnx* | *nto*)
14468       # QNX uses GNU C++, but need to define -shared option too, otherwise
14469       # it will coredump.
14470       lt_prog_compiler_pic_CXX='-fPIC -shared'
14471       ;;
14472     *)
14473       lt_prog_compiler_pic_CXX='-fPIC'
14474       ;;
14475     esac
14476   else
14477     case $host_os in
14478       aix[4-9]*)
14479         # All AIX code is PIC.
14480         if test "$host_cpu" = ia64; then
14481           # AIX 5 now supports IA64 processor
14482           lt_prog_compiler_static_CXX='-Bstatic'
14483         else
14484           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14485         fi
14486         ;;
14487       chorus*)
14488         case $cc_basename in
14489         cxch68*)
14490           # Green Hills C++ Compiler
14491           # _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"
14492           ;;
14493         esac
14494         ;;
14495       dgux*)
14496         case $cc_basename in
14497           ec++*)
14498             lt_prog_compiler_pic_CXX='-KPIC'
14499             ;;
14500           ghcx*)
14501             # Green Hills C++ Compiler
14502             lt_prog_compiler_pic_CXX='-pic'
14503             ;;
14504           *)
14505             ;;
14506         esac
14507         ;;
14508       freebsd* | dragonfly*)
14509         # FreeBSD uses GNU C++
14510         ;;
14511       hpux9* | hpux10* | hpux11*)
14512         case $cc_basename in
14513           CC*)
14514             lt_prog_compiler_wl_CXX='-Wl,'
14515             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516             if test "$host_cpu" != ia64; then
14517               lt_prog_compiler_pic_CXX='+Z'
14518             fi
14519             ;;
14520           aCC*)
14521             lt_prog_compiler_wl_CXX='-Wl,'
14522             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14523             case $host_cpu in
14524             hppa*64*|ia64*)
14525               # +Z the default
14526               ;;
14527             *)
14528               lt_prog_compiler_pic_CXX='+Z'
14529               ;;
14530             esac
14531             ;;
14532           *)
14533             ;;
14534         esac
14535         ;;
14536       interix*)
14537         # This is c89, which is MS Visual C++ (no shared libs)
14538         # Anyone wants to do a port?
14539         ;;
14540       irix5* | irix6* | nonstopux*)
14541         case $cc_basename in
14542           CC*)
14543             lt_prog_compiler_wl_CXX='-Wl,'
14544             lt_prog_compiler_static_CXX='-non_shared'
14545             # CC pic flag -KPIC is the default.
14546             ;;
14547           *)
14548             ;;
14549         esac
14550         ;;
14551       linux* | k*bsd*-gnu)
14552         case $cc_basename in
14553           KCC*)
14554             # KAI C++ Compiler
14555             lt_prog_compiler_wl_CXX='--backend -Wl,'
14556             lt_prog_compiler_pic_CXX='-fPIC'
14557             ;;
14558           ecpc* )
14559             # old Intel C++ for x86_64 which still supported -KPIC.
14560             lt_prog_compiler_wl_CXX='-Wl,'
14561             lt_prog_compiler_pic_CXX='-KPIC'
14562             lt_prog_compiler_static_CXX='-static'
14563             ;;
14564           icpc* )
14565             # Intel C++, used to be incompatible with GCC.
14566             # ICC 10 doesn't accept -KPIC any more.
14567             lt_prog_compiler_wl_CXX='-Wl,'
14568             lt_prog_compiler_pic_CXX='-fPIC'
14569             lt_prog_compiler_static_CXX='-static'
14570             ;;
14571           pgCC* | pgcpp*)
14572             # Portland Group C++ compiler
14573             lt_prog_compiler_wl_CXX='-Wl,'
14574             lt_prog_compiler_pic_CXX='-fpic'
14575             lt_prog_compiler_static_CXX='-Bstatic'
14576             ;;
14577           cxx*)
14578             # Compaq C++
14579             # Make sure the PIC flag is empty.  It appears that all Alpha
14580             # Linux and Compaq Tru64 Unix objects are PIC.
14581             lt_prog_compiler_pic_CXX=
14582             lt_prog_compiler_static_CXX='-non_shared'
14583             ;;
14584           xlc* | xlC*)
14585             # IBM XL 8.0 on PPC
14586             lt_prog_compiler_wl_CXX='-Wl,'
14587             lt_prog_compiler_pic_CXX='-qpic'
14588             lt_prog_compiler_static_CXX='-qstaticlink'
14589             ;;
14590           *)
14591             case `$CC -V 2>&1 | sed 5q` in
14592             *Sun\ C*)
14593               # Sun C++ 5.9
14594               lt_prog_compiler_pic_CXX='-KPIC'
14595               lt_prog_compiler_static_CXX='-Bstatic'
14596               lt_prog_compiler_wl_CXX='-Qoption ld '
14597               ;;
14598             esac
14599             ;;
14600         esac
14601         ;;
14602       lynxos*)
14603         ;;
14604       m88k*)
14605         ;;
14606       mvs*)
14607         case $cc_basename in
14608           cxx*)
14609             lt_prog_compiler_pic_CXX='-W c,exportall'
14610             ;;
14611           *)
14612             ;;
14613         esac
14614         ;;
14615       netbsd*)
14616         ;;
14617       *qnx* | *nto*)
14618         # QNX uses GNU C++, but need to define -shared option too, otherwise
14619         # it will coredump.
14620         lt_prog_compiler_pic_CXX='-fPIC -shared'
14621         ;;
14622       osf3* | osf4* | osf5*)
14623         case $cc_basename in
14624           KCC*)
14625             lt_prog_compiler_wl_CXX='--backend -Wl,'
14626             ;;
14627           RCC*)
14628             # Rational C++ 2.4.1
14629             lt_prog_compiler_pic_CXX='-pic'
14630             ;;
14631           cxx*)
14632             # Digital/Compaq C++
14633             lt_prog_compiler_wl_CXX='-Wl,'
14634             # Make sure the PIC flag is empty.  It appears that all Alpha
14635             # Linux and Compaq Tru64 Unix objects are PIC.
14636             lt_prog_compiler_pic_CXX=
14637             lt_prog_compiler_static_CXX='-non_shared'
14638             ;;
14639           *)
14640             ;;
14641         esac
14642         ;;
14643       psos*)
14644         ;;
14645       solaris*)
14646         case $cc_basename in
14647           CC*)
14648             # Sun C++ 4.2, 5.x and Centerline C++
14649             lt_prog_compiler_pic_CXX='-KPIC'
14650             lt_prog_compiler_static_CXX='-Bstatic'
14651             lt_prog_compiler_wl_CXX='-Qoption ld '
14652             ;;
14653           gcx*)
14654             # Green Hills C++ Compiler
14655             lt_prog_compiler_pic_CXX='-PIC'
14656             ;;
14657           *)
14658             ;;
14659         esac
14660         ;;
14661       sunos4*)
14662         case $cc_basename in
14663           CC*)
14664             # Sun C++ 4.x
14665             lt_prog_compiler_pic_CXX='-pic'
14666             lt_prog_compiler_static_CXX='-Bstatic'
14667             ;;
14668           lcc*)
14669             # Lucid
14670             lt_prog_compiler_pic_CXX='-pic'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14677         case $cc_basename in
14678           CC*)
14679             lt_prog_compiler_wl_CXX='-Wl,'
14680             lt_prog_compiler_pic_CXX='-KPIC'
14681             lt_prog_compiler_static_CXX='-Bstatic'
14682             ;;
14683         esac
14684         ;;
14685       tandem*)
14686         case $cc_basename in
14687           NCC*)
14688             # NonStop-UX NCC 3.20
14689             lt_prog_compiler_pic_CXX='-KPIC'
14690             ;;
14691           *)
14692             ;;
14693         esac
14694         ;;
14695       vxworks*)
14696         ;;
14697       *)
14698         lt_prog_compiler_can_build_shared_CXX=no
14699         ;;
14700     esac
14701   fi
14702
14703 case $host_os in
14704   # For platforms which do not support PIC, -DPIC is meaningless:
14705   *djgpp*)
14706     lt_prog_compiler_pic_CXX=
14707     ;;
14708   *)
14709     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14710     ;;
14711 esac
14712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14713 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14714
14715
14716
14717 #
14718 # Check to make sure the PIC flag actually works.
14719 #
14720 if test -n "$lt_prog_compiler_pic_CXX"; then
14721   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   lt_cv_prog_compiler_pic_works_CXX=no
14727    ac_outfile=conftest.$ac_objext
14728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14730    # Insert the option either (1) after the last *FLAGS variable, or
14731    # (2) before a word containing "conftest.", or (3) at the end.
14732    # Note that $ac_compile itself does not contain backslashes and begins
14733    # with a dollar sign (not a hyphen), so the echo should work correctly.
14734    # The option is referenced via a variable to avoid confusing sed.
14735    lt_compile=`echo "$ac_compile" | $SED \
14736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738    -e 's:$: $lt_compiler_flag:'`
14739    (eval echo "\"\$as_me:14739: $lt_compile\"" >&5)
14740    (eval "$lt_compile" 2>conftest.err)
14741    ac_status=$?
14742    cat conftest.err >&5
14743    echo "$as_me:14743: \$? = $ac_status" >&5
14744    if (exit $ac_status) && test -s "$ac_outfile"; then
14745      # The compiler can only warn and ignore the option if not recognized
14746      # So say no if there are warnings other than the usual output.
14747      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14750        lt_cv_prog_compiler_pic_works_CXX=yes
14751      fi
14752    fi
14753    $RM conftest*
14754
14755 fi
14756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14757 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14758
14759 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14760     case $lt_prog_compiler_pic_CXX in
14761      "" | " "*) ;;
14762      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14763      esac
14764 else
14765     lt_prog_compiler_pic_CXX=
14766      lt_prog_compiler_can_build_shared_CXX=no
14767 fi
14768
14769 fi
14770
14771
14772
14773 #
14774 # Check to make sure the static flag actually works.
14775 #
14776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14779 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   lt_cv_prog_compiler_static_works_CXX=no
14783    save_LDFLAGS="$LDFLAGS"
14784    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14785    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14786    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14787      # The linker can only warn and ignore the option if not recognized
14788      # So say no if there are warnings
14789      if test -s conftest.err; then
14790        # Append any errors to the config.log.
14791        cat conftest.err 1>&5
14792        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14793        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794        if diff conftest.exp conftest.er2 >/dev/null; then
14795          lt_cv_prog_compiler_static_works_CXX=yes
14796        fi
14797      else
14798        lt_cv_prog_compiler_static_works_CXX=yes
14799      fi
14800    fi
14801    $RM -r conftest*
14802    LDFLAGS="$save_LDFLAGS"
14803
14804 fi
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14809     :
14810 else
14811     lt_prog_compiler_static_CXX=
14812 fi
14813
14814
14815
14816
14817     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822   lt_cv_prog_compiler_c_o_CXX=no
14823    $RM -r conftest 2>/dev/null
14824    mkdir conftest
14825    cd conftest
14826    mkdir out
14827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14828
14829    lt_compiler_flag="-o out/conftest2.$ac_objext"
14830    # Insert the option either (1) after the last *FLAGS variable, or
14831    # (2) before a word containing "conftest.", or (3) at the end.
14832    # Note that $ac_compile itself does not contain backslashes and begins
14833    # with a dollar sign (not a hyphen), so the echo should work correctly.
14834    lt_compile=`echo "$ac_compile" | $SED \
14835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837    -e 's:$: $lt_compiler_flag:'`
14838    (eval echo "\"\$as_me:14838: $lt_compile\"" >&5)
14839    (eval "$lt_compile" 2>out/conftest.err)
14840    ac_status=$?
14841    cat out/conftest.err >&5
14842    echo "$as_me:14842: \$? = $ac_status" >&5
14843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14844    then
14845      # The compiler can only warn and ignore the option if not recognized
14846      # So say no if there are warnings
14847      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14848      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14849      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14850        lt_cv_prog_compiler_c_o_CXX=yes
14851      fi
14852    fi
14853    chmod u+w . 2>&5
14854    $RM conftest*
14855    # SGI C++ compiler will create directory out/ii_files/ for
14856    # template instantiation
14857    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14858    $RM out/* && rmdir out
14859    cd ..
14860    $RM -r conftest
14861    $RM conftest*
14862
14863 fi
14864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14866
14867
14868
14869     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874   lt_cv_prog_compiler_c_o_CXX=no
14875    $RM -r conftest 2>/dev/null
14876    mkdir conftest
14877    cd conftest
14878    mkdir out
14879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881    lt_compiler_flag="-o out/conftest2.$ac_objext"
14882    # Insert the option either (1) after the last *FLAGS variable, or
14883    # (2) before a word containing "conftest.", or (3) at the end.
14884    # Note that $ac_compile itself does not contain backslashes and begins
14885    # with a dollar sign (not a hyphen), so the echo should work correctly.
14886    lt_compile=`echo "$ac_compile" | $SED \
14887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889    -e 's:$: $lt_compiler_flag:'`
14890    (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891    (eval "$lt_compile" 2>out/conftest.err)
14892    ac_status=$?
14893    cat out/conftest.err >&5
14894    echo "$as_me:14894: \$? = $ac_status" >&5
14895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14896    then
14897      # The compiler can only warn and ignore the option if not recognized
14898      # So say no if there are warnings
14899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902        lt_cv_prog_compiler_c_o_CXX=yes
14903      fi
14904    fi
14905    chmod u+w . 2>&5
14906    $RM conftest*
14907    # SGI C++ compiler will create directory out/ii_files/ for
14908    # template instantiation
14909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910    $RM out/* && rmdir out
14911    cd ..
14912    $RM -r conftest
14913    $RM conftest*
14914
14915 fi
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14918
14919
14920
14921
14922 hard_links="nottested"
14923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14924   # do not overwrite the value of need_locks provided by the user
14925   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14927   hard_links=yes
14928   $RM conftest*
14929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14930   touch conftest.a
14931   ln conftest.a conftest.b 2>&5 || hard_links=no
14932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933   { echo "$as_me:$LINENO: result: $hard_links" >&5
14934 echo "${ECHO_T}$hard_links" >&6; }
14935   if test "$hard_links" = no; then
14936     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14938     need_locks=warn
14939   fi
14940 else
14941   need_locks=no
14942 fi
14943
14944
14945
14946     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14948
14949   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950   case $host_os in
14951   aix[4-9]*)
14952     # If we're using GNU nm, then we don't want the "-C" option.
14953     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14954     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955       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'
14956     else
14957       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'
14958     fi
14959     ;;
14960   pw32*)
14961     export_symbols_cmds_CXX="$ltdll_cmds"
14962   ;;
14963   cygwin* | mingw* | cegcc*)
14964     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'
14965   ;;
14966   *)
14967     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14968   ;;
14969   esac
14970   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14971
14972 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14973 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14975
14976 with_gnu_ld_CXX=$with_gnu_ld
14977
14978
14979
14980
14981
14982
14983 #
14984 # Do we need to explicitly link libc?
14985 #
14986 case "x$archive_cmds_need_lc_CXX" in
14987 x|xyes)
14988   # Assume -lc should be added
14989   archive_cmds_need_lc_CXX=yes
14990
14991   if test "$enable_shared" = yes && test "$GCC" = yes; then
14992     case $archive_cmds_CXX in
14993     *'~'*)
14994       # FIXME: we may have to deal with multi-command sequences.
14995       ;;
14996     '$CC '*)
14997       # Test whether the compiler implicitly links with -lc since on some
14998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999       # to ld, don't add -lc before -lgcc.
15000       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15002       $RM conftest*
15003       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15004
15005       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } 2>conftest.err; then
15010         soname=conftest
15011         lib=conftest
15012         libobjs=conftest.$ac_objext
15013         deplibs=
15014         wl=$lt_prog_compiler_wl_CXX
15015         pic_flag=$lt_prog_compiler_pic_CXX
15016         compiler_flags=-v
15017         linker_flags=-v
15018         verstring=
15019         output_objdir=.
15020         libname=conftest
15021         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15022         allow_undefined_flag_CXX=
15023         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); }
15028         then
15029           archive_cmds_need_lc_CXX=no
15030         else
15031           archive_cmds_need_lc_CXX=yes
15032         fi
15033         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15034       else
15035         cat conftest.err 1>&5
15036       fi
15037       $RM conftest*
15038       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15040       ;;
15041     esac
15042   fi
15043   ;;
15044 esac
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15111
15112 library_names_spec=
15113 libname_spec='lib$name'
15114 soname_spec=
15115 shrext_cmds=".so"
15116 postinstall_cmds=
15117 postuninstall_cmds=
15118 finish_cmds=
15119 finish_eval=
15120 shlibpath_var=
15121 shlibpath_overrides_runpath=unknown
15122 version_type=none
15123 dynamic_linker="$host_os ld.so"
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15125 need_lib_prefix=unknown
15126 hardcode_into_libs=no
15127
15128 # when you set need_version to no, make sure it does not cause -set_version
15129 # flags to be left without arguments
15130 need_version=unknown
15131
15132 case $host_os in
15133 aix3*)
15134   version_type=linux
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15136   shlibpath_var=LIBPATH
15137
15138   # AIX 3 has no versioning support, so we append a major version to the name.
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   ;;
15141
15142 aix[4-9]*)
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   hardcode_into_libs=yes
15147   if test "$host_cpu" = ia64; then
15148     # AIX 5 supports IA64
15149     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15150     shlibpath_var=LD_LIBRARY_PATH
15151   else
15152     # With GCC up to 2.95.x, collect2 would create an import file
15153     # for dependence libraries.  The import file would start with
15154     # the line `#! .'.  This would cause the generated library to
15155     # depend on `.', always an invalid library.  This was fixed in
15156     # development snapshots of GCC prior to 3.0.
15157     case $host_os in
15158       aix4 | aix4.[01] | aix4.[01].*)
15159       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15160            echo ' yes '
15161            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15162         :
15163       else
15164         can_build_shared=no
15165       fi
15166       ;;
15167     esac
15168     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15169     # soname into executable. Probably we can add versioning support to
15170     # collect2, so additional links can be useful in future.
15171     if test "$aix_use_runtimelinking" = yes; then
15172       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173       # instead of lib<name>.a to let people know that these are not
15174       # typical AIX shared libraries.
15175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15176     else
15177       # We preserve .a as extension for shared libraries through AIX4.2
15178       # and later when we are not doing run time linking.
15179       library_names_spec='${libname}${release}.a $libname.a'
15180       soname_spec='${libname}${release}${shared_ext}$major'
15181     fi
15182     shlibpath_var=LIBPATH
15183   fi
15184   ;;
15185
15186 amigaos*)
15187   case $host_cpu in
15188   powerpc)
15189     # Since July 2007 AmigaOS4 officially supports .so libraries.
15190     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192     ;;
15193   m68k)
15194     library_names_spec='$libname.ixlibrary $libname.a'
15195     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15196     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'
15197     ;;
15198   esac
15199   ;;
15200
15201 beos*)
15202   library_names_spec='${libname}${shared_ext}'
15203   dynamic_linker="$host_os ld.so"
15204   shlibpath_var=LIBRARY_PATH
15205   ;;
15206
15207 bsdi[45]*)
15208   version_type=linux
15209   need_version=no
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213   shlibpath_var=LD_LIBRARY_PATH
15214   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216   # the default ld.so.conf also contains /usr/contrib/lib and
15217   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218   # libtool to hard-code these into programs
15219   ;;
15220
15221 cygwin* | mingw* | pw32* | cegcc*)
15222   version_type=windows
15223   shrext_cmds=".dll"
15224   need_version=no
15225   need_lib_prefix=no
15226
15227   case $GCC,$host_os in
15228   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15229     library_names_spec='$libname.dll.a'
15230     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231     postinstall_cmds='base_file=`basename \${file}`~
15232       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233       dldir=$destdir/`dirname \$dlpath`~
15234       test -d \$dldir || mkdir -p \$dldir~
15235       $install_prog $dir/$dlname \$dldir/$dlname~
15236       chmod a+x \$dldir/$dlname~
15237       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15239       fi'
15240     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241       dlpath=$dir/\$dldll~
15242        $RM \$dlpath'
15243     shlibpath_overrides_runpath=yes
15244
15245     case $host_os in
15246     cygwin*)
15247       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15250       ;;
15251     mingw* | cegcc*)
15252       # MinGW DLLs use traditional 'lib' prefix
15253       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15256         # It is most probably a Windows format PATH printed by
15257         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258         # path with ; separators, and with drive letters. We can handle the
15259         # drive letters (cygwin fileutils understands them), so leave them,
15260         # especially as we might pass files found there to a mingw objdump,
15261         # which wouldn't understand a cygwinified path. Ahh.
15262         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15263       else
15264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15265       fi
15266       ;;
15267     pw32*)
15268       # pw32 DLLs use 'pw' prefix rather than 'lib'
15269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270       ;;
15271     esac
15272     ;;
15273
15274   *)
15275     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15276     ;;
15277   esac
15278   dynamic_linker='Win32 ld.exe'
15279   # FIXME: first we should search . and the directory the executable is in
15280   shlibpath_var=PATH
15281   ;;
15282
15283 darwin* | rhapsody*)
15284   dynamic_linker="$host_os dyld"
15285   version_type=darwin
15286   need_lib_prefix=no
15287   need_version=no
15288   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289   soname_spec='${libname}${release}${major}$shared_ext'
15290   shlibpath_overrides_runpath=yes
15291   shlibpath_var=DYLD_LIBRARY_PATH
15292   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15293
15294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15295   ;;
15296
15297 dgux*)
15298   version_type=linux
15299   need_lib_prefix=no
15300   need_version=no
15301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15302   soname_spec='${libname}${release}${shared_ext}$major'
15303   shlibpath_var=LD_LIBRARY_PATH
15304   ;;
15305
15306 freebsd1*)
15307   dynamic_linker=no
15308   ;;
15309
15310 freebsd* | dragonfly*)
15311   # DragonFly does not have aout.  When/if they implement a new
15312   # versioning mechanism, adjust this.
15313   if test -x /usr/bin/objformat; then
15314     objformat=`/usr/bin/objformat`
15315   else
15316     case $host_os in
15317     freebsd[123]*) objformat=aout ;;
15318     *) objformat=elf ;;
15319     esac
15320   fi
15321   version_type=freebsd-$objformat
15322   case $version_type in
15323     freebsd-elf*)
15324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15325       need_version=no
15326       need_lib_prefix=no
15327       ;;
15328     freebsd-*)
15329       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15330       need_version=yes
15331       ;;
15332   esac
15333   shlibpath_var=LD_LIBRARY_PATH
15334   case $host_os in
15335   freebsd2*)
15336     shlibpath_overrides_runpath=yes
15337     ;;
15338   freebsd3.[01]* | freebsdelf3.[01]*)
15339     shlibpath_overrides_runpath=yes
15340     hardcode_into_libs=yes
15341     ;;
15342   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344     shlibpath_overrides_runpath=no
15345     hardcode_into_libs=yes
15346     ;;
15347   *) # from 4.6 on, and DragonFly
15348     shlibpath_overrides_runpath=yes
15349     hardcode_into_libs=yes
15350     ;;
15351   esac
15352   ;;
15353
15354 gnu*)
15355   version_type=linux
15356   need_lib_prefix=no
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   shlibpath_var=LD_LIBRARY_PATH
15361   hardcode_into_libs=yes
15362   ;;
15363
15364 hpux9* | hpux10* | hpux11*)
15365   # Give a soname corresponding to the major version so that dld.sl refuses to
15366   # link against other versions.
15367   version_type=sunos
15368   need_lib_prefix=no
15369   need_version=no
15370   case $host_cpu in
15371   ia64*)
15372     shrext_cmds='.so'
15373     hardcode_into_libs=yes
15374     dynamic_linker="$host_os dld.so"
15375     shlibpath_var=LD_LIBRARY_PATH
15376     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378     soname_spec='${libname}${release}${shared_ext}$major'
15379     if test "X$HPUX_IA64_MODE" = X32; then
15380       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15381     else
15382       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15383     fi
15384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385     ;;
15386   hppa*64*)
15387     shrext_cmds='.sl'
15388     hardcode_into_libs=yes
15389     dynamic_linker="$host_os dld.sl"
15390     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393     soname_spec='${libname}${release}${shared_ext}$major'
15394     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15396     ;;
15397   *)
15398     shrext_cmds='.sl'
15399     dynamic_linker="$host_os dld.sl"
15400     shlibpath_var=SHLIB_PATH
15401     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403     soname_spec='${libname}${release}${shared_ext}$major'
15404     ;;
15405   esac
15406   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15407   postinstall_cmds='chmod 555 $lib'
15408   ;;
15409
15410 interix[3-9]*)
15411   version_type=linux
15412   need_lib_prefix=no
15413   need_version=no
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   shlibpath_overrides_runpath=no
15419   hardcode_into_libs=yes
15420   ;;
15421
15422 irix5* | irix6* | nonstopux*)
15423   case $host_os in
15424     nonstopux*) version_type=nonstopux ;;
15425     *)
15426         if test "$lt_cv_prog_gnu_ld" = yes; then
15427                 version_type=linux
15428         else
15429                 version_type=irix
15430         fi ;;
15431   esac
15432   need_lib_prefix=no
15433   need_version=no
15434   soname_spec='${libname}${release}${shared_ext}$major'
15435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15436   case $host_os in
15437   irix5* | nonstopux*)
15438     libsuff= shlibsuff=
15439     ;;
15440   *)
15441     case $LD in # libtool.m4 will add one of these switches to LD
15442     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443       libsuff= shlibsuff= libmagic=32-bit;;
15444     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445       libsuff=32 shlibsuff=N32 libmagic=N32;;
15446     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448     *) libsuff= shlibsuff= libmagic=never-match;;
15449     esac
15450     ;;
15451   esac
15452   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453   shlibpath_overrides_runpath=no
15454   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456   hardcode_into_libs=yes
15457   ;;
15458
15459 # No shared lib support for Linux oldld, aout, or coff.
15460 linux*oldld* | linux*aout* | linux*coff*)
15461   dynamic_linker=no
15462   ;;
15463
15464 # This must be Linux ELF.
15465 linux* | k*bsd*-gnu)
15466   version_type=linux
15467   need_lib_prefix=no
15468   need_version=no
15469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470   soname_spec='${libname}${release}${shared_ext}$major'
15471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472   shlibpath_var=LD_LIBRARY_PATH
15473   shlibpath_overrides_runpath=no
15474   # Some binutils ld are patched to set DT_RUNPATH
15475   save_LDFLAGS=$LDFLAGS
15476   save_libdir=$libdir
15477   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15478        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15479   cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485
15486 int
15487 main ()
15488 {
15489
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_link") 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } && {
15508          test -z "$ac_cxx_werror_flag" ||
15509          test ! -s conftest.err
15510        } && test -s conftest$ac_exeext &&
15511        $as_test_x conftest$ac_exeext; then
15512   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15513   shlibpath_overrides_runpath=yes
15514 fi
15515
15516 else
15517   echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520
15521 fi
15522
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524       conftest$ac_exeext conftest.$ac_ext
15525   LDFLAGS=$save_LDFLAGS
15526   libdir=$save_libdir
15527
15528   # This implies no fast_install, which is unacceptable.
15529   # Some rework will be needed to allow for fast_install
15530   # before this can be enabled.
15531   hardcode_into_libs=yes
15532
15533   # Append ld.so.conf contents to the search path
15534   if test -f /etc/ld.so.conf; then
15535     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' ' '`
15536     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15537   fi
15538
15539   # We used to test for /lib/ld.so.1 and disable shared libraries on
15540   # powerpc, because MkLinux only supported shared libraries with the
15541   # GNU dynamic linker.  Since this was broken with cross compilers,
15542   # most powerpc-linux boxes support dynamic linking these days and
15543   # people can always --disable-shared, the test was removed, and we
15544   # assume the GNU/Linux dynamic linker is in use.
15545   dynamic_linker='GNU/Linux ld.so'
15546   ;;
15547
15548 netbsd*)
15549   version_type=sunos
15550   need_lib_prefix=no
15551   need_version=no
15552   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555     dynamic_linker='NetBSD (a.out) ld.so'
15556   else
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558     soname_spec='${libname}${release}${shared_ext}$major'
15559     dynamic_linker='NetBSD ld.elf_so'
15560   fi
15561   shlibpath_var=LD_LIBRARY_PATH
15562   shlibpath_overrides_runpath=yes
15563   hardcode_into_libs=yes
15564   ;;
15565
15566 newsos6)
15567   version_type=linux
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569   shlibpath_var=LD_LIBRARY_PATH
15570   shlibpath_overrides_runpath=yes
15571   ;;
15572
15573 *nto* | *qnx*)
15574   version_type=qnx
15575   need_lib_prefix=no
15576   need_version=no
15577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578   soname_spec='${libname}${release}${shared_ext}$major'
15579   shlibpath_var=LD_LIBRARY_PATH
15580   shlibpath_overrides_runpath=no
15581   hardcode_into_libs=yes
15582   dynamic_linker='ldqnx.so'
15583   ;;
15584
15585 openbsd*)
15586   version_type=sunos
15587   sys_lib_dlsearch_path_spec="/usr/lib"
15588   need_lib_prefix=no
15589   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15590   case $host_os in
15591     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15592     *)                          need_version=no  ;;
15593   esac
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15598     case $host_os in
15599       openbsd2.[89] | openbsd2.[89].*)
15600         shlibpath_overrides_runpath=no
15601         ;;
15602       *)
15603         shlibpath_overrides_runpath=yes
15604         ;;
15605       esac
15606   else
15607     shlibpath_overrides_runpath=yes
15608   fi
15609   ;;
15610
15611 os2*)
15612   libname_spec='$name'
15613   shrext_cmds=".dll"
15614   need_lib_prefix=no
15615   library_names_spec='$libname${shared_ext} $libname.a'
15616   dynamic_linker='OS/2 ld.exe'
15617   shlibpath_var=LIBPATH
15618   ;;
15619
15620 osf3* | osf4* | osf5*)
15621   version_type=osf
15622   need_lib_prefix=no
15623   need_version=no
15624   soname_spec='${libname}${release}${shared_ext}$major'
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15629   ;;
15630
15631 rdos*)
15632   dynamic_linker=no
15633   ;;
15634
15635 solaris*)
15636   version_type=linux
15637   need_lib_prefix=no
15638   need_version=no
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   shlibpath_overrides_runpath=yes
15643   hardcode_into_libs=yes
15644   # ldd complains unless libraries are executable
15645   postinstall_cmds='chmod +x $lib'
15646   ;;
15647
15648 sunos4*)
15649   version_type=sunos
15650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15652   shlibpath_var=LD_LIBRARY_PATH
15653   shlibpath_overrides_runpath=yes
15654   if test "$with_gnu_ld" = yes; then
15655     need_lib_prefix=no
15656   fi
15657   need_version=yes
15658   ;;
15659
15660 sysv4 | sysv4.3*)
15661   version_type=linux
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663   soname_spec='${libname}${release}${shared_ext}$major'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   case $host_vendor in
15666     sni)
15667       shlibpath_overrides_runpath=no
15668       need_lib_prefix=no
15669       runpath_var=LD_RUN_PATH
15670       ;;
15671     siemens)
15672       need_lib_prefix=no
15673       ;;
15674     motorola)
15675       need_lib_prefix=no
15676       need_version=no
15677       shlibpath_overrides_runpath=no
15678       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15679       ;;
15680   esac
15681   ;;
15682
15683 sysv4*MP*)
15684   if test -d /usr/nec ;then
15685     version_type=linux
15686     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15687     soname_spec='$libname${shared_ext}.$major'
15688     shlibpath_var=LD_LIBRARY_PATH
15689   fi
15690   ;;
15691
15692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15693   version_type=freebsd-elf
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=yes
15700   hardcode_into_libs=yes
15701   if test "$with_gnu_ld" = yes; then
15702     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15703   else
15704     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15705     case $host_os in
15706       sco3.2v5*)
15707         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15708         ;;
15709     esac
15710   fi
15711   sys_lib_dlsearch_path_spec='/usr/lib'
15712   ;;
15713
15714 tpf*)
15715   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   shlibpath_overrides_runpath=no
15722   hardcode_into_libs=yes
15723   ;;
15724
15725 uts4*)
15726   version_type=linux
15727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   ;;
15731
15732 *)
15733   dynamic_linker=no
15734   ;;
15735 esac
15736 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737 echo "${ECHO_T}$dynamic_linker" >&6; }
15738 test "$dynamic_linker" = no && can_build_shared=no
15739
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15743 fi
15744
15745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15746   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15747 fi
15748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15749   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15750 fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791    test -n "$runpath_var_CXX" ||
15792    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15793
15794   # We can hardcode non-existent directories.
15795   if test "$hardcode_direct_CXX" != no &&
15796      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797      # have to relink, otherwise we might link with an installed library
15798      # when we should be linking with a yet-to-be-installed one
15799      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15800      test "$hardcode_minus_L_CXX" != no; then
15801     # Linking always hardcodes the temporary library directory.
15802     hardcode_action_CXX=relink
15803   else
15804     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805     hardcode_action_CXX=immediate
15806   fi
15807 else
15808   # We cannot hardcode anything, or else we can only hardcode existing
15809   # directories.
15810   hardcode_action_CXX=unsupported
15811 fi
15812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15814
15815 if test "$hardcode_action_CXX" = relink ||
15816    test "$inherit_rpath_CXX" = yes; then
15817   # Fast installation is not supported
15818   enable_fast_install=no
15819 elif test "$shlibpath_overrides_runpath" = yes ||
15820      test "$enable_shared" = no; then
15821   # Fast installation is not necessary
15822   enable_fast_install=needless
15823 fi
15824
15825
15826
15827
15828
15829
15830
15831   fi # test -n "$compiler"
15832
15833   CC=$lt_save_CC
15834   LDCXX=$LD
15835   LD=$lt_save_LD
15836   GCC=$lt_save_GCC
15837   with_gnu_ld=$lt_save_with_gnu_ld
15838   lt_cv_path_LDCXX=$lt_cv_path_LD
15839   lt_cv_path_LD=$lt_save_path_LD
15840   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15841   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15842 fi # test "$_lt_caught_CXX_error" != yes
15843
15844 ac_ext=c
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862         ac_config_commands="$ac_config_commands libtool"
15863
15864
15865
15866
15867 # Only expand once:
15868
15869
15870
15871
15872 if test x$use_libtool != xno; then
15873    DEFAULT_OBJECT_TYPE=".lo"
15874    DEFAULT_ARCHIVE_TYPE=".la"
15875    DEFAULT_SHARED_OBJECT_TYPE=".la"
15876    LIBTOOL="\$(LIBTOOL)"
15877    LIBTOOL_INSTALL_TARGET="libtool-install"
15878    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15879    LIBTOOL_CLEAN_TARGET="libtool-clean"
15880    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15881 else
15882    DEFAULT_OBJECT_TYPE=".o"
15883    DEFAULT_ARCHIVE_TYPE=".a"
15884    DEFAULT_SHARED_OBJECT_TYPE=".so"
15885    LIBTOOL="# \$(LIBTOOL)"
15886    LIBTOOL_INSTALL_TARGET=""
15887    LIBTOOL_UNINSTALL_TARGET=""
15888    LIBTOOL_CLEAN_TARGET=""
15889    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15890 fi
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901 # Check whether --enable-includes was given.
15902 if test "${enable_includes+set}" = set; then
15903   enableval=$enable_includes;
15904        if test x$enableval = xno; then
15905           install_includes=no
15906        fi
15907
15908
15909 fi
15910
15911
15912
15913 if test x$use_libtool != xno -a x$install_includes != no; then
15914    INCLUDE_INSTALL_TARGET="install-includes"
15915    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15916 else
15917    INCLUDE_INSTALL_TARGET=""
15918    INCLUDE_UNINSTALL_TARGET=""
15919 fi
15920
15921
15922
15923
15924 { echo "$as_me:$LINENO: checking host system type" >&5
15925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15926 if test "${ac_cv_host+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929   if test "x$host_alias" = x; then
15930   ac_cv_host=$ac_cv_build
15931 else
15932   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15933     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15935    { (exit 1); exit 1; }; }
15936 fi
15937
15938 fi
15939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15940 echo "${ECHO_T}$ac_cv_host" >&6; }
15941 case $ac_cv_host in
15942 *-*-*) ;;
15943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15944 echo "$as_me: error: invalid value of canonical host" >&2;}
15945    { (exit 1); exit 1; }; };;
15946 esac
15947 host=$ac_cv_host
15948 ac_save_IFS=$IFS; IFS='-'
15949 set x $ac_cv_host
15950 shift
15951 host_cpu=$1
15952 host_vendor=$2
15953 shift; shift
15954 # Remember, the first character of IFS is used to create $*,
15955 # except with old shells:
15956 host_os=$*
15957 IFS=$ac_save_IFS
15958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15959
15960
15961 case $host_os in
15962   *cygwin* ) CYGWIN=yes;;
15963          * ) CYGWIN=no;;
15964 esac
15965
15966 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15967 then
15968
15969
15970 if $TRUEPRG; then
15971   HAVE_SUN_OS_TRUE=
15972   HAVE_SUN_OS_FALSE='#'
15973 else
15974   HAVE_SUN_OS_TRUE='#'
15975   HAVE_SUN_OS_FALSE=
15976 fi
15977         cat >>confdefs.h <<\_ACEOF
15978 #define HAVE_SUN_OS 1
15979 _ACEOF
15980
15981 else
15982
15983
15984 if $FALSEPRG; then
15985   HAVE_SUN_OS_TRUE=
15986   HAVE_SUN_OS_FALSE='#'
15987 else
15988   HAVE_SUN_OS_TRUE='#'
15989   HAVE_SUN_OS_FALSE=
15990 fi
15991 fi
15992
15993 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15994 then
15995
15996
15997 if $TRUEPRG; then
15998   HAVE_OSF1_OS_TRUE=
15999   HAVE_OSF1_OS_FALSE='#'
16000 else
16001   HAVE_OSF1_OS_TRUE='#'
16002   HAVE_OSF1_OS_FALSE=
16003 fi
16004         cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_OSF1_OS 1
16006 _ACEOF
16007
16008 else
16009
16010
16011 if $FALSEPRG; then
16012   HAVE_OSF1_OS_TRUE=
16013   HAVE_OSF1_OS_FALSE='#'
16014 else
16015   HAVE_OSF1_OS_TRUE='#'
16016   HAVE_OSF1_OS_FALSE=
16017 fi
16018 fi
16019
16020 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16021 then
16022
16023
16024 if $TRUEPRG; then
16025   HAVE_AIX_OS_TRUE=
16026   HAVE_AIX_OS_FALSE='#'
16027 else
16028   HAVE_AIX_OS_TRUE='#'
16029   HAVE_AIX_OS_FALSE=
16030 fi
16031         cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_AIX_OS 1
16033 _ACEOF
16034
16035 else
16036
16037
16038 if $FALSEPRG; then
16039   HAVE_AIX_OS_TRUE=
16040   HAVE_AIX_OS_FALSE='#'
16041 else
16042   HAVE_AIX_OS_TRUE='#'
16043   HAVE_AIX_OS_FALSE=
16044 fi
16045 fi
16046
16047 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16048 then
16049
16050
16051 if $TRUEPRG; then
16052   HAVE_HPUX_OS_TRUE=
16053   HAVE_HPUX_OS_FALSE='#'
16054 else
16055   HAVE_HPUX_OS_TRUE='#'
16056   HAVE_HPUX_OS_FALSE=
16057 fi
16058         cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_HPUX_OS 1
16060 _ACEOF
16061
16062 else
16063
16064
16065 if $FALSEPRG; then
16066   HAVE_HPUX_OS_TRUE=
16067   HAVE_HPUX_OS_FALSE='#'
16068 else
16069   HAVE_HPUX_OS_TRUE='#'
16070   HAVE_HPUX_OS_FALSE=
16071 fi
16072 fi
16073
16074 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16075 then
16076
16077
16078 if $TRUEPRG; then
16079   HAVE_LINUX_OS_TRUE=
16080   HAVE_LINUX_OS_FALSE='#'
16081 else
16082   HAVE_LINUX_OS_TRUE='#'
16083   HAVE_LINUX_OS_FALSE=
16084 fi
16085         cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_LINUX_OS 1
16087 _ACEOF
16088
16089 else
16090
16091
16092 if $FALSEPRG; then
16093   HAVE_LINUX_OS_TRUE=
16094   HAVE_LINUX_OS_FALSE='#'
16095 else
16096   HAVE_LINUX_OS_TRUE='#'
16097   HAVE_LINUX_OS_FALSE=
16098 fi
16099 fi
16100
16101 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16102 then
16103
16104
16105 if $TRUEPRG; then
16106   HAVE_FREEBSD_OS_TRUE=
16107   HAVE_FREEBSD_OS_FALSE='#'
16108 else
16109   HAVE_FREEBSD_OS_TRUE='#'
16110   HAVE_FREEBSD_OS_FALSE=
16111 fi
16112         cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_FREEBSD_OS 1
16114 _ACEOF
16115
16116 else
16117
16118
16119 if $FALSEPRG; then
16120   HAVE_FREEBSD_OS_TRUE=
16121   HAVE_FREEBSD_OS_FALSE='#'
16122 else
16123   HAVE_FREEBSD_OS_TRUE='#'
16124   HAVE_FREEBSD_OS_FALSE=
16125 fi
16126 fi
16127
16128 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16129 then
16130
16131
16132 if $TRUEPRG; then
16133   HAVE_NETBSD_OS_TRUE=
16134   HAVE_NETBSD_OS_FALSE='#'
16135 else
16136   HAVE_NETBSD_OS_TRUE='#'
16137   HAVE_NETBSD_OS_FALSE=
16138 fi
16139         cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_NETBSD_OS 1
16141 _ACEOF
16142
16143 else
16144
16145
16146 if $FALSEPRG; then
16147   HAVE_NETBSD_OS_TRUE=
16148   HAVE_NETBSD_OS_FALSE='#'
16149 else
16150   HAVE_NETBSD_OS_TRUE='#'
16151   HAVE_NETBSD_OS_FALSE=
16152 fi
16153 fi
16154
16155 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16156 then
16157
16158
16159 if $TRUEPRG; then
16160   HAVE_OPENBSD_OS_TRUE=
16161   HAVE_OPENBSD_OS_FALSE='#'
16162 else
16163   HAVE_OPENBSD_OS_TRUE='#'
16164   HAVE_OPENBSD_OS_FALSE=
16165 fi
16166         cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_OPENBSD_OS 1
16168 _ACEOF
16169
16170 else
16171
16172
16173 if $FALSEPRG; then
16174   HAVE_OPENBSD_OS_TRUE=
16175   HAVE_OPENBSD_OS_FALSE='#'
16176 else
16177   HAVE_OPENBSD_OS_TRUE='#'
16178   HAVE_OPENBSD_OS_FALSE=
16179 fi
16180 fi
16181
16182 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16183 then
16184
16185
16186 if $TRUEPRG; then
16187   HAVE_BSDI_OS_TRUE=
16188   HAVE_BSDI_OS_FALSE='#'
16189 else
16190   HAVE_BSDI_OS_TRUE='#'
16191   HAVE_BSDI_OS_FALSE=
16192 fi
16193         cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_BSDI_OS 1
16195 _ACEOF
16196
16197 else
16198
16199
16200 if $FALSEPRG; then
16201   HAVE_BSDI_OS_TRUE=
16202   HAVE_BSDI_OS_FALSE='#'
16203 else
16204   HAVE_BSDI_OS_TRUE='#'
16205   HAVE_BSDI_OS_FALSE=
16206 fi
16207 fi
16208
16209 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16210 then
16211
16212
16213 if $TRUEPRG; then
16214   HAVE_SGI_OS_TRUE=
16215   HAVE_SGI_OS_FALSE='#'
16216 else
16217   HAVE_SGI_OS_TRUE='#'
16218   HAVE_SGI_OS_FALSE=
16219 fi
16220         cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_SGI_OS 1
16222 _ACEOF
16223
16224 else
16225
16226
16227 if $FALSEPRG; then
16228   HAVE_SGI_OS_TRUE=
16229   HAVE_SGI_OS_FALSE='#'
16230 else
16231   HAVE_SGI_OS_TRUE='#'
16232   HAVE_SGI_OS_FALSE=
16233 fi
16234 fi
16235
16236 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16237 then
16238
16239
16240 if $TRUEPRG; then
16241   HAVE_IRIX_OS_TRUE=
16242   HAVE_IRIX_OS_FALSE='#'
16243 else
16244   HAVE_IRIX_OS_TRUE='#'
16245   HAVE_IRIX_OS_FALSE=
16246 fi
16247         cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_IRIX_OS 1
16249 _ACEOF
16250
16251 else
16252
16253
16254 if $FALSEPRG; then
16255   HAVE_IRIX_OS_TRUE=
16256   HAVE_IRIX_OS_FALSE='#'
16257 else
16258   HAVE_IRIX_OS_TRUE='#'
16259   HAVE_IRIX_OS_FALSE=
16260 fi
16261 fi
16262
16263 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16264 then
16265
16266
16267 if $TRUEPRG; then
16268   HAVE_DARWIN_OS_TRUE=
16269   HAVE_DARWIN_OS_FALSE='#'
16270 else
16271   HAVE_DARWIN_OS_TRUE='#'
16272   HAVE_DARWIN_OS_FALSE=
16273 fi
16274     cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_DARWIN_OS 1
16276 _ACEOF
16277
16278 else
16279
16280
16281 if $FALSEPRG; then
16282   HAVE_DARWIN_OS_TRUE=
16283   HAVE_DARWIN_OS_FALSE='#'
16284 else
16285   HAVE_DARWIN_OS_TRUE='#'
16286   HAVE_DARWIN_OS_FALSE=
16287 fi
16288 fi
16289
16290
16291 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16292 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16293 if test "x$DISTNAME" != "x"
16294 then
16295         echo "distname set to $DISTNAME"
16296 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16297 then
16298         DISTNAME=alpha
16299 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16300 then
16301         DISTNAME=aix
16302 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16303 then
16304         DISTNAME=hpux
16305 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16306 then
16307         DISTNAME=solaris
16308 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16309 then
16310         DISTNAME=freebsd
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16312 then
16313         DISTNAME=netbsd
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16315 then
16316         DISTNAME=openbsd
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16318 then
16319         DISTNAME=irix
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16321 then
16322         DISTNAME=bsdi
16323 elif test -f /etc/SuSE-release
16324 then
16325         DISTNAME=suse
16326 elif test -d /etc/SuSEconfig
16327 then
16328         DISTNAME=suse5
16329 elif test -f /etc/mandrake-release
16330 then
16331         DISTNAME=mandrake
16332 elif test -f /etc/whitebox-release
16333 then
16334        DISTNAME=redhat
16335 elif test -f /etc/redhat-release
16336 then
16337         DISTNAME=redhat
16338 elif test -f /etc/gentoo-release
16339 then
16340         DISTNAME=gentoo
16341 elif test -f /etc/debian_version
16342 then
16343         DISTNAME=debian
16344 elif test -f /etc/slackware-version
16345 then
16346         DISTNAME=slackware
16347 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16348 then
16349     DISTNAME=darwin
16350 elif test -f /etc/engarde-version
16351 then
16352         DISTNAME=engarde
16353 elif test "$CYGWIN" = yes
16354 then
16355         DISTNAME=cygwin
16356         cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_CYGWIN 1
16358 _ACEOF
16359
16360 else
16361         DISTNAME=unknown
16362 fi
16363 { echo "$as_me:$LINENO: result: done" >&5
16364 echo "${ECHO_T}done" >&6; }
16365
16366
16367 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16368 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16369 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16371   echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373   cat >conftest.make <<\_ACEOF
16374 SHELL = /bin/sh
16375 all:
16376         @echo '@@@%%%=$(MAKE)=@@@%%%'
16377 _ACEOF
16378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16380   *@@@%%%=?*=@@@%%%*)
16381     eval ac_cv_prog_make_${ac_make}_set=yes;;
16382   *)
16383     eval ac_cv_prog_make_${ac_make}_set=no;;
16384 esac
16385 rm -f conftest.make
16386 fi
16387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16388   { echo "$as_me:$LINENO: result: yes" >&5
16389 echo "${ECHO_T}yes" >&6; }
16390   SET_MAKE=
16391 else
16392   { echo "$as_me:$LINENO: result: no" >&5
16393 echo "${ECHO_T}no" >&6; }
16394   SET_MAKE="MAKE=${MAKE-make}"
16395 fi
16396
16397
16398
16399         MKINSTALLDIRS=
16400   if test -n "$ac_aux_dir"; then
16401     case "$ac_aux_dir" in
16402       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16403       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16404     esac
16405   fi
16406   if test -z "$MKINSTALLDIRS"; then
16407     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16408   fi
16409
16410
16411
16412   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16413 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16414     # Check whether --enable-nls was given.
16415 if test "${enable_nls+set}" = set; then
16416   enableval=$enable_nls; USE_NLS=$enableval
16417 else
16418   USE_NLS=yes
16419 fi
16420
16421   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16422 echo "${ECHO_T}$USE_NLS" >&6; }
16423
16424
16425
16426
16427
16428
16429 # Prepare PATH_SEPARATOR.
16430 # The user is always right.
16431 if test "${PATH_SEPARATOR+set}" != set; then
16432   echo "#! /bin/sh" >conf$$.sh
16433   echo  "exit 0"   >>conf$$.sh
16434   chmod +x conf$$.sh
16435   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16436     PATH_SEPARATOR=';'
16437   else
16438     PATH_SEPARATOR=:
16439   fi
16440   rm -f conf$$.sh
16441 fi
16442
16443 # Find out how to test for executable files. Don't use a zero-byte file,
16444 # as systems may use methods other than mode bits to determine executability.
16445 cat >conf$$.file <<_ASEOF
16446 #! /bin/sh
16447 exit 0
16448 _ASEOF
16449 chmod +x conf$$.file
16450 if test -x conf$$.file >/dev/null 2>&1; then
16451   ac_executable_p="test -x"
16452 else
16453   ac_executable_p="test -f"
16454 fi
16455 rm -f conf$$.file
16456
16457 # Extract the first word of "msgfmt", so it can be a program name with args.
16458 set dummy msgfmt; ac_word=$2
16459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16461 if test "${ac_cv_path_MSGFMT+set}" = set; then
16462   echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464   case "$MSGFMT" in
16465   [\\/]* | ?:[\\/]*)
16466     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16467     ;;
16468   *)
16469     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16470     for ac_dir in $PATH; do
16471       IFS="$ac_save_IFS"
16472       test -z "$ac_dir" && ac_dir=.
16473       for ac_exec_ext in '' $ac_executable_extensions; do
16474         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16475           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16476           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16477      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16478             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16479             break 2
16480           fi
16481         fi
16482       done
16483     done
16484     IFS="$ac_save_IFS"
16485   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16486     ;;
16487 esac
16488 fi
16489 MSGFMT="$ac_cv_path_MSGFMT"
16490 if test "$MSGFMT" != ":"; then
16491   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16492 echo "${ECHO_T}$MSGFMT" >&6; }
16493 else
16494   { echo "$as_me:$LINENO: result: no" >&5
16495 echo "${ECHO_T}no" >&6; }
16496 fi
16497
16498   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16499 set dummy gmsgfmt; ac_word=$2
16500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16502 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   case $GMSGFMT in
16506   [\\/]* | ?:[\\/]*)
16507   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16508   ;;
16509   *)
16510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16511 for as_dir in $PATH
16512 do
16513   IFS=$as_save_IFS
16514   test -z "$as_dir" && as_dir=.
16515   for ac_exec_ext in '' $ac_executable_extensions; do
16516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16517     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16519     break 2
16520   fi
16521 done
16522 done
16523 IFS=$as_save_IFS
16524
16525   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16526   ;;
16527 esac
16528 fi
16529 GMSGFMT=$ac_cv_path_GMSGFMT
16530 if test -n "$GMSGFMT"; then
16531   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16532 echo "${ECHO_T}$GMSGFMT" >&6; }
16533 else
16534   { echo "$as_me:$LINENO: result: no" >&5
16535 echo "${ECHO_T}no" >&6; }
16536 fi
16537
16538
16539
16540
16541 # Prepare PATH_SEPARATOR.
16542 # The user is always right.
16543 if test "${PATH_SEPARATOR+set}" != set; then
16544   echo "#! /bin/sh" >conf$$.sh
16545   echo  "exit 0"   >>conf$$.sh
16546   chmod +x conf$$.sh
16547   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16548     PATH_SEPARATOR=';'
16549   else
16550     PATH_SEPARATOR=:
16551   fi
16552   rm -f conf$$.sh
16553 fi
16554
16555 # Find out how to test for executable files. Don't use a zero-byte file,
16556 # as systems may use methods other than mode bits to determine executability.
16557 cat >conf$$.file <<_ASEOF
16558 #! /bin/sh
16559 exit 0
16560 _ASEOF
16561 chmod +x conf$$.file
16562 if test -x conf$$.file >/dev/null 2>&1; then
16563   ac_executable_p="test -x"
16564 else
16565   ac_executable_p="test -f"
16566 fi
16567 rm -f conf$$.file
16568
16569 # Extract the first word of "xgettext", so it can be a program name with args.
16570 set dummy xgettext; ac_word=$2
16571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16573 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16574   echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576   case "$XGETTEXT" in
16577   [\\/]* | ?:[\\/]*)
16578     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16579     ;;
16580   *)
16581     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16582     for ac_dir in $PATH; do
16583       IFS="$ac_save_IFS"
16584       test -z "$ac_dir" && ac_dir=.
16585       for ac_exec_ext in '' $ac_executable_extensions; do
16586         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16587           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16588           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16589      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16590             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16591             break 2
16592           fi
16593         fi
16594       done
16595     done
16596     IFS="$ac_save_IFS"
16597   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16598     ;;
16599 esac
16600 fi
16601 XGETTEXT="$ac_cv_path_XGETTEXT"
16602 if test "$XGETTEXT" != ":"; then
16603   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16604 echo "${ECHO_T}$XGETTEXT" >&6; }
16605 else
16606   { echo "$as_me:$LINENO: result: no" >&5
16607 echo "${ECHO_T}no" >&6; }
16608 fi
16609
16610     rm -f messages.po
16611
16612
16613 # Prepare PATH_SEPARATOR.
16614 # The user is always right.
16615 if test "${PATH_SEPARATOR+set}" != set; then
16616   echo "#! /bin/sh" >conf$$.sh
16617   echo  "exit 0"   >>conf$$.sh
16618   chmod +x conf$$.sh
16619   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16620     PATH_SEPARATOR=';'
16621   else
16622     PATH_SEPARATOR=:
16623   fi
16624   rm -f conf$$.sh
16625 fi
16626
16627 # Find out how to test for executable files. Don't use a zero-byte file,
16628 # as systems may use methods other than mode bits to determine executability.
16629 cat >conf$$.file <<_ASEOF
16630 #! /bin/sh
16631 exit 0
16632 _ASEOF
16633 chmod +x conf$$.file
16634 if test -x conf$$.file >/dev/null 2>&1; then
16635   ac_executable_p="test -x"
16636 else
16637   ac_executable_p="test -f"
16638 fi
16639 rm -f conf$$.file
16640
16641 # Extract the first word of "msgmerge", so it can be a program name with args.
16642 set dummy msgmerge; ac_word=$2
16643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16645 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   case "$MSGMERGE" in
16649   [\\/]* | ?:[\\/]*)
16650     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16651     ;;
16652   *)
16653     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16654     for ac_dir in $PATH; do
16655       IFS="$ac_save_IFS"
16656       test -z "$ac_dir" && ac_dir=.
16657       for ac_exec_ext in '' $ac_executable_extensions; do
16658         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16659           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16660           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16661             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16662             break 2
16663           fi
16664         fi
16665       done
16666     done
16667     IFS="$ac_save_IFS"
16668   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16669     ;;
16670 esac
16671 fi
16672 MSGMERGE="$ac_cv_path_MSGMERGE"
16673 if test "$MSGMERGE" != ":"; then
16674   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16675 echo "${ECHO_T}$MSGMERGE" >&6; }
16676 else
16677   { echo "$as_me:$LINENO: result: no" >&5
16678 echo "${ECHO_T}no" >&6; }
16679 fi
16680
16681
16682       if test "$GMSGFMT" != ":"; then
16683             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16684        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16685       : ;
16686     else
16687       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16688       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16689 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16690       GMSGFMT=":"
16691     fi
16692   fi
16693
16694       if test "$XGETTEXT" != ":"; then
16695             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16696        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16697       : ;
16698     else
16699       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16700 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16701       XGETTEXT=":"
16702     fi
16703         rm -f messages.po
16704   fi
16705
16706   ac_config_commands="$ac_config_commands default-1"
16707
16708
16709
16710       if test "X$prefix" = "XNONE"; then
16711     acl_final_prefix="$ac_default_prefix"
16712   else
16713     acl_final_prefix="$prefix"
16714   fi
16715   if test "X$exec_prefix" = "XNONE"; then
16716     acl_final_exec_prefix='${prefix}'
16717   else
16718     acl_final_exec_prefix="$exec_prefix"
16719   fi
16720   acl_save_prefix="$prefix"
16721   prefix="$acl_final_prefix"
16722   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16723   prefix="$acl_save_prefix"
16724
16725
16726 # Check whether --with-gnu-ld was given.
16727 if test "${with_gnu_ld+set}" = set; then
16728   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16729 else
16730   with_gnu_ld=no
16731 fi
16732
16733 # Prepare PATH_SEPARATOR.
16734 # The user is always right.
16735 if test "${PATH_SEPARATOR+set}" != set; then
16736   echo "#! /bin/sh" >conf$$.sh
16737   echo  "exit 0"   >>conf$$.sh
16738   chmod +x conf$$.sh
16739   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16740     PATH_SEPARATOR=';'
16741   else
16742     PATH_SEPARATOR=:
16743   fi
16744   rm -f conf$$.sh
16745 fi
16746 ac_prog=ld
16747 if test "$GCC" = yes; then
16748   # Check if gcc -print-prog-name=ld gives a path.
16749   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16750 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16751   case $host in
16752   *-*-mingw*)
16753     # gcc leaves a trailing carriage return which upsets mingw
16754     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16755   *)
16756     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16757   esac
16758   case $ac_prog in
16759     # Accept absolute paths.
16760     [\\/]* | [A-Za-z]:[\\/]*)
16761       re_direlt='/[^/][^/]*/\.\./'
16762       # Canonicalize the path of ld
16763       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16764       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16765         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16766       done
16767       test -z "$LD" && LD="$ac_prog"
16768       ;;
16769   "")
16770     # If it fails, then pretend we aren't using GCC.
16771     ac_prog=ld
16772     ;;
16773   *)
16774     # If it is relative, then search for the first ld in PATH.
16775     with_gnu_ld=unknown
16776     ;;
16777   esac
16778 elif test "$with_gnu_ld" = yes; then
16779   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16780 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16781 else
16782   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16783 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16784 fi
16785 if test "${acl_cv_path_LD+set}" = set; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   if test -z "$LD"; then
16789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16790   for ac_dir in $PATH; do
16791     test -z "$ac_dir" && ac_dir=.
16792     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16793       acl_cv_path_LD="$ac_dir/$ac_prog"
16794       # Check to see if the program is GNU ld.  I'd rather use --version,
16795       # but apparently some GNU ld's only accept -v.
16796       # Break only if it was the GNU/non-GNU ld that we prefer.
16797       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16798       *GNU* | *'with BFD'*)
16799         test "$with_gnu_ld" != no && break ;;
16800       *)
16801         test "$with_gnu_ld" != yes && break ;;
16802       esac
16803     fi
16804   done
16805   IFS="$ac_save_ifs"
16806 else
16807   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16808 fi
16809 fi
16810
16811 LD="$acl_cv_path_LD"
16812 if test -n "$LD"; then
16813   { echo "$as_me:$LINENO: result: $LD" >&5
16814 echo "${ECHO_T}$LD" >&6; }
16815 else
16816   { echo "$as_me:$LINENO: result: no" >&5
16817 echo "${ECHO_T}no" >&6; }
16818 fi
16819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16821    { (exit 1); exit 1; }; }
16822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16824 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16828 case `$LD -v 2>&1 </dev/null` in
16829 *GNU* | *'with BFD'*)
16830   acl_cv_prog_gnu_ld=yes ;;
16831 *)
16832   acl_cv_prog_gnu_ld=no ;;
16833 esac
16834 fi
16835 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16836 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16837 with_gnu_ld=$acl_cv_prog_gnu_ld
16838
16839
16840
16841
16842                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16843 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16844 if test "${acl_cv_rpath+set}" = set; then
16845   echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847
16848     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16849     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16850     . ./conftest.sh
16851     rm -f ./conftest.sh
16852     acl_cv_rpath=done
16853
16854 fi
16855 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16856 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16857   wl="$acl_cv_wl"
16858   libext="$acl_cv_libext"
16859   shlibext="$acl_cv_shlibext"
16860   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16861   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16862   hardcode_direct="$acl_cv_hardcode_direct"
16863   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16864     # Check whether --enable-rpath was given.
16865 if test "${enable_rpath+set}" = set; then
16866   enableval=$enable_rpath; :
16867 else
16868   enable_rpath=yes
16869 fi
16870
16871
16872
16873
16874
16875
16876
16877
16878     use_additional=yes
16879
16880   acl_save_prefix="$prefix"
16881   prefix="$acl_final_prefix"
16882   acl_save_exec_prefix="$exec_prefix"
16883   exec_prefix="$acl_final_exec_prefix"
16884
16885     eval additional_includedir=\"$includedir\"
16886     eval additional_libdir=\"$libdir\"
16887
16888   exec_prefix="$acl_save_exec_prefix"
16889   prefix="$acl_save_prefix"
16890
16891
16892 # Check whether --with-libiconv-prefix was given.
16893 if test "${with_libiconv_prefix+set}" = set; then
16894   withval=$with_libiconv_prefix;
16895     if test "X$withval" = "Xno"; then
16896       use_additional=no
16897     else
16898       if test "X$withval" = "X"; then
16899
16900   acl_save_prefix="$prefix"
16901   prefix="$acl_final_prefix"
16902   acl_save_exec_prefix="$exec_prefix"
16903   exec_prefix="$acl_final_exec_prefix"
16904
16905           eval additional_includedir=\"$includedir\"
16906           eval additional_libdir=\"$libdir\"
16907
16908   exec_prefix="$acl_save_exec_prefix"
16909   prefix="$acl_save_prefix"
16910
16911       else
16912         additional_includedir="$withval/include"
16913         additional_libdir="$withval/lib"
16914       fi
16915     fi
16916
16917 fi
16918
16919       LIBICONV=
16920   LTLIBICONV=
16921   INCICONV=
16922   rpathdirs=
16923   ltrpathdirs=
16924   names_already_handled=
16925   names_next_round='iconv '
16926   while test -n "$names_next_round"; do
16927     names_this_round="$names_next_round"
16928     names_next_round=
16929     for name in $names_this_round; do
16930       already_handled=
16931       for n in $names_already_handled; do
16932         if test "$n" = "$name"; then
16933           already_handled=yes
16934           break
16935         fi
16936       done
16937       if test -z "$already_handled"; then
16938         names_already_handled="$names_already_handled $name"
16939                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16940         eval value=\"\$HAVE_LIB$uppername\"
16941         if test -n "$value"; then
16942           if test "$value" = yes; then
16943             eval value=\"\$LIB$uppername\"
16944             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16945             eval value=\"\$LTLIB$uppername\"
16946             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16947           else
16948                                     :
16949           fi
16950         else
16951                               found_dir=
16952           found_la=
16953           found_so=
16954           found_a=
16955           if test $use_additional = yes; then
16956             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16957               found_dir="$additional_libdir"
16958               found_so="$additional_libdir/lib$name.$shlibext"
16959               if test -f "$additional_libdir/lib$name.la"; then
16960                 found_la="$additional_libdir/lib$name.la"
16961               fi
16962             else
16963               if test -f "$additional_libdir/lib$name.$libext"; then
16964                 found_dir="$additional_libdir"
16965                 found_a="$additional_libdir/lib$name.$libext"
16966                 if test -f "$additional_libdir/lib$name.la"; then
16967                   found_la="$additional_libdir/lib$name.la"
16968                 fi
16969               fi
16970             fi
16971           fi
16972           if test "X$found_dir" = "X"; then
16973             for x in $LDFLAGS $LTLIBICONV; do
16974
16975   acl_save_prefix="$prefix"
16976   prefix="$acl_final_prefix"
16977   acl_save_exec_prefix="$exec_prefix"
16978   exec_prefix="$acl_final_exec_prefix"
16979   eval x=\"$x\"
16980   exec_prefix="$acl_save_exec_prefix"
16981   prefix="$acl_save_prefix"
16982
16983               case "$x" in
16984                 -L*)
16985                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16986                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16987                     found_dir="$dir"
16988                     found_so="$dir/lib$name.$shlibext"
16989                     if test -f "$dir/lib$name.la"; then
16990                       found_la="$dir/lib$name.la"
16991                     fi
16992                   else
16993                     if test -f "$dir/lib$name.$libext"; then
16994                       found_dir="$dir"
16995                       found_a="$dir/lib$name.$libext"
16996                       if test -f "$dir/lib$name.la"; then
16997                         found_la="$dir/lib$name.la"
16998                       fi
16999                     fi
17000                   fi
17001                   ;;
17002               esac
17003               if test "X$found_dir" != "X"; then
17004                 break
17005               fi
17006             done
17007           fi
17008           if test "X$found_dir" != "X"; then
17009                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17010             if test "X$found_so" != "X"; then
17011                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17012                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17013               else
17014                                                                                 haveit=
17015                 for x in $ltrpathdirs; do
17016                   if test "X$x" = "X$found_dir"; then
17017                     haveit=yes
17018                     break
17019                   fi
17020                 done
17021                 if test -z "$haveit"; then
17022                   ltrpathdirs="$ltrpathdirs $found_dir"
17023                 fi
17024                                 if test "$hardcode_direct" = yes; then
17025                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17026                 else
17027                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17028                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17029                                                             haveit=
17030                     for x in $rpathdirs; do
17031                       if test "X$x" = "X$found_dir"; then
17032                         haveit=yes
17033                         break
17034                       fi
17035                     done
17036                     if test -z "$haveit"; then
17037                       rpathdirs="$rpathdirs $found_dir"
17038                     fi
17039                   else
17040                                                                                 haveit=
17041                     for x in $LDFLAGS $LIBICONV; do
17042
17043   acl_save_prefix="$prefix"
17044   prefix="$acl_final_prefix"
17045   acl_save_exec_prefix="$exec_prefix"
17046   exec_prefix="$acl_final_exec_prefix"
17047   eval x=\"$x\"
17048   exec_prefix="$acl_save_exec_prefix"
17049   prefix="$acl_save_prefix"
17050
17051                       if test "X$x" = "X-L$found_dir"; then
17052                         haveit=yes
17053                         break
17054                       fi
17055                     done
17056                     if test -z "$haveit"; then
17057                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17058                     fi
17059                     if test "$hardcode_minus_L" != no; then
17060                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17061                     else
17062                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17063                     fi
17064                   fi
17065                 fi
17066               fi
17067             else
17068               if test "X$found_a" != "X"; then
17069                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17070               else
17071                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17072               fi
17073             fi
17074                         additional_includedir=
17075             case "$found_dir" in
17076               */lib | */lib/)
17077                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17078                 additional_includedir="$basedir/include"
17079                 ;;
17080             esac
17081             if test "X$additional_includedir" != "X"; then
17082                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17083                 haveit=
17084                 if test "X$additional_includedir" = "X/usr/local/include"; then
17085                   if test -n "$GCC"; then
17086                     case $host_os in
17087                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17088                     esac
17089                   fi
17090                 fi
17091                 if test -z "$haveit"; then
17092                   for x in $CPPFLAGS $INCICONV; do
17093
17094   acl_save_prefix="$prefix"
17095   prefix="$acl_final_prefix"
17096   acl_save_exec_prefix="$exec_prefix"
17097   exec_prefix="$acl_final_exec_prefix"
17098   eval x=\"$x\"
17099   exec_prefix="$acl_save_exec_prefix"
17100   prefix="$acl_save_prefix"
17101
17102                     if test "X$x" = "X-I$additional_includedir"; then
17103                       haveit=yes
17104                       break
17105                     fi
17106                   done
17107                   if test -z "$haveit"; then
17108                     if test -d "$additional_includedir"; then
17109                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17110                     fi
17111                   fi
17112                 fi
17113               fi
17114             fi
17115                         if test -n "$found_la"; then
17116                                                         save_libdir="$libdir"
17117               case "$found_la" in
17118                 */* | *\\*) . "$found_la" ;;
17119                 *) . "./$found_la" ;;
17120               esac
17121               libdir="$save_libdir"
17122                             for dep in $dependency_libs; do
17123                 case "$dep" in
17124                   -L*)
17125                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17126                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17127                       haveit=
17128                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17129                         if test -n "$GCC"; then
17130                           case $host_os in
17131                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17132                           esac
17133                         fi
17134                       fi
17135                       if test -z "$haveit"; then
17136                         haveit=
17137                         for x in $LDFLAGS $LIBICONV; do
17138
17139   acl_save_prefix="$prefix"
17140   prefix="$acl_final_prefix"
17141   acl_save_exec_prefix="$exec_prefix"
17142   exec_prefix="$acl_final_exec_prefix"
17143   eval x=\"$x\"
17144   exec_prefix="$acl_save_exec_prefix"
17145   prefix="$acl_save_prefix"
17146
17147                           if test "X$x" = "X-L$additional_libdir"; then
17148                             haveit=yes
17149                             break
17150                           fi
17151                         done
17152                         if test -z "$haveit"; then
17153                           if test -d "$additional_libdir"; then
17154                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17155                           fi
17156                         fi
17157                         haveit=
17158                         for x in $LDFLAGS $LTLIBICONV; do
17159
17160   acl_save_prefix="$prefix"
17161   prefix="$acl_final_prefix"
17162   acl_save_exec_prefix="$exec_prefix"
17163   exec_prefix="$acl_final_exec_prefix"
17164   eval x=\"$x\"
17165   exec_prefix="$acl_save_exec_prefix"
17166   prefix="$acl_save_prefix"
17167
17168                           if test "X$x" = "X-L$additional_libdir"; then
17169                             haveit=yes
17170                             break
17171                           fi
17172                         done
17173                         if test -z "$haveit"; then
17174                           if test -d "$additional_libdir"; then
17175                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17176                           fi
17177                         fi
17178                       fi
17179                     fi
17180                     ;;
17181                   -R*)
17182                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17183                     if test "$enable_rpath" != no; then
17184                                                                   haveit=
17185                       for x in $rpathdirs; do
17186                         if test "X$x" = "X$dir"; then
17187                           haveit=yes
17188                           break
17189                         fi
17190                       done
17191                       if test -z "$haveit"; then
17192                         rpathdirs="$rpathdirs $dir"
17193                       fi
17194                                                                   haveit=
17195                       for x in $ltrpathdirs; do
17196                         if test "X$x" = "X$dir"; then
17197                           haveit=yes
17198                           break
17199                         fi
17200                       done
17201                       if test -z "$haveit"; then
17202                         ltrpathdirs="$ltrpathdirs $dir"
17203                       fi
17204                     fi
17205                     ;;
17206                   -l*)
17207                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17208                     ;;
17209                   *.la)
17210                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17211                     ;;
17212                   *)
17213                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17214                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17215                     ;;
17216                 esac
17217               done
17218             fi
17219           else
17220                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17221             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17222           fi
17223         fi
17224       fi
17225     done
17226   done
17227   if test "X$rpathdirs" != "X"; then
17228     if test -n "$hardcode_libdir_separator"; then
17229                         alldirs=
17230       for found_dir in $rpathdirs; do
17231         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17232       done
17233             acl_save_libdir="$libdir"
17234       libdir="$alldirs"
17235       eval flag=\"$hardcode_libdir_flag_spec\"
17236       libdir="$acl_save_libdir"
17237       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17238     else
17239             for found_dir in $rpathdirs; do
17240         acl_save_libdir="$libdir"
17241         libdir="$found_dir"
17242         eval flag=\"$hardcode_libdir_flag_spec\"
17243         libdir="$acl_save_libdir"
17244         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17245       done
17246     fi
17247   fi
17248   if test "X$ltrpathdirs" != "X"; then
17249             for found_dir in $ltrpathdirs; do
17250       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17251     done
17252   fi
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17272 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17273 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   gt_save_CPPFLAGS="$CPPFLAGS"
17277      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17278      gt_save_LIBS="$LIBS"
17279      LIBS="$LIBS -framework CoreFoundation"
17280      cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286 #include <CFPreferences.h>
17287 int
17288 main ()
17289 {
17290 CFPreferencesCopyAppValue(NULL, NULL)
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (ac_try="$ac_link"
17297 case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_link") 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } && {
17309          test -z "$ac_c_werror_flag" ||
17310          test ! -s conftest.err
17311        } && test -s conftest$ac_exeext &&
17312        $as_test_x conftest$ac_exeext; then
17313   gt_cv_func_CFPreferencesCopyAppValue=yes
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318         gt_cv_func_CFPreferencesCopyAppValue=no
17319 fi
17320
17321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17322       conftest$ac_exeext conftest.$ac_ext
17323      CPPFLAGS="$gt_save_CPPFLAGS"
17324      LIBS="$gt_save_LIBS"
17325 fi
17326 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17327 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17328   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17329
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17332 _ACEOF
17333
17334   fi
17335     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17336 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17337 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   gt_save_CPPFLAGS="$CPPFLAGS"
17341      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17342      gt_save_LIBS="$LIBS"
17343      LIBS="$LIBS -framework CoreFoundation"
17344      cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350 #include <CFLocale.h>
17351 int
17352 main ()
17353 {
17354 CFLocaleCopyCurrent();
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   gt_cv_func_CFLocaleCopyCurrent=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         gt_cv_func_CFLocaleCopyCurrent=no
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387      CPPFLAGS="$gt_save_CPPFLAGS"
17388      LIBS="$gt_save_LIBS"
17389 fi
17390 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17391 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17392   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17393
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_CFLOCALECOPYCURRENT 1
17396 _ACEOF
17397
17398   fi
17399   INTL_MACOSX_LIBS=
17400   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17401     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17402   fi
17403
17404
17405
17406
17407   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17408 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17409     # Check whether --enable-nls was given.
17410 if test "${enable_nls+set}" = set; then
17411   enableval=$enable_nls; USE_NLS=$enableval
17412 else
17413   USE_NLS=yes
17414 fi
17415
17416   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17417 echo "${ECHO_T}$USE_NLS" >&6; }
17418
17419
17420
17421
17422   LIBINTL=
17423   LTLIBINTL=
17424   POSUB=
17425
17426     if test "$USE_NLS" = "yes"; then
17427     gt_use_preinstalled_gnugettext=no
17428
17429
17430
17431
17432
17433
17434         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17435 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17436 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 #include <libintl.h>
17446 extern int _nl_msg_cat_cntr;
17447 extern int *_nl_domain_bindings;
17448 int
17449 main ()
17450 {
17451 bindtextdomain ("", "");
17452 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_link") 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } && {
17471          test -z "$ac_c_werror_flag" ||
17472          test ! -s conftest.err
17473        } && test -s conftest$ac_exeext &&
17474        $as_test_x conftest$ac_exeext; then
17475   gt_cv_func_gnugettext1_libc=yes
17476 else
17477   echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480         gt_cv_func_gnugettext1_libc=no
17481 fi
17482
17483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17484       conftest$ac_exeext conftest.$ac_ext
17485 fi
17486 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17487 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17488
17489         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17490
17491
17492
17493
17494
17495           am_save_CPPFLAGS="$CPPFLAGS"
17496
17497   for element in $INCICONV; do
17498     haveit=
17499     for x in $CPPFLAGS; do
17500
17501   acl_save_prefix="$prefix"
17502   prefix="$acl_final_prefix"
17503   acl_save_exec_prefix="$exec_prefix"
17504   exec_prefix="$acl_final_exec_prefix"
17505   eval x=\"$x\"
17506   exec_prefix="$acl_save_exec_prefix"
17507   prefix="$acl_save_prefix"
17508
17509       if test "X$x" = "X$element"; then
17510         haveit=yes
17511         break
17512       fi
17513     done
17514     if test -z "$haveit"; then
17515       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17516     fi
17517   done
17518
17519
17520   { echo "$as_me:$LINENO: checking for iconv" >&5
17521 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17522 if test "${am_cv_func_iconv+set}" = set; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525
17526     am_cv_func_iconv="no, consider installing GNU libiconv"
17527     am_cv_lib_iconv=no
17528     cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534 #include <stdlib.h>
17535 #include <iconv.h>
17536 int
17537 main ()
17538 {
17539 iconv_t cd = iconv_open("","");
17540        iconv(cd,NULL,NULL,NULL,NULL);
17541        iconv_close(cd);
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (ac_try="$ac_link"
17548 case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_link") 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } && {
17560          test -z "$ac_c_werror_flag" ||
17561          test ! -s conftest.err
17562        } && test -s conftest$ac_exeext &&
17563        $as_test_x conftest$ac_exeext; then
17564   am_cv_func_iconv=yes
17565 else
17566   echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17568
17569
17570 fi
17571
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573       conftest$ac_exeext conftest.$ac_ext
17574     if test "$am_cv_func_iconv" != yes; then
17575       am_save_LIBS="$LIBS"
17576       LIBS="$LIBS $LIBICONV"
17577       cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583 #include <stdlib.h>
17584 #include <iconv.h>
17585 int
17586 main ()
17587 {
17588 iconv_t cd = iconv_open("","");
17589          iconv(cd,NULL,NULL,NULL,NULL);
17590          iconv_close(cd);
17591   ;
17592   return 0;
17593 }
17594 _ACEOF
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599   *) ac_try_echo=$ac_try;;
17600 esac
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602   (eval "$ac_link") 2>conftest.er1
17603   ac_status=$?
17604   grep -v '^ *+' conftest.er1 >conftest.err
17605   rm -f conftest.er1
17606   cat conftest.err >&5
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } && {
17609          test -z "$ac_c_werror_flag" ||
17610          test ! -s conftest.err
17611        } && test -s conftest$ac_exeext &&
17612        $as_test_x conftest$ac_exeext; then
17613   am_cv_lib_iconv=yes
17614         am_cv_func_iconv=yes
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619
17620 fi
17621
17622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17623       conftest$ac_exeext conftest.$ac_ext
17624       LIBS="$am_save_LIBS"
17625     fi
17626
17627 fi
17628 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17629 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17630   if test "$am_cv_func_iconv" = yes; then
17631
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_ICONV 1
17634 _ACEOF
17635
17636   fi
17637   if test "$am_cv_lib_iconv" = yes; then
17638     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17639 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17640     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17641 echo "${ECHO_T}$LIBICONV" >&6; }
17642   else
17643             CPPFLAGS="$am_save_CPPFLAGS"
17644     LIBICONV=
17645     LTLIBICONV=
17646   fi
17647
17648
17649
17650
17651
17652
17653     use_additional=yes
17654
17655   acl_save_prefix="$prefix"
17656   prefix="$acl_final_prefix"
17657   acl_save_exec_prefix="$exec_prefix"
17658   exec_prefix="$acl_final_exec_prefix"
17659
17660     eval additional_includedir=\"$includedir\"
17661     eval additional_libdir=\"$libdir\"
17662
17663   exec_prefix="$acl_save_exec_prefix"
17664   prefix="$acl_save_prefix"
17665
17666
17667 # Check whether --with-libintl-prefix was given.
17668 if test "${with_libintl_prefix+set}" = set; then
17669   withval=$with_libintl_prefix;
17670     if test "X$withval" = "Xno"; then
17671       use_additional=no
17672     else
17673       if test "X$withval" = "X"; then
17674
17675   acl_save_prefix="$prefix"
17676   prefix="$acl_final_prefix"
17677   acl_save_exec_prefix="$exec_prefix"
17678   exec_prefix="$acl_final_exec_prefix"
17679
17680           eval additional_includedir=\"$includedir\"
17681           eval additional_libdir=\"$libdir\"
17682
17683   exec_prefix="$acl_save_exec_prefix"
17684   prefix="$acl_save_prefix"
17685
17686       else
17687         additional_includedir="$withval/include"
17688         additional_libdir="$withval/lib"
17689       fi
17690     fi
17691
17692 fi
17693
17694       LIBINTL=
17695   LTLIBINTL=
17696   INCINTL=
17697   rpathdirs=
17698   ltrpathdirs=
17699   names_already_handled=
17700   names_next_round='intl '
17701   while test -n "$names_next_round"; do
17702     names_this_round="$names_next_round"
17703     names_next_round=
17704     for name in $names_this_round; do
17705       already_handled=
17706       for n in $names_already_handled; do
17707         if test "$n" = "$name"; then
17708           already_handled=yes
17709           break
17710         fi
17711       done
17712       if test -z "$already_handled"; then
17713         names_already_handled="$names_already_handled $name"
17714                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17715         eval value=\"\$HAVE_LIB$uppername\"
17716         if test -n "$value"; then
17717           if test "$value" = yes; then
17718             eval value=\"\$LIB$uppername\"
17719             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17720             eval value=\"\$LTLIB$uppername\"
17721             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17722           else
17723                                     :
17724           fi
17725         else
17726                               found_dir=
17727           found_la=
17728           found_so=
17729           found_a=
17730           if test $use_additional = yes; then
17731             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17732               found_dir="$additional_libdir"
17733               found_so="$additional_libdir/lib$name.$shlibext"
17734               if test -f "$additional_libdir/lib$name.la"; then
17735                 found_la="$additional_libdir/lib$name.la"
17736               fi
17737             else
17738               if test -f "$additional_libdir/lib$name.$libext"; then
17739                 found_dir="$additional_libdir"
17740                 found_a="$additional_libdir/lib$name.$libext"
17741                 if test -f "$additional_libdir/lib$name.la"; then
17742                   found_la="$additional_libdir/lib$name.la"
17743                 fi
17744               fi
17745             fi
17746           fi
17747           if test "X$found_dir" = "X"; then
17748             for x in $LDFLAGS $LTLIBINTL; do
17749
17750   acl_save_prefix="$prefix"
17751   prefix="$acl_final_prefix"
17752   acl_save_exec_prefix="$exec_prefix"
17753   exec_prefix="$acl_final_exec_prefix"
17754   eval x=\"$x\"
17755   exec_prefix="$acl_save_exec_prefix"
17756   prefix="$acl_save_prefix"
17757
17758               case "$x" in
17759                 -L*)
17760                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17761                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17762                     found_dir="$dir"
17763                     found_so="$dir/lib$name.$shlibext"
17764                     if test -f "$dir/lib$name.la"; then
17765                       found_la="$dir/lib$name.la"
17766                     fi
17767                   else
17768                     if test -f "$dir/lib$name.$libext"; then
17769                       found_dir="$dir"
17770                       found_a="$dir/lib$name.$libext"
17771                       if test -f "$dir/lib$name.la"; then
17772                         found_la="$dir/lib$name.la"
17773                       fi
17774                     fi
17775                   fi
17776                   ;;
17777               esac
17778               if test "X$found_dir" != "X"; then
17779                 break
17780               fi
17781             done
17782           fi
17783           if test "X$found_dir" != "X"; then
17784                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17785             if test "X$found_so" != "X"; then
17786                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17787                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17788               else
17789                                                                                 haveit=
17790                 for x in $ltrpathdirs; do
17791                   if test "X$x" = "X$found_dir"; then
17792                     haveit=yes
17793                     break
17794                   fi
17795                 done
17796                 if test -z "$haveit"; then
17797                   ltrpathdirs="$ltrpathdirs $found_dir"
17798                 fi
17799                                 if test "$hardcode_direct" = yes; then
17800                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17801                 else
17802                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17803                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17804                                                             haveit=
17805                     for x in $rpathdirs; do
17806                       if test "X$x" = "X$found_dir"; then
17807                         haveit=yes
17808                         break
17809                       fi
17810                     done
17811                     if test -z "$haveit"; then
17812                       rpathdirs="$rpathdirs $found_dir"
17813                     fi
17814                   else
17815                                                                                 haveit=
17816                     for x in $LDFLAGS $LIBINTL; do
17817
17818   acl_save_prefix="$prefix"
17819   prefix="$acl_final_prefix"
17820   acl_save_exec_prefix="$exec_prefix"
17821   exec_prefix="$acl_final_exec_prefix"
17822   eval x=\"$x\"
17823   exec_prefix="$acl_save_exec_prefix"
17824   prefix="$acl_save_prefix"
17825
17826                       if test "X$x" = "X-L$found_dir"; then
17827                         haveit=yes
17828                         break
17829                       fi
17830                     done
17831                     if test -z "$haveit"; then
17832                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17833                     fi
17834                     if test "$hardcode_minus_L" != no; then
17835                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17836                     else
17837                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17838                     fi
17839                   fi
17840                 fi
17841               fi
17842             else
17843               if test "X$found_a" != "X"; then
17844                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17845               else
17846                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17847               fi
17848             fi
17849                         additional_includedir=
17850             case "$found_dir" in
17851               */lib | */lib/)
17852                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17853                 additional_includedir="$basedir/include"
17854                 ;;
17855             esac
17856             if test "X$additional_includedir" != "X"; then
17857                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17858                 haveit=
17859                 if test "X$additional_includedir" = "X/usr/local/include"; then
17860                   if test -n "$GCC"; then
17861                     case $host_os in
17862                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17863                     esac
17864                   fi
17865                 fi
17866                 if test -z "$haveit"; then
17867                   for x in $CPPFLAGS $INCINTL; do
17868
17869   acl_save_prefix="$prefix"
17870   prefix="$acl_final_prefix"
17871   acl_save_exec_prefix="$exec_prefix"
17872   exec_prefix="$acl_final_exec_prefix"
17873   eval x=\"$x\"
17874   exec_prefix="$acl_save_exec_prefix"
17875   prefix="$acl_save_prefix"
17876
17877                     if test "X$x" = "X-I$additional_includedir"; then
17878                       haveit=yes
17879                       break
17880                     fi
17881                   done
17882                   if test -z "$haveit"; then
17883                     if test -d "$additional_includedir"; then
17884                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17885                     fi
17886                   fi
17887                 fi
17888               fi
17889             fi
17890                         if test -n "$found_la"; then
17891                                                         save_libdir="$libdir"
17892               case "$found_la" in
17893                 */* | *\\*) . "$found_la" ;;
17894                 *) . "./$found_la" ;;
17895               esac
17896               libdir="$save_libdir"
17897                             for dep in $dependency_libs; do
17898                 case "$dep" in
17899                   -L*)
17900                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17901                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17902                       haveit=
17903                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17904                         if test -n "$GCC"; then
17905                           case $host_os in
17906                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17907                           esac
17908                         fi
17909                       fi
17910                       if test -z "$haveit"; then
17911                         haveit=
17912                         for x in $LDFLAGS $LIBINTL; do
17913
17914   acl_save_prefix="$prefix"
17915   prefix="$acl_final_prefix"
17916   acl_save_exec_prefix="$exec_prefix"
17917   exec_prefix="$acl_final_exec_prefix"
17918   eval x=\"$x\"
17919   exec_prefix="$acl_save_exec_prefix"
17920   prefix="$acl_save_prefix"
17921
17922                           if test "X$x" = "X-L$additional_libdir"; then
17923                             haveit=yes
17924                             break
17925                           fi
17926                         done
17927                         if test -z "$haveit"; then
17928                           if test -d "$additional_libdir"; then
17929                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17930                           fi
17931                         fi
17932                         haveit=
17933                         for x in $LDFLAGS $LTLIBINTL; do
17934
17935   acl_save_prefix="$prefix"
17936   prefix="$acl_final_prefix"
17937   acl_save_exec_prefix="$exec_prefix"
17938   exec_prefix="$acl_final_exec_prefix"
17939   eval x=\"$x\"
17940   exec_prefix="$acl_save_exec_prefix"
17941   prefix="$acl_save_prefix"
17942
17943                           if test "X$x" = "X-L$additional_libdir"; then
17944                             haveit=yes
17945                             break
17946                           fi
17947                         done
17948                         if test -z "$haveit"; then
17949                           if test -d "$additional_libdir"; then
17950                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17951                           fi
17952                         fi
17953                       fi
17954                     fi
17955                     ;;
17956                   -R*)
17957                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17958                     if test "$enable_rpath" != no; then
17959                                                                   haveit=
17960                       for x in $rpathdirs; do
17961                         if test "X$x" = "X$dir"; then
17962                           haveit=yes
17963                           break
17964                         fi
17965                       done
17966                       if test -z "$haveit"; then
17967                         rpathdirs="$rpathdirs $dir"
17968                       fi
17969                                                                   haveit=
17970                       for x in $ltrpathdirs; do
17971                         if test "X$x" = "X$dir"; then
17972                           haveit=yes
17973                           break
17974                         fi
17975                       done
17976                       if test -z "$haveit"; then
17977                         ltrpathdirs="$ltrpathdirs $dir"
17978                       fi
17979                     fi
17980                     ;;
17981                   -l*)
17982                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17983                     ;;
17984                   *.la)
17985                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17986                     ;;
17987                   *)
17988                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17989                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17990                     ;;
17991                 esac
17992               done
17993             fi
17994           else
17995                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17996             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17997           fi
17998         fi
17999       fi
18000     done
18001   done
18002   if test "X$rpathdirs" != "X"; then
18003     if test -n "$hardcode_libdir_separator"; then
18004                         alldirs=
18005       for found_dir in $rpathdirs; do
18006         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18007       done
18008             acl_save_libdir="$libdir"
18009       libdir="$alldirs"
18010       eval flag=\"$hardcode_libdir_flag_spec\"
18011       libdir="$acl_save_libdir"
18012       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18013     else
18014             for found_dir in $rpathdirs; do
18015         acl_save_libdir="$libdir"
18016         libdir="$found_dir"
18017         eval flag=\"$hardcode_libdir_flag_spec\"
18018         libdir="$acl_save_libdir"
18019         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18020       done
18021     fi
18022   fi
18023   if test "X$ltrpathdirs" != "X"; then
18024             for found_dir in $ltrpathdirs; do
18025       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18026     done
18027   fi
18028
18029           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18030 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18031 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18032   echo $ECHO_N "(cached) $ECHO_C" >&6
18033 else
18034   gt_save_CPPFLAGS="$CPPFLAGS"
18035             CPPFLAGS="$CPPFLAGS $INCINTL"
18036             gt_save_LIBS="$LIBS"
18037             LIBS="$LIBS $LIBINTL"
18038                         cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044 #include <libintl.h>
18045 extern int _nl_msg_cat_cntr;
18046 extern
18047 #ifdef __cplusplus
18048 "C"
18049 #endif
18050 const char *_nl_expand_alias (const char *);
18051 int
18052 main ()
18053 {
18054 bindtextdomain ("", "");
18055 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_link") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } && {
18074          test -z "$ac_c_werror_flag" ||
18075          test ! -s conftest.err
18076        } && test -s conftest$ac_exeext &&
18077        $as_test_x conftest$ac_exeext; then
18078   gt_cv_func_gnugettext1_libintl=yes
18079 else
18080   echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083         gt_cv_func_gnugettext1_libintl=no
18084 fi
18085
18086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18087       conftest$ac_exeext conftest.$ac_ext
18088                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18089               LIBS="$LIBS $LIBICONV"
18090               cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096 #include <libintl.h>
18097 extern int _nl_msg_cat_cntr;
18098 extern
18099 #ifdef __cplusplus
18100 "C"
18101 #endif
18102 const char *_nl_expand_alias (const char *);
18103 int
18104 main ()
18105 {
18106 bindtextdomain ("", "");
18107 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18108   ;
18109   return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_link") 2>conftest.er1
18120   ac_status=$?
18121   grep -v '^ *+' conftest.er1 >conftest.err
18122   rm -f conftest.er1
18123   cat conftest.err >&5
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); } && {
18126          test -z "$ac_c_werror_flag" ||
18127          test ! -s conftest.err
18128        } && test -s conftest$ac_exeext &&
18129        $as_test_x conftest$ac_exeext; then
18130   LIBINTL="$LIBINTL $LIBICONV"
18131                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18132                 gt_cv_func_gnugettext1_libintl=yes
18133
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138
18139 fi
18140
18141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18142       conftest$ac_exeext conftest.$ac_ext
18143             fi
18144             CPPFLAGS="$gt_save_CPPFLAGS"
18145             LIBS="$gt_save_LIBS"
18146 fi
18147 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18148 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18149         fi
18150
18151                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18152            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18153                 && test "$PACKAGE" != gettext-runtime \
18154                 && test "$PACKAGE" != gettext-tools; }; then
18155           gt_use_preinstalled_gnugettext=yes
18156         else
18157                     LIBINTL=
18158           LTLIBINTL=
18159           INCINTL=
18160         fi
18161
18162
18163
18164     if test -n "$INTL_MACOSX_LIBS"; then
18165       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18166          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18167                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18168         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18169       fi
18170     fi
18171
18172     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18173        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18174
18175 cat >>confdefs.h <<\_ACEOF
18176 #define ENABLE_NLS 1
18177 _ACEOF
18178
18179     else
18180       USE_NLS=no
18181     fi
18182   fi
18183
18184   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18185 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18186   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18187 echo "${ECHO_T}$USE_NLS" >&6; }
18188   if test "$USE_NLS" = "yes"; then
18189     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18190 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18191     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18192       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18193         gt_source="external libintl"
18194       else
18195         gt_source="libc"
18196       fi
18197     else
18198       gt_source="included intl directory"
18199     fi
18200     { echo "$as_me:$LINENO: result: $gt_source" >&5
18201 echo "${ECHO_T}$gt_source" >&6; }
18202   fi
18203
18204   if test "$USE_NLS" = "yes"; then
18205
18206     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18207       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18208         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18209 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18210         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18211 echo "${ECHO_T}$LIBINTL" >&6; }
18212
18213   for element in $INCINTL; do
18214     haveit=
18215     for x in $CPPFLAGS; do
18216
18217   acl_save_prefix="$prefix"
18218   prefix="$acl_final_prefix"
18219   acl_save_exec_prefix="$exec_prefix"
18220   exec_prefix="$acl_final_exec_prefix"
18221   eval x=\"$x\"
18222   exec_prefix="$acl_save_exec_prefix"
18223   prefix="$acl_save_prefix"
18224
18225       if test "X$x" = "X$element"; then
18226         haveit=yes
18227         break
18228       fi
18229     done
18230     if test -z "$haveit"; then
18231       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18232     fi
18233   done
18234
18235       fi
18236
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE_GETTEXT 1
18240 _ACEOF
18241
18242
18243 cat >>confdefs.h <<\_ACEOF
18244 #define HAVE_DCGETTEXT 1
18245 _ACEOF
18246
18247     fi
18248
18249         POSUB=po
18250   fi
18251
18252
18253
18254     INTLLIBS="$LIBINTL"
18255
18256
18257
18258
18259
18260
18261 if test x${prefix} = xNONE ; then
18262    if test `eval echo ${datarootdir}` = NONE/share ; then
18263       datarootdir=/usr/share
18264    fi
18265 fi
18266
18267 if test x${prefix} = xNONE ; then
18268    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18269       sysconfdir=/etc/bacula
18270    fi
18271
18272    if test `eval echo ${libdir}` = NONE/lib ; then
18273       sysconfdir=/usr/lib
18274    fi
18275
18276    if test `eval echo ${includedir}` = NONE/include ; then
18277       sysconfdir=/usr/include
18278    fi
18279
18280    prefix=
18281 fi
18282 sysconfdir=`eval echo ${sysconfdir}`
18283 datarootdir=`eval echo ${datarootdir}`
18284 localedir=`eval echo ${datarootdir}/locale`
18285 cat >>confdefs.h <<_ACEOF
18286 #define SYSCONFDIR "$sysconfdir"
18287 _ACEOF
18288
18289 cat >>confdefs.h <<_ACEOF
18290 #define LOCALEDIR "$localedir"
18291 _ACEOF
18292
18293
18294 if test x${exec_prefix} = xNONE ; then
18295    exec_prefix=${prefix}
18296 fi
18297
18298 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18299    sbindir=${exec_prefix}/sbin
18300 fi
18301 sbindir=`eval echo ${sbindir}`
18302
18303 if test x$mandir = x'${prefix}/man' ; then
18304    mandir=/usr/share/man
18305 fi
18306
18307 for ac_prog in msgfmt
18308 do
18309   # Extract the first word of "$ac_prog", so it can be a program name with args.
18310 set dummy $ac_prog; ac_word=$2
18311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18313 if test "${ac_cv_path_MSGFMT+set}" = set; then
18314   echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316   case $MSGFMT in
18317   [\\/]* | ?:[\\/]*)
18318   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18319   ;;
18320   *)
18321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18323 do
18324   IFS=$as_save_IFS
18325   test -z "$as_dir" && as_dir=.
18326   for ac_exec_ext in '' $ac_executable_extensions; do
18327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18328     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18330     break 2
18331   fi
18332 done
18333 done
18334 IFS=$as_save_IFS
18335
18336   ;;
18337 esac
18338 fi
18339 MSGFMT=$ac_cv_path_MSGFMT
18340 if test -n "$MSGFMT"; then
18341   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18342 echo "${ECHO_T}$MSGFMT" >&6; }
18343 else
18344   { echo "$as_me:$LINENO: result: no" >&5
18345 echo "${ECHO_T}no" >&6; }
18346 fi
18347
18348
18349   test -n "$MSGFMT" && break
18350 done
18351 test -n "$MSGFMT" || MSGFMT="no"
18352
18353 if test "$MSGFMT" = "no"
18354 then
18355    echo 'msgfmt program not found, disabling NLS !'
18356    USE_NLS=no
18357    USE_INCLUDED_LIBINTL=no
18358 #else
18359
18360     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18361 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18362 if test "${ac_cv_gnu_library_2+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 #include <features.h>
18373 #ifdef __GNU_LIBRARY__
18374  #if (__GLIBC__ >= 2)
18375   Lucky GNU user
18376  #endif
18377 #endif
18378
18379 _ACEOF
18380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18381   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18382   ac_cv_gnu_library_2=yes
18383 else
18384   ac_cv_gnu_library_2=no
18385 fi
18386 rm -f conftest*
18387
18388
18389
18390 fi
18391 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18392 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18393
18394     GLIBC2="$ac_cv_gnu_library_2"
18395
18396
18397 if test -n "$ac_tool_prefix"; then
18398   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18402 if test "${ac_cv_prog_RANLIB+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   if test -n "$RANLIB"; then
18406   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18407 else
18408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18409 for as_dir in $PATH
18410 do
18411   IFS=$as_save_IFS
18412   test -z "$as_dir" && as_dir=.
18413   for ac_exec_ext in '' $ac_executable_extensions; do
18414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18415     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18417     break 2
18418   fi
18419 done
18420 done
18421 IFS=$as_save_IFS
18422
18423 fi
18424 fi
18425 RANLIB=$ac_cv_prog_RANLIB
18426 if test -n "$RANLIB"; then
18427   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18428 echo "${ECHO_T}$RANLIB" >&6; }
18429 else
18430   { echo "$as_me:$LINENO: result: no" >&5
18431 echo "${ECHO_T}no" >&6; }
18432 fi
18433
18434
18435 fi
18436 if test -z "$ac_cv_prog_RANLIB"; then
18437   ac_ct_RANLIB=$RANLIB
18438   # Extract the first word of "ranlib", so it can be a program name with args.
18439 set dummy ranlib; ac_word=$2
18440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18442 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   if test -n "$ac_ct_RANLIB"; then
18446   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18447 else
18448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18449 for as_dir in $PATH
18450 do
18451   IFS=$as_save_IFS
18452   test -z "$as_dir" && as_dir=.
18453   for ac_exec_ext in '' $ac_executable_extensions; do
18454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18455     ac_cv_prog_ac_ct_RANLIB="ranlib"
18456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18457     break 2
18458   fi
18459 done
18460 done
18461 IFS=$as_save_IFS
18462
18463 fi
18464 fi
18465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18466 if test -n "$ac_ct_RANLIB"; then
18467   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18468 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18469 else
18470   { echo "$as_me:$LINENO: result: no" >&5
18471 echo "${ECHO_T}no" >&6; }
18472 fi
18473
18474   if test "x$ac_ct_RANLIB" = x; then
18475     RANLIB=":"
18476   else
18477     case $cross_compiling:$ac_tool_warned in
18478 yes:)
18479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18480 whose name does not start with the host triplet.  If you think this
18481 configuration is useful to you, please write to autoconf@gnu.org." >&5
18482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18483 whose name does not start with the host triplet.  If you think this
18484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18485 ac_tool_warned=yes ;;
18486 esac
18487     RANLIB=$ac_ct_RANLIB
18488   fi
18489 else
18490   RANLIB="$ac_cv_prog_RANLIB"
18491 fi
18492
18493
18494         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18495 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18496 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-lcposix  $LIBS"
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507
18508 /* Override any GCC internal prototype to avoid an error.
18509    Use char because int might match the return type of a GCC
18510    builtin and then its argument prototype would still apply.  */
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 char strerror ();
18515 int
18516 main ()
18517 {
18518 return strerror ();
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_link") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } && {
18537          test -z "$ac_c_werror_flag" ||
18538          test ! -s conftest.err
18539        } && test -s conftest$ac_exeext &&
18540        $as_test_x conftest$ac_exeext; then
18541   ac_cv_lib_cposix_strerror=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546         ac_cv_lib_cposix_strerror=no
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18550       conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18554 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18555 if test $ac_cv_lib_cposix_strerror = yes; then
18556   LIBS="$LIBS -lcposix"
18557 fi
18558
18559
18560
18561 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18563 if test "${ac_cv_c_const+set}" = set; then
18564   echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566   cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h.  */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h.  */
18572
18573 int
18574 main ()
18575 {
18576 /* FIXME: Include the comments suggested by Paul. */
18577 #ifndef __cplusplus
18578   /* Ultrix mips cc rejects this.  */
18579   typedef int charset[2];
18580   const charset cs;
18581   /* SunOS 4.1.1 cc rejects this.  */
18582   char const *const *pcpcc;
18583   char **ppc;
18584   /* NEC SVR4.0.2 mips cc rejects this.  */
18585   struct point {int x, y;};
18586   static struct point const zero = {0,0};
18587   /* AIX XL C 1.02.0.0 rejects this.
18588      It does not let you subtract one const X* pointer from another in
18589      an arm of an if-expression whose if-part is not a constant
18590      expression */
18591   const char *g = "string";
18592   pcpcc = &g + (g ? g-g : 0);
18593   /* HPUX 7.0 cc rejects these. */
18594   ++pcpcc;
18595   ppc = (char**) pcpcc;
18596   pcpcc = (char const *const *) ppc;
18597   { /* SCO 3.2v4 cc rejects this.  */
18598     char *t;
18599     char const *s = 0 ? (char *) 0 : (char const *) 0;
18600
18601     *t++ = 0;
18602     if (s) return 0;
18603   }
18604   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18605     int x[] = {25, 17};
18606     const int *foo = &x[0];
18607     ++foo;
18608   }
18609   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18610     typedef const int *iptr;
18611     iptr p = 0;
18612     ++p;
18613   }
18614   { /* AIX XL C 1.02.0.0 rejects this saying
18615        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18616     struct s { int j; const int *ap[3]; };
18617     struct s *b; b->j = 5;
18618   }
18619   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18620     const int foo = 10;
18621     if (!foo) return 0;
18622   }
18623   return !cs[0] && !zero.x;
18624 #endif
18625
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext
18631 if { (ac_try="$ac_compile"
18632 case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637   (eval "$ac_compile") 2>conftest.er1
18638   ac_status=$?
18639   grep -v '^ *+' conftest.er1 >conftest.err
18640   rm -f conftest.er1
18641   cat conftest.err >&5
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); } && {
18644          test -z "$ac_c_werror_flag" ||
18645          test ! -s conftest.err
18646        } && test -s conftest.$ac_objext; then
18647   ac_cv_c_const=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652         ac_cv_c_const=no
18653 fi
18654
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 fi
18657 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18658 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18659 if test $ac_cv_c_const = no; then
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define const
18663 _ACEOF
18664
18665 fi
18666
18667
18668   { echo "$as_me:$LINENO: checking for signed" >&5
18669 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18670 if test "${bh_cv_c_signed+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h.  */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h.  */
18679
18680 int
18681 main ()
18682 {
18683 signed char x;
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext
18689 if { (ac_try="$ac_compile"
18690 case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_compile") 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } && {
18702          test -z "$ac_c_werror_flag" ||
18703          test ! -s conftest.err
18704        } && test -s conftest.$ac_objext; then
18705   bh_cv_c_signed=yes
18706 else
18707   echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18709
18710         bh_cv_c_signed=no
18711 fi
18712
18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714 fi
18715 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18716 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18717   if test $bh_cv_c_signed = no; then
18718
18719 cat >>confdefs.h <<\_ACEOF
18720 #define signed
18721 _ACEOF
18722
18723   fi
18724
18725 { echo "$as_me:$LINENO: checking for inline" >&5
18726 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18727 if test "${ac_cv_c_inline+set}" = set; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730   ac_cv_c_inline=no
18731 for ac_kw in inline __inline__ __inline; do
18732   cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738 #ifndef __cplusplus
18739 typedef int foo_t;
18740 static $ac_kw foo_t static_foo () {return 0; }
18741 $ac_kw foo_t foo () {return 0; }
18742 #endif
18743
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (ac_try="$ac_compile"
18747 case "(($ac_try" in
18748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749   *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752   (eval "$ac_compile") 2>conftest.er1
18753   ac_status=$?
18754   grep -v '^ *+' conftest.er1 >conftest.err
18755   rm -f conftest.er1
18756   cat conftest.err >&5
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); } && {
18759          test -z "$ac_c_werror_flag" ||
18760          test ! -s conftest.err
18761        } && test -s conftest.$ac_objext; then
18762   ac_cv_c_inline=$ac_kw
18763 else
18764   echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767
18768 fi
18769
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771   test "$ac_cv_c_inline" != no && break
18772 done
18773
18774 fi
18775 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18776 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18777
18778
18779 case $ac_cv_c_inline in
18780   inline | yes) ;;
18781   *)
18782     case $ac_cv_c_inline in
18783       no) ac_val=;;
18784       *) ac_val=$ac_cv_c_inline;;
18785     esac
18786     cat >>confdefs.h <<_ACEOF
18787 #ifndef __cplusplus
18788 #define inline $ac_val
18789 #endif
18790 _ACEOF
18791     ;;
18792 esac
18793
18794 { echo "$as_me:$LINENO: checking for off_t" >&5
18795 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18796 if test "${ac_cv_type_off_t+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h.  */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h.  */
18805 $ac_includes_default
18806 typedef off_t ac__type_new_;
18807 int
18808 main ()
18809 {
18810 if ((ac__type_new_ *) 0)
18811   return 0;
18812 if (sizeof (ac__type_new_))
18813   return 0;
18814   ;
18815   return 0;
18816 }
18817 _ACEOF
18818 rm -f conftest.$ac_objext
18819 if { (ac_try="$ac_compile"
18820 case "(($ac_try" in
18821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822   *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825   (eval "$ac_compile") 2>conftest.er1
18826   ac_status=$?
18827   grep -v '^ *+' conftest.er1 >conftest.err
18828   rm -f conftest.er1
18829   cat conftest.err >&5
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } && {
18832          test -z "$ac_c_werror_flag" ||
18833          test ! -s conftest.err
18834        } && test -s conftest.$ac_objext; then
18835   ac_cv_type_off_t=yes
18836 else
18837   echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18839
18840         ac_cv_type_off_t=no
18841 fi
18842
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844 fi
18845 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18846 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18847 if test $ac_cv_type_off_t = yes; then
18848   :
18849 else
18850
18851 cat >>confdefs.h <<_ACEOF
18852 #define off_t long int
18853 _ACEOF
18854
18855 fi
18856
18857 { echo "$as_me:$LINENO: checking for size_t" >&5
18858 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18859 if test "${ac_cv_type_size_t+set}" = set; then
18860   echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
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 typedef size_t ac__type_new_;
18870 int
18871 main ()
18872 {
18873 if ((ac__type_new_ *) 0)
18874   return 0;
18875 if (sizeof (ac__type_new_))
18876   return 0;
18877   ;
18878   return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest.$ac_objext
18882 if { (ac_try="$ac_compile"
18883 case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_compile") 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } && {
18895          test -z "$ac_c_werror_flag" ||
18896          test ! -s conftest.err
18897        } && test -s conftest.$ac_objext; then
18898   ac_cv_type_size_t=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903         ac_cv_type_size_t=no
18904 fi
18905
18906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 fi
18908 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18909 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18910 if test $ac_cv_type_size_t = yes; then
18911   :
18912 else
18913
18914 cat >>confdefs.h <<_ACEOF
18915 #define size_t unsigned int
18916 _ACEOF
18917
18918 fi
18919
18920
18921   { echo "$as_me:$LINENO: checking for long long" >&5
18922 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18923 if test "${ac_cv_type_long_long+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932 long long ll = 1LL; int i = 63;
18933 int
18934 main ()
18935 {
18936 long long llmax = (long long) -1;
18937      return ll << i | ll >> i | llmax / ll | llmax % ll;
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946   *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949   (eval "$ac_link") 2>conftest.er1
18950   ac_status=$?
18951   grep -v '^ *+' conftest.er1 >conftest.err
18952   rm -f conftest.er1
18953   cat conftest.err >&5
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } && {
18956          test -z "$ac_c_werror_flag" ||
18957          test ! -s conftest.err
18958        } && test -s conftest$ac_exeext &&
18959        $as_test_x conftest$ac_exeext; then
18960   ac_cv_type_long_long=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965         ac_cv_type_long_long=no
18966 fi
18967
18968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18969       conftest$ac_exeext conftest.$ac_ext
18970 fi
18971 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18972 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18973   if test $ac_cv_type_long_long = yes; then
18974
18975 cat >>confdefs.h <<\_ACEOF
18976 #define HAVE_LONG_LONG 1
18977 _ACEOF
18978
18979   fi
18980
18981
18982   { echo "$as_me:$LINENO: checking for long double" >&5
18983 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18984 if test "${gt_cv_c_long_double+set}" = set; then
18985   echo $ECHO_N "(cached) $ECHO_C" >&6
18986 else
18987   if test "$GCC" = yes; then
18988        gt_cv_c_long_double=yes
18989      else
18990        cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h.  */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h.  */
18996
18997          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18998          long double foo = 0.0;
18999          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19000          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19001
19002 int
19003 main ()
19004 {
19005
19006   ;
19007   return 0;
19008 }
19009 _ACEOF
19010 rm -f conftest.$ac_objext
19011 if { (ac_try="$ac_compile"
19012 case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_compile") 2>conftest.er1
19018   ac_status=$?
19019   grep -v '^ *+' conftest.er1 >conftest.err
19020   rm -f conftest.er1
19021   cat conftest.err >&5
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); } && {
19024          test -z "$ac_c_werror_flag" ||
19025          test ! -s conftest.err
19026        } && test -s conftest.$ac_objext; then
19027   gt_cv_c_long_double=yes
19028 else
19029   echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19031
19032         gt_cv_c_long_double=no
19033 fi
19034
19035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19036      fi
19037 fi
19038 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19039 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19040   if test $gt_cv_c_long_double = yes; then
19041
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE_LONG_DOUBLE 1
19044 _ACEOF
19045
19046   fi
19047
19048
19049   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19050 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19051 if test "${gt_cv_c_wchar_t+set}" = set; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060 #include <stddef.h>
19061        wchar_t foo = (wchar_t)'\0';
19062 int
19063 main ()
19064 {
19065
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074   *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077   (eval "$ac_compile") 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } && {
19084          test -z "$ac_c_werror_flag" ||
19085          test ! -s conftest.err
19086        } && test -s conftest.$ac_objext; then
19087   gt_cv_c_wchar_t=yes
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092         gt_cv_c_wchar_t=no
19093 fi
19094
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096 fi
19097 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19098 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19099   if test $gt_cv_c_wchar_t = yes; then
19100
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_WCHAR_T 1
19103 _ACEOF
19104
19105   fi
19106
19107
19108   { echo "$as_me:$LINENO: checking for wint_t" >&5
19109 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19110 if test "${gt_cv_c_wint_t+set}" = set; then
19111   echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113   cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h.  */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h.  */
19119 #include <wchar.h>
19120        wint_t foo = (wchar_t)'\0';
19121 int
19122 main ()
19123 {
19124
19125   ;
19126   return 0;
19127 }
19128 _ACEOF
19129 rm -f conftest.$ac_objext
19130 if { (ac_try="$ac_compile"
19131 case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_compile") 2>conftest.er1
19137   ac_status=$?
19138   grep -v '^ *+' conftest.er1 >conftest.err
19139   rm -f conftest.er1
19140   cat conftest.err >&5
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } && {
19143          test -z "$ac_c_werror_flag" ||
19144          test ! -s conftest.err
19145        } && test -s conftest.$ac_objext; then
19146   gt_cv_c_wint_t=yes
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151         gt_cv_c_wint_t=no
19152 fi
19153
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19155 fi
19156 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19157 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19158   if test $gt_cv_c_wint_t = yes; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_WINT_T 1
19162 _ACEOF
19163
19164   fi
19165
19166
19167   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19168 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19169 if test "${gl_cv_header_inttypes_h+set}" = set; then
19170   echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172   cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178 #include <sys/types.h>
19179 #include <inttypes.h>
19180 int
19181 main ()
19182 {
19183 uintmax_t i = (uintmax_t) -1;
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext
19189 if { (ac_try="$ac_compile"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_compile") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } && {
19202          test -z "$ac_c_werror_flag" ||
19203          test ! -s conftest.err
19204        } && test -s conftest.$ac_objext; then
19205   gl_cv_header_inttypes_h=yes
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210         gl_cv_header_inttypes_h=no
19211 fi
19212
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 fi
19215 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19216 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19217   if test $gl_cv_header_inttypes_h = yes; then
19218
19219 cat >>confdefs.h <<_ACEOF
19220 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19221 _ACEOF
19222
19223   fi
19224
19225
19226   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19227 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19228 if test "${gl_cv_header_stdint_h+set}" = set; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231   cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h.  */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h.  */
19237 #include <sys/types.h>
19238 #include <stdint.h>
19239 int
19240 main ()
19241 {
19242 uintmax_t i = (uintmax_t) -1;
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_compile") 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } && {
19261          test -z "$ac_c_werror_flag" ||
19262          test ! -s conftest.err
19263        } && test -s conftest.$ac_objext; then
19264   gl_cv_header_stdint_h=yes
19265 else
19266   echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19268
19269         gl_cv_header_stdint_h=no
19270 fi
19271
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273 fi
19274 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19275 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19276   if test $gl_cv_header_stdint_h = yes; then
19277
19278 cat >>confdefs.h <<_ACEOF
19279 #define HAVE_STDINT_H_WITH_UINTMAX 1
19280 _ACEOF
19281
19282   fi
19283
19284
19285
19286
19287   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19288 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19289 if test "${gt_cv_c_intmax_t+set}" = set; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298
19299 #include <stddef.h>
19300 #include <stdlib.h>
19301 #if HAVE_STDINT_H_WITH_UINTMAX
19302 #include <stdint.h>
19303 #endif
19304 #if HAVE_INTTYPES_H_WITH_UINTMAX
19305 #include <inttypes.h>
19306 #endif
19307
19308 int
19309 main ()
19310 {
19311 intmax_t x = -1;
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_compile") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } && {
19330          test -z "$ac_c_werror_flag" ||
19331          test ! -s conftest.err
19332        } && test -s conftest.$ac_objext; then
19333   gt_cv_c_intmax_t=yes
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338         gt_cv_c_intmax_t=no
19339 fi
19340
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 fi
19343 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19344 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19345   if test $gt_cv_c_intmax_t = yes; then
19346
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE_INTMAX_T 1
19349 _ACEOF
19350
19351   fi
19352
19353
19354
19355   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19356 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19357 if test "${gt_cv_func_printf_posix+set}" = set; then
19358   echo $ECHO_N "(cached) $ECHO_C" >&6
19359 else
19360
19361       if test "$cross_compiling" = yes; then
19362
19363         cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19371   notposix
19372 #endif
19373
19374 _ACEOF
19375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19376   $EGREP "notposix" >/dev/null 2>&1; then
19377   gt_cv_func_printf_posix="guessing no"
19378 else
19379   gt_cv_func_printf_posix="guessing yes"
19380 fi
19381 rm -f conftest*
19382
19383
19384 else
19385   cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391
19392 #include <stdio.h>
19393 #include <string.h>
19394 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19395    dollar expansion (possibly an autoconf bug).  */
19396 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19397 static char buf[100];
19398 int main ()
19399 {
19400   sprintf (buf, format, 33, 55);
19401   return (strcmp (buf, "55 33") != 0);
19402 }
19403 _ACEOF
19404 rm -f conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411   (eval "$ac_link") 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19415   { (case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_try") 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; }; then
19424   gt_cv_func_printf_posix=yes
19425 else
19426   echo "$as_me: program exited with status $ac_status" >&5
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430 ( exit $ac_status )
19431 gt_cv_func_printf_posix=no
19432 fi
19433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19434 fi
19435
19436
19437
19438 fi
19439 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19440 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19441   case $gt_cv_func_printf_posix in
19442     *yes)
19443
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_POSIX_PRINTF 1
19446 _ACEOF
19447
19448       ;;
19449   esac
19450
19451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19452 # for constant arguments.  Useless!
19453 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19454 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19455 if test "${ac_cv_working_alloca_h+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 #include <alloca.h>
19465 int
19466 main ()
19467 {
19468 char *p = (char *) alloca (2 * sizeof (int));
19469                           if (p) return 0;
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478   *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481   (eval "$ac_link") 2>conftest.er1
19482   ac_status=$?
19483   grep -v '^ *+' conftest.er1 >conftest.err
19484   rm -f conftest.er1
19485   cat conftest.err >&5
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } && {
19488          test -z "$ac_c_werror_flag" ||
19489          test ! -s conftest.err
19490        } && test -s conftest$ac_exeext &&
19491        $as_test_x conftest$ac_exeext; then
19492   ac_cv_working_alloca_h=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497         ac_cv_working_alloca_h=no
19498 fi
19499
19500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19501       conftest$ac_exeext conftest.$ac_ext
19502 fi
19503 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19504 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19505 if test $ac_cv_working_alloca_h = yes; then
19506
19507 cat >>confdefs.h <<\_ACEOF
19508 #define HAVE_ALLOCA_H 1
19509 _ACEOF
19510
19511 fi
19512
19513 { echo "$as_me:$LINENO: checking for alloca" >&5
19514 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19515 if test "${ac_cv_func_alloca_works+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 #ifdef __GNUC__
19525 # define alloca __builtin_alloca
19526 #else
19527 # ifdef _MSC_VER
19528 #  include <malloc.h>
19529 #  define alloca _alloca
19530 # else
19531 #  ifdef HAVE_ALLOCA_H
19532 #   include <alloca.h>
19533 #  else
19534 #   ifdef _AIX
19535  #pragma alloca
19536 #   else
19537 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19538 char *alloca ();
19539 #    endif
19540 #   endif
19541 #  endif
19542 # endif
19543 #endif
19544
19545 int
19546 main ()
19547 {
19548 char *p = (char *) alloca (1);
19549                                     if (p) return 0;
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_link") 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } && {
19568          test -z "$ac_c_werror_flag" ||
19569          test ! -s conftest.err
19570        } && test -s conftest$ac_exeext &&
19571        $as_test_x conftest$ac_exeext; then
19572   ac_cv_func_alloca_works=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577         ac_cv_func_alloca_works=no
19578 fi
19579
19580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19581       conftest$ac_exeext conftest.$ac_ext
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19584 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19585
19586 if test $ac_cv_func_alloca_works = yes; then
19587
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_ALLOCA 1
19590 _ACEOF
19591
19592 else
19593   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19594 # that cause trouble.  Some versions do not even contain alloca or
19595 # contain a buggy version.  If you still want to use their alloca,
19596 # use ar to extract alloca.o from them instead of compiling alloca.c.
19597
19598 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19599
19600 cat >>confdefs.h <<\_ACEOF
19601 #define C_ALLOCA 1
19602 _ACEOF
19603
19604
19605 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19606 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19607 if test "${ac_cv_os_cray+set}" = set; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610   cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616 #if defined CRAY && ! defined CRAY2
19617 webecray
19618 #else
19619 wenotbecray
19620 #endif
19621
19622 _ACEOF
19623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19624   $EGREP "webecray" >/dev/null 2>&1; then
19625   ac_cv_os_cray=yes
19626 else
19627   ac_cv_os_cray=no
19628 fi
19629 rm -f conftest*
19630
19631 fi
19632 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19633 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19634 if test $ac_cv_os_cray = yes; then
19635   for ac_func in _getb67 GETB67 getb67; do
19636     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19640   echo $ECHO_N "(cached) $ECHO_C" >&6
19641 else
19642   cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19650 #define $ac_func innocuous_$ac_func
19651
19652 /* System header to define __stub macros and hopefully few prototypes,
19653     which can conflict with char $ac_func (); below.
19654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19655     <limits.h> exists even on freestanding compilers.  */
19656
19657 #ifdef __STDC__
19658 # include <limits.h>
19659 #else
19660 # include <assert.h>
19661 #endif
19662
19663 #undef $ac_func
19664
19665 /* Override any GCC internal prototype to avoid an error.
19666    Use char because int might match the return type of a GCC
19667    builtin and then its argument prototype would still apply.  */
19668 #ifdef __cplusplus
19669 extern "C"
19670 #endif
19671 char $ac_func ();
19672 /* The GNU C library defines this for functions which it implements
19673     to always fail with ENOSYS.  Some functions are actually named
19674     something starting with __ and the normal name is an alias.  */
19675 #if defined __stub_$ac_func || defined __stub___$ac_func
19676 choke me
19677 #endif
19678
19679 int
19680 main ()
19681 {
19682 return $ac_func ();
19683   ;
19684   return 0;
19685 }
19686 _ACEOF
19687 rm -f conftest.$ac_objext conftest$ac_exeext
19688 if { (ac_try="$ac_link"
19689 case "(($ac_try" in
19690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691   *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694   (eval "$ac_link") 2>conftest.er1
19695   ac_status=$?
19696   grep -v '^ *+' conftest.er1 >conftest.err
19697   rm -f conftest.er1
19698   cat conftest.err >&5
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); } && {
19701          test -z "$ac_c_werror_flag" ||
19702          test ! -s conftest.err
19703        } && test -s conftest$ac_exeext &&
19704        $as_test_x conftest$ac_exeext; then
19705   eval "$as_ac_var=yes"
19706 else
19707   echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710         eval "$as_ac_var=no"
19711 fi
19712
19713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19714       conftest$ac_exeext conftest.$ac_ext
19715 fi
19716 ac_res=`eval echo '${'$as_ac_var'}'`
19717                { echo "$as_me:$LINENO: result: $ac_res" >&5
19718 echo "${ECHO_T}$ac_res" >&6; }
19719 if test `eval echo '${'$as_ac_var'}'` = yes; then
19720
19721 cat >>confdefs.h <<_ACEOF
19722 #define CRAY_STACKSEG_END $ac_func
19723 _ACEOF
19724
19725     break
19726 fi
19727
19728   done
19729 fi
19730
19731 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19732 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19733 if test "${ac_cv_c_stack_direction+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   if test "$cross_compiling" = yes; then
19737   ac_cv_c_stack_direction=0
19738 else
19739   cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h.  */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h.  */
19745 $ac_includes_default
19746 int
19747 find_stack_direction ()
19748 {
19749   static char *addr = 0;
19750   auto char dummy;
19751   if (addr == 0)
19752     {
19753       addr = &dummy;
19754       return find_stack_direction ();
19755     }
19756   else
19757     return (&dummy > addr) ? 1 : -1;
19758 }
19759
19760 int
19761 main ()
19762 {
19763   return find_stack_direction () < 0;
19764 }
19765 _ACEOF
19766 rm -f conftest$ac_exeext
19767 if { (ac_try="$ac_link"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_link") 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19777   { (case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_try") 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; }; then
19786   ac_cv_c_stack_direction=1
19787 else
19788   echo "$as_me: program exited with status $ac_status" >&5
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ( exit $ac_status )
19793 ac_cv_c_stack_direction=-1
19794 fi
19795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19796 fi
19797
19798
19799 fi
19800 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19801 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19802
19803 cat >>confdefs.h <<_ACEOF
19804 #define STACK_DIRECTION $ac_cv_c_stack_direction
19805 _ACEOF
19806
19807
19808 fi
19809
19810
19811
19812 for ac_header in stdlib.h unistd.h
19813 do
19814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19816   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 fi
19821 ac_res=`eval echo '${'$as_ac_Header'}'`
19822                { echo "$as_me:$LINENO: result: $ac_res" >&5
19823 echo "${ECHO_T}$ac_res" >&6; }
19824 else
19825   # Is the header compilable?
19826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19828 cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 $ac_includes_default
19835 #include <$ac_header>
19836 _ACEOF
19837 rm -f conftest.$ac_objext
19838 if { (ac_try="$ac_compile"
19839 case "(($ac_try" in
19840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841   *) ac_try_echo=$ac_try;;
19842 esac
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844   (eval "$ac_compile") 2>conftest.er1
19845   ac_status=$?
19846   grep -v '^ *+' conftest.er1 >conftest.err
19847   rm -f conftest.er1
19848   cat conftest.err >&5
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); } && {
19851          test -z "$ac_c_werror_flag" ||
19852          test ! -s conftest.err
19853        } && test -s conftest.$ac_objext; then
19854   ac_header_compiler=yes
19855 else
19856   echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859         ac_header_compiler=no
19860 fi
19861
19862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864 echo "${ECHO_T}$ac_header_compiler" >&6; }
19865
19866 # Is the header present?
19867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 #include <$ac_header>
19876 _ACEOF
19877 if { (ac_try="$ac_cpp conftest.$ac_ext"
19878 case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19884   ac_status=$?
19885   grep -v '^ *+' conftest.er1 >conftest.err
19886   rm -f conftest.er1
19887   cat conftest.err >&5
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); } >/dev/null && {
19890          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19891          test ! -s conftest.err
19892        }; then
19893   ac_header_preproc=yes
19894 else
19895   echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898   ac_header_preproc=no
19899 fi
19900
19901 rm -f conftest.err conftest.$ac_ext
19902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19903 echo "${ECHO_T}$ac_header_preproc" >&6; }
19904
19905 # So?  What about this header?
19906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19907   yes:no: )
19908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19912     ac_header_preproc=yes
19913     ;;
19914   no:yes:* )
19915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19927
19928     ;;
19929 esac
19930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   eval "$as_ac_Header=\$ac_header_preproc"
19936 fi
19937 ac_res=`eval echo '${'$as_ac_Header'}'`
19938                { echo "$as_me:$LINENO: result: $ac_res" >&5
19939 echo "${ECHO_T}$ac_res" >&6; }
19940
19941 fi
19942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19943   cat >>confdefs.h <<_ACEOF
19944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19945 _ACEOF
19946
19947 fi
19948
19949 done
19950
19951
19952 for ac_func in getpagesize
19953 do
19954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19958   echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960   cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h.  */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h.  */
19966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19968 #define $ac_func innocuous_$ac_func
19969
19970 /* System header to define __stub macros and hopefully few prototypes,
19971     which can conflict with char $ac_func (); below.
19972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19973     <limits.h> exists even on freestanding compilers.  */
19974
19975 #ifdef __STDC__
19976 # include <limits.h>
19977 #else
19978 # include <assert.h>
19979 #endif
19980
19981 #undef $ac_func
19982
19983 /* Override any GCC internal prototype to avoid an error.
19984    Use char because int might match the return type of a GCC
19985    builtin and then its argument prototype would still apply.  */
19986 #ifdef __cplusplus
19987 extern "C"
19988 #endif
19989 char $ac_func ();
19990 /* The GNU C library defines this for functions which it implements
19991     to always fail with ENOSYS.  Some functions are actually named
19992     something starting with __ and the normal name is an alias.  */
19993 #if defined __stub_$ac_func || defined __stub___$ac_func
19994 choke me
19995 #endif
19996
19997 int
19998 main ()
19999 {
20000 return $ac_func ();
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (ac_try="$ac_link"
20007 case "(($ac_try" in
20008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009   *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012   (eval "$ac_link") 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } && {
20019          test -z "$ac_c_werror_flag" ||
20020          test ! -s conftest.err
20021        } && test -s conftest$ac_exeext &&
20022        $as_test_x conftest$ac_exeext; then
20023   eval "$as_ac_var=yes"
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028         eval "$as_ac_var=no"
20029 fi
20030
20031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20032       conftest$ac_exeext conftest.$ac_ext
20033 fi
20034 ac_res=`eval echo '${'$as_ac_var'}'`
20035                { echo "$as_me:$LINENO: result: $ac_res" >&5
20036 echo "${ECHO_T}$ac_res" >&6; }
20037 if test `eval echo '${'$as_ac_var'}'` = yes; then
20038   cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20040 _ACEOF
20041
20042 fi
20043 done
20044
20045 { echo "$as_me:$LINENO: checking for working mmap" >&5
20046 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20047 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   if test "$cross_compiling" = yes; then
20051   ac_cv_func_mmap_fixed_mapped=no
20052 else
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 $ac_includes_default
20060 /* malloc might have been renamed as rpl_malloc. */
20061 #undef malloc
20062
20063 /* Thanks to Mike Haertel and Jim Avera for this test.
20064    Here is a matrix of mmap possibilities:
20065         mmap private not fixed
20066         mmap private fixed at somewhere currently unmapped
20067         mmap private fixed at somewhere already mapped
20068         mmap shared not fixed
20069         mmap shared fixed at somewhere currently unmapped
20070         mmap shared fixed at somewhere already mapped
20071    For private mappings, we should verify that changes cannot be read()
20072    back from the file, nor mmap's back from the file at a different
20073    address.  (There have been systems where private was not correctly
20074    implemented like the infamous i386 svr4.0, and systems where the
20075    VM page cache was not coherent with the file system buffer cache
20076    like early versions of FreeBSD and possibly contemporary NetBSD.)
20077    For shared mappings, we should conversely verify that changes get
20078    propagated back to all the places they're supposed to be.
20079
20080    Grep wants private fixed already mapped.
20081    The main things grep needs to know about mmap are:
20082    * does it exist and is it safe to write into the mmap'd area
20083    * how to use it (BSD variants)  */
20084
20085 #include <fcntl.h>
20086 #include <sys/mman.h>
20087
20088 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20089 char *malloc ();
20090 #endif
20091
20092 /* This mess was copied from the GNU getpagesize.h.  */
20093 #ifndef HAVE_GETPAGESIZE
20094 /* Assume that all systems that can run configure have sys/param.h.  */
20095 # ifndef HAVE_SYS_PARAM_H
20096 #  define HAVE_SYS_PARAM_H 1
20097 # endif
20098
20099 # ifdef _SC_PAGESIZE
20100 #  define getpagesize() sysconf(_SC_PAGESIZE)
20101 # else /* no _SC_PAGESIZE */
20102 #  ifdef HAVE_SYS_PARAM_H
20103 #   include <sys/param.h>
20104 #   ifdef EXEC_PAGESIZE
20105 #    define getpagesize() EXEC_PAGESIZE
20106 #   else /* no EXEC_PAGESIZE */
20107 #    ifdef NBPG
20108 #     define getpagesize() NBPG * CLSIZE
20109 #     ifndef CLSIZE
20110 #      define CLSIZE 1
20111 #     endif /* no CLSIZE */
20112 #    else /* no NBPG */
20113 #     ifdef NBPC
20114 #      define getpagesize() NBPC
20115 #     else /* no NBPC */
20116 #      ifdef PAGESIZE
20117 #       define getpagesize() PAGESIZE
20118 #      endif /* PAGESIZE */
20119 #     endif /* no NBPC */
20120 #    endif /* no NBPG */
20121 #   endif /* no EXEC_PAGESIZE */
20122 #  else /* no HAVE_SYS_PARAM_H */
20123 #   define getpagesize() 8192   /* punt totally */
20124 #  endif /* no HAVE_SYS_PARAM_H */
20125 # endif /* no _SC_PAGESIZE */
20126
20127 #endif /* no HAVE_GETPAGESIZE */
20128
20129 int
20130 main ()
20131 {
20132   char *data, *data2, *data3;
20133   int i, pagesize;
20134   int fd;
20135
20136   pagesize = getpagesize ();
20137
20138   /* First, make a file with some known garbage in it. */
20139   data = (char *) malloc (pagesize);
20140   if (!data)
20141     return 1;
20142   for (i = 0; i < pagesize; ++i)
20143     *(data + i) = rand ();
20144   umask (0);
20145   fd = creat ("conftest.mmap", 0600);
20146   if (fd < 0)
20147     return 1;
20148   if (write (fd, data, pagesize) != pagesize)
20149     return 1;
20150   close (fd);
20151
20152   /* Next, try to mmap the file at a fixed address which already has
20153      something else allocated at it.  If we can, also make sure that
20154      we see the same garbage.  */
20155   fd = open ("conftest.mmap", O_RDWR);
20156   if (fd < 0)
20157     return 1;
20158   data2 = (char *) malloc (2 * pagesize);
20159   if (!data2)
20160     return 1;
20161   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20162   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20163                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20164     return 1;
20165   for (i = 0; i < pagesize; ++i)
20166     if (*(data + i) != *(data2 + i))
20167       return 1;
20168
20169   /* Finally, make sure that changes to the mapped area do not
20170      percolate back to the file as seen by read().  (This is a bug on
20171      some variants of i386 svr4.0.)  */
20172   for (i = 0; i < pagesize; ++i)
20173     *(data2 + i) = *(data2 + i) + 1;
20174   data3 = (char *) malloc (pagesize);
20175   if (!data3)
20176     return 1;
20177   if (read (fd, data3, pagesize) != pagesize)
20178     return 1;
20179   for (i = 0; i < pagesize; ++i)
20180     if (*(data + i) != *(data3 + i))
20181       return 1;
20182   close (fd);
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_link") 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20197   { (case "(($ac_try" in
20198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199   *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202   (eval "$ac_try") 2>&5
20203   ac_status=$?
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); }; }; then
20206   ac_cv_func_mmap_fixed_mapped=yes
20207 else
20208   echo "$as_me: program exited with status $ac_status" >&5
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 ( exit $ac_status )
20213 ac_cv_func_mmap_fixed_mapped=no
20214 fi
20215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20216 fi
20217
20218
20219 fi
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20221 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20222 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20223
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE_MMAP 1
20226 _ACEOF
20227
20228 fi
20229 rm -f conftest.mmap
20230
20231
20232     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20233 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20234 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237   cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243
20244 #include <features.h>
20245 #ifdef __GNU_LIBRARY__
20246  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20247   Lucky GNU user
20248  #endif
20249 #endif
20250
20251 _ACEOF
20252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20254   ac_cv_gnu_library_2_1=yes
20255 else
20256   ac_cv_gnu_library_2_1=no
20257 fi
20258 rm -f conftest*
20259
20260
20261
20262 fi
20263 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20264 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20265
20266     GLIBC21="$ac_cv_gnu_library_2_1"
20267
20268
20269
20270
20271   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20272 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20273 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276
20277       if test "$cross_compiling" = yes; then
20278
20279           # Guess based on the CPU.
20280           case "$host_cpu" in
20281             alpha* | i3456786 | m68k | s390*)
20282               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20283             *)
20284               gt_cv_int_divbyzero_sigfpe="guessing no";;
20285           esac
20286
20287 else
20288   cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294
20295 #include <stdlib.h>
20296 #include <signal.h>
20297
20298 static void
20299 #ifdef __cplusplus
20300 sigfpe_handler (int sig)
20301 #else
20302 sigfpe_handler (sig) int sig;
20303 #endif
20304 {
20305   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20306   exit (sig != SIGFPE);
20307 }
20308
20309 int x = 1;
20310 int y = 0;
20311 int z;
20312 int nan;
20313
20314 int main ()
20315 {
20316   signal (SIGFPE, sigfpe_handler);
20317 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20318 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20319   signal (SIGTRAP, sigfpe_handler);
20320 #endif
20321 /* Linux/SPARC yields signal SIGILL.  */
20322 #if defined (__sparc__) && defined (__linux__)
20323   signal (SIGILL, sigfpe_handler);
20324 #endif
20325
20326   z = x / y;
20327   nan = y / y;
20328   exit (1);
20329 }
20330
20331 _ACEOF
20332 rm -f conftest$ac_exeext
20333 if { (ac_try="$ac_link"
20334 case "(($ac_try" in
20335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336   *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339   (eval "$ac_link") 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20343   { (case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348   (eval "$ac_try") 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; }; then
20352   gt_cv_int_divbyzero_sigfpe=yes
20353 else
20354   echo "$as_me: program exited with status $ac_status" >&5
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 ( exit $ac_status )
20359 gt_cv_int_divbyzero_sigfpe=no
20360 fi
20361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20362 fi
20363
20364
20365
20366 fi
20367 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20368 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20369   case "$gt_cv_int_divbyzero_sigfpe" in
20370     *yes) value=1;;
20371     *) value=0;;
20372   esac
20373
20374 cat >>confdefs.h <<_ACEOF
20375 #define INTDIV0_RAISES_SIGFPE $value
20376 _ACEOF
20377
20378
20379
20380   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20381 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20382 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 unsigned long long ull = 1ULL; int i = 63;
20392 int
20393 main ()
20394 {
20395 unsigned long long ullmax = (unsigned long long) -1;
20396      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_link") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && {
20415          test -z "$ac_c_werror_flag" ||
20416          test ! -s conftest.err
20417        } && test -s conftest$ac_exeext &&
20418        $as_test_x conftest$ac_exeext; then
20419   ac_cv_type_unsigned_long_long=yes
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424         ac_cv_type_unsigned_long_long=no
20425 fi
20426
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428       conftest$ac_exeext conftest.$ac_ext
20429 fi
20430 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20431 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20432   if test $ac_cv_type_unsigned_long_long = yes; then
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_UNSIGNED_LONG_LONG 1
20436 _ACEOF
20437
20438   fi
20439
20440
20441
20442
20443   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20444
20445     test $ac_cv_type_unsigned_long_long = yes \
20446       && ac_type='unsigned long long' \
20447       || ac_type='unsigned long'
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define uintmax_t $ac_type
20451 _ACEOF
20452
20453   else
20454
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_UINTMAX_T 1
20457 _ACEOF
20458
20459   fi
20460
20461
20462   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20463 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20464 if test "${gt_cv_header_inttypes_h+set}" = set; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467
20468     cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 #include <sys/types.h>
20475 #include <inttypes.h>
20476 int
20477 main ()
20478 {
20479
20480   ;
20481   return 0;
20482 }
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488   *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491   (eval "$ac_compile") 2>conftest.er1
20492   ac_status=$?
20493   grep -v '^ *+' conftest.er1 >conftest.err
20494   rm -f conftest.er1
20495   cat conftest.err >&5
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } && {
20498          test -z "$ac_c_werror_flag" ||
20499          test ! -s conftest.err
20500        } && test -s conftest.$ac_objext; then
20501   gt_cv_header_inttypes_h=yes
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506         gt_cv_header_inttypes_h=no
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510
20511 fi
20512 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20513 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20514   if test $gt_cv_header_inttypes_h = yes; then
20515
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_INTTYPES_H 1
20518 _ACEOF
20519
20520   fi
20521
20522
20523
20524   if test $gt_cv_header_inttypes_h = yes; then
20525     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20526 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20527 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530
20531         cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 #include <inttypes.h>
20538 #ifdef PRId32
20539 char *p = PRId32;
20540 #endif
20541
20542 int
20543 main ()
20544 {
20545
20546   ;
20547   return 0;
20548 }
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (ac_try="$ac_compile"
20552 case "(($ac_try" in
20553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554   *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557   (eval "$ac_compile") 2>conftest.er1
20558   ac_status=$?
20559   grep -v '^ *+' conftest.er1 >conftest.err
20560   rm -f conftest.er1
20561   cat conftest.err >&5
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } && {
20564          test -z "$ac_c_werror_flag" ||
20565          test ! -s conftest.err
20566        } && test -s conftest.$ac_objext; then
20567   gt_cv_inttypes_pri_broken=no
20568 else
20569   echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572         gt_cv_inttypes_pri_broken=yes
20573 fi
20574
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576
20577 fi
20578 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20579 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20580   fi
20581   if test "$gt_cv_inttypes_pri_broken" = yes; then
20582
20583 cat >>confdefs.h <<_ACEOF
20584 #define PRI_MACROS_BROKEN 1
20585 _ACEOF
20586
20587   fi
20588
20589
20590
20591 for ac_header in stdint.h
20592 do
20593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20595   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 fi
20600 ac_res=`eval echo '${'$as_ac_Header'}'`
20601                { echo "$as_me:$LINENO: result: $ac_res" >&5
20602 echo "${ECHO_T}$ac_res" >&6; }
20603 else
20604   # Is the header compilable?
20605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613 $ac_includes_default
20614 #include <$ac_header>
20615 _ACEOF
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620   *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623   (eval "$ac_compile") 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } && {
20630          test -z "$ac_c_werror_flag" ||
20631          test ! -s conftest.err
20632        } && test -s conftest.$ac_objext; then
20633   ac_header_compiler=yes
20634 else
20635   echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638         ac_header_compiler=no
20639 fi
20640
20641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20643 echo "${ECHO_T}$ac_header_compiler" >&6; }
20644
20645 # Is the header present?
20646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 #include <$ac_header>
20655 _ACEOF
20656 if { (ac_try="$ac_cpp conftest.$ac_ext"
20657 case "(($ac_try" in
20658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659   *) ac_try_echo=$ac_try;;
20660 esac
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20663   ac_status=$?
20664   grep -v '^ *+' conftest.er1 >conftest.err
20665   rm -f conftest.er1
20666   cat conftest.err >&5
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } >/dev/null && {
20669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20670          test ! -s conftest.err
20671        }; then
20672   ac_header_preproc=yes
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677   ac_header_preproc=no
20678 fi
20679
20680 rm -f conftest.err conftest.$ac_ext
20681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682 echo "${ECHO_T}$ac_header_preproc" >&6; }
20683
20684 # So?  What about this header?
20685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686   yes:no: )
20687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20691     ac_header_preproc=yes
20692     ;;
20693   no:yes:* )
20694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20706
20707     ;;
20708 esac
20709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   eval "$as_ac_Header=\$ac_header_preproc"
20715 fi
20716 ac_res=`eval echo '${'$as_ac_Header'}'`
20717                { echo "$as_me:$LINENO: result: $ac_res" >&5
20718 echo "${ECHO_T}$ac_res" >&6; }
20719
20720 fi
20721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20722   cat >>confdefs.h <<_ACEOF
20723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20724 _ACEOF
20725
20726 fi
20727
20728 done
20729
20730     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20731 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20732   result=
20733   cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739
20740 #include <limits.h>
20741 #if HAVE_STDINT_H
20742 #include <stdint.h>
20743 #endif
20744 #ifdef SIZE_MAX
20745 Found it
20746 #endif
20747
20748 _ACEOF
20749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20750   $EGREP "Found it" >/dev/null 2>&1; then
20751   result=yes
20752 fi
20753 rm -f conftest*
20754
20755   if test -z "$result"; then
20756                     if test "$cross_compiling" = yes; then
20757   # Depending upon the size, compute the lo and hi bounds.
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 #include <stddef.h>
20765 int
20766 main ()
20767 {
20768 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20769 test_array [0] = 0
20770
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_compile") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } && {
20789          test -z "$ac_c_werror_flag" ||
20790          test ! -s conftest.err
20791        } && test -s conftest.$ac_objext; then
20792   ac_lo=0 ac_mid=0
20793   while :; do
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 #include <stddef.h>
20801 int
20802 main ()
20803 {
20804 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20805 test_array [0] = 0
20806
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_compile") 2>conftest.er1
20819   ac_status=$?
20820   grep -v '^ *+' conftest.er1 >conftest.err
20821   rm -f conftest.er1
20822   cat conftest.err >&5
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); } && {
20825          test -z "$ac_c_werror_flag" ||
20826          test ! -s conftest.err
20827        } && test -s conftest.$ac_objext; then
20828   ac_hi=$ac_mid; break
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833         ac_lo=`expr $ac_mid + 1`
20834                         if test $ac_lo -le $ac_mid; then
20835                           ac_lo= ac_hi=
20836                           break
20837                         fi
20838                         ac_mid=`expr 2 '*' $ac_mid + 1`
20839 fi
20840
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842   done
20843 else
20844   echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20846
20847         cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 #include <stddef.h>
20854 int
20855 main ()
20856 {
20857 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20858 test_array [0] = 0
20859
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_compile") 2>conftest.er1
20872   ac_status=$?
20873   grep -v '^ *+' conftest.er1 >conftest.err
20874   rm -f conftest.er1
20875   cat conftest.err >&5
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); } && {
20878          test -z "$ac_c_werror_flag" ||
20879          test ! -s conftest.err
20880        } && test -s conftest.$ac_objext; then
20881   ac_hi=-1 ac_mid=-1
20882   while :; do
20883     cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #include <stddef.h>
20890 int
20891 main ()
20892 {
20893 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20894 test_array [0] = 0
20895
20896   ;
20897   return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_compile") 2>conftest.er1
20908   ac_status=$?
20909   grep -v '^ *+' conftest.er1 >conftest.err
20910   rm -f conftest.er1
20911   cat conftest.err >&5
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); } && {
20914          test -z "$ac_c_werror_flag" ||
20915          test ! -s conftest.err
20916        } && test -s conftest.$ac_objext; then
20917   ac_lo=$ac_mid; break
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922         ac_hi=`expr '(' $ac_mid ')' - 1`
20923                         if test $ac_mid -le $ac_hi; then
20924                           ac_lo= ac_hi=
20925                           break
20926                         fi
20927                         ac_mid=`expr 2 '*' $ac_mid`
20928 fi
20929
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931   done
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936         ac_lo= ac_hi=
20937 fi
20938
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 # Binary search between lo and hi bounds.
20944 while test "x$ac_lo" != "x$ac_hi"; do
20945   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20946   cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 #include <stddef.h>
20953 int
20954 main ()
20955 {
20956 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20957 test_array [0] = 0
20958
20959   ;
20960   return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_compile") 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } && {
20977          test -z "$ac_c_werror_flag" ||
20978          test ! -s conftest.err
20979        } && test -s conftest.$ac_objext; then
20980   ac_hi=$ac_mid
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985         ac_lo=`expr '(' $ac_mid ')' + 1`
20986 fi
20987
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 done
20990 case $ac_lo in
20991 ?*) res_hi=$ac_lo;;
20992 '') result=? ;;
20993 esac
20994 else
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 #include <stddef.h>
21002 static long int longval () { return ~(size_t)0 / 10; }
21003 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21004 #include <stdio.h>
21005 #include <stdlib.h>
21006 int
21007 main ()
21008 {
21009
21010   FILE *f = fopen ("conftest.val", "w");
21011   if (! f)
21012     return 1;
21013   if ((~(size_t)0 / 10) < 0)
21014     {
21015       long int i = longval ();
21016       if (i != (~(size_t)0 / 10))
21017         return 1;
21018       fprintf (f, "%ld\n", i);
21019     }
21020   else
21021     {
21022       unsigned long int i = ulongval ();
21023       if (i != (~(size_t)0 / 10))
21024         return 1;
21025       fprintf (f, "%lu\n", i);
21026     }
21027   return ferror (f) || fclose (f) != 0;
21028
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_link") 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21044   { (case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_try") 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); }; }; then
21053   res_hi=`cat conftest.val`
21054 else
21055   echo "$as_me: program exited with status $ac_status" >&5
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ( exit $ac_status )
21060 result=?
21061 fi
21062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21063 fi
21064 rm -f conftest.val
21065
21066     if test "$cross_compiling" = yes; then
21067   # Depending upon the size, compute the lo and hi bounds.
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 #include <stddef.h>
21075 int
21076 main ()
21077 {
21078 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21079 test_array [0] = 0
21080
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 rm -f conftest.$ac_objext
21086 if { (ac_try="$ac_compile"
21087 case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_compile") 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } && {
21099          test -z "$ac_c_werror_flag" ||
21100          test ! -s conftest.err
21101        } && test -s conftest.$ac_objext; then
21102   ac_lo=0 ac_mid=0
21103   while :; do
21104     cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110 #include <stddef.h>
21111 int
21112 main ()
21113 {
21114 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21115 test_array [0] = 0
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_compile") 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } && {
21135          test -z "$ac_c_werror_flag" ||
21136          test ! -s conftest.err
21137        } && test -s conftest.$ac_objext; then
21138   ac_hi=$ac_mid; break
21139 else
21140   echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143         ac_lo=`expr $ac_mid + 1`
21144                         if test $ac_lo -le $ac_mid; then
21145                           ac_lo= ac_hi=
21146                           break
21147                         fi
21148                         ac_mid=`expr 2 '*' $ac_mid + 1`
21149 fi
21150
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152   done
21153 else
21154   echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157         cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 #include <stddef.h>
21164 int
21165 main ()
21166 {
21167 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21168 test_array [0] = 0
21169
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_compile") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest.$ac_objext; then
21191   ac_hi=-1 ac_mid=-1
21192   while :; do
21193     cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 #include <stddef.h>
21200 int
21201 main ()
21202 {
21203 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21204 test_array [0] = 0
21205
21206   ;
21207   return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214   *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217   (eval "$ac_compile") 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } && {
21224          test -z "$ac_c_werror_flag" ||
21225          test ! -s conftest.err
21226        } && test -s conftest.$ac_objext; then
21227   ac_lo=$ac_mid; break
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         ac_hi=`expr '(' $ac_mid ')' - 1`
21233                         if test $ac_mid -le $ac_hi; then
21234                           ac_lo= ac_hi=
21235                           break
21236                         fi
21237                         ac_mid=`expr 2 '*' $ac_mid`
21238 fi
21239
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241   done
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         ac_lo= ac_hi=
21247 fi
21248
21249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 # Binary search between lo and hi bounds.
21254 while test "x$ac_lo" != "x$ac_hi"; do
21255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21256   cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262 #include <stddef.h>
21263 int
21264 main ()
21265 {
21266 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21267 test_array [0] = 0
21268
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273 rm -f conftest.$ac_objext
21274 if { (ac_try="$ac_compile"
21275 case "(($ac_try" in
21276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277   *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280   (eval "$ac_compile") 2>conftest.er1
21281   ac_status=$?
21282   grep -v '^ *+' conftest.er1 >conftest.err
21283   rm -f conftest.er1
21284   cat conftest.err >&5
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); } && {
21287          test -z "$ac_c_werror_flag" ||
21288          test ! -s conftest.err
21289        } && test -s conftest.$ac_objext; then
21290   ac_hi=$ac_mid
21291 else
21292   echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295         ac_lo=`expr '(' $ac_mid ')' + 1`
21296 fi
21297
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299 done
21300 case $ac_lo in
21301 ?*) res_lo=$ac_lo;;
21302 '') result=? ;;
21303 esac
21304 else
21305   cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311 #include <stddef.h>
21312 static long int longval () { return ~(size_t)0 % 10; }
21313 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21314 #include <stdio.h>
21315 #include <stdlib.h>
21316 int
21317 main ()
21318 {
21319
21320   FILE *f = fopen ("conftest.val", "w");
21321   if (! f)
21322     return 1;
21323   if ((~(size_t)0 % 10) < 0)
21324     {
21325       long int i = longval ();
21326       if (i != (~(size_t)0 % 10))
21327         return 1;
21328       fprintf (f, "%ld\n", i);
21329     }
21330   else
21331     {
21332       unsigned long int i = ulongval ();
21333       if (i != (~(size_t)0 % 10))
21334         return 1;
21335       fprintf (f, "%lu\n", i);
21336     }
21337   return ferror (f) || fclose (f) != 0;
21338
21339   ;
21340   return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest$ac_exeext
21344 if { (ac_try="$ac_link"
21345 case "(($ac_try" in
21346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347   *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350   (eval "$ac_link") 2>&5
21351   ac_status=$?
21352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21354   { (case "(($ac_try" in
21355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356   *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359   (eval "$ac_try") 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; }; then
21363   res_lo=`cat conftest.val`
21364 else
21365   echo "$as_me: program exited with status $ac_status" >&5
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ( exit $ac_status )
21370 result=?
21371 fi
21372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21373 fi
21374 rm -f conftest.val
21375
21376     if test "$cross_compiling" = yes; then
21377   # Depending upon the size, compute the lo and hi bounds.
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h.  */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h.  */
21384 #include <stddef.h>
21385 int
21386 main ()
21387 {
21388 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21389 test_array [0] = 0
21390
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (ac_try="$ac_compile"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_compile") 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } && {
21409          test -z "$ac_c_werror_flag" ||
21410          test ! -s conftest.err
21411        } && test -s conftest.$ac_objext; then
21412   ac_lo=0 ac_mid=0
21413   while :; do
21414     cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #include <stddef.h>
21421 int
21422 main ()
21423 {
21424 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21425 test_array [0] = 0
21426
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_compile") 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } && {
21445          test -z "$ac_c_werror_flag" ||
21446          test ! -s conftest.err
21447        } && test -s conftest.$ac_objext; then
21448   ac_hi=$ac_mid; break
21449 else
21450   echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453         ac_lo=`expr $ac_mid + 1`
21454                         if test $ac_lo -le $ac_mid; then
21455                           ac_lo= ac_hi=
21456                           break
21457                         fi
21458                         ac_mid=`expr 2 '*' $ac_mid + 1`
21459 fi
21460
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462   done
21463 else
21464   echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467         cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 #include <stddef.h>
21474 int
21475 main ()
21476 {
21477 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21478 test_array [0] = 0
21479
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_compile") 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } && {
21498          test -z "$ac_c_werror_flag" ||
21499          test ! -s conftest.err
21500        } && test -s conftest.$ac_objext; then
21501   ac_hi=-1 ac_mid=-1
21502   while :; do
21503     cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509 #include <stddef.h>
21510 int
21511 main ()
21512 {
21513 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21514 test_array [0] = 0
21515
21516   ;
21517   return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524   *) ac_try_echo=$ac_try;;
21525 esac
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527   (eval "$ac_compile") 2>conftest.er1
21528   ac_status=$?
21529   grep -v '^ *+' conftest.er1 >conftest.err
21530   rm -f conftest.er1
21531   cat conftest.err >&5
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } && {
21534          test -z "$ac_c_werror_flag" ||
21535          test ! -s conftest.err
21536        } && test -s conftest.$ac_objext; then
21537   ac_lo=$ac_mid; break
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         ac_hi=`expr '(' $ac_mid ')' - 1`
21543                         if test $ac_mid -le $ac_hi; then
21544                           ac_lo= ac_hi=
21545                           break
21546                         fi
21547                         ac_mid=`expr 2 '*' $ac_mid`
21548 fi
21549
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551   done
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556         ac_lo= ac_hi=
21557 fi
21558
21559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 fi
21561
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563 # Binary search between lo and hi bounds.
21564 while test "x$ac_lo" != "x$ac_hi"; do
21565   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21566   cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 #include <stddef.h>
21573 int
21574 main ()
21575 {
21576 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21577 test_array [0] = 0
21578
21579   ;
21580   return 0;
21581 }
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587   *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590   (eval "$ac_compile") 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } && {
21597          test -z "$ac_c_werror_flag" ||
21598          test ! -s conftest.err
21599        } && test -s conftest.$ac_objext; then
21600   ac_hi=$ac_mid
21601 else
21602   echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21604
21605         ac_lo=`expr '(' $ac_mid ')' + 1`
21606 fi
21607
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609 done
21610 case $ac_lo in
21611 ?*) fits_in_uint=$ac_lo;;
21612 '') result=? ;;
21613 esac
21614 else
21615   cat >conftest.$ac_ext <<_ACEOF
21616 /* confdefs.h.  */
21617 _ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h.  */
21621 #include <stddef.h>
21622 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21623 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21624 #include <stdio.h>
21625 #include <stdlib.h>
21626 int
21627 main ()
21628 {
21629
21630   FILE *f = fopen ("conftest.val", "w");
21631   if (! f)
21632     return 1;
21633   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21634     {
21635       long int i = longval ();
21636       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21637         return 1;
21638       fprintf (f, "%ld\n", i);
21639     }
21640   else
21641     {
21642       unsigned long int i = ulongval ();
21643       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21644         return 1;
21645       fprintf (f, "%lu\n", i);
21646     }
21647   return ferror (f) || fclose (f) != 0;
21648
21649   ;
21650   return 0;
21651 }
21652 _ACEOF
21653 rm -f conftest$ac_exeext
21654 if { (ac_try="$ac_link"
21655 case "(($ac_try" in
21656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657   *) ac_try_echo=$ac_try;;
21658 esac
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660   (eval "$ac_link") 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21664   { (case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_try") 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   fits_in_uint=`cat conftest.val`
21674 else
21675   echo "$as_me: program exited with status $ac_status" >&5
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 ( exit $ac_status )
21680 result=?
21681 fi
21682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21683 fi
21684 rm -f conftest.val
21685
21686     if test "$fits_in_uint" = 1; then
21687                   cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693 #include <stddef.h>
21694         extern size_t foo;
21695         extern unsigned long foo;
21696
21697 int
21698 main ()
21699 {
21700
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   fits_in_uint=0
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731     fi
21732     if test -z "$result"; then
21733       if test "$fits_in_uint" = 1; then
21734         result="$res_hi$res_lo"U
21735       else
21736         result="$res_hi$res_lo"UL
21737       fi
21738     else
21739             result='~(size_t)0'
21740     fi
21741   fi
21742   { echo "$as_me:$LINENO: result: $result" >&5
21743 echo "${ECHO_T}$result" >&6; }
21744   if test "$result" != yes; then
21745
21746 cat >>confdefs.h <<_ACEOF
21747 #define SIZE_MAX $result
21748 _ACEOF
21749
21750   fi
21751
21752
21753
21754
21755
21756 for ac_header in stdint.h
21757 do
21758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763   echo $ECHO_N "(cached) $ECHO_C" >&6
21764 fi
21765 ac_res=`eval echo '${'$as_ac_Header'}'`
21766                { echo "$as_me:$LINENO: result: $ac_res" >&5
21767 echo "${ECHO_T}$ac_res" >&6; }
21768 else
21769   # Is the header compilable?
21770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21772 cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 $ac_includes_default
21779 #include <$ac_header>
21780 _ACEOF
21781 rm -f conftest.$ac_objext
21782 if { (ac_try="$ac_compile"
21783 case "(($ac_try" in
21784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785   *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788   (eval "$ac_compile") 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } && {
21795          test -z "$ac_c_werror_flag" ||
21796          test ! -s conftest.err
21797        } && test -s conftest.$ac_objext; then
21798   ac_header_compiler=yes
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803         ac_header_compiler=no
21804 fi
21805
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21808 echo "${ECHO_T}$ac_header_compiler" >&6; }
21809
21810 # Is the header present?
21811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21813 cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h.  */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h.  */
21819 #include <$ac_header>
21820 _ACEOF
21821 if { (ac_try="$ac_cpp conftest.$ac_ext"
21822 case "(($ac_try" in
21823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824   *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21828   ac_status=$?
21829   grep -v '^ *+' conftest.er1 >conftest.err
21830   rm -f conftest.er1
21831   cat conftest.err >&5
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } >/dev/null && {
21834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21835          test ! -s conftest.err
21836        }; then
21837   ac_header_preproc=yes
21838 else
21839   echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21841
21842   ac_header_preproc=no
21843 fi
21844
21845 rm -f conftest.err conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21847 echo "${ECHO_T}$ac_header_preproc" >&6; }
21848
21849 # So?  What about this header?
21850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21851   yes:no: )
21852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21856     ac_header_preproc=yes
21857     ;;
21858   no:yes:* )
21859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21871
21872     ;;
21873 esac
21874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21877   echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879   eval "$as_ac_Header=\$ac_header_preproc"
21880 fi
21881 ac_res=`eval echo '${'$as_ac_Header'}'`
21882                { echo "$as_me:$LINENO: result: $ac_res" >&5
21883 echo "${ECHO_T}$ac_res" >&6; }
21884
21885 fi
21886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21887   cat >>confdefs.h <<_ACEOF
21888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21889 _ACEOF
21890
21891 fi
21892
21893 done
21894
21895
21896
21897
21898
21899
21900
21901
21902   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21903 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21904 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21905   echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 $ac_includes_default
21914 typedef ptrdiff_t ac__type_new_;
21915 int
21916 main ()
21917 {
21918 if ((ac__type_new_ *) 0)
21919   return 0;
21920 if (sizeof (ac__type_new_))
21921   return 0;
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930   *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933   (eval "$ac_compile") 2>conftest.er1
21934   ac_status=$?
21935   grep -v '^ *+' conftest.er1 >conftest.err
21936   rm -f conftest.er1
21937   cat conftest.err >&5
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); } && {
21940          test -z "$ac_c_werror_flag" ||
21941          test ! -s conftest.err
21942        } && test -s conftest.$ac_objext; then
21943   ac_cv_type_ptrdiff_t=yes
21944 else
21945   echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21947
21948         ac_cv_type_ptrdiff_t=no
21949 fi
21950
21951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21952 fi
21953 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21954 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21955 if test $ac_cv_type_ptrdiff_t = yes; then
21956   :
21957 else
21958
21959 cat >>confdefs.h <<\_ACEOF
21960 #define ptrdiff_t long
21961 _ACEOF
21962
21963
21964 fi
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21977 stdlib.h string.h unistd.h sys/param.h
21978 do
21979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984   echo $ECHO_N "(cached) $ECHO_C" >&6
21985 fi
21986 ac_res=`eval echo '${'$as_ac_Header'}'`
21987                { echo "$as_me:$LINENO: result: $ac_res" >&5
21988 echo "${ECHO_T}$ac_res" >&6; }
21989 else
21990   # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 $ac_includes_default
22000 #include <$ac_header>
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009   (eval "$ac_compile") 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } && {
22016          test -z "$ac_c_werror_flag" ||
22017          test ! -s conftest.err
22018        } && test -s conftest.$ac_objext; then
22019   ac_header_compiler=yes
22020 else
22021   echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024         ac_header_compiler=no
22025 fi
22026
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22029 echo "${ECHO_T}$ac_header_compiler" >&6; }
22030
22031 # Is the header present?
22032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 #include <$ac_header>
22041 _ACEOF
22042 if { (ac_try="$ac_cpp conftest.$ac_ext"
22043 case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } >/dev/null && {
22055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22056          test ! -s conftest.err
22057        }; then
22058   ac_header_preproc=yes
22059 else
22060   echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063   ac_header_preproc=no
22064 fi
22065
22066 rm -f conftest.err conftest.$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22068 echo "${ECHO_T}$ac_header_preproc" >&6; }
22069
22070 # So?  What about this header?
22071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22072   yes:no: )
22073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22077     ac_header_preproc=yes
22078     ;;
22079   no:yes:* )
22080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22092
22093     ;;
22094 esac
22095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22098   echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100   eval "$as_ac_Header=\$ac_header_preproc"
22101 fi
22102 ac_res=`eval echo '${'$as_ac_Header'}'`
22103                { echo "$as_me:$LINENO: result: $ac_res" >&5
22104 echo "${ECHO_T}$ac_res" >&6; }
22105
22106 fi
22107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22108   cat >>confdefs.h <<_ACEOF
22109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22110 _ACEOF
22111
22112 fi
22113
22114 done
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22140 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22141 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22142 __fsetlocking
22143 do
22144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22148   echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150   cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22158 #define $ac_func innocuous_$ac_func
22159
22160 /* System header to define __stub macros and hopefully few prototypes,
22161     which can conflict with char $ac_func (); below.
22162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22163     <limits.h> exists even on freestanding compilers.  */
22164
22165 #ifdef __STDC__
22166 # include <limits.h>
22167 #else
22168 # include <assert.h>
22169 #endif
22170
22171 #undef $ac_func
22172
22173 /* Override any GCC internal prototype to avoid an error.
22174    Use char because int might match the return type of a GCC
22175    builtin and then its argument prototype would still apply.  */
22176 #ifdef __cplusplus
22177 extern "C"
22178 #endif
22179 char $ac_func ();
22180 /* The GNU C library defines this for functions which it implements
22181     to always fail with ENOSYS.  Some functions are actually named
22182     something starting with __ and the normal name is an alias.  */
22183 #if defined __stub_$ac_func || defined __stub___$ac_func
22184 choke me
22185 #endif
22186
22187 int
22188 main ()
22189 {
22190 return $ac_func ();
22191   ;
22192   return 0;
22193 }
22194 _ACEOF
22195 rm -f conftest.$ac_objext conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199   *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202   (eval "$ac_link") 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } && {
22209          test -z "$ac_c_werror_flag" ||
22210          test ! -s conftest.err
22211        } && test -s conftest$ac_exeext &&
22212        $as_test_x conftest$ac_exeext; then
22213   eval "$as_ac_var=yes"
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 sed 's/^/| /' conftest.$ac_ext >&5
22217
22218         eval "$as_ac_var=no"
22219 fi
22220
22221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22222       conftest$ac_exeext conftest.$ac_ext
22223 fi
22224 ac_res=`eval echo '${'$as_ac_var'}'`
22225                { echo "$as_me:$LINENO: result: $ac_res" >&5
22226 echo "${ECHO_T}$ac_res" >&6; }
22227 if test `eval echo '${'$as_ac_var'}'` = yes; then
22228   cat >>confdefs.h <<_ACEOF
22229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22230 _ACEOF
22231
22232 fi
22233 done
22234
22235
22236
22237   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22238 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22239 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 #include <stdio.h>
22249 int
22250 main ()
22251 {
22252
22253 #ifndef _snprintf
22254   char *p = (char *) _snprintf;
22255 #endif
22256
22257   ;
22258   return 0;
22259 }
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265   *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268   (eval "$ac_compile") 2>conftest.er1
22269   ac_status=$?
22270   grep -v '^ *+' conftest.er1 >conftest.err
22271   rm -f conftest.er1
22272   cat conftest.err >&5
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); } && {
22275          test -z "$ac_c_werror_flag" ||
22276          test ! -s conftest.err
22277        } && test -s conftest.$ac_objext; then
22278   ac_cv_have_decl__snprintf=yes
22279 else
22280   echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283         ac_cv_have_decl__snprintf=no
22284 fi
22285
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 fi
22288 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22289 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22290   if test $ac_cv_have_decl__snprintf = yes; then
22291     gt_value=1
22292   else
22293     gt_value=0
22294   fi
22295
22296 cat >>confdefs.h <<_ACEOF
22297 #define HAVE_DECL__SNPRINTF $gt_value
22298 _ACEOF
22299
22300
22301
22302   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22303 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22304 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22305   echo $ECHO_N "(cached) $ECHO_C" >&6
22306 else
22307   cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h.  */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h.  */
22313 #include <stdio.h>
22314 int
22315 main ()
22316 {
22317
22318 #ifndef _snwprintf
22319   char *p = (char *) _snwprintf;
22320 #endif
22321
22322   ;
22323   return 0;
22324 }
22325 _ACEOF
22326 rm -f conftest.$ac_objext
22327 if { (ac_try="$ac_compile"
22328 case "(($ac_try" in
22329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330   *) ac_try_echo=$ac_try;;
22331 esac
22332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333   (eval "$ac_compile") 2>conftest.er1
22334   ac_status=$?
22335   grep -v '^ *+' conftest.er1 >conftest.err
22336   rm -f conftest.er1
22337   cat conftest.err >&5
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); } && {
22340          test -z "$ac_c_werror_flag" ||
22341          test ! -s conftest.err
22342        } && test -s conftest.$ac_objext; then
22343   ac_cv_have_decl__snwprintf=yes
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348         ac_cv_have_decl__snwprintf=no
22349 fi
22350
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 fi
22353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22354 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22355   if test $ac_cv_have_decl__snwprintf = yes; then
22356     gt_value=1
22357   else
22358     gt_value=0
22359   fi
22360
22361 cat >>confdefs.h <<_ACEOF
22362 #define HAVE_DECL__SNWPRINTF $gt_value
22363 _ACEOF
22364
22365
22366
22367
22368   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22369 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22370 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 #include <stdio.h>
22380 int
22381 main ()
22382 {
22383
22384 #ifndef feof_unlocked
22385   char *p = (char *) feof_unlocked;
22386 #endif
22387
22388   ;
22389   return 0;
22390 }
22391 _ACEOF
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_compile") 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } && {
22406          test -z "$ac_c_werror_flag" ||
22407          test ! -s conftest.err
22408        } && test -s conftest.$ac_objext; then
22409   ac_cv_have_decl_feof_unlocked=yes
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414         ac_cv_have_decl_feof_unlocked=no
22415 fi
22416
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418 fi
22419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22420 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22421   if test $ac_cv_have_decl_feof_unlocked = yes; then
22422     gt_value=1
22423   else
22424     gt_value=0
22425   fi
22426
22427 cat >>confdefs.h <<_ACEOF
22428 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22429 _ACEOF
22430
22431
22432
22433   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22434 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22435 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22436   echo $ECHO_N "(cached) $ECHO_C" >&6
22437 else
22438   cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h.  */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h.  */
22444 #include <stdio.h>
22445 int
22446 main ()
22447 {
22448
22449 #ifndef fgets_unlocked
22450   char *p = (char *) fgets_unlocked;
22451 #endif
22452
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext
22458 if { (ac_try="$ac_compile"
22459 case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464   (eval "$ac_compile") 2>conftest.er1
22465   ac_status=$?
22466   grep -v '^ *+' conftest.er1 >conftest.err
22467   rm -f conftest.er1
22468   cat conftest.err >&5
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } && {
22471          test -z "$ac_c_werror_flag" ||
22472          test ! -s conftest.err
22473        } && test -s conftest.$ac_objext; then
22474   ac_cv_have_decl_fgets_unlocked=yes
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479         ac_cv_have_decl_fgets_unlocked=no
22480 fi
22481
22482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483 fi
22484 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22485 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22486   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22487     gt_value=1
22488   else
22489     gt_value=0
22490   fi
22491
22492 cat >>confdefs.h <<_ACEOF
22493 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22494 _ACEOF
22495
22496
22497
22498   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22499 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22500 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   cat >conftest.$ac_ext <<_ACEOF
22504 /* confdefs.h.  */
22505 _ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h.  */
22509 #include <stdio.h>
22510 int
22511 main ()
22512 {
22513
22514 #ifndef getc_unlocked
22515   char *p = (char *) getc_unlocked;
22516 #endif
22517
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_compile") 2>conftest.er1
22530   ac_status=$?
22531   grep -v '^ *+' conftest.er1 >conftest.err
22532   rm -f conftest.er1
22533   cat conftest.err >&5
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); } && {
22536          test -z "$ac_c_werror_flag" ||
22537          test ! -s conftest.err
22538        } && test -s conftest.$ac_objext; then
22539   ac_cv_have_decl_getc_unlocked=yes
22540 else
22541   echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544         ac_cv_have_decl_getc_unlocked=no
22545 fi
22546
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 fi
22549 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22550 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22551   if test $ac_cv_have_decl_getc_unlocked = yes; then
22552     gt_value=1
22553   else
22554     gt_value=0
22555   fi
22556
22557 cat >>confdefs.h <<_ACEOF
22558 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22559 _ACEOF
22560
22561
22562
22563   case $gt_cv_func_printf_posix in
22564     *yes) HAVE_POSIX_PRINTF=1 ;;
22565     *) HAVE_POSIX_PRINTF=0 ;;
22566   esac
22567
22568   if test "$ac_cv_func_asprintf" = yes; then
22569     HAVE_ASPRINTF=1
22570   else
22571     HAVE_ASPRINTF=0
22572   fi
22573
22574   if test "$ac_cv_func_snprintf" = yes; then
22575     HAVE_SNPRINTF=1
22576   else
22577     HAVE_SNPRINTF=0
22578   fi
22579
22580   if test "$ac_cv_func_wprintf" = yes; then
22581     HAVE_WPRINTF=1
22582   else
22583     HAVE_WPRINTF=0
22584   fi
22585
22586
22587
22588
22589
22590
22591
22592           am_save_CPPFLAGS="$CPPFLAGS"
22593
22594   for element in $INCICONV; do
22595     haveit=
22596     for x in $CPPFLAGS; do
22597
22598   acl_save_prefix="$prefix"
22599   prefix="$acl_final_prefix"
22600   acl_save_exec_prefix="$exec_prefix"
22601   exec_prefix="$acl_final_exec_prefix"
22602   eval x=\"$x\"
22603   exec_prefix="$acl_save_exec_prefix"
22604   prefix="$acl_save_prefix"
22605
22606       if test "X$x" = "X$element"; then
22607         haveit=yes
22608         break
22609       fi
22610     done
22611     if test -z "$haveit"; then
22612       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22613     fi
22614   done
22615
22616
22617   { echo "$as_me:$LINENO: checking for iconv" >&5
22618 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22619 if test "${am_cv_func_iconv+set}" = set; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622
22623     am_cv_func_iconv="no, consider installing GNU libiconv"
22624     am_cv_lib_iconv=no
22625     cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h.  */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h.  */
22631 #include <stdlib.h>
22632 #include <iconv.h>
22633 int
22634 main ()
22635 {
22636 iconv_t cd = iconv_open("","");
22637        iconv(cd,NULL,NULL,NULL,NULL);
22638        iconv_close(cd);
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (ac_try="$ac_link"
22645 case "(($ac_try" in
22646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647   *) ac_try_echo=$ac_try;;
22648 esac
22649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650   (eval "$ac_link") 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } && {
22657          test -z "$ac_c_werror_flag" ||
22658          test ! -s conftest.err
22659        } && test -s conftest$ac_exeext &&
22660        $as_test_x conftest$ac_exeext; then
22661   am_cv_func_iconv=yes
22662 else
22663   echo "$as_me: failed program was:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22665
22666
22667 fi
22668
22669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22670       conftest$ac_exeext conftest.$ac_ext
22671     if test "$am_cv_func_iconv" != yes; then
22672       am_save_LIBS="$LIBS"
22673       LIBS="$LIBS $LIBICONV"
22674       cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h.  */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h.  */
22680 #include <stdlib.h>
22681 #include <iconv.h>
22682 int
22683 main ()
22684 {
22685 iconv_t cd = iconv_open("","");
22686          iconv(cd,NULL,NULL,NULL,NULL);
22687          iconv_close(cd);
22688   ;
22689   return 0;
22690 }
22691 _ACEOF
22692 rm -f conftest.$ac_objext conftest$ac_exeext
22693 if { (ac_try="$ac_link"
22694 case "(($ac_try" in
22695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696   *) ac_try_echo=$ac_try;;
22697 esac
22698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22699   (eval "$ac_link") 2>conftest.er1
22700   ac_status=$?
22701   grep -v '^ *+' conftest.er1 >conftest.err
22702   rm -f conftest.er1
22703   cat conftest.err >&5
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } && {
22706          test -z "$ac_c_werror_flag" ||
22707          test ! -s conftest.err
22708        } && test -s conftest$ac_exeext &&
22709        $as_test_x conftest$ac_exeext; then
22710   am_cv_lib_iconv=yes
22711         am_cv_func_iconv=yes
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       LIBS="$am_save_LIBS"
22722     fi
22723
22724 fi
22725 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22726 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22727   if test "$am_cv_func_iconv" = yes; then
22728
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_ICONV 1
22731 _ACEOF
22732
22733   fi
22734   if test "$am_cv_lib_iconv" = yes; then
22735     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22736 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22737     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22738 echo "${ECHO_T}$LIBICONV" >&6; }
22739   else
22740             CPPFLAGS="$am_save_CPPFLAGS"
22741     LIBICONV=
22742     LTLIBICONV=
22743   fi
22744
22745
22746
22747   if test "$am_cv_func_iconv" = yes; then
22748     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22749 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22750     if test "${am_cv_proto_iconv+set}" = set; then
22751   echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753
22754       cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760
22761 #include <stdlib.h>
22762 #include <iconv.h>
22763 extern
22764 #ifdef __cplusplus
22765 "C"
22766 #endif
22767 #if defined(__STDC__) || defined(__cplusplus)
22768 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22769 #else
22770 size_t iconv();
22771 #endif
22772
22773 int
22774 main ()
22775 {
22776
22777   ;
22778   return 0;
22779 }
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785   *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788   (eval "$ac_compile") 2>conftest.er1
22789   ac_status=$?
22790   grep -v '^ *+' conftest.er1 >conftest.err
22791   rm -f conftest.er1
22792   cat conftest.err >&5
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); } && {
22795          test -z "$ac_c_werror_flag" ||
22796          test ! -s conftest.err
22797        } && test -s conftest.$ac_objext; then
22798   am_cv_proto_iconv_arg1=""
22799 else
22800   echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803         am_cv_proto_iconv_arg1="const"
22804 fi
22805
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22808 fi
22809
22810     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22811     { echo "$as_me:$LINENO: result: ${ac_t:-
22812          }$am_cv_proto_iconv" >&5
22813 echo "${ECHO_T}${ac_t:-
22814          }$am_cv_proto_iconv" >&6; }
22815
22816 cat >>confdefs.h <<_ACEOF
22817 #define ICONV_CONST $am_cv_proto_iconv_arg1
22818 _ACEOF
22819
22820   fi
22821
22822
22823   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22824 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22825 if test "${am_cv_langinfo_codeset+set}" = set; then
22826   echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828   cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h.  */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h.  */
22834 #include <langinfo.h>
22835 int
22836 main ()
22837 {
22838 char* cs = nl_langinfo(CODESET);
22839   ;
22840   return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847   *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850   (eval "$ac_link") 2>conftest.er1
22851   ac_status=$?
22852   grep -v '^ *+' conftest.er1 >conftest.err
22853   rm -f conftest.er1
22854   cat conftest.err >&5
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); } && {
22857          test -z "$ac_c_werror_flag" ||
22858          test ! -s conftest.err
22859        } && test -s conftest$ac_exeext &&
22860        $as_test_x conftest$ac_exeext; then
22861   am_cv_langinfo_codeset=yes
22862 else
22863   echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866         am_cv_langinfo_codeset=no
22867 fi
22868
22869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22870       conftest$ac_exeext conftest.$ac_ext
22871
22872 fi
22873 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22874 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22875   if test $am_cv_langinfo_codeset = yes; then
22876
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_LANGINFO_CODESET 1
22879 _ACEOF
22880
22881   fi
22882
22883   if test $ac_cv_header_locale_h = yes; then
22884
22885   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22886 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22887 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22888   echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22890   cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896 #include <locale.h>
22897 int
22898 main ()
22899 {
22900 return LC_MESSAGES
22901   ;
22902   return 0;
22903 }
22904 _ACEOF
22905 rm -f conftest.$ac_objext conftest$ac_exeext
22906 if { (ac_try="$ac_link"
22907 case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_link") 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } && {
22919          test -z "$ac_c_werror_flag" ||
22920          test ! -s conftest.err
22921        } && test -s conftest$ac_exeext &&
22922        $as_test_x conftest$ac_exeext; then
22923   gt_cv_val_LC_MESSAGES=yes
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928         gt_cv_val_LC_MESSAGES=no
22929 fi
22930
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22932       conftest$ac_exeext conftest.$ac_ext
22933 fi
22934 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22935 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22936   if test $gt_cv_val_LC_MESSAGES = yes; then
22937
22938 cat >>confdefs.h <<\_ACEOF
22939 #define HAVE_LC_MESSAGES 1
22940 _ACEOF
22941
22942   fi
22943
22944   fi
22945
22946   if test -n "$INTL_MACOSX_LIBS"; then
22947     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22948   fi
22949
22950                       for ac_prog in bison
22951 do
22952   # Extract the first word of "$ac_prog", so it can be a program name with args.
22953 set dummy $ac_prog; ac_word=$2
22954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22956 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22957   echo $ECHO_N "(cached) $ECHO_C" >&6
22958 else
22959   if test -n "$INTLBISON"; then
22960   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22961 else
22962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22963 for as_dir in $PATH
22964 do
22965   IFS=$as_save_IFS
22966   test -z "$as_dir" && as_dir=.
22967   for ac_exec_ext in '' $ac_executable_extensions; do
22968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22969     ac_cv_prog_INTLBISON="$ac_prog"
22970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22971     break 2
22972   fi
22973 done
22974 done
22975 IFS=$as_save_IFS
22976
22977 fi
22978 fi
22979 INTLBISON=$ac_cv_prog_INTLBISON
22980 if test -n "$INTLBISON"; then
22981   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22982 echo "${ECHO_T}$INTLBISON" >&6; }
22983 else
22984   { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22986 fi
22987
22988
22989   test -n "$INTLBISON" && break
22990 done
22991
22992   if test -z "$INTLBISON"; then
22993     ac_verc_fail=yes
22994   else
22995         { echo "$as_me:$LINENO: checking version of bison" >&5
22996 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
22997     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22998     case $ac_prog_version in
22999       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23000       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23001          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23002       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23003     esac
23004     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23005 echo "${ECHO_T}$ac_prog_version" >&6; }
23006   fi
23007   if test $ac_verc_fail = yes; then
23008     INTLBISON=:
23009   fi
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23027 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23028 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23029   echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031   gt_save_CPPFLAGS="$CPPFLAGS"
23032      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23033      gt_save_LIBS="$LIBS"
23034      LIBS="$LIBS -framework CoreFoundation"
23035      cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 #include <CFPreferences.h>
23042 int
23043 main ()
23044 {
23045 CFPreferencesCopyAppValue(NULL, NULL)
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (ac_try="$ac_link"
23052 case "(($ac_try" in
23053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054   *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057   (eval "$ac_link") 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } && {
23064          test -z "$ac_c_werror_flag" ||
23065          test ! -s conftest.err
23066        } && test -s conftest$ac_exeext &&
23067        $as_test_x conftest$ac_exeext; then
23068   gt_cv_func_CFPreferencesCopyAppValue=yes
23069 else
23070   echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23072
23073         gt_cv_func_CFPreferencesCopyAppValue=no
23074 fi
23075
23076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23077       conftest$ac_exeext conftest.$ac_ext
23078      CPPFLAGS="$gt_save_CPPFLAGS"
23079      LIBS="$gt_save_LIBS"
23080 fi
23081 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23082 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23083   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23084
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23087 _ACEOF
23088
23089   fi
23090     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23091 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23092 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23093   echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095   gt_save_CPPFLAGS="$CPPFLAGS"
23096      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23097      gt_save_LIBS="$LIBS"
23098      LIBS="$LIBS -framework CoreFoundation"
23099      cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105 #include <CFLocale.h>
23106 int
23107 main ()
23108 {
23109 CFLocaleCopyCurrent();
23110   ;
23111   return 0;
23112 }
23113 _ACEOF
23114 rm -f conftest.$ac_objext conftest$ac_exeext
23115 if { (ac_try="$ac_link"
23116 case "(($ac_try" in
23117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23118   *) ac_try_echo=$ac_try;;
23119 esac
23120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23121   (eval "$ac_link") 2>conftest.er1
23122   ac_status=$?
23123   grep -v '^ *+' conftest.er1 >conftest.err
23124   rm -f conftest.er1
23125   cat conftest.err >&5
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); } && {
23128          test -z "$ac_c_werror_flag" ||
23129          test ! -s conftest.err
23130        } && test -s conftest$ac_exeext &&
23131        $as_test_x conftest$ac_exeext; then
23132   gt_cv_func_CFLocaleCopyCurrent=yes
23133 else
23134   echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137         gt_cv_func_CFLocaleCopyCurrent=no
23138 fi
23139
23140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23141       conftest$ac_exeext conftest.$ac_ext
23142      CPPFLAGS="$gt_save_CPPFLAGS"
23143      LIBS="$gt_save_LIBS"
23144 fi
23145 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23146 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23147   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23148
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_CFLOCALECOPYCURRENT 1
23151 _ACEOF
23152
23153   fi
23154   INTL_MACOSX_LIBS=
23155   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23156     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23157   fi
23158
23159
23160
23161
23162   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23163 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23164     # Check whether --enable-nls was given.
23165 if test "${enable_nls+set}" = set; then
23166   enableval=$enable_nls; USE_NLS=$enableval
23167 else
23168   USE_NLS=yes
23169 fi
23170
23171   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23172 echo "${ECHO_T}$USE_NLS" >&6; }
23173
23174
23175
23176
23177     BUILD_INCLUDED_LIBINTL=no
23178     USE_INCLUDED_LIBINTL=no
23179
23180   LIBINTL=
23181   LTLIBINTL=
23182   POSUB=
23183
23184     if test "$USE_NLS" = "yes"; then
23185     gt_use_preinstalled_gnugettext=no
23186
23187       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23188 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23189
23190 # Check whether --with-included-gettext was given.
23191 if test "${with_included_gettext+set}" = set; then
23192   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23193 else
23194   nls_cv_force_use_gnu_gettext=no
23195 fi
23196
23197       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23198 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23199
23200       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23201       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23202
23203
23204
23205
23206
23207
23208         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23209 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23210 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213   cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 #include <libintl.h>
23220 extern int _nl_msg_cat_cntr;
23221 extern int *_nl_domain_bindings;
23222 int
23223 main ()
23224 {
23225 bindtextdomain ("", "");
23226 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23227   ;
23228   return 0;
23229 }
23230 _ACEOF
23231 rm -f conftest.$ac_objext conftest$ac_exeext
23232 if { (ac_try="$ac_link"
23233 case "(($ac_try" in
23234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235   *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238   (eval "$ac_link") 2>conftest.er1
23239   ac_status=$?
23240   grep -v '^ *+' conftest.er1 >conftest.err
23241   rm -f conftest.er1
23242   cat conftest.err >&5
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); } && {
23245          test -z "$ac_c_werror_flag" ||
23246          test ! -s conftest.err
23247        } && test -s conftest$ac_exeext &&
23248        $as_test_x conftest$ac_exeext; then
23249   gt_cv_func_gnugettext1_libc=yes
23250 else
23251   echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23253
23254         gt_cv_func_gnugettext1_libc=no
23255 fi
23256
23257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23258       conftest$ac_exeext conftest.$ac_ext
23259 fi
23260 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23261 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23262
23263         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23264
23265
23266
23267     use_additional=yes
23268
23269   acl_save_prefix="$prefix"
23270   prefix="$acl_final_prefix"
23271   acl_save_exec_prefix="$exec_prefix"
23272   exec_prefix="$acl_final_exec_prefix"
23273
23274     eval additional_includedir=\"$includedir\"
23275     eval additional_libdir=\"$libdir\"
23276
23277   exec_prefix="$acl_save_exec_prefix"
23278   prefix="$acl_save_prefix"
23279
23280
23281 # Check whether --with-libintl-prefix was given.
23282 if test "${with_libintl_prefix+set}" = set; then
23283   withval=$with_libintl_prefix;
23284     if test "X$withval" = "Xno"; then
23285       use_additional=no
23286     else
23287       if test "X$withval" = "X"; then
23288
23289   acl_save_prefix="$prefix"
23290   prefix="$acl_final_prefix"
23291   acl_save_exec_prefix="$exec_prefix"
23292   exec_prefix="$acl_final_exec_prefix"
23293
23294           eval additional_includedir=\"$includedir\"
23295           eval additional_libdir=\"$libdir\"
23296
23297   exec_prefix="$acl_save_exec_prefix"
23298   prefix="$acl_save_prefix"
23299
23300       else
23301         additional_includedir="$withval/include"
23302         additional_libdir="$withval/lib"
23303       fi
23304     fi
23305
23306 fi
23307
23308       LIBINTL=
23309   LTLIBINTL=
23310   INCINTL=
23311   rpathdirs=
23312   ltrpathdirs=
23313   names_already_handled=
23314   names_next_round='intl '
23315   while test -n "$names_next_round"; do
23316     names_this_round="$names_next_round"
23317     names_next_round=
23318     for name in $names_this_round; do
23319       already_handled=
23320       for n in $names_already_handled; do
23321         if test "$n" = "$name"; then
23322           already_handled=yes
23323           break
23324         fi
23325       done
23326       if test -z "$already_handled"; then
23327         names_already_handled="$names_already_handled $name"
23328                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23329         eval value=\"\$HAVE_LIB$uppername\"
23330         if test -n "$value"; then
23331           if test "$value" = yes; then
23332             eval value=\"\$LIB$uppername\"
23333             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23334             eval value=\"\$LTLIB$uppername\"
23335             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23336           else
23337                                     :
23338           fi
23339         else
23340                               found_dir=
23341           found_la=
23342           found_so=
23343           found_a=
23344           if test $use_additional = yes; then
23345             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23346               found_dir="$additional_libdir"
23347               found_so="$additional_libdir/lib$name.$shlibext"
23348               if test -f "$additional_libdir/lib$name.la"; then
23349                 found_la="$additional_libdir/lib$name.la"
23350               fi
23351             else
23352               if test -f "$additional_libdir/lib$name.$libext"; then
23353                 found_dir="$additional_libdir"
23354                 found_a="$additional_libdir/lib$name.$libext"
23355                 if test -f "$additional_libdir/lib$name.la"; then
23356                   found_la="$additional_libdir/lib$name.la"
23357                 fi
23358               fi
23359             fi
23360           fi
23361           if test "X$found_dir" = "X"; then
23362             for x in $LDFLAGS $LTLIBINTL; do
23363
23364   acl_save_prefix="$prefix"
23365   prefix="$acl_final_prefix"
23366   acl_save_exec_prefix="$exec_prefix"
23367   exec_prefix="$acl_final_exec_prefix"
23368   eval x=\"$x\"
23369   exec_prefix="$acl_save_exec_prefix"
23370   prefix="$acl_save_prefix"
23371
23372               case "$x" in
23373                 -L*)
23374                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23375                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23376                     found_dir="$dir"
23377                     found_so="$dir/lib$name.$shlibext"
23378                     if test -f "$dir/lib$name.la"; then
23379                       found_la="$dir/lib$name.la"
23380                     fi
23381                   else
23382                     if test -f "$dir/lib$name.$libext"; then
23383                       found_dir="$dir"
23384                       found_a="$dir/lib$name.$libext"
23385                       if test -f "$dir/lib$name.la"; then
23386                         found_la="$dir/lib$name.la"
23387                       fi
23388                     fi
23389                   fi
23390                   ;;
23391               esac
23392               if test "X$found_dir" != "X"; then
23393                 break
23394               fi
23395             done
23396           fi
23397           if test "X$found_dir" != "X"; then
23398                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23399             if test "X$found_so" != "X"; then
23400                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23401                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23402               else
23403                                                                                 haveit=
23404                 for x in $ltrpathdirs; do
23405                   if test "X$x" = "X$found_dir"; then
23406                     haveit=yes
23407                     break
23408                   fi
23409                 done
23410                 if test -z "$haveit"; then
23411                   ltrpathdirs="$ltrpathdirs $found_dir"
23412                 fi
23413                                 if test "$hardcode_direct" = yes; then
23414                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23415                 else
23416                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23417                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23418                                                             haveit=
23419                     for x in $rpathdirs; do
23420                       if test "X$x" = "X$found_dir"; then
23421                         haveit=yes
23422                         break
23423                       fi
23424                     done
23425                     if test -z "$haveit"; then
23426                       rpathdirs="$rpathdirs $found_dir"
23427                     fi
23428                   else
23429                                                                                 haveit=
23430                     for x in $LDFLAGS $LIBINTL; do
23431
23432   acl_save_prefix="$prefix"
23433   prefix="$acl_final_prefix"
23434   acl_save_exec_prefix="$exec_prefix"
23435   exec_prefix="$acl_final_exec_prefix"
23436   eval x=\"$x\"
23437   exec_prefix="$acl_save_exec_prefix"
23438   prefix="$acl_save_prefix"
23439
23440                       if test "X$x" = "X-L$found_dir"; then
23441                         haveit=yes
23442                         break
23443                       fi
23444                     done
23445                     if test -z "$haveit"; then
23446                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23447                     fi
23448                     if test "$hardcode_minus_L" != no; then
23449                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23450                     else
23451                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23452                     fi
23453                   fi
23454                 fi
23455               fi
23456             else
23457               if test "X$found_a" != "X"; then
23458                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23459               else
23460                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23461               fi
23462             fi
23463                         additional_includedir=
23464             case "$found_dir" in
23465               */lib | */lib/)
23466                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23467                 additional_includedir="$basedir/include"
23468                 ;;
23469             esac
23470             if test "X$additional_includedir" != "X"; then
23471                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23472                 haveit=
23473                 if test "X$additional_includedir" = "X/usr/local/include"; then
23474                   if test -n "$GCC"; then
23475                     case $host_os in
23476                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23477                     esac
23478                   fi
23479                 fi
23480                 if test -z "$haveit"; then
23481                   for x in $CPPFLAGS $INCINTL; do
23482
23483   acl_save_prefix="$prefix"
23484   prefix="$acl_final_prefix"
23485   acl_save_exec_prefix="$exec_prefix"
23486   exec_prefix="$acl_final_exec_prefix"
23487   eval x=\"$x\"
23488   exec_prefix="$acl_save_exec_prefix"
23489   prefix="$acl_save_prefix"
23490
23491                     if test "X$x" = "X-I$additional_includedir"; then
23492                       haveit=yes
23493                       break
23494                     fi
23495                   done
23496                   if test -z "$haveit"; then
23497                     if test -d "$additional_includedir"; then
23498                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23499                     fi
23500                   fi
23501                 fi
23502               fi
23503             fi
23504                         if test -n "$found_la"; then
23505                                                         save_libdir="$libdir"
23506               case "$found_la" in
23507                 */* | *\\*) . "$found_la" ;;
23508                 *) . "./$found_la" ;;
23509               esac
23510               libdir="$save_libdir"
23511                             for dep in $dependency_libs; do
23512                 case "$dep" in
23513                   -L*)
23514                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23515                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23516                       haveit=
23517                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23518                         if test -n "$GCC"; then
23519                           case $host_os in
23520                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23521                           esac
23522                         fi
23523                       fi
23524                       if test -z "$haveit"; then
23525                         haveit=
23526                         for x in $LDFLAGS $LIBINTL; do
23527
23528   acl_save_prefix="$prefix"
23529   prefix="$acl_final_prefix"
23530   acl_save_exec_prefix="$exec_prefix"
23531   exec_prefix="$acl_final_exec_prefix"
23532   eval x=\"$x\"
23533   exec_prefix="$acl_save_exec_prefix"
23534   prefix="$acl_save_prefix"
23535
23536                           if test "X$x" = "X-L$additional_libdir"; then
23537                             haveit=yes
23538                             break
23539                           fi
23540                         done
23541                         if test -z "$haveit"; then
23542                           if test -d "$additional_libdir"; then
23543                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23544                           fi
23545                         fi
23546                         haveit=
23547                         for x in $LDFLAGS $LTLIBINTL; do
23548
23549   acl_save_prefix="$prefix"
23550   prefix="$acl_final_prefix"
23551   acl_save_exec_prefix="$exec_prefix"
23552   exec_prefix="$acl_final_exec_prefix"
23553   eval x=\"$x\"
23554   exec_prefix="$acl_save_exec_prefix"
23555   prefix="$acl_save_prefix"
23556
23557                           if test "X$x" = "X-L$additional_libdir"; then
23558                             haveit=yes
23559                             break
23560                           fi
23561                         done
23562                         if test -z "$haveit"; then
23563                           if test -d "$additional_libdir"; then
23564                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23565                           fi
23566                         fi
23567                       fi
23568                     fi
23569                     ;;
23570                   -R*)
23571                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23572                     if test "$enable_rpath" != no; then
23573                                                                   haveit=
23574                       for x in $rpathdirs; do
23575                         if test "X$x" = "X$dir"; then
23576                           haveit=yes
23577                           break
23578                         fi
23579                       done
23580                       if test -z "$haveit"; then
23581                         rpathdirs="$rpathdirs $dir"
23582                       fi
23583                                                                   haveit=
23584                       for x in $ltrpathdirs; do
23585                         if test "X$x" = "X$dir"; then
23586                           haveit=yes
23587                           break
23588                         fi
23589                       done
23590                       if test -z "$haveit"; then
23591                         ltrpathdirs="$ltrpathdirs $dir"
23592                       fi
23593                     fi
23594                     ;;
23595                   -l*)
23596                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23597                     ;;
23598                   *.la)
23599                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23600                     ;;
23601                   *)
23602                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23603                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23604                     ;;
23605                 esac
23606               done
23607             fi
23608           else
23609                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23610             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23611           fi
23612         fi
23613       fi
23614     done
23615   done
23616   if test "X$rpathdirs" != "X"; then
23617     if test -n "$hardcode_libdir_separator"; then
23618                         alldirs=
23619       for found_dir in $rpathdirs; do
23620         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23621       done
23622             acl_save_libdir="$libdir"
23623       libdir="$alldirs"
23624       eval flag=\"$hardcode_libdir_flag_spec\"
23625       libdir="$acl_save_libdir"
23626       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23627     else
23628             for found_dir in $rpathdirs; do
23629         acl_save_libdir="$libdir"
23630         libdir="$found_dir"
23631         eval flag=\"$hardcode_libdir_flag_spec\"
23632         libdir="$acl_save_libdir"
23633         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23634       done
23635     fi
23636   fi
23637   if test "X$ltrpathdirs" != "X"; then
23638             for found_dir in $ltrpathdirs; do
23639       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23640     done
23641   fi
23642
23643           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23644 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23645 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23646   echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648   gt_save_CPPFLAGS="$CPPFLAGS"
23649             CPPFLAGS="$CPPFLAGS $INCINTL"
23650             gt_save_LIBS="$LIBS"
23651             LIBS="$LIBS $LIBINTL"
23652                         cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658 #include <libintl.h>
23659 extern int _nl_msg_cat_cntr;
23660 extern
23661 #ifdef __cplusplus
23662 "C"
23663 #endif
23664 const char *_nl_expand_alias (const char *);
23665 int
23666 main ()
23667 {
23668 bindtextdomain ("", "");
23669 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (ac_try="$ac_link"
23676 case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_link") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } && {
23688          test -z "$ac_c_werror_flag" ||
23689          test ! -s conftest.err
23690        } && test -s conftest$ac_exeext &&
23691        $as_test_x conftest$ac_exeext; then
23692   gt_cv_func_gnugettext1_libintl=yes
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697         gt_cv_func_gnugettext1_libintl=no
23698 fi
23699
23700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23701       conftest$ac_exeext conftest.$ac_ext
23702                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23703               LIBS="$LIBS $LIBICONV"
23704               cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 #include <libintl.h>
23711 extern int _nl_msg_cat_cntr;
23712 extern
23713 #ifdef __cplusplus
23714 "C"
23715 #endif
23716 const char *_nl_expand_alias (const char *);
23717 int
23718 main ()
23719 {
23720 bindtextdomain ("", "");
23721 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733   (eval "$ac_link") 2>conftest.er1
23734   ac_status=$?
23735   grep -v '^ *+' conftest.er1 >conftest.err
23736   rm -f conftest.er1
23737   cat conftest.err >&5
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); } && {
23740          test -z "$ac_c_werror_flag" ||
23741          test ! -s conftest.err
23742        } && test -s conftest$ac_exeext &&
23743        $as_test_x conftest$ac_exeext; then
23744   LIBINTL="$LIBINTL $LIBICONV"
23745                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23746                 gt_cv_func_gnugettext1_libintl=yes
23747
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752
23753 fi
23754
23755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23756       conftest$ac_exeext conftest.$ac_ext
23757             fi
23758             CPPFLAGS="$gt_save_CPPFLAGS"
23759             LIBS="$gt_save_LIBS"
23760 fi
23761 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23762 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23763         fi
23764
23765                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23766            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23767                 && test "$PACKAGE" != gettext-runtime \
23768                 && test "$PACKAGE" != gettext-tools; }; then
23769           gt_use_preinstalled_gnugettext=yes
23770         else
23771                     LIBINTL=
23772           LTLIBINTL=
23773           INCINTL=
23774         fi
23775
23776
23777         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23778                               nls_cv_use_gnu_gettext=yes
23779         fi
23780       fi
23781
23782       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23783                 BUILD_INCLUDED_LIBINTL=yes
23784         USE_INCLUDED_LIBINTL=yes
23785         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23786         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23787         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23788       fi
23789
23790       CATOBJEXT=
23791       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23792          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23793                 CATOBJEXT=.gmo
23794       fi
23795
23796
23797     if test -n "$INTL_MACOSX_LIBS"; then
23798       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23799          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23800                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23801         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23802       fi
23803     fi
23804
23805     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23806        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23807
23808 cat >>confdefs.h <<\_ACEOF
23809 #define ENABLE_NLS 1
23810 _ACEOF
23811
23812     else
23813       USE_NLS=no
23814     fi
23815   fi
23816
23817   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23818 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23819   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23820 echo "${ECHO_T}$USE_NLS" >&6; }
23821   if test "$USE_NLS" = "yes"; then
23822     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23823 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23824     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23825       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23826         gt_source="external libintl"
23827       else
23828         gt_source="libc"
23829       fi
23830     else
23831       gt_source="included intl directory"
23832     fi
23833     { echo "$as_me:$LINENO: result: $gt_source" >&5
23834 echo "${ECHO_T}$gt_source" >&6; }
23835   fi
23836
23837   if test "$USE_NLS" = "yes"; then
23838
23839     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23840       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23841         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23842 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23843         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23844 echo "${ECHO_T}$LIBINTL" >&6; }
23845
23846   for element in $INCINTL; do
23847     haveit=
23848     for x in $CPPFLAGS; do
23849
23850   acl_save_prefix="$prefix"
23851   prefix="$acl_final_prefix"
23852   acl_save_exec_prefix="$exec_prefix"
23853   exec_prefix="$acl_final_exec_prefix"
23854   eval x=\"$x\"
23855   exec_prefix="$acl_save_exec_prefix"
23856   prefix="$acl_save_prefix"
23857
23858       if test "X$x" = "X$element"; then
23859         haveit=yes
23860         break
23861       fi
23862     done
23863     if test -z "$haveit"; then
23864       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23865     fi
23866   done
23867
23868       fi
23869
23870
23871 cat >>confdefs.h <<\_ACEOF
23872 #define HAVE_GETTEXT 1
23873 _ACEOF
23874
23875
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_DCGETTEXT 1
23878 _ACEOF
23879
23880     fi
23881
23882         POSUB=po
23883   fi
23884
23885
23886             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23887       BUILD_INCLUDED_LIBINTL=yes
23888     fi
23889
23890
23891
23892
23893
23894         nls_cv_header_intl=
23895     nls_cv_header_libgt=
23896
23897         DATADIRNAME=share
23898
23899
23900         INSTOBJEXT=.mo
23901
23902
23903         GENCAT=gencat
23904
23905
23906         INTLOBJS=
23907     if test "$USE_INCLUDED_LIBINTL" = yes; then
23908       INTLOBJS="\$(GETTOBJS)"
23909     fi
23910
23911
23912         INTL_LIBTOOL_SUFFIX_PREFIX=
23913
23914
23915
23916     INTLLIBS="$LIBINTL"
23917
23918
23919
23920
23921
23922
23923 fi
23924
23925 support_mysql=no
23926 support_sqlite=no
23927 support_sqlite3=no
23928 support_postgresql=no
23929 support_dbi=no
23930 support_smartalloc=yes
23931 support_readline=yes
23932 support_conio=yes
23933 support_gnome=no
23934 support_bat=no
23935 support_wx_console=no
23936 support_tls=no
23937 support_crypto=no
23938 gnome_version=
23939 wx_version=
23940 support_static_tools=no
23941 support_static_fd=no
23942 support_static_sd=no
23943 support_static_dir=no
23944 support_static_cons=no
23945 support_python=no
23946 build_client_only=no
23947 build_dird=yes
23948 build_stored=yes
23949 cats=
23950 db_type=Internal
23951 DB_TYPE=bdb
23952
23953
23954 # Check whether --enable-gnome was given.
23955 if test "${enable_gnome+set}" = set; then
23956   enableval=$enable_gnome;
23957        if test x$enableval = xyes; then
23958           support_gnome=yes
23959        fi
23960
23961
23962 fi
23963
23964
23965 GNOME_DIR=
23966 if test x$support_gnome = xyes; then
23967    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23968    pkg=$?
23969    if test $pkg = 0; then
23970       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23971       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23972       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23973       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23974
23975
23976
23977
23978       GNOME_DIR=src/gnome2-console
23979       gnome_version="Version 2.x"
23980    else
23981       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23982 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23983    { (exit 1); exit 1; }; }
23984    fi
23985 fi
23986
23987
23988 # Check whether --enable-bat was given.
23989 if test "${enable_bat+set}" = set; then
23990   enableval=$enable_bat;
23991        if test x$enableval = xyes; then
23992
23993 cat >>confdefs.h <<\_ACEOF
23994 #define HAVE_BAT 1
23995 _ACEOF
23996
23997           support_bat=yes
23998        fi
23999
24000
24001 fi
24002
24003
24004 BAT_DIR=
24005 if test x$support_bat = xyes; then
24006    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24007    pkg=$?
24008    if test $pkg = 0; then
24009       BAT_DIR=src/qt-console
24010    else
24011       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24012 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24013    { (exit 1); exit 1; }; }
24014    fi
24015 fi
24016
24017 got_qwt=no
24018 QWT_INC=
24019 QWT_LDFLAGS=
24020 QWT_LIB=
24021 QWT=
24022 no_qwt=no
24023 if test x$support_bat = xyes; then
24024    { echo "$as_me:$LINENO: checking for qwt support" >&5
24025 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24026
24027 # Check whether --with-qwt was given.
24028 if test "${with_qwt+set}" = set; then
24029   withval=$with_qwt;
24030           case "$with_qwt" in
24031           no)
24032              no_qwt=yes
24033              ;;
24034           yes|*)
24035              if test -f ${with_qwt}/include/qwt.h; then
24036                 QWT_INC="${with_qwt}/include"
24037                 QWT_LDFLAGS="-L${with_qwt}/lib"
24038                 QWT_LIB="-lqwt"
24039                 QWT="qwt"
24040              fi
24041              ;;
24042           esac
24043
24044
24045 fi
24046
24047
24048             if test $no_qwt = no; then
24049       if test x$QWT_INC = x; then
24050          for root in /usr /usr/local; do
24051             for ver in qwt qwt5 qwt-qt4; do
24052                if test -f ${root}/include/${ver}/qwt.h; then
24053                   QWT_INC="${root}/include/${ver}"
24054                   if test -d ${root}/lib64/; then
24055                      QWT_LDFLAGS="-L${root}/lib64"
24056                   elif test -d ${root}/lib/64/; then
24057                      QWT_LDFLAGS="-L${root}/64"
24058                   else
24059                      QWT_LDFLAGS="-L${root}/lib"
24060                   fi
24061                   QWT_LIB="-lqwt"
24062                   QWT="qwt"
24063                   got_qwt=yes
24064                   break;
24065                fi
24066             done
24067          done
24068       fi
24069    fi
24070    if test x$QWT_INC = x; then
24071       { echo "$as_me:$LINENO: result: no" >&5
24072 echo "${ECHO_T}no" >&6; }
24073    else
24074
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE_QWT 1
24077 _ACEOF
24078
24079       { echo "$as_me:$LINENO: result: yes" >&5
24080 echo "${ECHO_T}yes" >&6; }
24081    fi
24082 fi
24083
24084
24085
24086
24087
24088
24089
24090 # Check whether --enable-bwx-console was given.
24091 if test "${enable_bwx_console+set}" = set; then
24092   enableval=$enable_bwx_console;
24093        if test x$enableval = xyes; then
24094           support_wx_console=yes
24095        fi
24096
24097
24098 fi
24099
24100
24101 WX_DIR=
24102 if test x$support_wx_console = xyes; then
24103    abc=`$WXCONFIG $WXFLAGS --cppflags`
24104    pkg=$?
24105    if test $pkg = 0; then
24106       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24107       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24108       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24109
24110
24111
24112       WX_DIR=src/wx-console
24113    else
24114       echo " "
24115       echo "wx-config program not found. bwx-console disabled."
24116       echo " "
24117       support_wx_console=no
24118    fi
24119 fi
24120
24121
24122 # Check whether --enable-tray-monitor was given.
24123 if test "${enable_tray_monitor+set}" = set; then
24124   enableval=$enable_tray_monitor;
24125        if test x$enableval = xyes; then
24126           support_tray_monitor=yes
24127        fi
24128
24129
24130 fi
24131
24132
24133 TRAY_MONITOR_DIR=
24134 if test x$support_tray_monitor = xyes; then
24135    abc=`$PKGCONFIG --exists gtk+-2.0`
24136    pkg=$?
24137    if test $pkg = 0; then
24138       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24139       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24140
24141
24142       TRAY_MONITOR_DIR=src/tray-monitor
24143       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24144       pkg=$?
24145       if test $pkg = 0; then
24146
24147 cat >>confdefs.h <<\_ACEOF
24148 #define HAVE_GTK_2_4 1
24149 _ACEOF
24150
24151       fi
24152    fi
24153 fi
24154
24155
24156 # Check whether --enable-smartalloc was given.
24157 if test "${enable_smartalloc+set}" = set; then
24158   enableval=$enable_smartalloc;
24159        if test x$enableval = xno; then
24160           support_smartalloc=no
24161        fi
24162
24163
24164 fi
24165
24166
24167 if test x$support_smartalloc = xyes; then
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define SMARTALLOC 1
24171 _ACEOF
24172
24173 fi
24174
24175 # Check whether --enable-static-tools was given.
24176 if test "${enable_static_tools+set}" = set; then
24177   enableval=$enable_static_tools;
24178        if test x$enableval = xyes; then
24179           support_static_tools=yes
24180        fi
24181
24182
24183 fi
24184
24185
24186 TTOOL_LDFLAGS=
24187 if test x$support_static_tools = xyes; then
24188    TTOOL_LDFLAGS="-static"
24189 fi
24190
24191
24192 # Check whether --enable-static-fd was given.
24193 if test "${enable_static_fd+set}" = set; then
24194   enableval=$enable_static_fd;
24195        if test x$enableval = xyes; then
24196           support_static_fd=yes
24197        fi
24198
24199
24200 fi
24201
24202
24203 STATIC_FD=
24204 if test x$support_static_fd = xyes; then
24205    STATIC_FD="static-bacula-fd"
24206 fi
24207
24208
24209 # Check whether --enable-static-sd was given.
24210 if test "${enable_static_sd+set}" = set; then
24211   enableval=$enable_static_sd;
24212        if test x$enableval = xyes; then
24213           support_static_sd=yes
24214        fi
24215
24216
24217 fi
24218
24219
24220 STATIC_SD=
24221 if test x$support_static_sd = xyes; then
24222    STATIC_SD="static-bacula-sd"
24223 fi
24224
24225
24226 # Check whether --enable-static-dir was given.
24227 if test "${enable_static_dir+set}" = set; then
24228   enableval=$enable_static_dir;
24229        if test x$enableval = xyes; then
24230           support_static_dir=yes
24231        fi
24232
24233
24234 fi
24235
24236
24237 STATIC_DIR=
24238 if test x$support_static_dir = xyes; then
24239    STATIC_DIR="static-bacula-dir"
24240 fi
24241
24242
24243 # Check whether --enable-static-cons was given.
24244 if test "${enable_static_cons+set}" = set; then
24245   enableval=$enable_static_cons;
24246        if test x$enableval = xyes; then
24247           support_static_cons=yes
24248        fi
24249
24250
24251 fi
24252
24253
24254 STATIC_CONS=
24255 STATIC_GNOME_CONS=
24256 STATIC_WX_CONS=
24257 if test x$support_static_cons = xyes; then
24258    STATIC_CONS="static-bconsole"
24259    STATIC_GNOME_CONS="static-bgnome-console"
24260    STATIC_WX_CONS="static-bwx-console"
24261 fi
24262
24263
24264
24265
24266 # Check whether --enable-client-only was given.
24267 if test "${enable_client_only+set}" = set; then
24268   enableval=$enable_client_only;
24269        if test x$enableval = xyes; then
24270           build_client_only=yes
24271           db_type=None
24272           DB_TYPE=none
24273        fi
24274
24275
24276 fi
24277
24278 if test x$build_client_only = xno; then
24279    ALL_DIRS="subdirs"
24280 else
24281    ALL_DIRS=""
24282 fi
24283
24284
24285 # Check whether --enable-build-dird was given.
24286 if test "${enable_build_dird+set}" = set; then
24287   enableval=$enable_build_dird;
24288        if test x$enableval = xno; then
24289           build_dird=no
24290        fi
24291
24292
24293 fi
24294
24295 if test x$build_dird = xyes; then
24296    DIRD_DIR="src/dird"
24297    DIR_TOOLS="DIRTOOLS"
24298 else
24299    DIRD_DIR=""
24300    DIR_TOOLS="NODIRTOOLS"
24301 fi
24302
24303
24304
24305 # Check whether --enable-build-stored was given.
24306 if test "${enable_build_stored+set}" = set; then
24307   enableval=$enable_build_stored;
24308       if test x$enableval = xno; then
24309          build_stored=no
24310       fi
24311
24312
24313 fi
24314
24315 if test x$build_stored = xyes; then
24316    STORED_DIR="src/stored"
24317 else
24318    STORED_DIR=""
24319 fi
24320
24321
24322 # Check whether --enable-conio was given.
24323 if test "${enable_conio+set}" = set; then
24324   enableval=$enable_conio;
24325        if test x$enableval = xno; then
24326           support_conio=no
24327        fi
24328
24329
24330 fi
24331
24332
24333
24334 support_ipv6=yes
24335 # Check whether --enable-ipv6 was given.
24336 if test "${enable_ipv6+set}" = set; then
24337   enableval=$enable_ipv6;
24338        if test x$enableval = xno; then
24339           support_ipv6=no
24340        fi
24341
24342
24343 fi
24344
24345
24346 if test x$support_ipv6 = xyes; then
24347     cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353  #include <sys/types.h>
24354 #include <sys/socket.h>
24355 #include <netinet/in.h>
24356 int
24357 main ()
24358 {
24359 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24360   ;
24361   return 0;
24362 }
24363 _ACEOF
24364 rm -f conftest.$ac_objext conftest$ac_exeext
24365 if { (ac_try="$ac_link"
24366 case "(($ac_try" in
24367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368   *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371   (eval "$ac_link") 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } && {
24378          test -z "$ac_c_werror_flag" ||
24379          test ! -s conftest.err
24380        } && test -s conftest$ac_exeext &&
24381        $as_test_x conftest$ac_exeext; then
24382   support_ipv6=yes
24383 else
24384   echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24386
24387         support_ipv6=no
24388 fi
24389
24390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24391       conftest$ac_exeext conftest.$ac_ext
24392 fi
24393
24394 if test x$support_ipv6 = xyes; then
24395
24396 cat >>confdefs.h <<\_ACEOF
24397 #define HAVE_IPV6 1
24398 _ACEOF
24399
24400 fi
24401
24402 got_conio="no"
24403 if test x$support_conio = xyes; then
24404    if test "${ac_cv_header_termcap_h+set}" = set; then
24405   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24406 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24407 if test "${ac_cv_header_termcap_h+set}" = set; then
24408   echo $ECHO_N "(cached) $ECHO_C" >&6
24409 fi
24410 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24411 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24412 else
24413   # Is the header compilable?
24414 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24415 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24416 cat >conftest.$ac_ext <<_ACEOF
24417 /* confdefs.h.  */
24418 _ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h.  */
24422 $ac_includes_default
24423 #include <termcap.h>
24424 _ACEOF
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429   *) ac_try_echo=$ac_try;;
24430 esac
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432   (eval "$ac_compile") 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } && {
24439          test -z "$ac_c_werror_flag" ||
24440          test ! -s conftest.err
24441        } && test -s conftest.$ac_objext; then
24442   ac_header_compiler=yes
24443 else
24444   echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447         ac_header_compiler=no
24448 fi
24449
24450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24452 echo "${ECHO_T}$ac_header_compiler" >&6; }
24453
24454 # Is the header present?
24455 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24456 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24457 cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h.  */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h.  */
24463 #include <termcap.h>
24464 _ACEOF
24465 if { (ac_try="$ac_cpp conftest.$ac_ext"
24466 case "(($ac_try" in
24467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468   *) ac_try_echo=$ac_try;;
24469 esac
24470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24472   ac_status=$?
24473   grep -v '^ *+' conftest.er1 >conftest.err
24474   rm -f conftest.er1
24475   cat conftest.err >&5
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); } >/dev/null && {
24478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24479          test ! -s conftest.err
24480        }; then
24481   ac_header_preproc=yes
24482 else
24483   echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24485
24486   ac_header_preproc=no
24487 fi
24488
24489 rm -f conftest.err conftest.$ac_ext
24490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24491 echo "${ECHO_T}$ac_header_preproc" >&6; }
24492
24493 # So?  What about this header?
24494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24495   yes:no: )
24496     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24497 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24498     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24499 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24500     ac_header_preproc=yes
24501     ;;
24502   no:yes:* )
24503     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24504 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24505     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24506 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24507     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24508 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24509     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24510 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24511     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24512 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24513     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24514 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24515
24516     ;;
24517 esac
24518 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24519 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24520 if test "${ac_cv_header_termcap_h+set}" = set; then
24521   echo $ECHO_N "(cached) $ECHO_C" >&6
24522 else
24523   ac_cv_header_termcap_h=$ac_header_preproc
24524 fi
24525 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24526 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24527
24528 fi
24529 if test $ac_cv_header_termcap_h = yes; then
24530    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24531 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24532 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   ac_check_lib_save_LIBS=$LIBS
24536 LIBS="-ltermcap  $LIBS"
24537 cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543
24544 /* Override any GCC internal prototype to avoid an error.
24545    Use char because int might match the return type of a GCC
24546    builtin and then its argument prototype would still apply.  */
24547 #ifdef __cplusplus
24548 extern "C"
24549 #endif
24550 char tgetent ();
24551 int
24552 main ()
24553 {
24554 return tgetent ();
24555   ;
24556   return 0;
24557 }
24558 _ACEOF
24559 rm -f conftest.$ac_objext conftest$ac_exeext
24560 if { (ac_try="$ac_link"
24561 case "(($ac_try" in
24562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563   *) ac_try_echo=$ac_try;;
24564 esac
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566   (eval "$ac_link") 2>conftest.er1
24567   ac_status=$?
24568   grep -v '^ *+' conftest.er1 >conftest.err
24569   rm -f conftest.er1
24570   cat conftest.err >&5
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } && {
24573          test -z "$ac_c_werror_flag" ||
24574          test ! -s conftest.err
24575        } && test -s conftest$ac_exeext &&
24576        $as_test_x conftest$ac_exeext; then
24577   ac_cv_lib_termcap_tgetent=yes
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582         ac_cv_lib_termcap_tgetent=no
24583 fi
24584
24585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24586       conftest$ac_exeext conftest.$ac_ext
24587 LIBS=$ac_check_lib_save_LIBS
24588 fi
24589 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24590 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24591 if test $ac_cv_lib_termcap_tgetent = yes; then
24592    CONS_LIBS="-ltermcap"
24593     CONS_OBJ="conio.o"
24594     CONS_SRC="conio.c"
24595     got_conio="yes"
24596     support_readline=no
24597
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_CONIO 1
24600 _ACEOF
24601
24602
24603 else
24604    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24605 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24606 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   ac_check_lib_save_LIBS=$LIBS
24610 LIBS="-lncurses  $LIBS"
24611 cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617
24618 /* Override any GCC internal prototype to avoid an error.
24619    Use char because int might match the return type of a GCC
24620    builtin and then its argument prototype would still apply.  */
24621 #ifdef __cplusplus
24622 extern "C"
24623 #endif
24624 char tgetent ();
24625 int
24626 main ()
24627 {
24628 return tgetent ();
24629   ;
24630   return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_link") 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } && {
24647          test -z "$ac_c_werror_flag" ||
24648          test ! -s conftest.err
24649        } && test -s conftest$ac_exeext &&
24650        $as_test_x conftest$ac_exeext; then
24651   ac_cv_lib_ncurses_tgetent=yes
24652 else
24653   echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24655
24656         ac_cv_lib_ncurses_tgetent=no
24657 fi
24658
24659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24660       conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24662 fi
24663 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24664 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24665 if test $ac_cv_lib_ncurses_tgetent = yes; then
24666    CONS_LIBS="-lncurses"
24667       CONS_OBJ="conio.o"
24668       CONS_SRC="conio.c"
24669       got_conio="yes"
24670       support_readline=no
24671
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_CONIO 1
24674 _ACEOF
24675
24676
24677 fi
24678
24679
24680 fi
24681
24682
24683 else
24684
24685
24686 for ac_header in curses.h
24687 do
24688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24690   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693   echo $ECHO_N "(cached) $ECHO_C" >&6
24694 fi
24695 ac_res=`eval echo '${'$as_ac_Header'}'`
24696                { echo "$as_me:$LINENO: result: $ac_res" >&5
24697 echo "${ECHO_T}$ac_res" >&6; }
24698 else
24699   # Is the header compilable?
24700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24702 cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708 $ac_includes_default
24709 #include <$ac_header>
24710 _ACEOF
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715   *) ac_try_echo=$ac_try;;
24716 esac
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718   (eval "$ac_compile") 2>conftest.er1
24719   ac_status=$?
24720   grep -v '^ *+' conftest.er1 >conftest.err
24721   rm -f conftest.er1
24722   cat conftest.err >&5
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); } && {
24725          test -z "$ac_c_werror_flag" ||
24726          test ! -s conftest.err
24727        } && test -s conftest.$ac_objext; then
24728   ac_header_compiler=yes
24729 else
24730   echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733         ac_header_compiler=no
24734 fi
24735
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24738 echo "${ECHO_T}$ac_header_compiler" >&6; }
24739
24740 # Is the header present?
24741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24743 cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h.  */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h.  */
24749 #include <$ac_header>
24750 _ACEOF
24751 if { (ac_try="$ac_cpp conftest.$ac_ext"
24752 case "(($ac_try" in
24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754   *) ac_try_echo=$ac_try;;
24755 esac
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24758   ac_status=$?
24759   grep -v '^ *+' conftest.er1 >conftest.err
24760   rm -f conftest.er1
24761   cat conftest.err >&5
24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763   (exit $ac_status); } >/dev/null && {
24764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24765          test ! -s conftest.err
24766        }; then
24767   ac_header_preproc=yes
24768 else
24769   echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24771
24772   ac_header_preproc=no
24773 fi
24774
24775 rm -f conftest.err conftest.$ac_ext
24776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24777 echo "${ECHO_T}$ac_header_preproc" >&6; }
24778
24779 # So?  What about this header?
24780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24781   yes:no: )
24782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24786     ac_header_preproc=yes
24787     ;;
24788   no:yes:* )
24789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24801
24802     ;;
24803 esac
24804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24807   echo $ECHO_N "(cached) $ECHO_C" >&6
24808 else
24809   eval "$as_ac_Header=\$ac_header_preproc"
24810 fi
24811 ac_res=`eval echo '${'$as_ac_Header'}'`
24812                { echo "$as_me:$LINENO: result: $ac_res" >&5
24813 echo "${ECHO_T}$ac_res" >&6; }
24814
24815 fi
24816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24817   cat >>confdefs.h <<_ACEOF
24818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24819 _ACEOF
24820
24821 fi
24822
24823 done
24824
24825     { echo "$as_me:$LINENO: checking for term.h" >&5
24826 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24827 if test "${ac_cv_header_term_h+set}" = set; then
24828   echo $ECHO_N "(cached) $ECHO_C" >&6
24829 else
24830   cat >conftest.$ac_ext <<_ACEOF
24831 /* confdefs.h.  */
24832 _ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h.  */
24836 #if HAVE_CURSES_H
24837 #include <curses.h>
24838 #endif
24839
24840
24841 #include <term.h>
24842 _ACEOF
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847   *) ac_try_echo=$ac_try;;
24848 esac
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850   (eval "$ac_compile") 2>conftest.er1
24851   ac_status=$?
24852   grep -v '^ *+' conftest.er1 >conftest.err
24853   rm -f conftest.er1
24854   cat conftest.err >&5
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); } && {
24857          test -z "$ac_c_werror_flag" ||
24858          test ! -s conftest.err
24859        } && test -s conftest.$ac_objext; then
24860   ac_cv_header_term_h=yes
24861 else
24862   echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865         ac_cv_header_term_h=no
24866 fi
24867
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 fi
24870 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24871 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24872 if test $ac_cv_header_term_h = yes; then
24873    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24874 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24875 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24876   echo $ECHO_N "(cached) $ECHO_C" >&6
24877 else
24878   ac_check_lib_save_LIBS=$LIBS
24879 LIBS="-lcurses  $LIBS"
24880 cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886
24887 /* Override any GCC internal prototype to avoid an error.
24888    Use char because int might match the return type of a GCC
24889    builtin and then its argument prototype would still apply.  */
24890 #ifdef __cplusplus
24891 extern "C"
24892 #endif
24893 char tgetent ();
24894 int
24895 main ()
24896 {
24897 return tgetent ();
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext conftest$ac_exeext
24903 if { (ac_try="$ac_link"
24904 case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_link") 2>conftest.er1
24910   ac_status=$?
24911   grep -v '^ *+' conftest.er1 >conftest.err
24912   rm -f conftest.er1
24913   cat conftest.err >&5
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); } && {
24916          test -z "$ac_c_werror_flag" ||
24917          test ! -s conftest.err
24918        } && test -s conftest$ac_exeext &&
24919        $as_test_x conftest$ac_exeext; then
24920   ac_cv_lib_curses_tgetent=yes
24921 else
24922   echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925         ac_cv_lib_curses_tgetent=no
24926 fi
24927
24928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24929       conftest$ac_exeext conftest.$ac_ext
24930 LIBS=$ac_check_lib_save_LIBS
24931 fi
24932 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24934 if test $ac_cv_lib_curses_tgetent = yes; then
24935    CONS_LIBS="-lcurses"
24936          CONS_OBJ="conio.o"
24937          CONS_SRC="conio.c"
24938          got_conio="yes"
24939          support_readline=no
24940
24941 cat >>confdefs.h <<\_ACEOF
24942 #define HAVE_CONIO 1
24943 _ACEOF
24944
24945
24946 fi
24947
24948
24949 else
24950    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24951 fi
24952
24953
24954
24955 fi
24956
24957
24958 fi
24959
24960
24961 # Check whether --enable-readline was given.
24962 if test "${enable_readline+set}" = set; then
24963   enableval=$enable_readline;
24964        if test x$enableval = xno; then
24965           support_readline=no
24966        fi
24967
24968
24969 fi
24970
24971
24972 got_readline="no"
24973 READLINE_SRC=
24974 if test x$support_readline = xyes; then
24975
24976 # Check whether --with-readline was given.
24977 if test "${with_readline+set}" = set; then
24978   withval=$with_readline;
24979           case "$with_readline" in
24980           no)
24981              :
24982              ;;
24983           yes|*)
24984              if test -f ${with_readline}/readline.h; then
24985                 CONS_INC="-I${with_readline}"
24986                 CONS_LDFLAGS="-L$with_readline"
24987              elif test -f ${with_readline}/include/readline/readline.h; then
24988                 CONS_INC="-I${with_readline}/include/readline"
24989                 CONS_LDFLAGS="-L${with_readline}/lib"
24990                 with_readline="${with_readline}/include/readline"
24991              else
24992                 with_readline="/usr/include/readline"
24993              fi
24994
24995              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24997   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
24998 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
24999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25000   echo $ECHO_N "(cached) $ECHO_C" >&6
25001 fi
25002 ac_res=`eval echo '${'$as_ac_Header'}'`
25003                { echo "$as_me:$LINENO: result: $ac_res" >&5
25004 echo "${ECHO_T}$ac_res" >&6; }
25005 else
25006   # Is the header compilable?
25007 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25008 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25009 cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015 $ac_includes_default
25016 #include <${with_readline}/readline.h>
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_compile") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } && {
25032          test -z "$ac_c_werror_flag" ||
25033          test ! -s conftest.err
25034        } && test -s conftest.$ac_objext; then
25035   ac_header_compiler=yes
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         ac_header_compiler=no
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25045 echo "${ECHO_T}$ac_header_compiler" >&6; }
25046
25047 # Is the header present?
25048 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25049 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25050 cat >conftest.$ac_ext <<_ACEOF
25051 /* confdefs.h.  */
25052 _ACEOF
25053 cat confdefs.h >>conftest.$ac_ext
25054 cat >>conftest.$ac_ext <<_ACEOF
25055 /* end confdefs.h.  */
25056 #include <${with_readline}/readline.h>
25057 _ACEOF
25058 if { (ac_try="$ac_cpp conftest.$ac_ext"
25059 case "(($ac_try" in
25060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061   *) ac_try_echo=$ac_try;;
25062 esac
25063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25065   ac_status=$?
25066   grep -v '^ *+' conftest.er1 >conftest.err
25067   rm -f conftest.er1
25068   cat conftest.err >&5
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); } >/dev/null && {
25071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25072          test ! -s conftest.err
25073        }; then
25074   ac_header_preproc=yes
25075 else
25076   echo "$as_me: failed program was:" >&5
25077 sed 's/^/| /' conftest.$ac_ext >&5
25078
25079   ac_header_preproc=no
25080 fi
25081
25082 rm -f conftest.err conftest.$ac_ext
25083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25084 echo "${ECHO_T}$ac_header_preproc" >&6; }
25085
25086 # So?  What about this header?
25087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25088   yes:no: )
25089     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25090 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25091     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25092 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25093     ac_header_preproc=yes
25094     ;;
25095   no:yes:* )
25096     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25097 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25098     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25099 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25100     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25101 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25102     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25104     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25106     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25108
25109     ;;
25110 esac
25111 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25112 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   eval "$as_ac_Header=\$ac_header_preproc"
25117 fi
25118 ac_res=`eval echo '${'$as_ac_Header'}'`
25119                { echo "$as_me:$LINENO: result: $ac_res" >&5
25120 echo "${ECHO_T}$ac_res" >&6; }
25121
25122 fi
25123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25124
25125
25126 cat >>confdefs.h <<\_ACEOF
25127 #define HAVE_READLINE 1
25128 _ACEOF
25129
25130                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25131                     got_readline="yes"
25132
25133 else
25134
25135                     echo " "
25136                     echo "readline.h not found. readline turned off ..."
25137                     echo " "
25138
25139
25140 fi
25141
25142
25143              ;;
25144           esac
25145
25146 else
25147
25148                   if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25149   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25150 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25151 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25152   echo $ECHO_N "(cached) $ECHO_C" >&6
25153 fi
25154 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25155 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25156 else
25157   # Is the header compilable?
25158 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25159 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h.  */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h.  */
25166 $ac_includes_default
25167 #include </usr/include/readline/readline.h>
25168 _ACEOF
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176   (eval "$ac_compile") 2>conftest.er1
25177   ac_status=$?
25178   grep -v '^ *+' conftest.er1 >conftest.err
25179   rm -f conftest.er1
25180   cat conftest.err >&5
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); } && {
25183          test -z "$ac_c_werror_flag" ||
25184          test ! -s conftest.err
25185        } && test -s conftest.$ac_objext; then
25186   ac_header_compiler=yes
25187 else
25188   echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25190
25191         ac_header_compiler=no
25192 fi
25193
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196 echo "${ECHO_T}$ac_header_compiler" >&6; }
25197
25198 # Is the header present?
25199 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25200 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207 #include </usr/include/readline/readline.h>
25208 _ACEOF
25209 if { (ac_try="$ac_cpp conftest.$ac_ext"
25210 case "(($ac_try" in
25211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212   *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25216   ac_status=$?
25217   grep -v '^ *+' conftest.er1 >conftest.err
25218   rm -f conftest.er1
25219   cat conftest.err >&5
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); } >/dev/null && {
25222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25223          test ! -s conftest.err
25224        }; then
25225   ac_header_preproc=yes
25226 else
25227   echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230   ac_header_preproc=no
25231 fi
25232
25233 rm -f conftest.err conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25235 echo "${ECHO_T}$ac_header_preproc" >&6; }
25236
25237 # So?  What about this header?
25238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25239   yes:no: )
25240     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25241 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25243 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25244     ac_header_preproc=yes
25245     ;;
25246   no:yes:* )
25247     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25248 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25249     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25250 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25251     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25252 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25259
25260     ;;
25261 esac
25262 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25263 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25264 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25265   echo $ECHO_N "(cached) $ECHO_C" >&6
25266 else
25267   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25268 fi
25269 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25270 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25271
25272 fi
25273 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25274
25275
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_READLINE 1
25278 _ACEOF
25279
25280                 got_readline="yes"
25281                 CONS_INC="-I/usr/include/readline"
25282                 CONS_LIBS="-lreadline -ltermcap"
25283
25284 else
25285
25286                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25288   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25289 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25291   echo $ECHO_N "(cached) $ECHO_C" >&6
25292 fi
25293 ac_res=`eval echo '${'$as_ac_Header'}'`
25294                { echo "$as_me:$LINENO: result: $ac_res" >&5
25295 echo "${ECHO_T}$ac_res" >&6; }
25296 else
25297   # Is the header compilable?
25298 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25299 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h.  */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h.  */
25306 $ac_includes_default
25307 #include <${TOP_DIR}/depkgs/readline/readline.h>
25308 _ACEOF
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313   *) ac_try_echo=$ac_try;;
25314 esac
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316   (eval "$ac_compile") 2>conftest.er1
25317   ac_status=$?
25318   grep -v '^ *+' conftest.er1 >conftest.err
25319   rm -f conftest.er1
25320   cat conftest.err >&5
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); } && {
25323          test -z "$ac_c_werror_flag" ||
25324          test ! -s conftest.err
25325        } && test -s conftest.$ac_objext; then
25326   ac_header_compiler=yes
25327 else
25328   echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331         ac_header_compiler=no
25332 fi
25333
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25336 echo "${ECHO_T}$ac_header_compiler" >&6; }
25337
25338 # Is the header present?
25339 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25340 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25341 cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h.  */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h.  */
25347 #include <${TOP_DIR}/depkgs/readline/readline.h>
25348 _ACEOF
25349 if { (ac_try="$ac_cpp conftest.$ac_ext"
25350 case "(($ac_try" in
25351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352   *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25356   ac_status=$?
25357   grep -v '^ *+' conftest.er1 >conftest.err
25358   rm -f conftest.er1
25359   cat conftest.err >&5
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); } >/dev/null && {
25362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25363          test ! -s conftest.err
25364        }; then
25365   ac_header_preproc=yes
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370   ac_header_preproc=no
25371 fi
25372
25373 rm -f conftest.err conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25375 echo "${ECHO_T}$ac_header_preproc" >&6; }
25376
25377 # So?  What about this header?
25378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25379   yes:no: )
25380     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25381 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25382     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25383 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25384     ac_header_preproc=yes
25385     ;;
25386   no:yes:* )
25387     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25388 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25390 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25392 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25399
25400     ;;
25401 esac
25402 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25403 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25405   echo $ECHO_N "(cached) $ECHO_C" >&6
25406 else
25407   eval "$as_ac_Header=\$ac_header_preproc"
25408 fi
25409 ac_res=`eval echo '${'$as_ac_Header'}'`
25410                { echo "$as_me:$LINENO: result: $ac_res" >&5
25411 echo "${ECHO_T}$ac_res" >&6; }
25412
25413 fi
25414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25415
25416
25417 cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_READLINE 1
25419 _ACEOF
25420
25421                         got_readline="yes"
25422                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25423                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25424                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25425                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25426
25427 else
25428
25429                         echo " "
25430                         echo "readline.h not found. readline turned off ..."
25431                         echo " "
25432
25433
25434 fi
25435
25436
25437
25438
25439 fi
25440
25441
25442
25443
25444 fi
25445
25446 fi
25447
25448
25449
25450
25451
25452
25453
25454
25455 MAKE_SHELL=/bin/sh
25456
25457 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25458 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25459 if test "${ac_cv_header_stat_broken+set}" = set; then
25460   echo $ECHO_N "(cached) $ECHO_C" >&6
25461 else
25462   cat >conftest.$ac_ext <<_ACEOF
25463 /* confdefs.h.  */
25464 _ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h.  */
25468 #include <sys/types.h>
25469 #include <sys/stat.h>
25470
25471 #if defined S_ISBLK && defined S_IFDIR
25472 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25473 #endif
25474
25475 #if defined S_ISBLK && defined S_IFCHR
25476 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25477 #endif
25478
25479 #if defined S_ISLNK && defined S_IFREG
25480 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25481 #endif
25482
25483 #if defined S_ISSOCK && defined S_IFREG
25484 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25485 #endif
25486
25487 _ACEOF
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492   *) ac_try_echo=$ac_try;;
25493 esac
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495   (eval "$ac_compile") 2>conftest.er1
25496   ac_status=$?
25497   grep -v '^ *+' conftest.er1 >conftest.err
25498   rm -f conftest.er1
25499   cat conftest.err >&5
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); } && {
25502          test -z "$ac_c_werror_flag" ||
25503          test ! -s conftest.err
25504        } && test -s conftest.$ac_objext; then
25505   ac_cv_header_stat_broken=no
25506 else
25507   echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510         ac_cv_header_stat_broken=yes
25511 fi
25512
25513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25514 fi
25515 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25516 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25517 if test $ac_cv_header_stat_broken = yes; then
25518
25519 cat >>confdefs.h <<\_ACEOF
25520 #define STAT_MACROS_BROKEN 1
25521 _ACEOF
25522
25523 fi
25524
25525
25526
25527
25528
25529
25530 ac_header_dirent=no
25531 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25532   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25533 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25534 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25536   echo $ECHO_N "(cached) $ECHO_C" >&6
25537 else
25538   cat >conftest.$ac_ext <<_ACEOF
25539 /* confdefs.h.  */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h.  */
25544 #include <sys/types.h>
25545 #include <$ac_hdr>
25546
25547 int
25548 main ()
25549 {
25550 if ((DIR *) 0)
25551 return 0;
25552   ;
25553   return 0;
25554 }
25555 _ACEOF
25556 rm -f conftest.$ac_objext
25557 if { (ac_try="$ac_compile"
25558 case "(($ac_try" in
25559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25560   *) ac_try_echo=$ac_try;;
25561 esac
25562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25563   (eval "$ac_compile") 2>conftest.er1
25564   ac_status=$?
25565   grep -v '^ *+' conftest.er1 >conftest.err
25566   rm -f conftest.er1
25567   cat conftest.err >&5
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); } && {
25570          test -z "$ac_c_werror_flag" ||
25571          test ! -s conftest.err
25572        } && test -s conftest.$ac_objext; then
25573   eval "$as_ac_Header=yes"
25574 else
25575   echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25577
25578         eval "$as_ac_Header=no"
25579 fi
25580
25581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25582 fi
25583 ac_res=`eval echo '${'$as_ac_Header'}'`
25584                { echo "$as_me:$LINENO: result: $ac_res" >&5
25585 echo "${ECHO_T}$ac_res" >&6; }
25586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25587   cat >>confdefs.h <<_ACEOF
25588 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25589 _ACEOF
25590
25591 ac_header_dirent=$ac_hdr; break
25592 fi
25593
25594 done
25595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25596 if test $ac_header_dirent = dirent.h; then
25597   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25598 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25599 if test "${ac_cv_search_opendir+set}" = set; then
25600   echo $ECHO_N "(cached) $ECHO_C" >&6
25601 else
25602   ac_func_search_save_LIBS=$LIBS
25603 cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h.  */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h.  */
25609
25610 /* Override any GCC internal prototype to avoid an error.
25611    Use char because int might match the return type of a GCC
25612    builtin and then its argument prototype would still apply.  */
25613 #ifdef __cplusplus
25614 extern "C"
25615 #endif
25616 char opendir ();
25617 int
25618 main ()
25619 {
25620 return opendir ();
25621   ;
25622   return 0;
25623 }
25624 _ACEOF
25625 for ac_lib in '' dir; do
25626   if test -z "$ac_lib"; then
25627     ac_res="none required"
25628   else
25629     ac_res=-l$ac_lib
25630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25631   fi
25632   rm -f conftest.$ac_objext conftest$ac_exeext
25633 if { (ac_try="$ac_link"
25634 case "(($ac_try" in
25635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636   *) ac_try_echo=$ac_try;;
25637 esac
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639   (eval "$ac_link") 2>conftest.er1
25640   ac_status=$?
25641   grep -v '^ *+' conftest.er1 >conftest.err
25642   rm -f conftest.er1
25643   cat conftest.err >&5
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); } && {
25646          test -z "$ac_c_werror_flag" ||
25647          test ! -s conftest.err
25648        } && test -s conftest$ac_exeext &&
25649        $as_test_x conftest$ac_exeext; then
25650   ac_cv_search_opendir=$ac_res
25651 else
25652   echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655
25656 fi
25657
25658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25659       conftest$ac_exeext
25660   if test "${ac_cv_search_opendir+set}" = set; then
25661   break
25662 fi
25663 done
25664 if test "${ac_cv_search_opendir+set}" = set; then
25665   :
25666 else
25667   ac_cv_search_opendir=no
25668 fi
25669 rm conftest.$ac_ext
25670 LIBS=$ac_func_search_save_LIBS
25671 fi
25672 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25673 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25674 ac_res=$ac_cv_search_opendir
25675 if test "$ac_res" != no; then
25676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25677
25678 fi
25679
25680 else
25681   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25683 if test "${ac_cv_search_opendir+set}" = set; then
25684   echo $ECHO_N "(cached) $ECHO_C" >&6
25685 else
25686   ac_func_search_save_LIBS=$LIBS
25687 cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693
25694 /* Override any GCC internal prototype to avoid an error.
25695    Use char because int might match the return type of a GCC
25696    builtin and then its argument prototype would still apply.  */
25697 #ifdef __cplusplus
25698 extern "C"
25699 #endif
25700 char opendir ();
25701 int
25702 main ()
25703 {
25704 return opendir ();
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 for ac_lib in '' x; do
25710   if test -z "$ac_lib"; then
25711     ac_res="none required"
25712   else
25713     ac_res=-l$ac_lib
25714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25715   fi
25716   rm -f conftest.$ac_objext conftest$ac_exeext
25717 if { (ac_try="$ac_link"
25718 case "(($ac_try" in
25719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720   *) ac_try_echo=$ac_try;;
25721 esac
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723   (eval "$ac_link") 2>conftest.er1
25724   ac_status=$?
25725   grep -v '^ *+' conftest.er1 >conftest.err
25726   rm -f conftest.er1
25727   cat conftest.err >&5
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); } && {
25730          test -z "$ac_c_werror_flag" ||
25731          test ! -s conftest.err
25732        } && test -s conftest$ac_exeext &&
25733        $as_test_x conftest$ac_exeext; then
25734   ac_cv_search_opendir=$ac_res
25735 else
25736   echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739
25740 fi
25741
25742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25743       conftest$ac_exeext
25744   if test "${ac_cv_search_opendir+set}" = set; then
25745   break
25746 fi
25747 done
25748 if test "${ac_cv_search_opendir+set}" = set; then
25749   :
25750 else
25751   ac_cv_search_opendir=no
25752 fi
25753 rm conftest.$ac_ext
25754 LIBS=$ac_func_search_save_LIBS
25755 fi
25756 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25757 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25758 ac_res=$ac_cv_search_opendir
25759 if test "$ac_res" != no; then
25760   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25761
25762 fi
25763
25764 fi
25765
25766
25767
25768
25769
25770
25771
25772
25773 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25774 do
25775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25779   echo $ECHO_N "(cached) $ECHO_C" >&6
25780 else
25781   cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25789 #define $ac_func innocuous_$ac_func
25790
25791 /* System header to define __stub macros and hopefully few prototypes,
25792     which can conflict with char $ac_func (); below.
25793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25794     <limits.h> exists even on freestanding compilers.  */
25795
25796 #ifdef __STDC__
25797 # include <limits.h>
25798 #else
25799 # include <assert.h>
25800 #endif
25801
25802 #undef $ac_func
25803
25804 /* Override any GCC internal prototype to avoid an error.
25805    Use char because int might match the return type of a GCC
25806    builtin and then its argument prototype would still apply.  */
25807 #ifdef __cplusplus
25808 extern "C"
25809 #endif
25810 char $ac_func ();
25811 /* The GNU C library defines this for functions which it implements
25812     to always fail with ENOSYS.  Some functions are actually named
25813     something starting with __ and the normal name is an alias.  */
25814 #if defined __stub_$ac_func || defined __stub___$ac_func
25815 choke me
25816 #endif
25817
25818 int
25819 main ()
25820 {
25821 return $ac_func ();
25822   ;
25823   return 0;
25824 }
25825 _ACEOF
25826 rm -f conftest.$ac_objext conftest$ac_exeext
25827 if { (ac_try="$ac_link"
25828 case "(($ac_try" in
25829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830   *) ac_try_echo=$ac_try;;
25831 esac
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833   (eval "$ac_link") 2>conftest.er1
25834   ac_status=$?
25835   grep -v '^ *+' conftest.er1 >conftest.err
25836   rm -f conftest.er1
25837   cat conftest.err >&5
25838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839   (exit $ac_status); } && {
25840          test -z "$ac_c_werror_flag" ||
25841          test ! -s conftest.err
25842        } && test -s conftest$ac_exeext &&
25843        $as_test_x conftest$ac_exeext; then
25844   eval "$as_ac_var=yes"
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849         eval "$as_ac_var=no"
25850 fi
25851
25852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25853       conftest$ac_exeext conftest.$ac_ext
25854 fi
25855 ac_res=`eval echo '${'$as_ac_var'}'`
25856                { echo "$as_me:$LINENO: result: $ac_res" >&5
25857 echo "${ECHO_T}$ac_res" >&6; }
25858 if test `eval echo '${'$as_ac_var'}'` = yes; then
25859   cat >>confdefs.h <<_ACEOF
25860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25861 _ACEOF
25862
25863 fi
25864 done
25865
25866
25867
25868 for ac_func in nanosleep nl_langinfo
25869 do
25870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25874   echo $ECHO_N "(cached) $ECHO_C" >&6
25875 else
25876   cat >conftest.$ac_ext <<_ACEOF
25877 /* confdefs.h.  */
25878 _ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h.  */
25882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25884 #define $ac_func innocuous_$ac_func
25885
25886 /* System header to define __stub macros and hopefully few prototypes,
25887     which can conflict with char $ac_func (); below.
25888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25889     <limits.h> exists even on freestanding compilers.  */
25890
25891 #ifdef __STDC__
25892 # include <limits.h>
25893 #else
25894 # include <assert.h>
25895 #endif
25896
25897 #undef $ac_func
25898
25899 /* Override any GCC internal prototype to avoid an error.
25900    Use char because int might match the return type of a GCC
25901    builtin and then its argument prototype would still apply.  */
25902 #ifdef __cplusplus
25903 extern "C"
25904 #endif
25905 char $ac_func ();
25906 /* The GNU C library defines this for functions which it implements
25907     to always fail with ENOSYS.  Some functions are actually named
25908     something starting with __ and the normal name is an alias.  */
25909 #if defined __stub_$ac_func || defined __stub___$ac_func
25910 choke me
25911 #endif
25912
25913 int
25914 main ()
25915 {
25916 return $ac_func ();
25917   ;
25918   return 0;
25919 }
25920 _ACEOF
25921 rm -f conftest.$ac_objext conftest$ac_exeext
25922 if { (ac_try="$ac_link"
25923 case "(($ac_try" in
25924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925   *) ac_try_echo=$ac_try;;
25926 esac
25927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25928   (eval "$ac_link") 2>conftest.er1
25929   ac_status=$?
25930   grep -v '^ *+' conftest.er1 >conftest.err
25931   rm -f conftest.er1
25932   cat conftest.err >&5
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); } && {
25935          test -z "$ac_c_werror_flag" ||
25936          test ! -s conftest.err
25937        } && test -s conftest$ac_exeext &&
25938        $as_test_x conftest$ac_exeext; then
25939   eval "$as_ac_var=yes"
25940 else
25941   echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944         eval "$as_ac_var=no"
25945 fi
25946
25947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25948       conftest$ac_exeext conftest.$ac_ext
25949 fi
25950 ac_res=`eval echo '${'$as_ac_var'}'`
25951                { echo "$as_me:$LINENO: result: $ac_res" >&5
25952 echo "${ECHO_T}$ac_res" >&6; }
25953 if test `eval echo '${'$as_ac_var'}'` = yes; then
25954   cat >>confdefs.h <<_ACEOF
25955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25956 _ACEOF
25957
25958 fi
25959 done
25960
25961
25962 for ac_header in varargs.h
25963 do
25964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25966   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25969   echo $ECHO_N "(cached) $ECHO_C" >&6
25970 fi
25971 ac_res=`eval echo '${'$as_ac_Header'}'`
25972                { echo "$as_me:$LINENO: result: $ac_res" >&5
25973 echo "${ECHO_T}$ac_res" >&6; }
25974 else
25975   # Is the header compilable?
25976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25978 cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984 $ac_includes_default
25985 #include <$ac_header>
25986 _ACEOF
25987 rm -f conftest.$ac_objext
25988 if { (ac_try="$ac_compile"
25989 case "(($ac_try" in
25990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25991   *) ac_try_echo=$ac_try;;
25992 esac
25993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25994   (eval "$ac_compile") 2>conftest.er1
25995   ac_status=$?
25996   grep -v '^ *+' conftest.er1 >conftest.err
25997   rm -f conftest.er1
25998   cat conftest.err >&5
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); } && {
26001          test -z "$ac_c_werror_flag" ||
26002          test ! -s conftest.err
26003        } && test -s conftest.$ac_objext; then
26004   ac_header_compiler=yes
26005 else
26006   echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009         ac_header_compiler=no
26010 fi
26011
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26014 echo "${ECHO_T}$ac_header_compiler" >&6; }
26015
26016 # Is the header present?
26017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26019 cat >conftest.$ac_ext <<_ACEOF
26020 /* confdefs.h.  */
26021 _ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h.  */
26025 #include <$ac_header>
26026 _ACEOF
26027 if { (ac_try="$ac_cpp conftest.$ac_ext"
26028 case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26034   ac_status=$?
26035   grep -v '^ *+' conftest.er1 >conftest.err
26036   rm -f conftest.er1
26037   cat conftest.err >&5
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); } >/dev/null && {
26040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26041          test ! -s conftest.err
26042        }; then
26043   ac_header_preproc=yes
26044 else
26045   echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26047
26048   ac_header_preproc=no
26049 fi
26050
26051 rm -f conftest.err conftest.$ac_ext
26052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26053 echo "${ECHO_T}$ac_header_preproc" >&6; }
26054
26055 # So?  What about this header?
26056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26057   yes:no: )
26058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26062     ac_header_preproc=yes
26063     ;;
26064   no:yes:* )
26065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26077
26078     ;;
26079 esac
26080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26083   echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085   eval "$as_ac_Header=\$ac_header_preproc"
26086 fi
26087 ac_res=`eval echo '${'$as_ac_Header'}'`
26088                { echo "$as_me:$LINENO: result: $ac_res" >&5
26089 echo "${ECHO_T}$ac_res" >&6; }
26090
26091 fi
26092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26093   cat >>confdefs.h <<_ACEOF
26094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26095 _ACEOF
26096
26097 fi
26098
26099 done
26100
26101
26102
26103 { echo "$as_me:$LINENO: checking for Python support" >&5
26104 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26105
26106 # Check whether --with-python was given.
26107 if test "${with_python+set}" = set; then
26108   withval=$with_python;
26109        PYTHON_INCDIR=
26110        PYTHON_LIBS=
26111        if test "$withval" != "no"; then
26112           if test "$withval" = "yes"; then
26113              for python_root in /usr /usr/local /usr/sfw; do
26114                 for ver in python2.2 python2.3 python2.4 python2.5; do
26115                    if test -f $python_root/include/${ver}/Python.h; then
26116                       PYTHON_INCDIR=-I$python_root/include/${ver}
26117                       if test -d $python_root/lib64/${ver}/config; then
26118                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26119                       else
26120                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26121                       fi
26122                       break
26123                    fi
26124                 done
26125              done
26126
26127              if test x$PYTHON_INCDIR = x; then
26128                 if test -f $prefix/include/Python.h; then
26129                    PYTHON_INCDIR=-I$prefix/include
26130                    if test -d $prefix/lib64/config; then
26131                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26132                    else
26133                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26134                    fi
26135                 else
26136                    { echo "$as_me:$LINENO: result: no" >&5
26137 echo "${ECHO_T}no" >&6; }
26138                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26139 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26140    { (exit 1); exit 1; }; }
26141                 fi
26142              fi
26143           else
26144              if test -f $withval/Python.h; then
26145                 PYTHON_INCDIR=-I$withval
26146                 PYTHON_LIBS="-L$withval/config -lpython"
26147              elif test -f $withval/include/Python.h; then
26148                 PYTHON_INCDIR=-I$withval/include
26149                 if test -d $withval/lib64/config; then
26150                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26151                 else
26152                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26153                 fi
26154              elif test -f $withval/include/python/Python.h; then
26155                 PYTHON_INCDIR=-I$withval/include/python
26156                 if test -d $withval/lib64/python/config; then
26157                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26158                 else
26159                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26160                 fi
26161              else
26162                 { echo "$as_me:$LINENO: result: no" >&5
26163 echo "${ECHO_T}no" >&6; }
26164                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26165 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26166    { (exit 1); exit 1; }; }
26167              fi
26168           fi
26169
26170           cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_PYTHON 1
26172 _ACEOF
26173
26174           { echo "$as_me:$LINENO: result: yes" >&5
26175 echo "${ECHO_T}yes" >&6; }
26176           support_python=yes
26177           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26178 echo "$as_me: checking for more Python libs" >&6;}
26179           saved_LIBS="$LIBS"; LIBS=
26180           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26181 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26182 if test "${ac_cv_search_shm_open+set}" = set; then
26183   echo $ECHO_N "(cached) $ECHO_C" >&6
26184 else
26185   ac_func_search_save_LIBS=$LIBS
26186 cat >conftest.$ac_ext <<_ACEOF
26187 /* confdefs.h.  */
26188 _ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h.  */
26192
26193 /* Override any GCC internal prototype to avoid an error.
26194    Use char because int might match the return type of a GCC
26195    builtin and then its argument prototype would still apply.  */
26196 #ifdef __cplusplus
26197 extern "C"
26198 #endif
26199 char shm_open ();
26200 int
26201 main ()
26202 {
26203 return shm_open ();
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 for ac_lib in '' rt; do
26209   if test -z "$ac_lib"; then
26210     ac_res="none required"
26211   else
26212     ac_res=-l$ac_lib
26213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26214   fi
26215   rm -f conftest.$ac_objext conftest$ac_exeext
26216 if { (ac_try="$ac_link"
26217 case "(($ac_try" in
26218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219   *) ac_try_echo=$ac_try;;
26220 esac
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222   (eval "$ac_link") 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } && {
26229          test -z "$ac_c_werror_flag" ||
26230          test ! -s conftest.err
26231        } && test -s conftest$ac_exeext &&
26232        $as_test_x conftest$ac_exeext; then
26233   ac_cv_search_shm_open=$ac_res
26234 else
26235   echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26237
26238
26239 fi
26240
26241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26242       conftest$ac_exeext
26243   if test "${ac_cv_search_shm_open+set}" = set; then
26244   break
26245 fi
26246 done
26247 if test "${ac_cv_search_shm_open+set}" = set; then
26248   :
26249 else
26250   ac_cv_search_shm_open=no
26251 fi
26252 rm conftest.$ac_ext
26253 LIBS=$ac_func_search_save_LIBS
26254 fi
26255 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26256 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26257 ac_res=$ac_cv_search_shm_open
26258 if test "$ac_res" != no; then
26259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26260
26261 fi
26262
26263
26264 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26265 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26266 if test "${ac_cv_lib_util_openpty+set}" = set; then
26267   echo $ECHO_N "(cached) $ECHO_C" >&6
26268 else
26269   ac_check_lib_save_LIBS=$LIBS
26270 LIBS="-lutil  $LIBS"
26271 cat >conftest.$ac_ext <<_ACEOF
26272 /* confdefs.h.  */
26273 _ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h.  */
26277
26278 /* Override any GCC internal prototype to avoid an error.
26279    Use char because int might match the return type of a GCC
26280    builtin and then its argument prototype would still apply.  */
26281 #ifdef __cplusplus
26282 extern "C"
26283 #endif
26284 char openpty ();
26285 int
26286 main ()
26287 {
26288 return openpty ();
26289   ;
26290   return 0;
26291 }
26292 _ACEOF
26293 rm -f conftest.$ac_objext conftest$ac_exeext
26294 if { (ac_try="$ac_link"
26295 case "(($ac_try" in
26296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297   *) ac_try_echo=$ac_try;;
26298 esac
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300   (eval "$ac_link") 2>conftest.er1
26301   ac_status=$?
26302   grep -v '^ *+' conftest.er1 >conftest.err
26303   rm -f conftest.er1
26304   cat conftest.err >&5
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); } && {
26307          test -z "$ac_c_werror_flag" ||
26308          test ! -s conftest.err
26309        } && test -s conftest$ac_exeext &&
26310        $as_test_x conftest$ac_exeext; then
26311   ac_cv_lib_util_openpty=yes
26312 else
26313   echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26315
26316         ac_cv_lib_util_openpty=no
26317 fi
26318
26319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26320       conftest$ac_exeext conftest.$ac_ext
26321 LIBS=$ac_check_lib_save_LIBS
26322 fi
26323 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26324 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26325 if test $ac_cv_lib_util_openpty = yes; then
26326   cat >>confdefs.h <<_ACEOF
26327 #define HAVE_LIBUTIL 1
26328 _ACEOF
26329
26330   LIBS="-lutil $LIBS"
26331
26332 fi
26333
26334           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26335           LIBS="$saved_LIBS"
26336        else
26337           { echo "$as_me:$LINENO: result: no" >&5
26338 echo "${ECHO_T}no" >&6; }
26339        fi
26340
26341 else
26342
26343        { echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6; }
26345
26346
26347 fi
26348
26349
26350
26351
26352 { echo "$as_me:$LINENO: checking for socket" >&5
26353 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26354 if test "${ac_cv_func_socket+set}" = set; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 else
26357   cat >conftest.$ac_ext <<_ACEOF
26358 /* confdefs.h.  */
26359 _ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h.  */
26363 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26365 #define socket innocuous_socket
26366
26367 /* System header to define __stub macros and hopefully few prototypes,
26368     which can conflict with char socket (); below.
26369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26370     <limits.h> exists even on freestanding compilers.  */
26371
26372 #ifdef __STDC__
26373 # include <limits.h>
26374 #else
26375 # include <assert.h>
26376 #endif
26377
26378 #undef socket
26379
26380 /* Override any GCC internal prototype to avoid an error.
26381    Use char because int might match the return type of a GCC
26382    builtin and then its argument prototype would still apply.  */
26383 #ifdef __cplusplus
26384 extern "C"
26385 #endif
26386 char socket ();
26387 /* The GNU C library defines this for functions which it implements
26388     to always fail with ENOSYS.  Some functions are actually named
26389     something starting with __ and the normal name is an alias.  */
26390 #if defined __stub_socket || defined __stub___socket
26391 choke me
26392 #endif
26393
26394 int
26395 main ()
26396 {
26397 return socket ();
26398   ;
26399   return 0;
26400 }
26401 _ACEOF
26402 rm -f conftest.$ac_objext conftest$ac_exeext
26403 if { (ac_try="$ac_link"
26404 case "(($ac_try" in
26405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26406   *) ac_try_echo=$ac_try;;
26407 esac
26408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26409   (eval "$ac_link") 2>conftest.er1
26410   ac_status=$?
26411   grep -v '^ *+' conftest.er1 >conftest.err
26412   rm -f conftest.er1
26413   cat conftest.err >&5
26414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415   (exit $ac_status); } && {
26416          test -z "$ac_c_werror_flag" ||
26417          test ! -s conftest.err
26418        } && test -s conftest$ac_exeext &&
26419        $as_test_x conftest$ac_exeext; then
26420   ac_cv_func_socket=yes
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425         ac_cv_func_socket=no
26426 fi
26427
26428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26429       conftest$ac_exeext conftest.$ac_ext
26430 fi
26431 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26432 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26433 if test $ac_cv_func_socket = yes; then
26434   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26435 echo "${ECHO_T}using libc's socket" >&6; }
26436 else
26437
26438 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26439 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26440 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443   ac_check_lib_save_LIBS=$LIBS
26444 LIBS="-lxnet  $LIBS"
26445 cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451
26452 /* Override any GCC internal prototype to avoid an error.
26453    Use char because int might match the return type of a GCC
26454    builtin and then its argument prototype would still apply.  */
26455 #ifdef __cplusplus
26456 extern "C"
26457 #endif
26458 char socket ();
26459 int
26460 main ()
26461 {
26462 return socket ();
26463   ;
26464   return 0;
26465 }
26466 _ACEOF
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (ac_try="$ac_link"
26469 case "(($ac_try" in
26470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471   *) ac_try_echo=$ac_try;;
26472 esac
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474   (eval "$ac_link") 2>conftest.er1
26475   ac_status=$?
26476   grep -v '^ *+' conftest.er1 >conftest.err
26477   rm -f conftest.er1
26478   cat conftest.err >&5
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); } && {
26481          test -z "$ac_c_werror_flag" ||
26482          test ! -s conftest.err
26483        } && test -s conftest$ac_exeext &&
26484        $as_test_x conftest$ac_exeext; then
26485   ac_cv_lib_xnet_socket=yes
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490         ac_cv_lib_xnet_socket=no
26491 fi
26492
26493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26494       conftest$ac_exeext conftest.$ac_ext
26495 LIBS=$ac_check_lib_save_LIBS
26496 fi
26497 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26498 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26499 if test $ac_cv_lib_xnet_socket = yes; then
26500   cat >>confdefs.h <<_ACEOF
26501 #define HAVE_LIBXNET 1
26502 _ACEOF
26503
26504   LIBS="-lxnet $LIBS"
26505
26506 fi
26507
26508
26509 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26510 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26511 if test "${ac_cv_lib_socket_socket+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514   ac_check_lib_save_LIBS=$LIBS
26515 LIBS="-lsocket  $LIBS"
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h.  */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h.  */
26522
26523 /* Override any GCC internal prototype to avoid an error.
26524    Use char because int might match the return type of a GCC
26525    builtin and then its argument prototype would still apply.  */
26526 #ifdef __cplusplus
26527 extern "C"
26528 #endif
26529 char socket ();
26530 int
26531 main ()
26532 {
26533 return socket ();
26534   ;
26535   return 0;
26536 }
26537 _ACEOF
26538 rm -f conftest.$ac_objext conftest$ac_exeext
26539 if { (ac_try="$ac_link"
26540 case "(($ac_try" in
26541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542   *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545   (eval "$ac_link") 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && {
26552          test -z "$ac_c_werror_flag" ||
26553          test ! -s conftest.err
26554        } && test -s conftest$ac_exeext &&
26555        $as_test_x conftest$ac_exeext; then
26556   ac_cv_lib_socket_socket=yes
26557 else
26558   echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26560
26561         ac_cv_lib_socket_socket=no
26562 fi
26563
26564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26565       conftest$ac_exeext conftest.$ac_ext
26566 LIBS=$ac_check_lib_save_LIBS
26567 fi
26568 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26569 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26570 if test $ac_cv_lib_socket_socket = yes; then
26571   cat >>confdefs.h <<_ACEOF
26572 #define HAVE_LIBSOCKET 1
26573 _ACEOF
26574
26575   LIBS="-lsocket $LIBS"
26576
26577 fi
26578
26579
26580 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26581 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26582 if test "${ac_cv_lib_inet_socket+set}" = set; then
26583   echo $ECHO_N "(cached) $ECHO_C" >&6
26584 else
26585   ac_check_lib_save_LIBS=$LIBS
26586 LIBS="-linet  $LIBS"
26587 cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h.  */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h.  */
26593
26594 /* Override any GCC internal prototype to avoid an error.
26595    Use char because int might match the return type of a GCC
26596    builtin and then its argument prototype would still apply.  */
26597 #ifdef __cplusplus
26598 extern "C"
26599 #endif
26600 char socket ();
26601 int
26602 main ()
26603 {
26604 return socket ();
26605   ;
26606   return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613   *) ac_try_echo=$ac_try;;
26614 esac
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616   (eval "$ac_link") 2>conftest.er1
26617   ac_status=$?
26618   grep -v '^ *+' conftest.er1 >conftest.err
26619   rm -f conftest.er1
26620   cat conftest.err >&5
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); } && {
26623          test -z "$ac_c_werror_flag" ||
26624          test ! -s conftest.err
26625        } && test -s conftest$ac_exeext &&
26626        $as_test_x conftest$ac_exeext; then
26627   ac_cv_lib_inet_socket=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632         ac_cv_lib_inet_socket=no
26633 fi
26634
26635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26636       conftest$ac_exeext conftest.$ac_ext
26637 LIBS=$ac_check_lib_save_LIBS
26638 fi
26639 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26640 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26641 if test $ac_cv_lib_inet_socket = yes; then
26642   cat >>confdefs.h <<_ACEOF
26643 #define HAVE_LIBINET 1
26644 _ACEOF
26645
26646   LIBS="-linet $LIBS"
26647
26648 fi
26649
26650 fi
26651
26652
26653 TCPW_MSG="no"
26654 WRAPLIBS=""
26655
26656 # Check whether --with-tcp-wrappers was given.
26657 if test "${with_tcp_wrappers+set}" = set; then
26658   withval=$with_tcp_wrappers;
26659        if test "x$withval" != "xno" ; then
26660           saved_LIBS="$LIBS"
26661           LIBS="$saved_LIBS -lwrap"
26662           { echo "$as_me:$LINENO: checking for libwrap" >&5
26663 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26664           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26665 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26666 if test "${ac_cv_search_nanosleep+set}" = set; then
26667   echo $ECHO_N "(cached) $ECHO_C" >&6
26668 else
26669   ac_func_search_save_LIBS=$LIBS
26670 cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676
26677 /* Override any GCC internal prototype to avoid an error.
26678    Use char because int might match the return type of a GCC
26679    builtin and then its argument prototype would still apply.  */
26680 #ifdef __cplusplus
26681 extern "C"
26682 #endif
26683 char nanosleep ();
26684 int
26685 main ()
26686 {
26687 return nanosleep ();
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 for ac_lib in '' rt; do
26693   if test -z "$ac_lib"; then
26694     ac_res="none required"
26695   else
26696     ac_res=-l$ac_lib
26697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26698   fi
26699   rm -f conftest.$ac_objext conftest$ac_exeext
26700 if { (ac_try="$ac_link"
26701 case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706   (eval "$ac_link") 2>conftest.er1
26707   ac_status=$?
26708   grep -v '^ *+' conftest.er1 >conftest.err
26709   rm -f conftest.er1
26710   cat conftest.err >&5
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); } && {
26713          test -z "$ac_c_werror_flag" ||
26714          test ! -s conftest.err
26715        } && test -s conftest$ac_exeext &&
26716        $as_test_x conftest$ac_exeext; then
26717   ac_cv_search_nanosleep=$ac_res
26718 else
26719   echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26721
26722
26723 fi
26724
26725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26726       conftest$ac_exeext
26727   if test "${ac_cv_search_nanosleep+set}" = set; then
26728   break
26729 fi
26730 done
26731 if test "${ac_cv_search_nanosleep+set}" = set; then
26732   :
26733 else
26734   ac_cv_search_nanosleep=no
26735 fi
26736 rm conftest.$ac_ext
26737 LIBS=$ac_func_search_save_LIBS
26738 fi
26739 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26740 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26741 ac_res=$ac_cv_search_nanosleep
26742 if test "$ac_res" != no; then
26743   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26744
26745 fi
26746
26747           cat >conftest.$ac_ext <<_ACEOF
26748 /* confdefs.h.  */
26749 _ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h.  */
26753
26754                #include <sys/types.h>
26755                #include <tcpd.h>
26756                int deny_severity = 0;
26757                int allow_severity = 0;
26758                struct request_info *req;
26759
26760 int
26761 main ()
26762 {
26763
26764                 hosts_access(req);
26765
26766   ;
26767   return 0;
26768 }
26769 _ACEOF
26770 rm -f conftest.$ac_objext conftest$ac_exeext
26771 if { (ac_try="$ac_link"
26772 case "(($ac_try" in
26773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774   *) ac_try_echo=$ac_try;;
26775 esac
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777   (eval "$ac_link") 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } && {
26784          test -z "$ac_c_werror_flag" ||
26785          test ! -s conftest.err
26786        } && test -s conftest$ac_exeext &&
26787        $as_test_x conftest$ac_exeext; then
26788
26789                  { echo "$as_me:$LINENO: result: yes" >&5
26790 echo "${ECHO_T}yes" >&6; }
26791
26792 cat >>confdefs.h <<\_ACEOF
26793 #define HAVE_LIBWRAP 1
26794 _ACEOF
26795
26796                  TCPW_MSG="yes"
26797                  LIBS="$saved_LIBS"
26798                  WRAPLIBS="-lwrap"
26799
26800 else
26801   echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26803
26804
26805                  LIBS="$saved_LIBS -lwrap -lnsl"
26806                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26807                  cat >conftest.$ac_ext <<_ACEOF
26808 /* confdefs.h.  */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h.  */
26813
26814                        #include <sys/types.h>
26815                        #include <tcpd.h>
26816                        int deny_severity = 0;
26817                        int allow_severity = 0;
26818                        struct request_info *req;
26819
26820 int
26821 main ()
26822 {
26823
26824                        hosts_access(req);
26825
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 rm -f conftest.$ac_objext conftest$ac_exeext
26831 if { (ac_try="$ac_link"
26832 case "(($ac_try" in
26833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834   *) ac_try_echo=$ac_try;;
26835 esac
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837   (eval "$ac_link") 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } && {
26844          test -z "$ac_c_werror_flag" ||
26845          test ! -s conftest.err
26846        } && test -s conftest$ac_exeext &&
26847        $as_test_x conftest$ac_exeext; then
26848
26849                       { echo "$as_me:$LINENO: result: yes" >&5
26850 echo "${ECHO_T}yes" >&6; }
26851
26852 cat >>confdefs.h <<\_ACEOF
26853 #define HAVE_LIBWRAP 1
26854 _ACEOF
26855
26856                       TCPW_MSG="yes"
26857                       LIBS="$saved_LIBS"
26858                       WRAPLIBS="-lwrap"
26859
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864
26865                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26866 echo "$as_me: error: *** libwrap missing" >&2;}
26867    { (exit 1); exit 1; }; }
26868
26869
26870 fi
26871
26872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26873       conftest$ac_exeext conftest.$ac_ext
26874
26875
26876 fi
26877
26878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26879       conftest$ac_exeext conftest.$ac_ext
26880        fi
26881
26882
26883 fi
26884
26885
26886 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26887 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26888
26889 # Check whether --with-openssl was given.
26890 if test "${with_openssl+set}" = set; then
26891   withval=$with_openssl;
26892         with_openssl_directory=${withval}
26893
26894
26895 fi
26896
26897
26898 if test "x$with_openssl_directory" != "xno"; then
26899    OPENSSL_LIBS="-lssl -lcrypto"
26900    OPENSSL_INC=""
26901
26902    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26903       #
26904       # Make sure the $with_openssl_directory also makes sense
26905       #
26906       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26907          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26908          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26909       fi
26910    fi
26911
26912    saved_LIBS="${LIBS}"
26913    saved_CFLAGS="${CFLAGS}"
26914    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26915    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26916
26917    cat >conftest.$ac_ext <<_ACEOF
26918 /* confdefs.h.  */
26919 _ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h.  */
26923
26924           #include <openssl/ssl.h>
26925
26926 int
26927 main ()
26928 {
26929
26930            CRYPTO_set_id_callback(NULL);
26931
26932   ;
26933   return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (ac_try="$ac_link"
26938 case "(($ac_try" in
26939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940   *) ac_try_echo=$ac_try;;
26941 esac
26942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943   (eval "$ac_link") 2>conftest.er1
26944   ac_status=$?
26945   grep -v '^ *+' conftest.er1 >conftest.err
26946   rm -f conftest.er1
26947   cat conftest.err >&5
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); } && {
26950          test -z "$ac_c_werror_flag" ||
26951          test ! -s conftest.err
26952        } && test -s conftest$ac_exeext &&
26953        $as_test_x conftest$ac_exeext; then
26954
26955           support_tls="yes"
26956           support_crypto="yes"
26957
26958 else
26959   echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26961
26962
26963           support_tls="no"
26964
26965
26966 fi
26967
26968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26969       conftest$ac_exeext conftest.$ac_ext
26970
26971    cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977
26978           #include <openssl/evp.h>
26979
26980 int
26981 main ()
26982 {
26983
26984           EVP_sha512();
26985
26986   ;
26987   return 0;
26988 }
26989 _ACEOF
26990 rm -f conftest.$ac_objext conftest$ac_exeext
26991 if { (ac_try="$ac_link"
26992 case "(($ac_try" in
26993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994   *) ac_try_echo=$ac_try;;
26995 esac
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997   (eval "$ac_link") 2>conftest.er1
26998   ac_status=$?
26999   grep -v '^ *+' conftest.er1 >conftest.err
27000   rm -f conftest.er1
27001   cat conftest.err >&5
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); } && {
27004          test -z "$ac_c_werror_flag" ||
27005          test ! -s conftest.err
27006        } && test -s conftest$ac_exeext &&
27007        $as_test_x conftest$ac_exeext; then
27008
27009           ac_cv_openssl_sha2="yes"
27010
27011 else
27012   echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27014
27015
27016           ac_cv_openssl_sha2="no"
27017
27018
27019 fi
27020
27021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27022       conftest$ac_exeext conftest.$ac_ext
27023
27024                cat >conftest.$ac_ext <<_ACEOF
27025 /* confdefs.h.  */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h.  */
27030
27031           #include <openssl/evp.h>
27032
27033 int
27034 main ()
27035 {
27036
27037           EVP_aes_192_cbc();
27038
27039   ;
27040   return 0;
27041 }
27042 _ACEOF
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (ac_try="$ac_link"
27045 case "(($ac_try" in
27046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047   *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050   (eval "$ac_link") 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } && {
27057          test -z "$ac_c_werror_flag" ||
27058          test ! -s conftest.err
27059        } && test -s conftest$ac_exeext &&
27060        $as_test_x conftest$ac_exeext; then
27061
27062           ac_cv_openssl_export="no"
27063
27064 else
27065   echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27067
27068
27069           ac_cv_openssl_export="yes"
27070
27071
27072 fi
27073
27074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27075       conftest$ac_exeext conftest.$ac_ext
27076
27077    LIBS="${saved_LIBS}"
27078    CFLAGS="${saved_CFLAGS}"
27079
27080    if test "$support_tls" = "yes"; then
27081
27082 cat >>confdefs.h <<\_ACEOF
27083 #define HAVE_OPENSSL 1
27084 _ACEOF
27085
27086
27087 cat >>confdefs.h <<\_ACEOF
27088 #define HAVE_TLS 1
27089 _ACEOF
27090
27091
27092 cat >>confdefs.h <<\_ACEOF
27093 #define HAVE_CRYPTO 1
27094 _ACEOF
27095
27096    fi
27097
27098    if test "$ac_cv_openssl_sha2" = "yes"; then
27099
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_SHA2 1
27102 _ACEOF
27103
27104    fi
27105
27106    if test "$ac_cv_openssl_export" = "yes"; then
27107
27108 cat >>confdefs.h <<\_ACEOF
27109 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27110 _ACEOF
27111
27112    fi
27113 else
27114    support_tls="no"
27115    support_crypto="no"
27116    OPENSSL_LIBS=""
27117    OPENSSL_INC=""
27118 fi
27119
27120 { echo "$as_me:$LINENO: result: $support_tls" >&5
27121 echo "${ECHO_T}$support_tls" >&6; }
27122
27123
27124
27125 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27126 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27127 if test "${ac_cv_search_dlopen+set}" = set; then
27128   echo $ECHO_N "(cached) $ECHO_C" >&6
27129 else
27130   ac_func_search_save_LIBS=$LIBS
27131 cat >conftest.$ac_ext <<_ACEOF
27132 /* confdefs.h.  */
27133 _ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h.  */
27137
27138 /* Override any GCC internal prototype to avoid an error.
27139    Use char because int might match the return type of a GCC
27140    builtin and then its argument prototype would still apply.  */
27141 #ifdef __cplusplus
27142 extern "C"
27143 #endif
27144 char dlopen ();
27145 int
27146 main ()
27147 {
27148 return dlopen ();
27149   ;
27150   return 0;
27151 }
27152 _ACEOF
27153 for ac_lib in '' dl; do
27154   if test -z "$ac_lib"; then
27155     ac_res="none required"
27156   else
27157     ac_res=-l$ac_lib
27158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27159   fi
27160   rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164   *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167   (eval "$ac_link") 2>conftest.er1
27168   ac_status=$?
27169   grep -v '^ *+' conftest.er1 >conftest.err
27170   rm -f conftest.er1
27171   cat conftest.err >&5
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); } && {
27174          test -z "$ac_c_werror_flag" ||
27175          test ! -s conftest.err
27176        } && test -s conftest$ac_exeext &&
27177        $as_test_x conftest$ac_exeext; then
27178   ac_cv_search_dlopen=$ac_res
27179 else
27180   echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27182
27183
27184 fi
27185
27186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27187       conftest$ac_exeext
27188   if test "${ac_cv_search_dlopen+set}" = set; then
27189   break
27190 fi
27191 done
27192 if test "${ac_cv_search_dlopen+set}" = set; then
27193   :
27194 else
27195   ac_cv_search_dlopen=no
27196 fi
27197 rm conftest.$ac_ext
27198 LIBS=$ac_func_search_save_LIBS
27199 fi
27200 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27201 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27202 ac_res=$ac_cv_search_dlopen
27203 if test "$ac_res" != no; then
27204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27205
27206 fi
27207
27208
27209 working_dir=`eval echo ${prefix}/var/bacula/working`
27210
27211 # Check whether --with-working-dir was given.
27212 if test "${with_working_dir+set}" = set; then
27213   withval=$with_working_dir;
27214        if test "x$withval" != "xno" ; then
27215          working_dir=$withval
27216        fi
27217
27218
27219 fi
27220
27221
27222
27223
27224 archive_dir=/tmp
27225
27226 # Check whether --with-archivedir was given.
27227 if test "${with_archivedir+set}" = set; then
27228   withval=$with_archivedir;
27229        if test "x$withval" != "xno" ; then
27230           archivedir=$withval
27231        fi
27232
27233
27234 fi
27235
27236
27237
27238
27239 scriptdir=`eval echo ${sysconfdir}`
27240
27241 # Check whether --with-scriptdir was given.
27242 if test "${with_scriptdir+set}" = set; then
27243   withval=$with_scriptdir;
27244        if test "x$withval" != "xno" ; then
27245           scriptdir=$withval
27246        fi
27247
27248
27249 fi
27250
27251
27252
27253
27254 # ------------------------------------------
27255 # Where to place plugindir (script files)
27256 # ------------------------------------------
27257 plugindir=`eval echo ${sysconfdir}`
27258
27259 # Check whether --with-plugindir was given.
27260 if test "${with_plugindir+set}" = set; then
27261   withval=$with_plugindir;
27262        if test "x$withval" != "xno" ; then
27263           plugindir=$withval
27264        fi
27265
27266
27267 fi
27268
27269
27270
27271
27272 dump_email=root@localhost
27273
27274 # Check whether --with-dump-email was given.
27275 if test "${with_dump_email+set}" = set; then
27276   withval=$with_dump_email;
27277        if test "x$withval" != "xno" ; then
27278           dump_email=$withval
27279        fi
27280
27281
27282 fi
27283
27284
27285
27286
27287 job_email=root@localhost
27288
27289 # Check whether --with-job-email was given.
27290 if test "${with_job_email+set}" = set; then
27291   withval=$with_job_email;
27292        if test "x$withval" != "xno" ; then
27293           job_email=$withval
27294        fi
27295
27296
27297 fi
27298
27299
27300
27301
27302 smtp_host=localhost
27303
27304 # Check whether --with-smtp_host was given.
27305 if test "${with_smtp_host+set}" = set; then
27306   withval=$with_smtp_host;
27307        if test "x$withval" != "xno" ; then
27308           smtp_host=$withval
27309        fi
27310
27311
27312 fi
27313
27314
27315
27316
27317 piddir=/var/run
27318
27319 # Check whether --with-pid-dir was given.
27320 if test "${with_pid_dir+set}" = set; then
27321   withval=$with_pid_dir;
27322        if test "x$withval" != "xno" ; then
27323           piddir=$withval
27324        fi
27325
27326
27327 fi
27328
27329
27330 cat >>confdefs.h <<_ACEOF
27331 #define _PATH_BACULA_PIDDIR "$piddir"
27332 _ACEOF
27333
27334
27335
27336 subsysdir=/var/run/subsys
27337 if test -d /var/run/subsys; then
27338    subsysdir=/var/run/subsys
27339 elif test -d /var/lock/subsys; then
27340    subsysdir=/var/lock/subsys
27341 else
27342    subsysdir=/var/run/subsys
27343 fi
27344
27345 # Check whether --with-subsys-dir was given.
27346 if test "${with_subsys_dir+set}" = set; then
27347   withval=$with_subsys_dir;
27348        if test "x$withval" != "xno" ; then
27349           subsysdir=$withval
27350        fi
27351
27352
27353 fi
27354
27355
27356
27357
27358 baseport=9101
27359
27360 # Check whether --with-baseport was given.
27361 if test "${with_baseport+set}" = set; then
27362   withval=$with_baseport;
27363        if test "x$withval" != "xno" ; then
27364           baseport=$withval
27365        fi
27366
27367
27368 fi
27369
27370
27371
27372 dir_port=`expr $baseport`
27373 fd_port=`expr $baseport + 1`
27374 sd_port=`expr $fd_port + 1`
27375
27376
27377
27378
27379
27380 dir_password=
27381
27382 # Check whether --with-dir-password was given.
27383 if test "${with_dir_password+set}" = set; then
27384   withval=$with_dir_password;
27385        if test "x$withval" != "xno" ; then
27386           dir_password=$withval
27387        fi
27388
27389
27390 fi
27391
27392
27393 if test "x$dir_password" = "x" ; then
27394    if test "x$OPENSSL" = "xnone" ; then
27395       key=`autoconf/randpass 33`
27396    else
27397       key=`openssl rand -base64 33`
27398    fi
27399    dir_password=$key
27400 fi
27401
27402 fd_password=
27403
27404 # Check whether --with-fd-password was given.
27405 if test "${with_fd_password+set}" = set; then
27406   withval=$with_fd_password;
27407        if test "x$withval" != "xno" ; then
27408           fd_password=$withval
27409        fi
27410
27411
27412 fi
27413
27414
27415 if test "x$fd_password" = "x" ; then
27416    if test "x$OPENSSL" = "xnone" ; then
27417       key=`autoconf/randpass 37`
27418    else
27419       key=`openssl rand -base64 33`
27420    fi
27421    fd_password=$key
27422 fi
27423
27424 sd_password=
27425
27426 # Check whether --with-sd-password was given.
27427 if test "${with_sd_password+set}" = set; then
27428   withval=$with_sd_password;
27429        if test "x$withval" != "xno" ; then
27430           sd_password=$withval
27431        fi
27432
27433
27434 fi
27435
27436
27437 if test "x$sd_password" = "x" ; then
27438    if test "x$OPENSSL" = "xnone" ; then
27439       key=`autoconf/randpass 41`
27440    else
27441       key=`openssl rand -base64 33`
27442    fi
27443    sd_password=$key
27444 fi
27445
27446 mon_dir_password=
27447
27448 # Check whether --with-mon-dir-password was given.
27449 if test "${with_mon_dir_password+set}" = set; then
27450   withval=$with_mon_dir_password;
27451        if test "x$withval" != "xno" ; then
27452           mon_dir_password=$withval
27453        fi
27454
27455
27456 fi
27457
27458
27459 if test "x$mon_dir_password" = "x" ; then
27460    if test "x$OPENSSL" = "xnone" ; then
27461       key=`autoconf/randpass 33`
27462    else
27463       key=`openssl rand -base64 33`
27464    fi
27465    mon_dir_password=$key
27466 fi
27467
27468 mon_fd_password=
27469
27470 # Check whether --with-mon-fd-password was given.
27471 if test "${with_mon_fd_password+set}" = set; then
27472   withval=$with_mon_fd_password;
27473        if test "x$withval" != "xno" ; then
27474           mon_fd_password=$withval
27475        fi
27476
27477
27478 fi
27479
27480
27481 if test "x$mon_fd_password" = "x" ; then
27482    if test "x$OPENSSL" = "xnone" ; then
27483       key=`autoconf/randpass 37`
27484    else
27485       key=`openssl rand -base64 33`
27486    fi
27487    mon_fd_password=$key
27488 fi
27489
27490 mon_sd_password=
27491
27492 # Check whether --with-mon-sd-password was given.
27493 if test "${with_mon_sd_password+set}" = set; then
27494   withval=$with_mon_sd_password;
27495        if test "x$withval" != "xno" ; then
27496           mon_sd_password=$withval
27497        fi
27498
27499
27500 fi
27501
27502
27503 if test "x$mon_sd_password" = "x" ; then
27504    if test "x$OPENSSL" = "xnone" ; then
27505       key=`autoconf/randpass 41`
27506    else
27507       key=`openssl rand -base64 33`
27508    fi
27509    mon_sd_password=$key
27510 fi
27511
27512
27513
27514
27515
27516
27517
27518
27519 db_name=bacula
27520
27521 # Check whether --with-db_name was given.
27522 if test "${with_db_name+set}" = set; then
27523   withval=$with_db_name;
27524        if test "x$withval" != "x" ; then
27525           db_name=$withval
27526        fi
27527
27528
27529 fi
27530
27531
27532
27533 db_user=bacula
27534
27535 # Check whether --with-db_user was given.
27536 if test "${with_db_user+set}" = set; then
27537   withval=$with_db_user;
27538        if test "x$withval" != "x" ; then
27539           db_user=$withval
27540        fi
27541
27542
27543 fi
27544
27545
27546
27547 db_password=
27548
27549 # Check whether --with-db_password was given.
27550 if test "${with_db_password+set}" = set; then
27551   withval=$with_db_password;
27552        if test "x$withval" != "x" ; then
27553           db_password=$withval
27554        fi
27555
27556
27557 fi
27558
27559
27560
27561 db_port=" "
27562
27563 # Check whether --with-db_port was given.
27564 if test "${with_db_port+set}" = set; then
27565   withval=$with_db_port;
27566        if test "x$withval" != "x" ; then
27567           db_port=$withval
27568        fi
27569
27570
27571 fi
27572
27573
27574
27575 #
27576 # Handle users and groups for each daemon
27577 #
27578 dir_user=
27579
27580 # Check whether --with-dir_user was given.
27581 if test "${with_dir_user+set}" = set; then
27582   withval=$with_dir_user;
27583        if test "x$withval" != "x" ; then
27584            dir_user=$withval
27585        fi
27586
27587
27588 fi
27589
27590
27591 dir_group=
27592
27593 # Check whether --with-dir_group was given.
27594 if test "${with_dir_group+set}" = set; then
27595   withval=$with_dir_group;
27596        if test "x$withval" != "x" ; then
27597           dir_group=$withval
27598        fi
27599
27600
27601 fi
27602
27603
27604 sd_user=
27605
27606 # Check whether --with-sd_user was given.
27607 if test "${with_sd_user+set}" = set; then
27608   withval=$with_sd_user;
27609        if test "x$withval" != "x" ; then
27610           sd_user=$withval
27611        fi
27612
27613
27614 fi
27615
27616
27617 sd_group=
27618
27619 # Check whether --with-sd_group was given.
27620 if test "${with_sd_group+set}" = set; then
27621   withval=$with_sd_group;
27622        if test "x$withval" != "x" ; then
27623           sd_group=$withval
27624        fi
27625
27626
27627 fi
27628
27629
27630 fd_user=
27631
27632 # Check whether --with-fd_user was given.
27633 if test "${with_fd_user+set}" = set; then
27634   withval=$with_fd_user;
27635        if test "x$withval" != "x" ; then
27636           fd_user=$withval
27637        fi
27638
27639
27640 fi
27641
27642
27643 fd_group=
27644
27645 # Check whether --with-fd_group was given.
27646 if test "${with_fd_group+set}" = set; then
27647   withval=$with_fd_group;
27648        if test "x$withval" != "x" ; then
27649           fd_group=$withval
27650        fi
27651
27652
27653 fi
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663 SBINPERM=0754
27664
27665 # Check whether --with-sbin-perm was given.
27666 if test "${with_sbin_perm+set}" = set; then
27667   withval=$with_sbin_perm;
27668        if test "x$withval" != "x" ; then
27669           SBINPERM=$withval
27670        fi
27671
27672
27673 fi
27674
27675
27676
27677
27678 SQL_LIB=
27679
27680 db_found=no
27681 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27682 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27683
27684 # Check whether --with-postgresql was given.
27685 if test "${with_postgresql+set}" = set; then
27686   withval=$with_postgresql;
27687   if test "$withval" != "no"; then
27688       if test "$db_found" = "yes"; then
27689           { echo "$as_me:$LINENO: result: error" >&5
27690 echo "${ECHO_T}error" >&6; }
27691           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27692 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27693    { (exit 1); exit 1; }; };
27694       fi
27695       if test "$withval" = "yes"; then
27696           PG_CONFIG=`which pg_config`
27697           if test -n "$PG_CONFIG";then
27698               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27699               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27700               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27701           elif test -f /usr/local/include/libpq-fe.h; then
27702               POSTGRESQL_INCDIR=/usr/local/include
27703               if test -d /usr/local/lib64; then
27704                  POSTGRESQL_LIBDIR=/usr/local/lib64
27705               else
27706                  POSTGRESQL_LIBDIR=/usr/local/lib
27707               fi
27708               POSTGRESQL_BINDIR=/usr/local/bin
27709           elif test -f /usr/include/libpq-fe.h; then
27710               POSTGRESQL_INCDIR=/usr/include
27711               if test -d /usr/lib64; then
27712                  POSTGRESQL_LIBDIR=/usr/lib64
27713               else
27714                  POSTGRESQL_LIBDIR=/usr/lib
27715               fi
27716               POSTGRESQL_BINDIR=/usr/bin
27717           elif test -f /usr/include/pgsql/libpq-fe.h; then
27718               POSTGRESQL_INCDIR=/usr/include/pgsql
27719               if test -d /usr/lib64/pgsql; then
27720                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27721               else
27722                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27723               fi
27724               POSTGRESQL_BINDIR=/usr/bin
27725           elif test -f /usr/include/postgresql/libpq-fe.h; then
27726               POSTGRESQL_INCDIR=/usr/include/postgresql
27727               if test -d /usr/lib64/postgresql; then
27728                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27729               else
27730                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27731               fi
27732               POSTGRESQL_BINDIR=/usr/bin
27733           else
27734               { echo "$as_me:$LINENO: result: no" >&5
27735 echo "${ECHO_T}no" >&6; }
27736               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27737 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27738    { (exit 1); exit 1; }; }
27739           fi
27740       elif test -f $withval/include/libpq-fe.h; then
27741           POSTGRESQL_INCDIR=$withval/include
27742           POSTGRESQL_LIBDIR=$withval/lib
27743           POSTGRESQL_BINDIR=$withval/bin
27744       elif test -f $withval/include/postgresql/libpq-fe.h; then
27745           POSTGRESQL_INCDIR=$withval/include/postgresql
27746      if test -d $withval/lib64; then
27747          POSTGRESQL_LIBDIR=$withval/lib64
27748      else
27749          POSTGRESQL_LIBDIR=$withval/lib
27750      fi
27751           POSTGRESQL_BINDIR=$withval/bin
27752       else
27753           { echo "$as_me:$LINENO: result: no" >&5
27754 echo "${ECHO_T}no" >&6; }
27755           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27756 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27757    { (exit 1); exit 1; }; }
27758       fi
27759       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27760       { echo "$as_me:$LINENO: checking for crypt" >&5
27761 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27762 if test "${ac_cv_func_crypt+set}" = set; then
27763   echo $ECHO_N "(cached) $ECHO_C" >&6
27764 else
27765   cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27773 #define crypt innocuous_crypt
27774
27775 /* System header to define __stub macros and hopefully few prototypes,
27776     which can conflict with char crypt (); below.
27777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27778     <limits.h> exists even on freestanding compilers.  */
27779
27780 #ifdef __STDC__
27781 # include <limits.h>
27782 #else
27783 # include <assert.h>
27784 #endif
27785
27786 #undef crypt
27787
27788 /* Override any GCC internal prototype to avoid an error.
27789    Use char because int might match the return type of a GCC
27790    builtin and then its argument prototype would still apply.  */
27791 #ifdef __cplusplus
27792 extern "C"
27793 #endif
27794 char crypt ();
27795 /* The GNU C library defines this for functions which it implements
27796     to always fail with ENOSYS.  Some functions are actually named
27797     something starting with __ and the normal name is an alias.  */
27798 #if defined __stub_crypt || defined __stub___crypt
27799 choke me
27800 #endif
27801
27802 int
27803 main ()
27804 {
27805 return crypt ();
27806   ;
27807   return 0;
27808 }
27809 _ACEOF
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_link") 2>conftest.er1
27818   ac_status=$?
27819   grep -v '^ *+' conftest.er1 >conftest.err
27820   rm -f conftest.er1
27821   cat conftest.err >&5
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); } && {
27824          test -z "$ac_c_werror_flag" ||
27825          test ! -s conftest.err
27826        } && test -s conftest$ac_exeext &&
27827        $as_test_x conftest$ac_exeext; then
27828   ac_cv_func_crypt=yes
27829 else
27830   echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27832
27833         ac_cv_func_crypt=no
27834 fi
27835
27836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27837       conftest$ac_exeext conftest.$ac_ext
27838 fi
27839 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27840 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27841 if test $ac_cv_func_crypt = yes; then
27842   :
27843 else
27844   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27845 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27846 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27847   echo $ECHO_N "(cached) $ECHO_C" >&6
27848 else
27849   ac_check_lib_save_LIBS=$LIBS
27850 LIBS="-lcrypt  $LIBS"
27851 cat >conftest.$ac_ext <<_ACEOF
27852 /* confdefs.h.  */
27853 _ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h.  */
27857
27858 /* Override any GCC internal prototype to avoid an error.
27859    Use char because int might match the return type of a GCC
27860    builtin and then its argument prototype would still apply.  */
27861 #ifdef __cplusplus
27862 extern "C"
27863 #endif
27864 char crypt ();
27865 int
27866 main ()
27867 {
27868 return crypt ();
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (ac_try="$ac_link"
27875 case "(($ac_try" in
27876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877   *) ac_try_echo=$ac_try;;
27878 esac
27879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880   (eval "$ac_link") 2>conftest.er1
27881   ac_status=$?
27882   grep -v '^ *+' conftest.er1 >conftest.err
27883   rm -f conftest.er1
27884   cat conftest.err >&5
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); } && {
27887          test -z "$ac_c_werror_flag" ||
27888          test ! -s conftest.err
27889        } && test -s conftest$ac_exeext &&
27890        $as_test_x conftest$ac_exeext; then
27891   ac_cv_lib_crypt_crypt=yes
27892 else
27893   echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27895
27896         ac_cv_lib_crypt_crypt=no
27897 fi
27898
27899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27900       conftest$ac_exeext conftest.$ac_ext
27901 LIBS=$ac_check_lib_save_LIBS
27902 fi
27903 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27904 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27905 if test $ac_cv_lib_crypt_crypt = yes; then
27906   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27907 fi
27908
27909 fi
27910
27911       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27912       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27913       SQL_BINDIR=$POSTGRESQL_BINDIR
27914       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27915
27916       cat >>confdefs.h <<\_ACEOF
27917 #define HAVE_POSTGRESQL 1
27918 _ACEOF
27919
27920       { echo "$as_me:$LINENO: result: yes" >&5
27921 echo "${ECHO_T}yes" >&6; }
27922       db_found=yes
27923       support_postgresql=yes
27924       db_type=PostgreSQL
27925       DB_TYPE=postgresql
27926   else
27927       { echo "$as_me:$LINENO: result: no" >&5
27928 echo "${ECHO_T}no" >&6; }
27929   fi
27930
27931 else
27932
27933   { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27935
27936 fi
27937
27938
27939
27940
27941
27942
27943
27944
27945 db_found=no
27946 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27947 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27948
27949 # Check whether --with-mysql was given.
27950 if test "${with_mysql+set}" = set; then
27951   withval=$with_mysql;
27952   if test "$withval" != "no"; then
27953         if test "$withval" = "yes"; then
27954            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27955                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27956                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27957                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27958                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27959                    else
27960                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27961                    fi
27962                    MYSQL_BINDIR=/usr/local/mysql/bin
27963            elif test -f /usr/include/mysql/mysql.h; then
27964                    MYSQL_INCDIR=/usr/include/mysql
27965                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27966                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27967                            MYSQL_LIBDIR=/usr/lib64/mysql
27968                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27969                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27970                            MYSQL_LIBDIR=/usr/lib/mysql
27971                    else
27972                            MYSQL_LIBDIR=/usr/lib
27973                    fi
27974                    MYSQL_BINDIR=/usr/bin
27975            elif test -f /usr/include/mysql.h; then
27976                    MYSQL_INCDIR=/usr/include
27977                    if test -f /usr/lib64/libmysqlclient_r.a \
27978                         -o -f /usr/lib64/libmysqlclient_r.so; then
27979                            MYSQL_LIBDIR=/usr/lib64
27980                    else
27981                            MYSQL_LIBDIR=/usr/lib
27982                    fi
27983                    MYSQL_BINDIR=/usr/bin
27984            elif test -f /usr/local/include/mysql/mysql.h; then
27985                    MYSQL_INCDIR=/usr/local/include/mysql
27986                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27987                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27988                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27989                    else
27990                            MYSQL_LIBDIR=/usr/local/lib/mysql
27991                    fi
27992                    MYSQL_BINDIR=/usr/local/bin
27993            elif test -f /usr/local/include/mysql.h; then
27994                    MYSQL_INCDIR=/usr/local/include
27995                    if test -f /usr/local/lib64/libmysqlclient_r.a \
27996                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
27997                            MYSQL_LIBDIR=/usr/local/lib64
27998                    else
27999                            MYSQL_LIBDIR=/usr/local/lib
28000                    fi
28001                    MYSQL_BINDIR=/usr/local/bin
28002            else
28003               { echo "$as_me:$LINENO: result: no" >&5
28004 echo "${ECHO_T}no" >&6; }
28005               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28006 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28007    { (exit 1); exit 1; }; }
28008            fi
28009         else
28010            if test -f $withval/include/mysql/mysql.h; then
28011               MYSQL_INCDIR=$withval/include/mysql
28012               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28013                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28014                  MYSQL_LIBDIR=$withval/lib64/mysql
28015               else
28016                  MYSQL_LIBDIR=$withval/lib/mysql
28017                  # Solaris ...
28018                  if test -f $withval/lib/libmysqlclient_r.so; then
28019                     MYSQL_LIBDIR=$withval/lib
28020                  fi
28021               fi
28022               MYSQL_BINDIR=$withval/bin
28023            elif test -f $withval/include/mysql.h; then
28024               MYSQL_INCDIR=$withval/include
28025               if test -f $withval/lib64/libmysqlclient_r.a \
28026                    -o -f $withval/lib64/libmysqlclient_r.so; then
28027                  MYSQL_LIBDIR=$withval/lib64
28028               else
28029                  MYSQL_LIBDIR=$withval/lib
28030               fi
28031               MYSQL_BINDIR=$withval/bin
28032            else
28033               { echo "$as_me:$LINENO: result: no" >&5
28034 echo "${ECHO_T}no" >&6; }
28035               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28036 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28037    { (exit 1); exit 1; }; }
28038            fi
28039         fi
28040     SQL_INCLUDE=-I$MYSQL_INCDIR
28041     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28042          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28043        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28044        cat >>confdefs.h <<\_ACEOF
28045 #define HAVE_THREAD_SAFE_MYSQL 1
28046 _ACEOF
28047
28048     fi
28049     SQL_BINDIR=$MYSQL_BINDIR
28050     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28051
28052     cat >>confdefs.h <<\_ACEOF
28053 #define HAVE_MYSQL 1
28054 _ACEOF
28055
28056     { echo "$as_me:$LINENO: result: yes" >&5
28057 echo "${ECHO_T}yes" >&6; }
28058     db_found=yes
28059     support_mysql=yes
28060     db_type=MySQL
28061     DB_TYPE=mysql
28062
28063   else
28064         { echo "$as_me:$LINENO: result: no" >&5
28065 echo "${ECHO_T}no" >&6; }
28066   fi
28067
28068
28069 fi
28070
28071
28072
28073 # Check whether --with-embedded-mysql was given.
28074 if test "${with_embedded_mysql+set}" = set; then
28075   withval=$with_embedded_mysql;
28076   if test "$withval" != "no"; then
28077         if test "$withval" = "yes"; then
28078                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28079                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28080                         if test -d /usr/local/mysql/lib64/mysql; then
28081                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28082                         else
28083                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28084                         fi
28085                         MYSQL_BINDIR=/usr/local/mysql/bin
28086                 elif test -f /usr/include/mysql/mysql.h; then
28087                         MYSQL_INCDIR=/usr/include/mysql
28088                         if test -d /usr/lib64/mysql; then
28089                                 MYSQL_LIBDIR=/usr/lib64/mysql
28090                         else
28091                                 MYSQL_LIBDIR=/usr/lib/mysql
28092                         fi
28093                         MYSQL_BINDIR=/usr/bin
28094                 elif test -f /usr/include/mysql.h; then
28095                         MYSQL_INCDIR=/usr/include
28096                         if test -d /usr/lib64; then
28097                                 MYSQL_LIBDIR=/usr/lib64
28098                         else
28099                                 MYSQL_LIBDIR=/usr/lib
28100                         fi
28101                         MYSQL_BINDIR=/usr/bin
28102                 elif test -f /usr/local/include/mysql/mysql.h; then
28103                         MYSQL_INCDIR=/usr/local/include/mysql
28104                         if test -d /usr/local/lib64/mysql; then
28105                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28106                         else
28107                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28108                         fi
28109                         MYSQL_BINDIR=/usr/local/bin
28110                 elif test -f /usr/local/include/mysql.h; then
28111                         MYSQL_INCDIR=/usr/local/include
28112                         if test -d /usr/local/lib64; then
28113                                 MYSQL_LIBDIR=/usr/local/lib64
28114                         else
28115                                 MYSQL_LIBDIR=/usr/local/lib
28116                         fi
28117                         MYSQL_BINDIR=/usr/local/bin
28118                 else
28119                    { echo "$as_me:$LINENO: result: no" >&5
28120 echo "${ECHO_T}no" >&6; }
28121                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28122 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28123    { (exit 1); exit 1; }; }
28124                 fi
28125         else
28126                 if test -f $withval/include/mysql/mysql.h; then
28127                         MYSQL_INCDIR=$withval/include/mysql
28128                         if test -d $withval/lib64/mysql; then
28129                                 MYSQL_LIBDIR=$withval/lib64/mysql
28130                         else
28131                                 MYSQL_LIBDIR=$withval/lib/mysql
28132                         fi
28133                         MYSQL_BINDIR=$withval/bin
28134                 elif test -f $withval/include/mysql.h; then
28135                         MYSQL_INCDIR=$withval/include
28136                         if test -d $withval/lib64; then
28137                                 MYSQL_LIBDIR=$withval/lib64
28138                         else
28139                                 MYSQL_LIBDIR=$withval/lib
28140                         fi
28141                         MYSQL_BINDIR=$withval/bin
28142                 else
28143                    { echo "$as_me:$LINENO: result: no" >&5
28144 echo "${ECHO_T}no" >&6; }
28145                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28146 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28147    { (exit 1); exit 1; }; }
28148                 fi
28149         fi
28150     SQL_INCLUDE=-I$MYSQL_INCDIR
28151     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28152     SQL_BINDIR=$MYSQL_BINDIR
28153     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28154
28155     cat >>confdefs.h <<\_ACEOF
28156 #define HAVE_MYSQL 1
28157 _ACEOF
28158
28159     cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_EMBEDDED_MYSQL 1
28161 _ACEOF
28162
28163     { echo "$as_me:$LINENO: result: yes" >&5
28164 echo "${ECHO_T}yes" >&6; }
28165     db_found=yes
28166     support_mysql=yes
28167     db_type=MySQL
28168     DB_TYPE=mysql
28169
28170   else
28171         { echo "$as_me:$LINENO: result: no" >&5
28172 echo "${ECHO_T}no" >&6; }
28173   fi
28174
28175
28176 fi
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187 db_found=no
28188 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28189 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28190
28191 # Check whether --with-sqlite3 was given.
28192 if test "${with_sqlite3+set}" = set; then
28193   withval=$with_sqlite3;
28194   if test "$withval" != "no"; then
28195      if test "$withval" = "yes"; then
28196         if test -f /usr/local/include/sqlite3.h; then
28197            SQLITE_INCDIR=/usr/local/include
28198            if test -d /usr/local/lib64; then
28199               SQLITE_LIBDIR=/usr/local/lib64
28200            else
28201               SQLITE_LIBDIR=/usr/local/lib
28202            fi
28203            SQLITE_BINDIR=/usr/local/bin
28204         elif test -f /usr/include/sqlite3.h; then
28205            SQLITE_INCDIR=/usr/include
28206            if test -d /usr/lib64; then
28207               SQLITE_LIBDIR=/usr/lib64
28208            else
28209               SQLITE_LIBDIR=/usr/lib
28210            fi
28211            SQLITE_BINDIR=/usr/bin
28212         elif test -f $prefix/include/sqlite3.h; then
28213            SQLITE_INCDIR=$prefix/include
28214            if test -d $prefix/lib64; then
28215               SQLITE_LIBDIR=$prefix/lib64
28216            else
28217               SQLITE_LIBDIR=$prefix/lib
28218            fi
28219            SQLITE_BINDIR=$prefix/bin
28220         else
28221            { echo "$as_me:$LINENO: result: no" >&5
28222 echo "${ECHO_T}no" >&6; }
28223            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28224 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28225    { (exit 1); exit 1; }; }
28226         fi
28227      else
28228         if test -f $withval/sqlite3.h; then
28229            SQLITE_INCDIR=$withval
28230            SQLITE_LIBDIR=$withval
28231            SQLITE_BINDIR=$withval
28232         elif test -f $withval/include/sqlite3.h; then
28233            SQLITE_INCDIR=$withval/include
28234            if test -d $withval/lib64; then
28235               SQLITE_LIBDIR=$withval/lib64
28236            else
28237               SQLITE_LIBDIR=$withval/lib
28238            fi
28239            SQLITE_BINDIR=$withval/bin
28240         else
28241            { echo "$as_me:$LINENO: result: no" >&5
28242 echo "${ECHO_T}no" >&6; }
28243            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28244 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28245    { (exit 1); exit 1; }; }
28246         fi
28247      fi
28248      SQL_INCLUDE=-I$SQLITE_INCDIR
28249      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28250      SQL_BINDIR=$SQLITE_BINDIR
28251      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28252
28253      cat >>confdefs.h <<\_ACEOF
28254 #define HAVE_SQLITE3 1
28255 _ACEOF
28256
28257      { echo "$as_me:$LINENO: result: yes" >&5
28258 echo "${ECHO_T}yes" >&6; }
28259      db_found=yes
28260      support_sqlite3=yes
28261      db_type=SQLite3
28262      DB_TYPE=sqlite3
28263
28264   else
28265      { echo "$as_me:$LINENO: result: no" >&5
28266 echo "${ECHO_T}no" >&6; }
28267   fi
28268
28269 else
28270
28271   { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28273
28274 fi
28275
28276
28277
28278
28279
28280
28281
28282
28283 db_found=no
28284 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28285 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28286
28287 # Check whether --with-sqlite was given.
28288 if test "${with_sqlite+set}" = set; then
28289   withval=$with_sqlite;
28290   if test "$withval" != "no"; then
28291      if test "$withval" = "yes"; then
28292         if test -f /usr/local/include/sqlite.h; then
28293            SQLITE_INCDIR=/usr/local/include
28294            if test -d /usr/local/lib64; then
28295               SQLITE_LIBDIR=/usr/local/lib64
28296            else
28297               SQLITE_LIBDIR=/usr/local/lib
28298            fi
28299            SQLITE_BINDIR=/usr/local/bin
28300         elif test -f /usr/include/sqlite.h; then
28301            SQLITE_INCDIR=/usr/include
28302            if test -d /usr/lib64; then
28303               SQLITE_LIBDIR=/usr/lib64
28304            else
28305               SQLITE_LIBDIR=/usr/lib
28306            fi
28307            SQLITE_BINDIR=/usr/bin
28308         elif test -f $prefix/include/sqlite.h; then
28309            SQLITE_INCDIR=$prefix/include
28310            if test -d $prefix/lib64; then
28311               SQLITE_LIBDIR=$prefix/lib64
28312            else
28313               SQLITE_LIBDIR=$prefix/lib
28314            fi
28315            SQLITE_BINDIR=$prefix/bin
28316         else
28317            { echo "$as_me:$LINENO: result: no" >&5
28318 echo "${ECHO_T}no" >&6; }
28319            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28320 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28321    { (exit 1); exit 1; }; }
28322         fi
28323      else
28324         if test -f $withval/sqlite.h; then
28325            SQLITE_INCDIR=$withval
28326            SQLITE_LIBDIR=$withval
28327            SQLITE_BINDIR=$withval
28328         elif test -f $withval/include/sqlite.h; then
28329            SQLITE_INCDIR=$withval/include
28330            if test -d $withval/lib64; then
28331               SQLITE_LIBDIR=$withval/lib64
28332            else
28333               SQLITE_LIBDIR=$withval/lib
28334            fi
28335            SQLITE_BINDIR=$withval/bin
28336         else
28337            { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28340 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28341    { (exit 1); exit 1; }; }
28342         fi
28343      fi
28344      SQL_INCLUDE=-I$SQLITE_INCDIR
28345      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28346      SQL_BINDIR=$SQLITE_BINDIR
28347      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28348
28349      cat >>confdefs.h <<\_ACEOF
28350 #define HAVE_SQLITE 1
28351 _ACEOF
28352
28353      { echo "$as_me:$LINENO: result: yes" >&5
28354 echo "${ECHO_T}yes" >&6; }
28355      db_found=yes
28356      support_sqlite=yes
28357      db_type=SQLite
28358      DB_TYPE=sqlite
28359
28360   else
28361      { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28363   fi
28364
28365 else
28366
28367   { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28369
28370 fi
28371
28372
28373
28374
28375
28376
28377
28378
28379 db_found=no
28380 { echo "$as_me:$LINENO: checking for DBI support" >&5
28381 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28382
28383 # Check whether --with-dbi was given.
28384 if test "${with_dbi+set}" = set; then
28385   withval=$with_dbi;
28386   if test "$withval" != "no"; then
28387      if test "$withval" = "yes"; then
28388         if test -f /usr/local/include/dbi/dbi.h; then
28389            DBI_INCDIR=/usr/local/dbi/include
28390            if test -d /usr/local/lib64; then
28391               DBI_LIBDIR=/usr/local/lib64
28392            else
28393               DBI_LIBDIR=/usr/local/lib
28394            fi
28395            DBI_BINDIR=/usr/local/bin
28396         elif test -f /usr/include/dbi/dbi.h; then
28397            DBI_INCDIR=/usr/include
28398            if test -d /usr/lib64; then
28399               DBI_LIBDIR=/usr/lib64
28400            else
28401               DBI_LIBDIR=/usr/lib
28402            fi
28403            DBI_BINDIR=/usr/bin
28404         elif test -f $prefix/include/dbi/dbi.h; then
28405            DBI_INCDIR=$prefix/include
28406            if test -d $prefix/lib64; then
28407               DBI_LIBDIR=$prefix/lib64
28408            else
28409               DBI_LIBDIR=$prefix/lib
28410            fi
28411            DBI_BINDIR=$prefix/bin
28412         else
28413            { echo "$as_me:$LINENO: result: no" >&5
28414 echo "${ECHO_T}no" >&6; }
28415            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28416 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28417    { (exit 1); exit 1; }; }
28418         fi
28419         if test -d /usr/local/lib/dbd; then
28420            DRIVERDIR=/usr/local/lib/dbd
28421            if test -d /usr/local/lib64/dbd; then
28422               DRIVERDIR=/usr/local/lib64/dbd
28423            else
28424               DRIVERDIR=/usr/local/lib/dbd
28425            fi
28426         elif test -d /usr/lib/dbd; then
28427            DRIVERDIR=/usr/lib/dbd
28428            if test -d /usr/lib64/dbd; then
28429               DRIVERDIR=/usr/lib64/dbd
28430            else
28431               DRIVERDIR=/usr/lib/dbd
28432            fi
28433         elif test -d $prefix/lib/dbd; then
28434            if test -d $prefix/lib64/dbd; then
28435               DRIVERDIR=$prefix/lib64/dbd
28436            else
28437               DRIVERDIR=$prefix/lib/dbd
28438            fi
28439         else
28440            { echo "$as_me:$LINENO: result: no" >&5
28441 echo "${ECHO_T}no" >&6; }
28442            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28443 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28444    { (exit 1); exit 1; }; }
28445         fi
28446      else
28447         if test -f $withval/dbi.h; then
28448            DBI_INCDIR=$withval
28449            DBI_LIBDIR=$withval
28450            DBI_BINDIR=$withval
28451         elif test -f $withval/include/dbi/dbi.h; then
28452            DBI_INCDIR=$withval/include
28453            if test -d $withval/lib64; then
28454               DBI_LIBDIR=$withval/lib64
28455            else
28456               DBI_LIBDIR=$withval/lib
28457            fi
28458            DBI_BINDIR=$withval/bin
28459         else
28460            { echo "$as_me:$LINENO: result: no" >&5
28461 echo "${ECHO_T}no" >&6; }
28462            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28463 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28464    { (exit 1); exit 1; }; }
28465         fi
28466         if test -d $withval/dbd; then
28467            DRIVERDIR=$withval/dbd
28468         elif test -d $withval/lib/; then
28469            if test -d $withval/lib64/dbd; then
28470               DRIVERDIR=$withval/lib64/dbd
28471            else
28472               DRIVERDIR=$withval/lib/dbd
28473            fi
28474         else
28475            { echo "$as_me:$LINENO: result: no" >&5
28476 echo "${ECHO_T}no" >&6; }
28477            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28478 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28479    { (exit 1); exit 1; }; }
28480         fi
28481      fi
28482      SQL_INCLUDE=-I$DBI_INCDIR
28483      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28484      SQL_BINDIR=$DBI_BINDIR
28485      SQL_LIB=$DBI_LIBDIR/libdbi.a
28486      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28487
28488
28489 cat >>confdefs.h <<\_ACEOF
28490 #define HAVE_DBI 1
28491 _ACEOF
28492
28493      { echo "$as_me:$LINENO: result: yes" >&5
28494 echo "${ECHO_T}yes" >&6; }
28495      db_found=yes
28496      support_dbi=yes
28497      db_type=DBI
28498      DB_TYPE=dbi
28499      uncomment_dbi=" "
28500
28501   else
28502      { echo "$as_me:$LINENO: result: no" >&5
28503 echo "${ECHO_T}no" >&6; }
28504   fi
28505
28506 else
28507
28508   { echo "$as_me:$LINENO: result: no" >&5
28509 echo "${ECHO_T}no" >&6; }
28510
28511 fi
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522 db_found=no
28523 db_prog=no
28524 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28525 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28526
28527 # Check whether --with-dbi-driver was given.
28528 if test "${with_dbi_driver+set}" = set; then
28529   withval=$with_dbi_driver;
28530   if test "$withval" != "no"; then
28531      case $withval in
28532         "mysql")
28533            db_prog="mysql"
28534            if test -f /usr/local/mysql/bin/mysql; then
28535               SQL_BINDIR=/usr/local/mysql/bin
28536               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28537                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28538                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28539               else
28540                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28541               fi
28542            elif test -f /usr/bin/mysql; then
28543               SQL_BINDIR=/usr/bin
28544               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28545                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28546                   SQL_LIBDIR=/usr/lib64/mysql
28547               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28548                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28549                   SQL_LIBDIR=/usr/lib/mysql
28550               else
28551                   SQL_LIBDIR=/usr/lib
28552               fi
28553            elif test -f /usr/local/bin/mysql; then
28554               SQL_BINDIR=/usr/local/bin
28555               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28556                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28557                   SQL_LIBDIR=/usr/local/lib64/mysql
28558               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28559                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28560                   SQL_LIBDIR=/usr/local/lib/mysql
28561               else
28562                   SQL_LIBDIR=/usr/local/lib
28563               fi
28564            elif test -f $withval/bin/mysql; then
28565               SQL_BINDIR=$withval/bin
28566               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28567                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28568                   SQL_LIBDIR=$withval/lib64/mysql
28569               elif test -f $withval/lib64/libmysqlclient_r.a \
28570                   -o -f $withval/lib64/libmysqlclient_r.so; then
28571                   SQL_LIBDIR=$withval/lib64
28572               elif test -f $withval/lib/libmysqlclient_r.a \
28573                   -o -f $withval/lib/libmysqlclient_r.so; then
28574                   SQL_LIBDIR=$withval/lib/
28575               else
28576                   SQL_LIBDIR=$withval/lib/mysql
28577               fi
28578            else
28579               { echo "$as_me:$LINENO: result: no" >&5
28580 echo "${ECHO_T}no" >&6; }
28581               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28582 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28583    { (exit 1); exit 1; }; }
28584            fi
28585            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28586         ;;
28587         "postgresql")
28588            db_prog="postgresql"
28589            PG_CONFIG=`which pg_config`
28590            if test -n "$PG_CONFIG"; then
28591               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28592               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28593            elif test -f /usr/local/bin/psql; then
28594               SQL_BINDIR=/usr/local/bin
28595               if test -d /usr/local/lib64; then
28596                  SQL_LIBDIR=/usr/local/lib64
28597               else
28598                  SQL_LIBDIR=/usr/local/lib
28599               fi
28600            elif test -f /usr/bin/psql; then
28601               SQL_BINDIR=/usr/local/bin
28602               if test -d /usr/lib64/postgresql; then
28603                  SQL_LIBDIR=/usr/lib64/postgresql
28604               elif test -d /usr/lib/postgresql; then
28605                  SQL_LIBDIR=/usr/lib/postgresql
28606               elif test -d /usr/lib64; then
28607                  SQL_LIBDIR=/usr/lib64
28608               else
28609                  SQL_LIBDIR=/usr/lib
28610               fi
28611            elif test -f $withval/bin/psql; then
28612               SQL_BINDIR=$withval/bin
28613               if test -d $withval/lib64; then
28614                  SQL_LIBDIR=$withval/lib64
28615               else
28616                  SQL_LIBDIR=$withval/lib
28617               fi
28618            else
28619               { echo "$as_me:$LINENO: result: no" >&5
28620 echo "${ECHO_T}no" >&6; }
28621               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28622 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28623    { (exit 1); exit 1; }; }
28624            fi
28625            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28626         ;;
28627         "sqlite")
28628            db_prog="sqlite"
28629            if test -f /usr/local/bin/sqlite; then
28630               SQL_BINDIR=/usr/local/bin
28631               if test -d /usr/local/lib64; then
28632                  SQL_LIBDIR=/usr/local/lib64
28633               else
28634                  SQL_LIBDIR=/usr/local/lib
28635               fi
28636            elif test -f /usr/bin/sqlite; then
28637               SQL_BINDIR=/usr/bin
28638               if test -d /usr/lib64; then
28639                  SQL_LIBDIR=/usr/lib64
28640               else
28641                  SQL_LIBDIR=/usr/lib
28642               fi
28643            elif test -f $withval/bin/sqlite; then
28644               SQL_BINDIR=$withval/bin
28645               if test -d $withval/lib64; then
28646                  SQL_LIBDIR=$withval/lib64
28647               else
28648                  SQL_LIBDIR=$withval/lib
28649               fi
28650            else
28651               { echo "$as_me:$LINENO: result: no" >&5
28652 echo "${ECHO_T}no" >&6; }
28653               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28654 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28655    { (exit 1); exit 1; }; }
28656            fi
28657            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28658         ;;
28659         "sqlite3")
28660            db_prog="sqlite3"
28661            if test -f /usr/local/bin/sqlite3; then
28662               SQL_BINDIR=/usr/local/bin
28663               if test -d /usr/local/lib64; then
28664                  SQL_LIBDIR=/usr/local/lib64
28665               else
28666                  SQL_LIBDIR=/usr/local/lib
28667               fi
28668            elif test -f /usr/bin/sqlite3; then
28669               SQL_BINDIR=/usr/bin
28670               if test -d /usr/lib64; then
28671                  SQL_LIBDIR=/usr/lib64
28672               else
28673                  SQL_LIBDIR=/usr/lib
28674               fi
28675            elif test -f $withval/bin/sqlite3; then
28676               SQL_BINDIR=$withval/bin
28677               if test -d $withval/lib64; then
28678                  SQL_LIBDIR=$withval/lib64
28679               else
28680                  SQL_LIBDIR=$withval/lib
28681               fi
28682            else
28683               { echo "$as_me:$LINENO: result: no" >&5
28684 echo "${ECHO_T}no" >&6; }
28685               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28686 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28687    { (exit 1); exit 1; }; }
28688            fi
28689            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28690         ;;
28691         *)
28692            { echo "$as_me:$LINENO: result: no" >&5
28693 echo "${ECHO_T}no" >&6; }
28694            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28695 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28696    { (exit 1); exit 1; }; }
28697         ;;
28698      esac
28699
28700      { echo "$as_me:$LINENO: result: yes" >&5
28701 echo "${ECHO_T}yes" >&6; }
28702      DB_PROG=$db_prog
28703   else
28704      { echo "$as_me:$LINENO: result: no" >&5
28705 echo "${ECHO_T}no" >&6; }
28706   fi
28707
28708 else
28709
28710   { echo "$as_me:$LINENO: result: no" >&5
28711 echo "${ECHO_T}no" >&6; }
28712
28713 fi
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724 support_batch_insert=no
28725 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28726 pkg=$?
28727 if test $pkg = 0; then
28728    support_batch_insert=yes
28729    # Check whether --enable-batch-insert was given.
28730 if test "${enable_batch_insert+set}" = set; then
28731   enableval=$enable_batch_insert;
28732           if test x$enableval = xno; then
28733              support_batch_insert=no
28734           else
28735              support_batch_insert=yes
28736           fi
28737
28738
28739 fi
28740
28741 fi
28742
28743 if test x$DB_TYPE = xpostgresql; then
28744    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28745    pkg=$?
28746    if test $pkg != 0; then
28747       support_batch_insert=no
28748    fi
28749 fi
28750
28751 if test x$DB_TYPE = xdbi; then
28752    DB_TYPE=$DB_PROG
28753    db_type=$DB_PROG
28754    pkg=1
28755       if test $DB_PROG = postgresql; then
28756       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28757       pkg=$?
28758    fi
28759
28760    if test $DB_PROG = mysql; then
28761       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28762       pkg=$?
28763    fi
28764
28765    if test $DB_PROG = sqlite3; then
28766       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28767       pkg=$?
28768    fi
28769
28770    if test $pkg = 0; then
28771       # Check whether --enable-batch-insert was given.
28772 if test "${enable_batch_insert+set}" = set; then
28773   enableval=$enable_batch_insert;
28774              if test x$enableval = xno; then
28775                 support_batch_insert=no
28776              else
28777                 support_batch_insert=yes
28778              fi
28779
28780
28781 fi
28782
28783    fi
28784 else
28785       uncomment_dbi="#"
28786 fi
28787
28788
28789
28790 if test $support_batch_insert = yes ; then
28791
28792 cat >>confdefs.h <<\_ACEOF
28793 #define HAVE_BATCH_FILE_INSERT 1
28794 _ACEOF
28795
28796 fi
28797
28798 cat >>confdefs.h <<\_ACEOF
28799 #define PROTOTYPES 1
28800 _ACEOF
28801
28802
28803 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28804    if test -z "$CCOPTS"; then
28805       CCOPTS='-g -O2 -Wall'
28806    fi
28807    CFLAGS="$CCOPTS"
28808 fi
28809
28810
28811
28812 largefile_support="no"
28813
28814    # Check whether --enable-largefile was given.
28815 if test "${enable_largefile+set}" = set; then
28816   enableval=$enable_largefile;
28817 fi
28818
28819    if test "$enable_largefile" != no; then
28820      if test -n "$ac_tool_prefix"; then
28821   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28822 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28825 if test "${ac_cv_prog_GETCONF+set}" = set; then
28826   echo $ECHO_N "(cached) $ECHO_C" >&6
28827 else
28828   if test -n "$GETCONF"; then
28829   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28830 else
28831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28832 for as_dir in $PATH
28833 do
28834   IFS=$as_save_IFS
28835   test -z "$as_dir" && as_dir=.
28836   for ac_exec_ext in '' $ac_executable_extensions; do
28837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28838     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28840     break 2
28841   fi
28842 done
28843 done
28844 IFS=$as_save_IFS
28845
28846 fi
28847 fi
28848 GETCONF=$ac_cv_prog_GETCONF
28849 if test -n "$GETCONF"; then
28850   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28851 echo "${ECHO_T}$GETCONF" >&6; }
28852 else
28853   { echo "$as_me:$LINENO: result: no" >&5
28854 echo "${ECHO_T}no" >&6; }
28855 fi
28856
28857
28858 fi
28859 if test -z "$ac_cv_prog_GETCONF"; then
28860   ac_ct_GETCONF=$GETCONF
28861   # Extract the first word of "getconf", so it can be a program name with args.
28862 set dummy getconf; ac_word=$2
28863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28865 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28866   echo $ECHO_N "(cached) $ECHO_C" >&6
28867 else
28868   if test -n "$ac_ct_GETCONF"; then
28869   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28870 else
28871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28872 for as_dir in $PATH
28873 do
28874   IFS=$as_save_IFS
28875   test -z "$as_dir" && as_dir=.
28876   for ac_exec_ext in '' $ac_executable_extensions; do
28877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28878     ac_cv_prog_ac_ct_GETCONF="getconf"
28879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28880     break 2
28881   fi
28882 done
28883 done
28884 IFS=$as_save_IFS
28885
28886 fi
28887 fi
28888 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28889 if test -n "$ac_ct_GETCONF"; then
28890   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28891 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28892 else
28893   { echo "$as_me:$LINENO: result: no" >&5
28894 echo "${ECHO_T}no" >&6; }
28895 fi
28896
28897   if test "x$ac_ct_GETCONF" = x; then
28898     GETCONF=""
28899   else
28900     case $cross_compiling:$ac_tool_warned in
28901 yes:)
28902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28903 whose name does not start with the host triplet.  If you think this
28904 configuration is useful to you, please write to autoconf@gnu.org." >&5
28905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28906 whose name does not start with the host triplet.  If you think this
28907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28908 ac_tool_warned=yes ;;
28909 esac
28910     GETCONF=$ac_ct_GETCONF
28911   fi
28912 else
28913   GETCONF="$ac_cv_prog_GETCONF"
28914 fi
28915
28916      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28917 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28918 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28919   echo $ECHO_N "(cached) $ECHO_C" >&6
28920 else
28921   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28922         ac_cv_sys_largefile_CFLAGS=no
28923         case "$host_os" in
28924            # IRIX 6.2 and later require cc -n32.
28925            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28926              if test "$GCC" != yes; then
28927                ac_cv_sys_largefile_CFLAGS=-n32
28928              fi
28929              ac_save_CC="$CC"
28930              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28931              cat >conftest.$ac_ext <<_ACEOF
28932 /* confdefs.h.  */
28933 _ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h.  */
28937
28938 int
28939 main ()
28940 {
28941
28942   ;
28943   return 0;
28944 }
28945 _ACEOF
28946 rm -f conftest.$ac_objext conftest$ac_exeext
28947 if { (ac_try="$ac_link"
28948 case "(($ac_try" in
28949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950   *) ac_try_echo=$ac_try;;
28951 esac
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953   (eval "$ac_link") 2>conftest.er1
28954   ac_status=$?
28955   grep -v '^ *+' conftest.er1 >conftest.err
28956   rm -f conftest.er1
28957   cat conftest.err >&5
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } && {
28960          test -z "$ac_c_werror_flag" ||
28961          test ! -s conftest.err
28962        } && test -s conftest$ac_exeext &&
28963        $as_test_x conftest$ac_exeext; then
28964   :
28965 else
28966   echo "$as_me: failed program was:" >&5
28967 sed 's/^/| /' conftest.$ac_ext >&5
28968
28969         ac_cv_sys_largefile_CFLAGS=no
28970 fi
28971
28972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28973       conftest$ac_exeext conftest.$ac_ext
28974              CC="$ac_save_CC"
28975            esac
28976       }
28977 fi
28978 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28979 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28980      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28981 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28982 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28983   echo $ECHO_N "(cached) $ECHO_C" >&6
28984 else
28985   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28986         ac_cv_sys_largefile_LDFLAGS=no
28987
28988       }
28989 fi
28990 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28991 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28992      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28993 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28994 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28995   echo $ECHO_N "(cached) $ECHO_C" >&6
28996 else
28997   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
28998         ac_cv_sys_largefile_LIBS=no
28999
29000       }
29001 fi
29002 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29003 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29004
29005      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29006        case "$ac_flag" in
29007        no) ;;
29008        -D_FILE_OFFSET_BITS=*) ;;
29009        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29010        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29011        -D?* | -I?*)
29012          case "$ac_flag" in
29013    no) ;;
29014    ?*)
29015      case "$CPPFLAGS" in
29016      '') CPPFLAGS="$ac_flag" ;;
29017      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29018      esac ;;
29019    esac ;;
29020        *)
29021          case "$ac_flag" in
29022    no) ;;
29023    ?*)
29024      case "$CFLAGS" in
29025      '') CFLAGS="$ac_flag" ;;
29026      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29027      esac ;;
29028    esac ;;
29029        esac
29030      done
29031      case "$ac_cv_sys_largefile_LDFLAGS" in
29032    no) ;;
29033    ?*)
29034      case "$LDFLAGS" in
29035      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29036      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29037      esac ;;
29038    esac
29039      case "$ac_cv_sys_largefile_LIBS" in
29040    no) ;;
29041    ?*)
29042      case "$LIBS" in
29043      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29044      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29045      esac ;;
29046    esac
29047      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29048 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29049 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29050   echo $ECHO_N "(cached) $ECHO_C" >&6
29051 else
29052   ac_cv_sys_file_offset_bits=no
29053       ac_cv_sys_file_offset_bits=64
29054       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29055         case "$ac_flag" in
29056         -D_FILE_OFFSET_BITS)
29057           ac_cv_sys_file_offset_bits=1 ;;
29058         -D_FILE_OFFSET_BITS=*)
29059           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29060         esac
29061       done
29062
29063 fi
29064 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29065 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29066    if test "$ac_cv_sys_file_offset_bits" != no; then
29067
29068 cat >>confdefs.h <<_ACEOF
29069 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29070 _ACEOF
29071
29072    fi
29073      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29074 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29075 if test "${ac_cv_sys_largefile_source+set}" = set; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078   ac_cv_sys_largefile_source=no
29079       ac_cv_sys_largefile_source=1
29080       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29081         case "$ac_flag" in
29082         -D_LARGEFILE_SOURCE)
29083           ac_cv_sys_largefile_source=1 ;;
29084         -D_LARGEFILE_SOURCE=*)
29085           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29086         esac
29087       done
29088
29089 fi
29090 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29091 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29092    if test "$ac_cv_sys_largefile_source" != no; then
29093
29094 cat >>confdefs.h <<_ACEOF
29095 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29096 _ACEOF
29097
29098    fi
29099      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29100 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29101 if test "${ac_cv_sys_large_files+set}" = set; then
29102   echo $ECHO_N "(cached) $ECHO_C" >&6
29103 else
29104   ac_cv_sys_large_files=no
29105       ac_cv_sys_large_files=1
29106       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29107         case "$ac_flag" in
29108         -D_LARGE_FILES)
29109           ac_cv_sys_large_files=1 ;;
29110         -D_LARGE_FILES=*)
29111           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29112         esac
29113       done
29114
29115 fi
29116 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29117 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29118    if test "$ac_cv_sys_large_files" != no; then
29119
29120 cat >>confdefs.h <<_ACEOF
29121 #define _LARGE_FILES $ac_cv_sys_large_files
29122 _ACEOF
29123
29124    fi
29125    fi
29126
29127
29128 { echo "$as_me:$LINENO: checking for X" >&5
29129 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29130
29131
29132 # Check whether --with-x was given.
29133 if test "${with_x+set}" = set; then
29134   withval=$with_x;
29135 fi
29136
29137 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29138 if test "x$with_x" = xno; then
29139   # The user explicitly disabled X.
29140   have_x=disabled
29141 else
29142   case $x_includes,$x_libraries in #(
29143     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29144 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29145    { (exit 1); exit 1; }; };; #(
29146     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29147   echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149   # One or both of the vars are not set, and there is no cached value.
29150 ac_x_includes=no ac_x_libraries=no
29151 rm -f -r conftest.dir
29152 if mkdir conftest.dir; then
29153   cd conftest.dir
29154   cat >Imakefile <<'_ACEOF'
29155 incroot:
29156         @echo incroot='${INCROOT}'
29157 usrlibdir:
29158         @echo usrlibdir='${USRLIBDIR}'
29159 libdir:
29160         @echo libdir='${LIBDIR}'
29161 _ACEOF
29162   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29163     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29164     for ac_var in incroot usrlibdir libdir; do
29165       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29166     done
29167     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29168     for ac_extension in a so sl; do
29169       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29170          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29171         ac_im_usrlibdir=$ac_im_libdir; break
29172       fi
29173     done
29174     # Screen out bogus values from the imake configuration.  They are
29175     # bogus both because they are the default anyway, and because
29176     # using them would break gcc on systems where it needs fixed includes.
29177     case $ac_im_incroot in
29178         /usr/include) ac_x_includes= ;;
29179         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29180     esac
29181     case $ac_im_usrlibdir in
29182         /usr/lib | /lib) ;;
29183         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29184     esac
29185   fi
29186   cd ..
29187   rm -f -r conftest.dir
29188 fi
29189
29190 # Standard set of common directories for X headers.
29191 # Check X11 before X11Rn because it is often a symlink to the current release.
29192 ac_x_header_dirs='
29193 /usr/X11/include
29194 /usr/X11R6/include
29195 /usr/X11R5/include
29196 /usr/X11R4/include
29197
29198 /usr/include/X11
29199 /usr/include/X11R6
29200 /usr/include/X11R5
29201 /usr/include/X11R4
29202
29203 /usr/local/X11/include
29204 /usr/local/X11R6/include
29205 /usr/local/X11R5/include
29206 /usr/local/X11R4/include
29207
29208 /usr/local/include/X11
29209 /usr/local/include/X11R6
29210 /usr/local/include/X11R5
29211 /usr/local/include/X11R4
29212
29213 /usr/X386/include
29214 /usr/x386/include
29215 /usr/XFree86/include/X11
29216
29217 /usr/include
29218 /usr/local/include
29219 /usr/unsupported/include
29220 /usr/athena/include
29221 /usr/local/x11r5/include
29222 /usr/lpp/Xamples/include
29223
29224 /usr/openwin/include
29225 /usr/openwin/share/include'
29226
29227 if test "$ac_x_includes" = no; then
29228   # Guess where to find include files, by looking for Xlib.h.
29229   # First, try using that file with no special directory specified.
29230   cat >conftest.$ac_ext <<_ACEOF
29231 /* confdefs.h.  */
29232 _ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h.  */
29236 #include <X11/Xlib.h>
29237 _ACEOF
29238 if { (ac_try="$ac_cpp conftest.$ac_ext"
29239 case "(($ac_try" in
29240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241   *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29245   ac_status=$?
29246   grep -v '^ *+' conftest.er1 >conftest.err
29247   rm -f conftest.er1
29248   cat conftest.err >&5
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } >/dev/null && {
29251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29252          test ! -s conftest.err
29253        }; then
29254   # We can compile using X headers with no special include directory.
29255 ac_x_includes=
29256 else
29257   echo "$as_me: failed program was:" >&5
29258 sed 's/^/| /' conftest.$ac_ext >&5
29259
29260   for ac_dir in $ac_x_header_dirs; do
29261   if test -r "$ac_dir/X11/Xlib.h"; then
29262     ac_x_includes=$ac_dir
29263     break
29264   fi
29265 done
29266 fi
29267
29268 rm -f conftest.err conftest.$ac_ext
29269 fi # $ac_x_includes = no
29270
29271 if test "$ac_x_libraries" = no; then
29272   # Check for the libraries.
29273   # See if we find them without any special options.
29274   # Don't add to $LIBS permanently.
29275   ac_save_LIBS=$LIBS
29276   LIBS="-lX11 $LIBS"
29277   cat >conftest.$ac_ext <<_ACEOF
29278 /* confdefs.h.  */
29279 _ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h.  */
29283 #include <X11/Xlib.h>
29284 int
29285 main ()
29286 {
29287 XrmInitialize ()
29288   ;
29289   return 0;
29290 }
29291 _ACEOF
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296   *) ac_try_echo=$ac_try;;
29297 esac
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299   (eval "$ac_link") 2>conftest.er1
29300   ac_status=$?
29301   grep -v '^ *+' conftest.er1 >conftest.err
29302   rm -f conftest.er1
29303   cat conftest.err >&5
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); } && {
29306          test -z "$ac_c_werror_flag" ||
29307          test ! -s conftest.err
29308        } && test -s conftest$ac_exeext &&
29309        $as_test_x conftest$ac_exeext; then
29310   LIBS=$ac_save_LIBS
29311 # We can link X programs with no special library path.
29312 ac_x_libraries=
29313 else
29314   echo "$as_me: failed program was:" >&5
29315 sed 's/^/| /' conftest.$ac_ext >&5
29316
29317         LIBS=$ac_save_LIBS
29318 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29319 do
29320   # Don't even attempt the hair of trying to link an X program!
29321   for ac_extension in a so sl; do
29322     if test -r "$ac_dir/libX11.$ac_extension"; then
29323       ac_x_libraries=$ac_dir
29324       break 2
29325     fi
29326   done
29327 done
29328 fi
29329
29330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29331       conftest$ac_exeext conftest.$ac_ext
29332 fi # $ac_x_libraries = no
29333
29334 case $ac_x_includes,$ac_x_libraries in #(
29335   no,* | *,no | *\'*)
29336     # Didn't find X, or a directory has "'" in its name.
29337     ac_cv_have_x="have_x=no";; #(
29338   *)
29339     # Record where we found X for the cache.
29340     ac_cv_have_x="have_x=yes\
29341         ac_x_includes='$ac_x_includes'\
29342         ac_x_libraries='$ac_x_libraries'"
29343 esac
29344 fi
29345 ;; #(
29346     *) have_x=yes;;
29347   esac
29348   eval "$ac_cv_have_x"
29349 fi # $with_x != no
29350
29351 if test "$have_x" != yes; then
29352   { echo "$as_me:$LINENO: result: $have_x" >&5
29353 echo "${ECHO_T}$have_x" >&6; }
29354   no_x=yes
29355 else
29356   # If each of the values was on the command line, it overrides each guess.
29357   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29358   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29359   # Update the cache value to reflect the command line values.
29360   ac_cv_have_x="have_x=yes\
29361         ac_x_includes='$x_includes'\
29362         ac_x_libraries='$x_libraries'"
29363   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29364 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29365 fi
29366
29367 if test "$no_x" = yes; then
29368   # Not all programs may use this symbol, but it does not hurt to define it.
29369
29370 cat >>confdefs.h <<\_ACEOF
29371 #define X_DISPLAY_MISSING 1
29372 _ACEOF
29373
29374   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29375 else
29376   if test -n "$x_includes"; then
29377     X_CFLAGS="$X_CFLAGS -I$x_includes"
29378   fi
29379
29380   # It would also be nice to do this for all -L options, not just this one.
29381   if test -n "$x_libraries"; then
29382     X_LIBS="$X_LIBS -L$x_libraries"
29383     # For Solaris; some versions of Sun CC require a space after -R and
29384     # others require no space.  Words are not sufficient . . . .
29385     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29386 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29387     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29388     ac_xsave_c_werror_flag=$ac_c_werror_flag
29389     ac_c_werror_flag=yes
29390     cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396
29397 int
29398 main ()
29399 {
29400
29401   ;
29402   return 0;
29403 }
29404 _ACEOF
29405 rm -f conftest.$ac_objext conftest$ac_exeext
29406 if { (ac_try="$ac_link"
29407 case "(($ac_try" in
29408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409   *) ac_try_echo=$ac_try;;
29410 esac
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412   (eval "$ac_link") 2>conftest.er1
29413   ac_status=$?
29414   grep -v '^ *+' conftest.er1 >conftest.err
29415   rm -f conftest.er1
29416   cat conftest.err >&5
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); } && {
29419          test -z "$ac_c_werror_flag" ||
29420          test ! -s conftest.err
29421        } && test -s conftest$ac_exeext &&
29422        $as_test_x conftest$ac_exeext; then
29423   { echo "$as_me:$LINENO: result: no" >&5
29424 echo "${ECHO_T}no" >&6; }
29425        X_LIBS="$X_LIBS -R$x_libraries"
29426 else
29427   echo "$as_me: failed program was:" >&5
29428 sed 's/^/| /' conftest.$ac_ext >&5
29429
29430         LIBS="$ac_xsave_LIBS -R $x_libraries"
29431        cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437
29438 int
29439 main ()
29440 {
29441
29442   ;
29443   return 0;
29444 }
29445 _ACEOF
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (ac_try="$ac_link"
29448 case "(($ac_try" in
29449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450   *) ac_try_echo=$ac_try;;
29451 esac
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453   (eval "$ac_link") 2>conftest.er1
29454   ac_status=$?
29455   grep -v '^ *+' conftest.er1 >conftest.err
29456   rm -f conftest.er1
29457   cat conftest.err >&5
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); } && {
29460          test -z "$ac_c_werror_flag" ||
29461          test ! -s conftest.err
29462        } && test -s conftest$ac_exeext &&
29463        $as_test_x conftest$ac_exeext; then
29464   { echo "$as_me:$LINENO: result: yes" >&5
29465 echo "${ECHO_T}yes" >&6; }
29466           X_LIBS="$X_LIBS -R $x_libraries"
29467 else
29468   echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29470
29471         { echo "$as_me:$LINENO: result: neither works" >&5
29472 echo "${ECHO_T}neither works" >&6; }
29473 fi
29474
29475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29476       conftest$ac_exeext conftest.$ac_ext
29477 fi
29478
29479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29480       conftest$ac_exeext conftest.$ac_ext
29481     ac_c_werror_flag=$ac_xsave_c_werror_flag
29482     LIBS=$ac_xsave_LIBS
29483   fi
29484
29485   # Check for system-dependent libraries X programs must link with.
29486   # Do this before checking for the system-independent R6 libraries
29487   # (-lICE), since we may need -lsocket or whatever for X linking.
29488
29489   if test "$ISC" = yes; then
29490     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29491   else
29492     # Martyn Johnson says this is needed for Ultrix, if the X
29493     # libraries were built with DECnet support.  And Karl Berry says
29494     # the Alpha needs dnet_stub (dnet does not exist).
29495     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29496     cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502
29503 /* Override any GCC internal prototype to avoid an error.
29504    Use char because int might match the return type of a GCC
29505    builtin and then its argument prototype would still apply.  */
29506 #ifdef __cplusplus
29507 extern "C"
29508 #endif
29509 char XOpenDisplay ();
29510 int
29511 main ()
29512 {
29513 return XOpenDisplay ();
29514   ;
29515   return 0;
29516 }
29517 _ACEOF
29518 rm -f conftest.$ac_objext conftest$ac_exeext
29519 if { (ac_try="$ac_link"
29520 case "(($ac_try" in
29521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522   *) ac_try_echo=$ac_try;;
29523 esac
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525   (eval "$ac_link") 2>conftest.er1
29526   ac_status=$?
29527   grep -v '^ *+' conftest.er1 >conftest.err
29528   rm -f conftest.er1
29529   cat conftest.err >&5
29530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531   (exit $ac_status); } && {
29532          test -z "$ac_c_werror_flag" ||
29533          test ! -s conftest.err
29534        } && test -s conftest$ac_exeext &&
29535        $as_test_x conftest$ac_exeext; then
29536   :
29537 else
29538   echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29540
29541         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29542 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29543 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29544   echo $ECHO_N "(cached) $ECHO_C" >&6
29545 else
29546   ac_check_lib_save_LIBS=$LIBS
29547 LIBS="-ldnet  $LIBS"
29548 cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h.  */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h.  */
29554
29555 /* Override any GCC internal prototype to avoid an error.
29556    Use char because int might match the return type of a GCC
29557    builtin and then its argument prototype would still apply.  */
29558 #ifdef __cplusplus
29559 extern "C"
29560 #endif
29561 char dnet_ntoa ();
29562 int
29563 main ()
29564 {
29565 return dnet_ntoa ();
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 rm -f conftest.$ac_objext conftest$ac_exeext
29571 if { (ac_try="$ac_link"
29572 case "(($ac_try" in
29573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574   *) ac_try_echo=$ac_try;;
29575 esac
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577   (eval "$ac_link") 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } && {
29584          test -z "$ac_c_werror_flag" ||
29585          test ! -s conftest.err
29586        } && test -s conftest$ac_exeext &&
29587        $as_test_x conftest$ac_exeext; then
29588   ac_cv_lib_dnet_dnet_ntoa=yes
29589 else
29590   echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29592
29593         ac_cv_lib_dnet_dnet_ntoa=no
29594 fi
29595
29596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29597       conftest$ac_exeext conftest.$ac_ext
29598 LIBS=$ac_check_lib_save_LIBS
29599 fi
29600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29601 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29602 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29603   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29604 fi
29605
29606     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29607       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29608 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29609 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29610   echo $ECHO_N "(cached) $ECHO_C" >&6
29611 else
29612   ac_check_lib_save_LIBS=$LIBS
29613 LIBS="-ldnet_stub  $LIBS"
29614 cat >conftest.$ac_ext <<_ACEOF
29615 /* confdefs.h.  */
29616 _ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h.  */
29620
29621 /* Override any GCC internal prototype to avoid an error.
29622    Use char because int might match the return type of a GCC
29623    builtin and then its argument prototype would still apply.  */
29624 #ifdef __cplusplus
29625 extern "C"
29626 #endif
29627 char dnet_ntoa ();
29628 int
29629 main ()
29630 {
29631 return dnet_ntoa ();
29632   ;
29633   return 0;
29634 }
29635 _ACEOF
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (ac_try="$ac_link"
29638 case "(($ac_try" in
29639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640   *) ac_try_echo=$ac_try;;
29641 esac
29642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643   (eval "$ac_link") 2>conftest.er1
29644   ac_status=$?
29645   grep -v '^ *+' conftest.er1 >conftest.err
29646   rm -f conftest.er1
29647   cat conftest.err >&5
29648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649   (exit $ac_status); } && {
29650          test -z "$ac_c_werror_flag" ||
29651          test ! -s conftest.err
29652        } && test -s conftest$ac_exeext &&
29653        $as_test_x conftest$ac_exeext; then
29654   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29655 else
29656   echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29658
29659         ac_cv_lib_dnet_stub_dnet_ntoa=no
29660 fi
29661
29662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29663       conftest$ac_exeext conftest.$ac_ext
29664 LIBS=$ac_check_lib_save_LIBS
29665 fi
29666 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29667 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29668 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29669   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29670 fi
29671
29672     fi
29673 fi
29674
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676       conftest$ac_exeext conftest.$ac_ext
29677     LIBS="$ac_xsave_LIBS"
29678
29679     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29680     # to get the SysV transport functions.
29681     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29682     # needs -lnsl.
29683     # The nsl library prevents programs from opening the X display
29684     # on Irix 5.2, according to T.E. Dickey.
29685     # The functions gethostbyname, getservbyname, and inet_addr are
29686     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29687     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29688 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29689 if test "${ac_cv_func_gethostbyname+set}" = set; then
29690   echo $ECHO_N "(cached) $ECHO_C" >&6
29691 else
29692   cat >conftest.$ac_ext <<_ACEOF
29693 /* confdefs.h.  */
29694 _ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h.  */
29698 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29700 #define gethostbyname innocuous_gethostbyname
29701
29702 /* System header to define __stub macros and hopefully few prototypes,
29703     which can conflict with char gethostbyname (); below.
29704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29705     <limits.h> exists even on freestanding compilers.  */
29706
29707 #ifdef __STDC__
29708 # include <limits.h>
29709 #else
29710 # include <assert.h>
29711 #endif
29712
29713 #undef gethostbyname
29714
29715 /* Override any GCC internal prototype to avoid an error.
29716    Use char because int might match the return type of a GCC
29717    builtin and then its argument prototype would still apply.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 char gethostbyname ();
29722 /* The GNU C library defines this for functions which it implements
29723     to always fail with ENOSYS.  Some functions are actually named
29724     something starting with __ and the normal name is an alias.  */
29725 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29726 choke me
29727 #endif
29728
29729 int
29730 main ()
29731 {
29732 return gethostbyname ();
29733   ;
29734   return 0;
29735 }
29736 _ACEOF
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_link") 2>conftest.er1
29745   ac_status=$?
29746   grep -v '^ *+' conftest.er1 >conftest.err
29747   rm -f conftest.er1
29748   cat conftest.err >&5
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); } && {
29751          test -z "$ac_c_werror_flag" ||
29752          test ! -s conftest.err
29753        } && test -s conftest$ac_exeext &&
29754        $as_test_x conftest$ac_exeext; then
29755   ac_cv_func_gethostbyname=yes
29756 else
29757   echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29759
29760         ac_cv_func_gethostbyname=no
29761 fi
29762
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764       conftest$ac_exeext conftest.$ac_ext
29765 fi
29766 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29767 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29768
29769     if test $ac_cv_func_gethostbyname = no; then
29770       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29771 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29772 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29773   echo $ECHO_N "(cached) $ECHO_C" >&6
29774 else
29775   ac_check_lib_save_LIBS=$LIBS
29776 LIBS="-lnsl  $LIBS"
29777 cat >conftest.$ac_ext <<_ACEOF
29778 /* confdefs.h.  */
29779 _ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h.  */
29783
29784 /* Override any GCC internal prototype to avoid an error.
29785    Use char because int might match the return type of a GCC
29786    builtin and then its argument prototype would still apply.  */
29787 #ifdef __cplusplus
29788 extern "C"
29789 #endif
29790 char gethostbyname ();
29791 int
29792 main ()
29793 {
29794 return gethostbyname ();
29795   ;
29796   return 0;
29797 }
29798 _ACEOF
29799 rm -f conftest.$ac_objext conftest$ac_exeext
29800 if { (ac_try="$ac_link"
29801 case "(($ac_try" in
29802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803   *) ac_try_echo=$ac_try;;
29804 esac
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806   (eval "$ac_link") 2>conftest.er1
29807   ac_status=$?
29808   grep -v '^ *+' conftest.er1 >conftest.err
29809   rm -f conftest.er1
29810   cat conftest.err >&5
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); } && {
29813          test -z "$ac_c_werror_flag" ||
29814          test ! -s conftest.err
29815        } && test -s conftest$ac_exeext &&
29816        $as_test_x conftest$ac_exeext; then
29817   ac_cv_lib_nsl_gethostbyname=yes
29818 else
29819   echo "$as_me: failed program was:" >&5
29820 sed 's/^/| /' conftest.$ac_ext >&5
29821
29822         ac_cv_lib_nsl_gethostbyname=no
29823 fi
29824
29825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29826       conftest$ac_exeext conftest.$ac_ext
29827 LIBS=$ac_check_lib_save_LIBS
29828 fi
29829 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29830 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29831 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29832   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29833 fi
29834
29835       if test $ac_cv_lib_nsl_gethostbyname = no; then
29836         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29837 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29838 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29839   echo $ECHO_N "(cached) $ECHO_C" >&6
29840 else
29841   ac_check_lib_save_LIBS=$LIBS
29842 LIBS="-lbsd  $LIBS"
29843 cat >conftest.$ac_ext <<_ACEOF
29844 /* confdefs.h.  */
29845 _ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h.  */
29849
29850 /* Override any GCC internal prototype to avoid an error.
29851    Use char because int might match the return type of a GCC
29852    builtin and then its argument prototype would still apply.  */
29853 #ifdef __cplusplus
29854 extern "C"
29855 #endif
29856 char gethostbyname ();
29857 int
29858 main ()
29859 {
29860 return gethostbyname ();
29861   ;
29862   return 0;
29863 }
29864 _ACEOF
29865 rm -f conftest.$ac_objext conftest$ac_exeext
29866 if { (ac_try="$ac_link"
29867 case "(($ac_try" in
29868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869   *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872   (eval "$ac_link") 2>conftest.er1
29873   ac_status=$?
29874   grep -v '^ *+' conftest.er1 >conftest.err
29875   rm -f conftest.er1
29876   cat conftest.err >&5
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); } && {
29879          test -z "$ac_c_werror_flag" ||
29880          test ! -s conftest.err
29881        } && test -s conftest$ac_exeext &&
29882        $as_test_x conftest$ac_exeext; then
29883   ac_cv_lib_bsd_gethostbyname=yes
29884 else
29885   echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29887
29888         ac_cv_lib_bsd_gethostbyname=no
29889 fi
29890
29891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29892       conftest$ac_exeext conftest.$ac_ext
29893 LIBS=$ac_check_lib_save_LIBS
29894 fi
29895 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29896 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29897 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29898   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29899 fi
29900
29901       fi
29902     fi
29903
29904     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29905     # socket/setsockopt and other routines are undefined under SCO ODT
29906     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29907     # on later versions), says Simon Leinen: it contains gethostby*
29908     # variants that don't use the name server (or something).  -lsocket
29909     # must be given before -lnsl if both are needed.  We assume that
29910     # if connect needs -lnsl, so does gethostbyname.
29911     { echo "$as_me:$LINENO: checking for connect" >&5
29912 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29913 if test "${ac_cv_func_connect+set}" = set; then
29914   echo $ECHO_N "(cached) $ECHO_C" >&6
29915 else
29916   cat >conftest.$ac_ext <<_ACEOF
29917 /* confdefs.h.  */
29918 _ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h.  */
29922 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29924 #define connect innocuous_connect
29925
29926 /* System header to define __stub macros and hopefully few prototypes,
29927     which can conflict with char connect (); below.
29928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29929     <limits.h> exists even on freestanding compilers.  */
29930
29931 #ifdef __STDC__
29932 # include <limits.h>
29933 #else
29934 # include <assert.h>
29935 #endif
29936
29937 #undef connect
29938
29939 /* Override any GCC internal prototype to avoid an error.
29940    Use char because int might match the return type of a GCC
29941    builtin and then its argument prototype would still apply.  */
29942 #ifdef __cplusplus
29943 extern "C"
29944 #endif
29945 char connect ();
29946 /* The GNU C library defines this for functions which it implements
29947     to always fail with ENOSYS.  Some functions are actually named
29948     something starting with __ and the normal name is an alias.  */
29949 #if defined __stub_connect || defined __stub___connect
29950 choke me
29951 #endif
29952
29953 int
29954 main ()
29955 {
29956 return connect ();
29957   ;
29958   return 0;
29959 }
29960 _ACEOF
29961 rm -f conftest.$ac_objext conftest$ac_exeext
29962 if { (ac_try="$ac_link"
29963 case "(($ac_try" in
29964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965   *) ac_try_echo=$ac_try;;
29966 esac
29967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29968   (eval "$ac_link") 2>conftest.er1
29969   ac_status=$?
29970   grep -v '^ *+' conftest.er1 >conftest.err
29971   rm -f conftest.er1
29972   cat conftest.err >&5
29973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974   (exit $ac_status); } && {
29975          test -z "$ac_c_werror_flag" ||
29976          test ! -s conftest.err
29977        } && test -s conftest$ac_exeext &&
29978        $as_test_x conftest$ac_exeext; then
29979   ac_cv_func_connect=yes
29980 else
29981   echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29983
29984         ac_cv_func_connect=no
29985 fi
29986
29987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29988       conftest$ac_exeext conftest.$ac_ext
29989 fi
29990 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29991 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29992
29993     if test $ac_cv_func_connect = no; then
29994       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29995 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29996 if test "${ac_cv_lib_socket_connect+set}" = set; then
29997   echo $ECHO_N "(cached) $ECHO_C" >&6
29998 else
29999   ac_check_lib_save_LIBS=$LIBS
30000 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30001 cat >conftest.$ac_ext <<_ACEOF
30002 /* confdefs.h.  */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h.  */
30007
30008 /* Override any GCC internal prototype to avoid an error.
30009    Use char because int might match the return type of a GCC
30010    builtin and then its argument prototype would still apply.  */
30011 #ifdef __cplusplus
30012 extern "C"
30013 #endif
30014 char connect ();
30015 int
30016 main ()
30017 {
30018 return connect ();
30019   ;
30020   return 0;
30021 }
30022 _ACEOF
30023 rm -f conftest.$ac_objext conftest$ac_exeext
30024 if { (ac_try="$ac_link"
30025 case "(($ac_try" in
30026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027   *) ac_try_echo=$ac_try;;
30028 esac
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030   (eval "$ac_link") 2>conftest.er1
30031   ac_status=$?
30032   grep -v '^ *+' conftest.er1 >conftest.err
30033   rm -f conftest.er1
30034   cat conftest.err >&5
30035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036   (exit $ac_status); } && {
30037          test -z "$ac_c_werror_flag" ||
30038          test ! -s conftest.err
30039        } && test -s conftest$ac_exeext &&
30040        $as_test_x conftest$ac_exeext; then
30041   ac_cv_lib_socket_connect=yes
30042 else
30043   echo "$as_me: failed program was:" >&5
30044 sed 's/^/| /' conftest.$ac_ext >&5
30045
30046         ac_cv_lib_socket_connect=no
30047 fi
30048
30049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30050       conftest$ac_exeext conftest.$ac_ext
30051 LIBS=$ac_check_lib_save_LIBS
30052 fi
30053 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30054 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30055 if test $ac_cv_lib_socket_connect = yes; then
30056   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30057 fi
30058
30059     fi
30060
30061     # Guillermo Gomez says -lposix is necessary on A/UX.
30062     { echo "$as_me:$LINENO: checking for remove" >&5
30063 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30064 if test "${ac_cv_func_remove+set}" = set; then
30065   echo $ECHO_N "(cached) $ECHO_C" >&6
30066 else
30067   cat >conftest.$ac_ext <<_ACEOF
30068 /* confdefs.h.  */
30069 _ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h.  */
30073 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30075 #define remove innocuous_remove
30076
30077 /* System header to define __stub macros and hopefully few prototypes,
30078     which can conflict with char remove (); below.
30079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30080     <limits.h> exists even on freestanding compilers.  */
30081
30082 #ifdef __STDC__
30083 # include <limits.h>
30084 #else
30085 # include <assert.h>
30086 #endif
30087
30088 #undef remove
30089
30090 /* Override any GCC internal prototype to avoid an error.
30091    Use char because int might match the return type of a GCC
30092    builtin and then its argument prototype would still apply.  */
30093 #ifdef __cplusplus
30094 extern "C"
30095 #endif
30096 char remove ();
30097 /* The GNU C library defines this for functions which it implements
30098     to always fail with ENOSYS.  Some functions are actually named
30099     something starting with __ and the normal name is an alias.  */
30100 #if defined __stub_remove || defined __stub___remove
30101 choke me
30102 #endif
30103
30104 int
30105 main ()
30106 {
30107 return remove ();
30108   ;
30109   return 0;
30110 }
30111 _ACEOF
30112 rm -f conftest.$ac_objext conftest$ac_exeext
30113 if { (ac_try="$ac_link"
30114 case "(($ac_try" in
30115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116   *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119   (eval "$ac_link") 2>conftest.er1
30120   ac_status=$?
30121   grep -v '^ *+' conftest.er1 >conftest.err
30122   rm -f conftest.er1
30123   cat conftest.err >&5
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); } && {
30126          test -z "$ac_c_werror_flag" ||
30127          test ! -s conftest.err
30128        } && test -s conftest$ac_exeext &&
30129        $as_test_x conftest$ac_exeext; then
30130   ac_cv_func_remove=yes
30131 else
30132   echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30134
30135         ac_cv_func_remove=no
30136 fi
30137
30138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30139       conftest$ac_exeext conftest.$ac_ext
30140 fi
30141 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30142 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30143
30144     if test $ac_cv_func_remove = no; then
30145       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30146 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30147 if test "${ac_cv_lib_posix_remove+set}" = set; then
30148   echo $ECHO_N "(cached) $ECHO_C" >&6
30149 else
30150   ac_check_lib_save_LIBS=$LIBS
30151 LIBS="-lposix  $LIBS"
30152 cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h.  */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h.  */
30158
30159 /* Override any GCC internal prototype to avoid an error.
30160    Use char because int might match the return type of a GCC
30161    builtin and then its argument prototype would still apply.  */
30162 #ifdef __cplusplus
30163 extern "C"
30164 #endif
30165 char remove ();
30166 int
30167 main ()
30168 {
30169 return remove ();
30170   ;
30171   return 0;
30172 }
30173 _ACEOF
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (ac_try="$ac_link"
30176 case "(($ac_try" in
30177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178   *) ac_try_echo=$ac_try;;
30179 esac
30180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181   (eval "$ac_link") 2>conftest.er1
30182   ac_status=$?
30183   grep -v '^ *+' conftest.er1 >conftest.err
30184   rm -f conftest.er1
30185   cat conftest.err >&5
30186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187   (exit $ac_status); } && {
30188          test -z "$ac_c_werror_flag" ||
30189          test ! -s conftest.err
30190        } && test -s conftest$ac_exeext &&
30191        $as_test_x conftest$ac_exeext; then
30192   ac_cv_lib_posix_remove=yes
30193 else
30194   echo "$as_me: failed program was:" >&5
30195 sed 's/^/| /' conftest.$ac_ext >&5
30196
30197         ac_cv_lib_posix_remove=no
30198 fi
30199
30200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30201       conftest$ac_exeext conftest.$ac_ext
30202 LIBS=$ac_check_lib_save_LIBS
30203 fi
30204 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30205 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30206 if test $ac_cv_lib_posix_remove = yes; then
30207   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30208 fi
30209
30210     fi
30211
30212     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30213     { echo "$as_me:$LINENO: checking for shmat" >&5
30214 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30215 if test "${ac_cv_func_shmat+set}" = set; then
30216   echo $ECHO_N "(cached) $ECHO_C" >&6
30217 else
30218   cat >conftest.$ac_ext <<_ACEOF
30219 /* confdefs.h.  */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h.  */
30224 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30226 #define shmat innocuous_shmat
30227
30228 /* System header to define __stub macros and hopefully few prototypes,
30229     which can conflict with char shmat (); below.
30230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30231     <limits.h> exists even on freestanding compilers.  */
30232
30233 #ifdef __STDC__
30234 # include <limits.h>
30235 #else
30236 # include <assert.h>
30237 #endif
30238
30239 #undef shmat
30240
30241 /* Override any GCC internal prototype to avoid an error.
30242    Use char because int might match the return type of a GCC
30243    builtin and then its argument prototype would still apply.  */
30244 #ifdef __cplusplus
30245 extern "C"
30246 #endif
30247 char shmat ();
30248 /* The GNU C library defines this for functions which it implements
30249     to always fail with ENOSYS.  Some functions are actually named
30250     something starting with __ and the normal name is an alias.  */
30251 #if defined __stub_shmat || defined __stub___shmat
30252 choke me
30253 #endif
30254
30255 int
30256 main ()
30257 {
30258 return shmat ();
30259   ;
30260   return 0;
30261 }
30262 _ACEOF
30263 rm -f conftest.$ac_objext conftest$ac_exeext
30264 if { (ac_try="$ac_link"
30265 case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_link") 2>conftest.er1
30271   ac_status=$?
30272   grep -v '^ *+' conftest.er1 >conftest.err
30273   rm -f conftest.er1
30274   cat conftest.err >&5
30275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276   (exit $ac_status); } && {
30277          test -z "$ac_c_werror_flag" ||
30278          test ! -s conftest.err
30279        } && test -s conftest$ac_exeext &&
30280        $as_test_x conftest$ac_exeext; then
30281   ac_cv_func_shmat=yes
30282 else
30283   echo "$as_me: failed program was:" >&5
30284 sed 's/^/| /' conftest.$ac_ext >&5
30285
30286         ac_cv_func_shmat=no
30287 fi
30288
30289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30290       conftest$ac_exeext conftest.$ac_ext
30291 fi
30292 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30293 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30294
30295     if test $ac_cv_func_shmat = no; then
30296       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30297 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30298 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30299   echo $ECHO_N "(cached) $ECHO_C" >&6
30300 else
30301   ac_check_lib_save_LIBS=$LIBS
30302 LIBS="-lipc  $LIBS"
30303 cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309
30310 /* Override any GCC internal prototype to avoid an error.
30311    Use char because int might match the return type of a GCC
30312    builtin and then its argument prototype would still apply.  */
30313 #ifdef __cplusplus
30314 extern "C"
30315 #endif
30316 char shmat ();
30317 int
30318 main ()
30319 {
30320 return shmat ();
30321   ;
30322   return 0;
30323 }
30324 _ACEOF
30325 rm -f conftest.$ac_objext conftest$ac_exeext
30326 if { (ac_try="$ac_link"
30327 case "(($ac_try" in
30328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329   *) ac_try_echo=$ac_try;;
30330 esac
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332   (eval "$ac_link") 2>conftest.er1
30333   ac_status=$?
30334   grep -v '^ *+' conftest.er1 >conftest.err
30335   rm -f conftest.er1
30336   cat conftest.err >&5
30337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } && {
30339          test -z "$ac_c_werror_flag" ||
30340          test ! -s conftest.err
30341        } && test -s conftest$ac_exeext &&
30342        $as_test_x conftest$ac_exeext; then
30343   ac_cv_lib_ipc_shmat=yes
30344 else
30345   echo "$as_me: failed program was:" >&5
30346 sed 's/^/| /' conftest.$ac_ext >&5
30347
30348         ac_cv_lib_ipc_shmat=no
30349 fi
30350
30351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30352       conftest$ac_exeext conftest.$ac_ext
30353 LIBS=$ac_check_lib_save_LIBS
30354 fi
30355 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30356 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30357 if test $ac_cv_lib_ipc_shmat = yes; then
30358   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30359 fi
30360
30361     fi
30362   fi
30363
30364   # Check for libraries that X11R6 Xt/Xaw programs need.
30365   ac_save_LDFLAGS=$LDFLAGS
30366   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30367   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30368   # check for ICE first), but we must link in the order -lSM -lICE or
30369   # we get undefined symbols.  So assume we have SM if we have ICE.
30370   # These have to be linked with before -lX11, unlike the other
30371   # libraries we check for below, so use a different variable.
30372   # John Interrante, Karl Berry
30373   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30374 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30375 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30376   echo $ECHO_N "(cached) $ECHO_C" >&6
30377 else
30378   ac_check_lib_save_LIBS=$LIBS
30379 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30380 cat >conftest.$ac_ext <<_ACEOF
30381 /* confdefs.h.  */
30382 _ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h.  */
30386
30387 /* Override any GCC internal prototype to avoid an error.
30388    Use char because int might match the return type of a GCC
30389    builtin and then its argument prototype would still apply.  */
30390 #ifdef __cplusplus
30391 extern "C"
30392 #endif
30393 char IceConnectionNumber ();
30394 int
30395 main ()
30396 {
30397 return IceConnectionNumber ();
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 rm -f conftest.$ac_objext conftest$ac_exeext
30403 if { (ac_try="$ac_link"
30404 case "(($ac_try" in
30405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406   *) ac_try_echo=$ac_try;;
30407 esac
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409   (eval "$ac_link") 2>conftest.er1
30410   ac_status=$?
30411   grep -v '^ *+' conftest.er1 >conftest.err
30412   rm -f conftest.er1
30413   cat conftest.err >&5
30414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415   (exit $ac_status); } && {
30416          test -z "$ac_c_werror_flag" ||
30417          test ! -s conftest.err
30418        } && test -s conftest$ac_exeext &&
30419        $as_test_x conftest$ac_exeext; then
30420   ac_cv_lib_ICE_IceConnectionNumber=yes
30421 else
30422   echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30424
30425         ac_cv_lib_ICE_IceConnectionNumber=no
30426 fi
30427
30428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30429       conftest$ac_exeext conftest.$ac_ext
30430 LIBS=$ac_check_lib_save_LIBS
30431 fi
30432 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30433 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30434 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30435   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30436 fi
30437
30438   LDFLAGS=$ac_save_LDFLAGS
30439
30440 fi
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473 for ac_header in \
30474    assert.h \
30475    fcntl.h \
30476    grp.h \
30477    pwd.h \
30478    libc.h \
30479    limits.h \
30480    stdarg.h \
30481    stdlib.h \
30482    stdint.h \
30483    string.h \
30484    strings.h \
30485    termios.h \
30486    termcap.h \
30487    term.h \
30488    unistd.h \
30489    sys/bitypes.h \
30490    sys/byteorder.h \
30491    sys/ioctl.h \
30492    sys/select.h \
30493    sys/socket.h \
30494    sys/sockio.h \
30495    sys/stat.h \
30496    sys/time.h \
30497    sys/types.h \
30498    arpa/nameser.h \
30499    resolv.h \
30500    mtio.h \
30501    sys/mtio.h \
30502    sys/tape.h \
30503    regex.h \
30504
30505 do
30506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30508   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30511   echo $ECHO_N "(cached) $ECHO_C" >&6
30512 fi
30513 ac_res=`eval echo '${'$as_ac_Header'}'`
30514                { echo "$as_me:$LINENO: result: $ac_res" >&5
30515 echo "${ECHO_T}$ac_res" >&6; }
30516 else
30517   # Is the header compilable?
30518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30520 cat >conftest.$ac_ext <<_ACEOF
30521 /* confdefs.h.  */
30522 _ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h.  */
30526 $ac_includes_default
30527 #include <$ac_header>
30528 _ACEOF
30529 rm -f conftest.$ac_objext
30530 if { (ac_try="$ac_compile"
30531 case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_compile") 2>conftest.er1
30537   ac_status=$?
30538   grep -v '^ *+' conftest.er1 >conftest.err
30539   rm -f conftest.er1
30540   cat conftest.err >&5
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); } && {
30543          test -z "$ac_c_werror_flag" ||
30544          test ! -s conftest.err
30545        } && test -s conftest.$ac_objext; then
30546   ac_header_compiler=yes
30547 else
30548   echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30550
30551         ac_header_compiler=no
30552 fi
30553
30554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30556 echo "${ECHO_T}$ac_header_compiler" >&6; }
30557
30558 # Is the header present?
30559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30561 cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h.  */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h.  */
30567 #include <$ac_header>
30568 _ACEOF
30569 if { (ac_try="$ac_cpp conftest.$ac_ext"
30570 case "(($ac_try" in
30571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572   *) ac_try_echo=$ac_try;;
30573 esac
30574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30576   ac_status=$?
30577   grep -v '^ *+' conftest.er1 >conftest.err
30578   rm -f conftest.er1
30579   cat conftest.err >&5
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); } >/dev/null && {
30582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30583          test ! -s conftest.err
30584        }; then
30585   ac_header_preproc=yes
30586 else
30587   echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30589
30590   ac_header_preproc=no
30591 fi
30592
30593 rm -f conftest.err conftest.$ac_ext
30594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30595 echo "${ECHO_T}$ac_header_preproc" >&6; }
30596
30597 # So?  What about this header?
30598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30599   yes:no: )
30600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30604     ac_header_preproc=yes
30605     ;;
30606   no:yes:* )
30607     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30609     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30610 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30611     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30613     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30614 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30617     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30619
30620     ;;
30621 esac
30622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30625   echo $ECHO_N "(cached) $ECHO_C" >&6
30626 else
30627   eval "$as_ac_Header=\$ac_header_preproc"
30628 fi
30629 ac_res=`eval echo '${'$as_ac_Header'}'`
30630                { echo "$as_me:$LINENO: result: $ac_res" >&5
30631 echo "${ECHO_T}$ac_res" >&6; }
30632
30633 fi
30634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30635   cat >>confdefs.h <<_ACEOF
30636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30637 _ACEOF
30638
30639 fi
30640
30641 done
30642
30643 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30644 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30645 if test "${ac_cv_header_stdc+set}" = set; then
30646   echo $ECHO_N "(cached) $ECHO_C" >&6
30647 else
30648   cat >conftest.$ac_ext <<_ACEOF
30649 /* confdefs.h.  */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h.  */
30654 #include <stdlib.h>
30655 #include <stdarg.h>
30656 #include <string.h>
30657 #include <float.h>
30658
30659 int
30660 main ()
30661 {
30662
30663   ;
30664   return 0;
30665 }
30666 _ACEOF
30667 rm -f conftest.$ac_objext
30668 if { (ac_try="$ac_compile"
30669 case "(($ac_try" in
30670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671   *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674   (eval "$ac_compile") 2>conftest.er1
30675   ac_status=$?
30676   grep -v '^ *+' conftest.er1 >conftest.err
30677   rm -f conftest.er1
30678   cat conftest.err >&5
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); } && {
30681          test -z "$ac_c_werror_flag" ||
30682          test ! -s conftest.err
30683        } && test -s conftest.$ac_objext; then
30684   ac_cv_header_stdc=yes
30685 else
30686   echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30688
30689         ac_cv_header_stdc=no
30690 fi
30691
30692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30693
30694 if test $ac_cv_header_stdc = yes; then
30695   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30696   cat >conftest.$ac_ext <<_ACEOF
30697 /* confdefs.h.  */
30698 _ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h.  */
30702 #include <string.h>
30703
30704 _ACEOF
30705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30706   $EGREP "memchr" >/dev/null 2>&1; then
30707   :
30708 else
30709   ac_cv_header_stdc=no
30710 fi
30711 rm -f conftest*
30712
30713 fi
30714
30715 if test $ac_cv_header_stdc = yes; then
30716   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30717   cat >conftest.$ac_ext <<_ACEOF
30718 /* confdefs.h.  */
30719 _ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h.  */
30723 #include <stdlib.h>
30724
30725 _ACEOF
30726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30727   $EGREP "free" >/dev/null 2>&1; then
30728   :
30729 else
30730   ac_cv_header_stdc=no
30731 fi
30732 rm -f conftest*
30733
30734 fi
30735
30736 if test $ac_cv_header_stdc = yes; then
30737   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30738   if test "$cross_compiling" = yes; then
30739   :
30740 else
30741   cat >conftest.$ac_ext <<_ACEOF
30742 /* confdefs.h.  */
30743 _ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h.  */
30747 #include <ctype.h>
30748 #include <stdlib.h>
30749 #if ((' ' & 0x0FF) == 0x020)
30750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30752 #else
30753 # define ISLOWER(c) \
30754                    (('a' <= (c) && (c) <= 'i') \
30755                      || ('j' <= (c) && (c) <= 'r') \
30756                      || ('s' <= (c) && (c) <= 'z'))
30757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30758 #endif
30759
30760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30761 int
30762 main ()
30763 {
30764   int i;
30765   for (i = 0; i < 256; i++)
30766     if (XOR (islower (i), ISLOWER (i))
30767         || toupper (i) != TOUPPER (i))
30768       return 2;
30769   return 0;
30770 }
30771 _ACEOF
30772 rm -f conftest$ac_exeext
30773 if { (ac_try="$ac_link"
30774 case "(($ac_try" in
30775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776   *) ac_try_echo=$ac_try;;
30777 esac
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779   (eval "$ac_link") 2>&5
30780   ac_status=$?
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30783   { (case "(($ac_try" in
30784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785   *) ac_try_echo=$ac_try;;
30786 esac
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788   (eval "$ac_try") 2>&5
30789   ac_status=$?
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); }; }; then
30792   :
30793 else
30794   echo "$as_me: program exited with status $ac_status" >&5
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798 ( exit $ac_status )
30799 ac_cv_header_stdc=no
30800 fi
30801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30802 fi
30803
30804
30805 fi
30806 fi
30807 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30808 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30809 if test $ac_cv_header_stdc = yes; then
30810
30811 cat >>confdefs.h <<\_ACEOF
30812 #define STDC_HEADERS 1
30813 _ACEOF
30814
30815 fi
30816
30817 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30818 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30819 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30820   echo $ECHO_N "(cached) $ECHO_C" >&6
30821 else
30822   cat >conftest.$ac_ext <<_ACEOF
30823 /* confdefs.h.  */
30824 _ACEOF
30825 cat confdefs.h >>conftest.$ac_ext
30826 cat >>conftest.$ac_ext <<_ACEOF
30827 /* end confdefs.h.  */
30828 #include <sys/types.h>
30829 int
30830 main ()
30831 {
30832 return makedev(0, 0);
30833   ;
30834   return 0;
30835 }
30836 _ACEOF
30837 rm -f conftest.$ac_objext conftest$ac_exeext
30838 if { (ac_try="$ac_link"
30839 case "(($ac_try" in
30840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841   *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844   (eval "$ac_link") 2>conftest.er1
30845   ac_status=$?
30846   grep -v '^ *+' conftest.er1 >conftest.err
30847   rm -f conftest.er1
30848   cat conftest.err >&5
30849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850   (exit $ac_status); } && {
30851          test -z "$ac_c_werror_flag" ||
30852          test ! -s conftest.err
30853        } && test -s conftest$ac_exeext &&
30854        $as_test_x conftest$ac_exeext; then
30855   ac_cv_header_sys_types_h_makedev=yes
30856 else
30857   echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30859
30860         ac_cv_header_sys_types_h_makedev=no
30861 fi
30862
30863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30864       conftest$ac_exeext conftest.$ac_ext
30865
30866 fi
30867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30868 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30869
30870 if test $ac_cv_header_sys_types_h_makedev = no; then
30871 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30872   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30873 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 fi
30877 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30878 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30879 else
30880   # Is the header compilable?
30881 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30882 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30883 cat >conftest.$ac_ext <<_ACEOF
30884 /* confdefs.h.  */
30885 _ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h.  */
30889 $ac_includes_default
30890 #include <sys/mkdev.h>
30891 _ACEOF
30892 rm -f conftest.$ac_objext
30893 if { (ac_try="$ac_compile"
30894 case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_compile") 2>conftest.er1
30900   ac_status=$?
30901   grep -v '^ *+' conftest.er1 >conftest.err
30902   rm -f conftest.er1
30903   cat conftest.err >&5
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); } && {
30906          test -z "$ac_c_werror_flag" ||
30907          test ! -s conftest.err
30908        } && test -s conftest.$ac_objext; then
30909   ac_header_compiler=yes
30910 else
30911   echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30913
30914         ac_header_compiler=no
30915 fi
30916
30917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30919 echo "${ECHO_T}$ac_header_compiler" >&6; }
30920
30921 # Is the header present?
30922 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30923 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30924 cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930 #include <sys/mkdev.h>
30931 _ACEOF
30932 if { (ac_try="$ac_cpp conftest.$ac_ext"
30933 case "(($ac_try" in
30934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935   *) ac_try_echo=$ac_try;;
30936 esac
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30939   ac_status=$?
30940   grep -v '^ *+' conftest.er1 >conftest.err
30941   rm -f conftest.er1
30942   cat conftest.err >&5
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); } >/dev/null && {
30945          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30946          test ! -s conftest.err
30947        }; then
30948   ac_header_preproc=yes
30949 else
30950   echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953   ac_header_preproc=no
30954 fi
30955
30956 rm -f conftest.err conftest.$ac_ext
30957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30958 echo "${ECHO_T}$ac_header_preproc" >&6; }
30959
30960 # So?  What about this header?
30961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30962   yes:no: )
30963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30964 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30965     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30967     ac_header_preproc=yes
30968     ;;
30969   no:yes:* )
30970     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30971 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30972     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30973 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30974     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30975 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30976     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30978     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30980     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30981 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30982
30983     ;;
30984 esac
30985 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30986 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30987 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30988   echo $ECHO_N "(cached) $ECHO_C" >&6
30989 else
30990   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30991 fi
30992 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30993 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30994
30995 fi
30996 if test $ac_cv_header_sys_mkdev_h = yes; then
30997
30998 cat >>confdefs.h <<\_ACEOF
30999 #define MAJOR_IN_MKDEV 1
31000 _ACEOF
31001
31002 fi
31003
31004
31005
31006   if test $ac_cv_header_sys_mkdev_h = no; then
31007     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31008   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31009 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31010 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31011   echo $ECHO_N "(cached) $ECHO_C" >&6
31012 fi
31013 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31014 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31015 else
31016   # Is the header compilable?
31017 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31018 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31019 cat >conftest.$ac_ext <<_ACEOF
31020 /* confdefs.h.  */
31021 _ACEOF
31022 cat confdefs.h >>conftest.$ac_ext
31023 cat >>conftest.$ac_ext <<_ACEOF
31024 /* end confdefs.h.  */
31025 $ac_includes_default
31026 #include <sys/sysmacros.h>
31027 _ACEOF
31028 rm -f conftest.$ac_objext
31029 if { (ac_try="$ac_compile"
31030 case "(($ac_try" in
31031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032   *) ac_try_echo=$ac_try;;
31033 esac
31034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035   (eval "$ac_compile") 2>conftest.er1
31036   ac_status=$?
31037   grep -v '^ *+' conftest.er1 >conftest.err
31038   rm -f conftest.er1
31039   cat conftest.err >&5
31040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); } && {
31042          test -z "$ac_c_werror_flag" ||
31043          test ! -s conftest.err
31044        } && test -s conftest.$ac_objext; then
31045   ac_header_compiler=yes
31046 else
31047   echo "$as_me: failed program was:" >&5
31048 sed 's/^/| /' conftest.$ac_ext >&5
31049
31050         ac_header_compiler=no
31051 fi
31052
31053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31055 echo "${ECHO_T}$ac_header_compiler" >&6; }
31056
31057 # Is the header present?
31058 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31059 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31060 cat >conftest.$ac_ext <<_ACEOF
31061 /* confdefs.h.  */
31062 _ACEOF
31063 cat confdefs.h >>conftest.$ac_ext
31064 cat >>conftest.$ac_ext <<_ACEOF
31065 /* end confdefs.h.  */
31066 #include <sys/sysmacros.h>
31067 _ACEOF
31068 if { (ac_try="$ac_cpp conftest.$ac_ext"
31069 case "(($ac_try" in
31070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31071   *) ac_try_echo=$ac_try;;
31072 esac
31073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31075   ac_status=$?
31076   grep -v '^ *+' conftest.er1 >conftest.err
31077   rm -f conftest.er1
31078   cat conftest.err >&5
31079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080   (exit $ac_status); } >/dev/null && {
31081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31082          test ! -s conftest.err
31083        }; then
31084   ac_header_preproc=yes
31085 else
31086   echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31088
31089   ac_header_preproc=no
31090 fi
31091
31092 rm -f conftest.err conftest.$ac_ext
31093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31094 echo "${ECHO_T}$ac_header_preproc" >&6; }
31095
31096 # So?  What about this header?
31097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31098   yes:no: )
31099     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31100 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31101     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31102 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31103     ac_header_preproc=yes
31104     ;;
31105   no:yes:* )
31106     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31107 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31108     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31109 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31110     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31111 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31116     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31117 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31118
31119     ;;
31120 esac
31121 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31122 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31123 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31124   echo $ECHO_N "(cached) $ECHO_C" >&6
31125 else
31126   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31127 fi
31128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31129 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31130
31131 fi
31132 if test $ac_cv_header_sys_sysmacros_h = yes; then
31133
31134 cat >>confdefs.h <<\_ACEOF
31135 #define MAJOR_IN_SYSMACROS 1
31136 _ACEOF
31137
31138 fi
31139
31140
31141   fi
31142 fi
31143
31144
31145
31146
31147
31148
31149 ac_header_dirent=no
31150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31151   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31152 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31153 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31155   echo $ECHO_N "(cached) $ECHO_C" >&6
31156 else
31157   cat >conftest.$ac_ext <<_ACEOF
31158 /* confdefs.h.  */
31159 _ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h.  */
31163 #include <sys/types.h>
31164 #include <$ac_hdr>
31165
31166 int
31167 main ()
31168 {
31169 if ((DIR *) 0)
31170 return 0;
31171   ;
31172   return 0;
31173 }
31174 _ACEOF
31175 rm -f conftest.$ac_objext
31176 if { (ac_try="$ac_compile"
31177 case "(($ac_try" in
31178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179   *) ac_try_echo=$ac_try;;
31180 esac
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182   (eval "$ac_compile") 2>conftest.er1
31183   ac_status=$?
31184   grep -v '^ *+' conftest.er1 >conftest.err
31185   rm -f conftest.er1
31186   cat conftest.err >&5
31187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188   (exit $ac_status); } && {
31189          test -z "$ac_c_werror_flag" ||
31190          test ! -s conftest.err
31191        } && test -s conftest.$ac_objext; then
31192   eval "$as_ac_Header=yes"
31193 else
31194   echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31196
31197         eval "$as_ac_Header=no"
31198 fi
31199
31200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31201 fi
31202 ac_res=`eval echo '${'$as_ac_Header'}'`
31203                { echo "$as_me:$LINENO: result: $ac_res" >&5
31204 echo "${ECHO_T}$ac_res" >&6; }
31205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31206   cat >>confdefs.h <<_ACEOF
31207 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31208 _ACEOF
31209
31210 ac_header_dirent=$ac_hdr; break
31211 fi
31212
31213 done
31214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31215 if test $ac_header_dirent = dirent.h; then
31216   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31218 if test "${ac_cv_search_opendir+set}" = set; then
31219   echo $ECHO_N "(cached) $ECHO_C" >&6
31220 else
31221   ac_func_search_save_LIBS=$LIBS
31222 cat >conftest.$ac_ext <<_ACEOF
31223 /* confdefs.h.  */
31224 _ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h.  */
31228
31229 /* Override any GCC internal prototype to avoid an error.
31230    Use char because int might match the return type of a GCC
31231    builtin and then its argument prototype would still apply.  */
31232 #ifdef __cplusplus
31233 extern "C"
31234 #endif
31235 char opendir ();
31236 int
31237 main ()
31238 {
31239 return opendir ();
31240   ;
31241   return 0;
31242 }
31243 _ACEOF
31244 for ac_lib in '' dir; do
31245   if test -z "$ac_lib"; then
31246     ac_res="none required"
31247   else
31248     ac_res=-l$ac_lib
31249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31250   fi
31251   rm -f conftest.$ac_objext conftest$ac_exeext
31252 if { (ac_try="$ac_link"
31253 case "(($ac_try" in
31254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255   *) ac_try_echo=$ac_try;;
31256 esac
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258   (eval "$ac_link") 2>conftest.er1
31259   ac_status=$?
31260   grep -v '^ *+' conftest.er1 >conftest.err
31261   rm -f conftest.er1
31262   cat conftest.err >&5
31263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264   (exit $ac_status); } && {
31265          test -z "$ac_c_werror_flag" ||
31266          test ! -s conftest.err
31267        } && test -s conftest$ac_exeext &&
31268        $as_test_x conftest$ac_exeext; then
31269   ac_cv_search_opendir=$ac_res
31270 else
31271   echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31273
31274
31275 fi
31276
31277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31278       conftest$ac_exeext
31279   if test "${ac_cv_search_opendir+set}" = set; then
31280   break
31281 fi
31282 done
31283 if test "${ac_cv_search_opendir+set}" = set; then
31284   :
31285 else
31286   ac_cv_search_opendir=no
31287 fi
31288 rm conftest.$ac_ext
31289 LIBS=$ac_func_search_save_LIBS
31290 fi
31291 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31292 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31293 ac_res=$ac_cv_search_opendir
31294 if test "$ac_res" != no; then
31295   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31296
31297 fi
31298
31299 else
31300   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31302 if test "${ac_cv_search_opendir+set}" = set; then
31303   echo $ECHO_N "(cached) $ECHO_C" >&6
31304 else
31305   ac_func_search_save_LIBS=$LIBS
31306 cat >conftest.$ac_ext <<_ACEOF
31307 /* confdefs.h.  */
31308 _ACEOF
31309 cat confdefs.h >>conftest.$ac_ext
31310 cat >>conftest.$ac_ext <<_ACEOF
31311 /* end confdefs.h.  */
31312
31313 /* Override any GCC internal prototype to avoid an error.
31314    Use char because int might match the return type of a GCC
31315    builtin and then its argument prototype would still apply.  */
31316 #ifdef __cplusplus
31317 extern "C"
31318 #endif
31319 char opendir ();
31320 int
31321 main ()
31322 {
31323 return opendir ();
31324   ;
31325   return 0;
31326 }
31327 _ACEOF
31328 for ac_lib in '' x; do
31329   if test -z "$ac_lib"; then
31330     ac_res="none required"
31331   else
31332     ac_res=-l$ac_lib
31333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31334   fi
31335   rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339   *) ac_try_echo=$ac_try;;
31340 esac
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342   (eval "$ac_link") 2>conftest.er1
31343   ac_status=$?
31344   grep -v '^ *+' conftest.er1 >conftest.err
31345   rm -f conftest.er1
31346   cat conftest.err >&5
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); } && {
31349          test -z "$ac_c_werror_flag" ||
31350          test ! -s conftest.err
31351        } && test -s conftest$ac_exeext &&
31352        $as_test_x conftest$ac_exeext; then
31353   ac_cv_search_opendir=$ac_res
31354 else
31355   echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31357
31358
31359 fi
31360
31361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31362       conftest$ac_exeext
31363   if test "${ac_cv_search_opendir+set}" = set; then
31364   break
31365 fi
31366 done
31367 if test "${ac_cv_search_opendir+set}" = set; then
31368   :
31369 else
31370   ac_cv_search_opendir=no
31371 fi
31372 rm conftest.$ac_ext
31373 LIBS=$ac_func_search_save_LIBS
31374 fi
31375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31377 ac_res=$ac_cv_search_opendir
31378 if test "$ac_res" != no; then
31379   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31380
31381 fi
31382
31383 fi
31384
31385 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31386 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31387 if test "${ac_cv_header_stat_broken+set}" = set; then
31388   echo $ECHO_N "(cached) $ECHO_C" >&6
31389 else
31390   cat >conftest.$ac_ext <<_ACEOF
31391 /* confdefs.h.  */
31392 _ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h.  */
31396 #include <sys/types.h>
31397 #include <sys/stat.h>
31398
31399 #if defined S_ISBLK && defined S_IFDIR
31400 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31401 #endif
31402
31403 #if defined S_ISBLK && defined S_IFCHR
31404 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31405 #endif
31406
31407 #if defined S_ISLNK && defined S_IFREG
31408 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31409 #endif
31410
31411 #if defined S_ISSOCK && defined S_IFREG
31412 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31413 #endif
31414
31415 _ACEOF
31416 rm -f conftest.$ac_objext
31417 if { (ac_try="$ac_compile"
31418 case "(($ac_try" in
31419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31420   *) ac_try_echo=$ac_try;;
31421 esac
31422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31423   (eval "$ac_compile") 2>conftest.er1
31424   ac_status=$?
31425   grep -v '^ *+' conftest.er1 >conftest.err
31426   rm -f conftest.er1
31427   cat conftest.err >&5
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); } && {
31430          test -z "$ac_c_werror_flag" ||
31431          test ! -s conftest.err
31432        } && test -s conftest.$ac_objext; then
31433   ac_cv_header_stat_broken=no
31434 else
31435   echo "$as_me: failed program was:" >&5
31436 sed 's/^/| /' conftest.$ac_ext >&5
31437
31438         ac_cv_header_stat_broken=yes
31439 fi
31440
31441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31442 fi
31443 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31445 if test $ac_cv_header_stat_broken = yes; then
31446
31447 cat >>confdefs.h <<\_ACEOF
31448 #define STAT_MACROS_BROKEN 1
31449 _ACEOF
31450
31451 fi
31452
31453 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31454 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31455 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31456   echo $ECHO_N "(cached) $ECHO_C" >&6
31457 else
31458   cat >conftest.$ac_ext <<_ACEOF
31459 /* confdefs.h.  */
31460 _ACEOF
31461 cat confdefs.h >>conftest.$ac_ext
31462 cat >>conftest.$ac_ext <<_ACEOF
31463 /* end confdefs.h.  */
31464 #include <sys/types.h>
31465 #include <sys/wait.h>
31466 #ifndef WEXITSTATUS
31467 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31468 #endif
31469 #ifndef WIFEXITED
31470 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31471 #endif
31472
31473 int
31474 main ()
31475 {
31476   int s;
31477   wait (&s);
31478   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31479   ;
31480   return 0;
31481 }
31482 _ACEOF
31483 rm -f conftest.$ac_objext
31484 if { (ac_try="$ac_compile"
31485 case "(($ac_try" in
31486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487   *) ac_try_echo=$ac_try;;
31488 esac
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490   (eval "$ac_compile") 2>conftest.er1
31491   ac_status=$?
31492   grep -v '^ *+' conftest.er1 >conftest.err
31493   rm -f conftest.er1
31494   cat conftest.err >&5
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); } && {
31497          test -z "$ac_c_werror_flag" ||
31498          test ! -s conftest.err
31499        } && test -s conftest.$ac_objext; then
31500   ac_cv_header_sys_wait_h=yes
31501 else
31502   echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31504
31505         ac_cv_header_sys_wait_h=no
31506 fi
31507
31508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31509 fi
31510 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31511 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31512 if test $ac_cv_header_sys_wait_h = yes; then
31513
31514 cat >>confdefs.h <<\_ACEOF
31515 #define HAVE_SYS_WAIT_H 1
31516 _ACEOF
31517
31518 fi
31519
31520 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31521 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31522 if test "${ac_cv_header_time+set}" = set; then
31523   echo $ECHO_N "(cached) $ECHO_C" >&6
31524 else
31525   cat >conftest.$ac_ext <<_ACEOF
31526 /* confdefs.h.  */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h.  */
31531 #include <sys/types.h>
31532 #include <sys/time.h>
31533 #include <time.h>
31534
31535 int
31536 main ()
31537 {
31538 if ((struct tm *) 0)
31539 return 0;
31540   ;
31541   return 0;
31542 }
31543 _ACEOF
31544 rm -f conftest.$ac_objext
31545 if { (ac_try="$ac_compile"
31546 case "(($ac_try" in
31547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548   *) ac_try_echo=$ac_try;;
31549 esac
31550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551   (eval "$ac_compile") 2>conftest.er1
31552   ac_status=$?
31553   grep -v '^ *+' conftest.er1 >conftest.err
31554   rm -f conftest.er1
31555   cat conftest.err >&5
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); } && {
31558          test -z "$ac_c_werror_flag" ||
31559          test ! -s conftest.err
31560        } && test -s conftest.$ac_objext; then
31561   ac_cv_header_time=yes
31562 else
31563   echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31565
31566         ac_cv_header_time=no
31567 fi
31568
31569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31570 fi
31571 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31572 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31573 if test $ac_cv_header_time = yes; then
31574
31575 cat >>confdefs.h <<\_ACEOF
31576 #define TIME_WITH_SYS_TIME 1
31577 _ACEOF
31578
31579 fi
31580
31581 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31582 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31583 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31584   echo $ECHO_N "(cached) $ECHO_C" >&6
31585 else
31586   cat >conftest.$ac_ext <<_ACEOF
31587 /* confdefs.h.  */
31588 _ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h.  */
31592 $ac_includes_default
31593 int
31594 main ()
31595 {
31596 static struct stat ac_aggr;
31597 if (ac_aggr.st_blksize)
31598 return 0;
31599   ;
31600   return 0;
31601 }
31602 _ACEOF
31603 rm -f conftest.$ac_objext
31604 if { (ac_try="$ac_compile"
31605 case "(($ac_try" in
31606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607   *) ac_try_echo=$ac_try;;
31608 esac
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610   (eval "$ac_compile") 2>conftest.er1
31611   ac_status=$?
31612   grep -v '^ *+' conftest.er1 >conftest.err
31613   rm -f conftest.er1
31614   cat conftest.err >&5
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); } && {
31617          test -z "$ac_c_werror_flag" ||
31618          test ! -s conftest.err
31619        } && test -s conftest.$ac_objext; then
31620   ac_cv_member_struct_stat_st_blksize=yes
31621 else
31622   echo "$as_me: failed program was:" >&5
31623 sed 's/^/| /' conftest.$ac_ext >&5
31624
31625         cat >conftest.$ac_ext <<_ACEOF
31626 /* confdefs.h.  */
31627 _ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h.  */
31631 $ac_includes_default
31632 int
31633 main ()
31634 {
31635 static struct stat ac_aggr;
31636 if (sizeof ac_aggr.st_blksize)
31637 return 0;
31638   ;
31639   return 0;
31640 }
31641 _ACEOF
31642 rm -f conftest.$ac_objext
31643 if { (ac_try="$ac_compile"
31644 case "(($ac_try" in
31645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646   *) ac_try_echo=$ac_try;;
31647 esac
31648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649   (eval "$ac_compile") 2>conftest.er1
31650   ac_status=$?
31651   grep -v '^ *+' conftest.er1 >conftest.err
31652   rm -f conftest.er1
31653   cat conftest.err >&5
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); } && {
31656          test -z "$ac_c_werror_flag" ||
31657          test ! -s conftest.err
31658        } && test -s conftest.$ac_objext; then
31659   ac_cv_member_struct_stat_st_blksize=yes
31660 else
31661   echo "$as_me: failed program was:" >&5
31662 sed 's/^/| /' conftest.$ac_ext >&5
31663
31664         ac_cv_member_struct_stat_st_blksize=no
31665 fi
31666
31667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31668 fi
31669
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31671 fi
31672 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31673 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31674 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31675
31676 cat >>confdefs.h <<_ACEOF
31677 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31678 _ACEOF
31679
31680
31681 cat >>confdefs.h <<\_ACEOF
31682 #define HAVE_ST_BLKSIZE 1
31683 _ACEOF
31684
31685 fi
31686
31687
31688 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31689 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31690 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31691   echo $ECHO_N "(cached) $ECHO_C" >&6
31692 else
31693   cat >conftest.$ac_ext <<_ACEOF
31694 /* confdefs.h.  */
31695 _ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h.  */
31699 $ac_includes_default
31700 int
31701 main ()
31702 {
31703 static struct stat ac_aggr;
31704 if (ac_aggr.st_blocks)
31705 return 0;
31706   ;
31707   return 0;
31708 }
31709 _ACEOF
31710 rm -f conftest.$ac_objext
31711 if { (ac_try="$ac_compile"
31712 case "(($ac_try" in
31713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714   *) ac_try_echo=$ac_try;;
31715 esac
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717   (eval "$ac_compile") 2>conftest.er1
31718   ac_status=$?
31719   grep -v '^ *+' conftest.er1 >conftest.err
31720   rm -f conftest.er1
31721   cat conftest.err >&5
31722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); } && {
31724          test -z "$ac_c_werror_flag" ||
31725          test ! -s conftest.err
31726        } && test -s conftest.$ac_objext; then
31727   ac_cv_member_struct_stat_st_blocks=yes
31728 else
31729   echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31731
31732         cat >conftest.$ac_ext <<_ACEOF
31733 /* confdefs.h.  */
31734 _ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h.  */
31738 $ac_includes_default
31739 int
31740 main ()
31741 {
31742 static struct stat ac_aggr;
31743 if (sizeof ac_aggr.st_blocks)
31744 return 0;
31745   ;
31746   return 0;
31747 }
31748 _ACEOF
31749 rm -f conftest.$ac_objext
31750 if { (ac_try="$ac_compile"
31751 case "(($ac_try" in
31752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753   *) ac_try_echo=$ac_try;;
31754 esac
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756   (eval "$ac_compile") 2>conftest.er1
31757   ac_status=$?
31758   grep -v '^ *+' conftest.er1 >conftest.err
31759   rm -f conftest.er1
31760   cat conftest.err >&5
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); } && {
31763          test -z "$ac_c_werror_flag" ||
31764          test ! -s conftest.err
31765        } && test -s conftest.$ac_objext; then
31766   ac_cv_member_struct_stat_st_blocks=yes
31767 else
31768   echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31770
31771         ac_cv_member_struct_stat_st_blocks=no
31772 fi
31773
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775 fi
31776
31777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31778 fi
31779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31780 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31781 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31782
31783 cat >>confdefs.h <<_ACEOF
31784 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31785 _ACEOF
31786
31787
31788 cat >>confdefs.h <<\_ACEOF
31789 #define HAVE_ST_BLOCKS 1
31790 _ACEOF
31791
31792 else
31793   case " $LIBOBJS " in
31794   *" fileblocks.$ac_objext "* ) ;;
31795   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31796  ;;
31797 esac
31798
31799 fi
31800
31801
31802 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31803 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31804 if test "${ac_cv_struct_tm+set}" = set; then
31805   echo $ECHO_N "(cached) $ECHO_C" >&6
31806 else
31807   cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h.  */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h.  */
31813 #include <sys/types.h>
31814 #include <time.h>
31815
31816 int
31817 main ()
31818 {
31819 struct tm tm;
31820                                      int *p = &tm.tm_sec;
31821                                      return !p;
31822   ;
31823   return 0;
31824 }
31825 _ACEOF
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830   *) ac_try_echo=$ac_try;;
31831 esac
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833   (eval "$ac_compile") 2>conftest.er1
31834   ac_status=$?
31835   grep -v '^ *+' conftest.er1 >conftest.err
31836   rm -f conftest.er1
31837   cat conftest.err >&5
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); } && {
31840          test -z "$ac_c_werror_flag" ||
31841          test ! -s conftest.err
31842        } && test -s conftest.$ac_objext; then
31843   ac_cv_struct_tm=time.h
31844 else
31845   echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848         ac_cv_struct_tm=sys/time.h
31849 fi
31850
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 fi
31853 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31854 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31855 if test $ac_cv_struct_tm = sys/time.h; then
31856
31857 cat >>confdefs.h <<\_ACEOF
31858 #define TM_IN_SYS_TIME 1
31859 _ACEOF
31860
31861 fi
31862
31863 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31864 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31865 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31866   echo $ECHO_N "(cached) $ECHO_C" >&6
31867 else
31868   cat >conftest.$ac_ext <<_ACEOF
31869 /* confdefs.h.  */
31870 _ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h.  */
31874 #include <sys/types.h>
31875 #include <$ac_cv_struct_tm>
31876
31877
31878 int
31879 main ()
31880 {
31881 static struct tm ac_aggr;
31882 if (ac_aggr.tm_zone)
31883 return 0;
31884   ;
31885   return 0;
31886 }
31887 _ACEOF
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892   *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895   (eval "$ac_compile") 2>conftest.er1
31896   ac_status=$?
31897   grep -v '^ *+' conftest.er1 >conftest.err
31898   rm -f conftest.er1
31899   cat conftest.err >&5
31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); } && {
31902          test -z "$ac_c_werror_flag" ||
31903          test ! -s conftest.err
31904        } && test -s conftest.$ac_objext; then
31905   ac_cv_member_struct_tm_tm_zone=yes
31906 else
31907   echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31909
31910         cat >conftest.$ac_ext <<_ACEOF
31911 /* confdefs.h.  */
31912 _ACEOF
31913 cat confdefs.h >>conftest.$ac_ext
31914 cat >>conftest.$ac_ext <<_ACEOF
31915 /* end confdefs.h.  */
31916 #include <sys/types.h>
31917 #include <$ac_cv_struct_tm>
31918
31919
31920 int
31921 main ()
31922 {
31923 static struct tm ac_aggr;
31924 if (sizeof ac_aggr.tm_zone)
31925 return 0;
31926   ;
31927   return 0;
31928 }
31929 _ACEOF
31930 rm -f conftest.$ac_objext
31931 if { (ac_try="$ac_compile"
31932 case "(($ac_try" in
31933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934   *) ac_try_echo=$ac_try;;
31935 esac
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937   (eval "$ac_compile") 2>conftest.er1
31938   ac_status=$?
31939   grep -v '^ *+' conftest.er1 >conftest.err
31940   rm -f conftest.er1
31941   cat conftest.err >&5
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); } && {
31944          test -z "$ac_c_werror_flag" ||
31945          test ! -s conftest.err
31946        } && test -s conftest.$ac_objext; then
31947   ac_cv_member_struct_tm_tm_zone=yes
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952         ac_cv_member_struct_tm_tm_zone=no
31953 fi
31954
31955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31956 fi
31957
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 fi
31960 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31961 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31962 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31963
31964 cat >>confdefs.h <<_ACEOF
31965 #define HAVE_STRUCT_TM_TM_ZONE 1
31966 _ACEOF
31967
31968
31969 fi
31970
31971 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31972
31973 cat >>confdefs.h <<\_ACEOF
31974 #define HAVE_TM_ZONE 1
31975 _ACEOF
31976
31977 else
31978   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31979 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31980 if test "${ac_cv_have_decl_tzname+set}" = set; then
31981   echo $ECHO_N "(cached) $ECHO_C" >&6
31982 else
31983   cat >conftest.$ac_ext <<_ACEOF
31984 /* confdefs.h.  */
31985 _ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h.  */
31989 #include <time.h>
31990
31991 int
31992 main ()
31993 {
31994 #ifndef tzname
31995   (void) tzname;
31996 #endif
31997
31998   ;
31999   return 0;
32000 }
32001 _ACEOF
32002 rm -f conftest.$ac_objext
32003 if { (ac_try="$ac_compile"
32004 case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009   (eval "$ac_compile") 2>conftest.er1
32010   ac_status=$?
32011   grep -v '^ *+' conftest.er1 >conftest.err
32012   rm -f conftest.er1
32013   cat conftest.err >&5
32014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015   (exit $ac_status); } && {
32016          test -z "$ac_c_werror_flag" ||
32017          test ! -s conftest.err
32018        } && test -s conftest.$ac_objext; then
32019   ac_cv_have_decl_tzname=yes
32020 else
32021   echo "$as_me: failed program was:" >&5
32022 sed 's/^/| /' conftest.$ac_ext >&5
32023
32024         ac_cv_have_decl_tzname=no
32025 fi
32026
32027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32028 fi
32029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32030 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32031 if test $ac_cv_have_decl_tzname = yes; then
32032
32033 cat >>confdefs.h <<_ACEOF
32034 #define HAVE_DECL_TZNAME 1
32035 _ACEOF
32036
32037
32038 else
32039   cat >>confdefs.h <<_ACEOF
32040 #define HAVE_DECL_TZNAME 0
32041 _ACEOF
32042
32043
32044 fi
32045
32046
32047   { echo "$as_me:$LINENO: checking for tzname" >&5
32048 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32049 if test "${ac_cv_var_tzname+set}" = set; then
32050   echo $ECHO_N "(cached) $ECHO_C" >&6
32051 else
32052   cat >conftest.$ac_ext <<_ACEOF
32053 /* confdefs.h.  */
32054 _ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h.  */
32058 #include <time.h>
32059 #if !HAVE_DECL_TZNAME
32060 extern char *tzname[];
32061 #endif
32062
32063 int
32064 main ()
32065 {
32066 return tzname[0][0];
32067   ;
32068   return 0;
32069 }
32070 _ACEOF
32071 rm -f conftest.$ac_objext conftest$ac_exeext
32072 if { (ac_try="$ac_link"
32073 case "(($ac_try" in
32074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32075   *) ac_try_echo=$ac_try;;
32076 esac
32077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32078   (eval "$ac_link") 2>conftest.er1
32079   ac_status=$?
32080   grep -v '^ *+' conftest.er1 >conftest.err
32081   rm -f conftest.er1
32082   cat conftest.err >&5
32083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084   (exit $ac_status); } && {
32085          test -z "$ac_c_werror_flag" ||
32086          test ! -s conftest.err
32087        } && test -s conftest$ac_exeext &&
32088        $as_test_x conftest$ac_exeext; then
32089   ac_cv_var_tzname=yes
32090 else
32091   echo "$as_me: failed program was:" >&5
32092 sed 's/^/| /' conftest.$ac_ext >&5
32093
32094         ac_cv_var_tzname=no
32095 fi
32096
32097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32098       conftest$ac_exeext conftest.$ac_ext
32099 fi
32100 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32101 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32102   if test $ac_cv_var_tzname = yes; then
32103
32104 cat >>confdefs.h <<\_ACEOF
32105 #define HAVE_TZNAME 1
32106 _ACEOF
32107
32108   fi
32109 fi
32110
32111
32112 { echo "$as_me:$LINENO: checking for utime.h" >&5
32113 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32114 if test "${ba_cv_header_utime_h+set}" = set; then
32115   echo $ECHO_N "(cached) $ECHO_C" >&6
32116 else
32117
32118        cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h.  */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h.  */
32124
32125               #include <sys/types.h>
32126               #include <utime.h>
32127
32128 int
32129 main ()
32130 {
32131
32132               struct utimbuf foo
32133
32134   ;
32135   return 0;
32136 }
32137 _ACEOF
32138 rm -f conftest.$ac_objext
32139 if { (ac_try="$ac_compile"
32140 case "(($ac_try" in
32141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142   *) ac_try_echo=$ac_try;;
32143 esac
32144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145   (eval "$ac_compile") 2>conftest.er1
32146   ac_status=$?
32147   grep -v '^ *+' conftest.er1 >conftest.err
32148   rm -f conftest.er1
32149   cat conftest.err >&5
32150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151   (exit $ac_status); } && {
32152          test -z "$ac_c_werror_flag" ||
32153          test ! -s conftest.err
32154        } && test -s conftest.$ac_objext; then
32155
32156               ba_cv_header_utime_h=yes
32157
32158 else
32159   echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32161
32162
32163               ba_cv_header_utime_h=no
32164
32165
32166 fi
32167
32168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32169
32170
32171 fi
32172 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32173 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32174 test $ba_cv_header_utime_h = yes &&
32175 cat >>confdefs.h <<\_ACEOF
32176 #define HAVE_UTIME_H 1
32177 _ACEOF
32178
32179
32180 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32181 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32182 if test "${ba_cv_header_socklen_t+set}" = set; then
32183   echo $ECHO_N "(cached) $ECHO_C" >&6
32184 else
32185
32186        cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192
32193               #include <sys/types.h>
32194               #include <sys/socket.h>
32195
32196 int
32197 main ()
32198 {
32199
32200               socklen_t x
32201
32202   ;
32203   return 0;
32204 }
32205 _ACEOF
32206 rm -f conftest.$ac_objext
32207 if { (ac_try="$ac_compile"
32208 case "(($ac_try" in
32209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210   *) ac_try_echo=$ac_try;;
32211 esac
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213   (eval "$ac_compile") 2>conftest.er1
32214   ac_status=$?
32215   grep -v '^ *+' conftest.er1 >conftest.err
32216   rm -f conftest.er1
32217   cat conftest.err >&5
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); } && {
32220          test -z "$ac_c_werror_flag" ||
32221          test ! -s conftest.err
32222        } && test -s conftest.$ac_objext; then
32223
32224              ba_cv_header_socklen_t=yes
32225
32226 else
32227   echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32229
32230
32231              ba_cv_header_socklen_t=no
32232
32233
32234 fi
32235
32236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32237
32238
32239 fi
32240 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32241 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32242 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_SOCKLEN_T 1
32244 _ACEOF
32245
32246
32247 { echo "$as_me:$LINENO: checking for bigendian" >&5
32248 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32249 if test "${ba_cv_bigendian+set}" = set; then
32250   echo $ECHO_N "(cached) $ECHO_C" >&6
32251 else
32252
32253        if test "$cross_compiling" = yes; then
32254
32255              ba_cv_bigendian=no
32256
32257
32258 else
32259   cat >conftest.$ac_ext <<_ACEOF
32260 /* confdefs.h.  */
32261 _ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h.  */
32265
32266               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32267
32268 _ACEOF
32269 rm -f conftest$ac_exeext
32270 if { (ac_try="$ac_link"
32271 case "(($ac_try" in
32272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273   *) ac_try_echo=$ac_try;;
32274 esac
32275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276   (eval "$ac_link") 2>&5
32277   ac_status=$?
32278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32280   { (case "(($ac_try" in
32281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282   *) ac_try_echo=$ac_try;;
32283 esac
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285   (eval "$ac_try") 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); }; }; then
32289
32290              ba_cv_bigendian=yes
32291
32292 else
32293   echo "$as_me: program exited with status $ac_status" >&5
32294 echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297 ( exit $ac_status )
32298
32299              ba_cv_bigendian=no
32300
32301 fi
32302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32303 fi
32304
32305
32306
32307
32308 fi
32309 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32310 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32311 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_BIGENDIAN 1
32313 _ACEOF
32314
32315
32316 ac_ext=cpp
32317 ac_cpp='$CXXCPP $CPPFLAGS'
32318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32321
32322 { echo "$as_me:$LINENO: checking for typeof" >&5
32323 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32324 if test "${ba_cv_have_typeof+set}" = set; then
32325   echo $ECHO_N "(cached) $ECHO_C" >&6
32326 else
32327
32328        if test "$cross_compiling" = yes; then
32329
32330               ba_cv_have_typeof=no
32331
32332
32333 else
32334   cat >conftest.$ac_ext <<_ACEOF
32335 /* confdefs.h.  */
32336 _ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h.  */
32340
32341               main(){char *a = 0; a = (typeof a)a;}
32342
32343 _ACEOF
32344 rm -f conftest$ac_exeext
32345 if { (ac_try="$ac_link"
32346 case "(($ac_try" in
32347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348   *) ac_try_echo=$ac_try;;
32349 esac
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351   (eval "$ac_link") 2>&5
32352   ac_status=$?
32353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32355   { (case "(($ac_try" in
32356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357   *) ac_try_echo=$ac_try;;
32358 esac
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360   (eval "$ac_try") 2>&5
32361   ac_status=$?
32362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363   (exit $ac_status); }; }; then
32364
32365               ba_cv_have_typeof=yes
32366
32367 else
32368   echo "$as_me: program exited with status $ac_status" >&5
32369 echo "$as_me: failed program was:" >&5
32370 sed 's/^/| /' conftest.$ac_ext >&5
32371
32372 ( exit $ac_status )
32373
32374               ba_cv_have_typeof=no
32375
32376 fi
32377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32378 fi
32379
32380
32381
32382
32383 fi
32384 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32385 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32386 test $ba_cv_have_typeof = yes &&
32387 cat >>confdefs.h <<\_ACEOF
32388 #define HAVE_TYPEOF 1
32389 _ACEOF
32390
32391 ac_ext=c
32392 ac_cpp='$CPP $CPPFLAGS'
32393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32396
32397
32398 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32399 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32400 if test "${ac_cv_c_const+set}" = set; then
32401   echo $ECHO_N "(cached) $ECHO_C" >&6
32402 else
32403   cat >conftest.$ac_ext <<_ACEOF
32404 /* confdefs.h.  */
32405 _ACEOF
32406 cat confdefs.h >>conftest.$ac_ext
32407 cat >>conftest.$ac_ext <<_ACEOF
32408 /* end confdefs.h.  */
32409
32410 int
32411 main ()
32412 {
32413 /* FIXME: Include the comments suggested by Paul. */
32414 #ifndef __cplusplus
32415   /* Ultrix mips cc rejects this.  */
32416   typedef int charset[2];
32417   const charset cs;
32418   /* SunOS 4.1.1 cc rejects this.  */
32419   char const *const *pcpcc;
32420   char **ppc;
32421   /* NEC SVR4.0.2 mips cc rejects this.  */
32422   struct point {int x, y;};
32423   static struct point const zero = {0,0};
32424   /* AIX XL C 1.02.0.0 rejects this.
32425      It does not let you subtract one const X* pointer from another in
32426      an arm of an if-expression whose if-part is not a constant
32427      expression */
32428   const char *g = "string";
32429   pcpcc = &g + (g ? g-g : 0);
32430   /* HPUX 7.0 cc rejects these. */
32431   ++pcpcc;
32432   ppc = (char**) pcpcc;
32433   pcpcc = (char const *const *) ppc;
32434   { /* SCO 3.2v4 cc rejects this.  */
32435     char *t;
32436     char const *s = 0 ? (char *) 0 : (char const *) 0;
32437
32438     *t++ = 0;
32439     if (s) return 0;
32440   }
32441   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32442     int x[] = {25, 17};
32443     const int *foo = &x[0];
32444     ++foo;
32445   }
32446   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32447     typedef const int *iptr;
32448     iptr p = 0;
32449     ++p;
32450   }
32451   { /* AIX XL C 1.02.0.0 rejects this saying
32452        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32453     struct s { int j; const int *ap[3]; };
32454     struct s *b; b->j = 5;
32455   }
32456   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32457     const int foo = 10;
32458     if (!foo) return 0;
32459   }
32460   return !cs[0] && !zero.x;
32461 #endif
32462
32463   ;
32464   return 0;
32465 }
32466 _ACEOF
32467 rm -f conftest.$ac_objext
32468 if { (ac_try="$ac_compile"
32469 case "(($ac_try" in
32470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32471   *) ac_try_echo=$ac_try;;
32472 esac
32473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32474   (eval "$ac_compile") 2>conftest.er1
32475   ac_status=$?
32476   grep -v '^ *+' conftest.er1 >conftest.err
32477   rm -f conftest.er1
32478   cat conftest.err >&5
32479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480   (exit $ac_status); } && {
32481          test -z "$ac_c_werror_flag" ||
32482          test ! -s conftest.err
32483        } && test -s conftest.$ac_objext; then
32484   ac_cv_c_const=yes
32485 else
32486   echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32488
32489         ac_cv_c_const=no
32490 fi
32491
32492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32493 fi
32494 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32495 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32496 if test $ac_cv_c_const = no; then
32497
32498 cat >>confdefs.h <<\_ACEOF
32499 #define const
32500 _ACEOF
32501
32502 fi
32503
32504
32505 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32506 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32507 fstype=no
32508 # The order of these tests is important.
32509 cat >conftest.$ac_ext <<_ACEOF
32510 /* confdefs.h.  */
32511 _ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h.  */
32515
32516        #include <sys/statvfs.h>
32517        #include <sys/fstyp.h>
32518
32519 _ACEOF
32520 if { (ac_try="$ac_cpp conftest.$ac_ext"
32521 case "(($ac_try" in
32522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32523   *) ac_try_echo=$ac_try;;
32524 esac
32525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32527   ac_status=$?
32528   grep -v '^ *+' conftest.er1 >conftest.err
32529   rm -f conftest.er1
32530   cat conftest.err >&5
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); } >/dev/null && {
32533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32534          test ! -s conftest.err
32535        }; then
32536   cat >>confdefs.h <<\_ACEOF
32537 #define FSTYPE_STATVFS 1
32538 _ACEOF
32539  fstype=SVR4
32540
32541 else
32542   echo "$as_me: failed program was:" >&5
32543 sed 's/^/| /' conftest.$ac_ext >&5
32544
32545
32546 fi
32547
32548 rm -f conftest.err conftest.$ac_ext
32549 if test $fstype = no; then
32550    cat >conftest.$ac_ext <<_ACEOF
32551 /* confdefs.h.  */
32552 _ACEOF
32553 cat confdefs.h >>conftest.$ac_ext
32554 cat >>conftest.$ac_ext <<_ACEOF
32555 /* end confdefs.h.  */
32556
32557           #include <sys/statfs.h>
32558           #include <sys/fstyp.h>
32559
32560 _ACEOF
32561 if { (ac_try="$ac_cpp conftest.$ac_ext"
32562 case "(($ac_try" in
32563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564   *) ac_try_echo=$ac_try;;
32565 esac
32566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32568   ac_status=$?
32569   grep -v '^ *+' conftest.er1 >conftest.err
32570   rm -f conftest.er1
32571   cat conftest.err >&5
32572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573   (exit $ac_status); } >/dev/null && {
32574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32575          test ! -s conftest.err
32576        }; then
32577   cat >>confdefs.h <<\_ACEOF
32578 #define FSTYPE_USG_STATFS 1
32579 _ACEOF
32580  fstype=SVR3
32581
32582 else
32583   echo "$as_me: failed program was:" >&5
32584 sed 's/^/| /' conftest.$ac_ext >&5
32585
32586
32587 fi
32588
32589 rm -f conftest.err conftest.$ac_ext
32590 fi
32591 if test $fstype = no; then
32592    cat >conftest.$ac_ext <<_ACEOF
32593 /* confdefs.h.  */
32594 _ACEOF
32595 cat confdefs.h >>conftest.$ac_ext
32596 cat >>conftest.$ac_ext <<_ACEOF
32597 /* end confdefs.h.  */
32598
32599           #include <sys/statfs.h>
32600           #include <sys/vmount.h>
32601
32602 _ACEOF
32603 if { (ac_try="$ac_cpp conftest.$ac_ext"
32604 case "(($ac_try" in
32605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606   *) ac_try_echo=$ac_try;;
32607 esac
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32610   ac_status=$?
32611   grep -v '^ *+' conftest.er1 >conftest.err
32612   rm -f conftest.er1
32613   cat conftest.err >&5
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); } >/dev/null && {
32616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32617          test ! -s conftest.err
32618        }; then
32619   cat >>confdefs.h <<\_ACEOF
32620 #define FSTYPE_AIX_STATFS 1
32621 _ACEOF
32622  fstype=AIX
32623
32624 else
32625   echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.$ac_ext >&5
32627
32628
32629 fi
32630
32631 rm -f conftest.err conftest.$ac_ext
32632 fi
32633 if test $fstype = no; then
32634    cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h.  */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h.  */
32640
32641           #include <mntent.h>
32642
32643 _ACEOF
32644 if { (ac_try="$ac_cpp conftest.$ac_ext"
32645 case "(($ac_try" in
32646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647   *) ac_try_echo=$ac_try;;
32648 esac
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32651   ac_status=$?
32652   grep -v '^ *+' conftest.er1 >conftest.err
32653   rm -f conftest.er1
32654   cat conftest.err >&5
32655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656   (exit $ac_status); } >/dev/null && {
32657          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32658          test ! -s conftest.err
32659        }; then
32660   cat >>confdefs.h <<\_ACEOF
32661 #define FSTYPE_MNTENT 1
32662 _ACEOF
32663  fstype=4.3BSD
32664
32665 else
32666   echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669
32670 fi
32671
32672 rm -f conftest.err conftest.$ac_ext
32673 fi
32674 if test $fstype = no; then
32675    cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h.  */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h.  */
32681 #include <sys/mount.h>
32682
32683 _ACEOF
32684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32685   $EGREP "f_type;" >/dev/null 2>&1; then
32686   cat >>confdefs.h <<\_ACEOF
32687 #define FSTYPE_STATFS 1
32688 _ACEOF
32689  fstype=4.4BSD/OSF1
32690 fi
32691 rm -f conftest*
32692
32693 fi
32694 if test $fstype = no; then
32695    cat >conftest.$ac_ext <<_ACEOF
32696 /* confdefs.h.  */
32697 _ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h.  */
32701
32702           #include <sys/mount.h>
32703           #include <sys/fs_types.h>
32704
32705 _ACEOF
32706 if { (ac_try="$ac_cpp conftest.$ac_ext"
32707 case "(($ac_try" in
32708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709   *) ac_try_echo=$ac_try;;
32710 esac
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32713   ac_status=$?
32714   grep -v '^ *+' conftest.er1 >conftest.err
32715   rm -f conftest.er1
32716   cat conftest.err >&5
32717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718   (exit $ac_status); } >/dev/null && {
32719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32720          test ! -s conftest.err
32721        }; then
32722   cat >>confdefs.h <<\_ACEOF
32723 #define FSTYPE_GETMNT 1
32724 _ACEOF
32725  fstype=Ultrix
32726
32727 else
32728   echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32730
32731
32732 fi
32733
32734 rm -f conftest.err conftest.$ac_ext
32735 fi
32736 { echo "$as_me:$LINENO: result: $fstype" >&5
32737 echo "${ECHO_T}$fstype" >&6; }
32738
32739 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32740   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32741 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32742 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32743   echo $ECHO_N "(cached) $ECHO_C" >&6
32744 fi
32745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32746 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32747 else
32748   # Is the header compilable?
32749 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32750 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32751 cat >conftest.$ac_ext <<_ACEOF
32752 /* confdefs.h.  */
32753 _ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h.  */
32757 $ac_includes_default
32758 #include <sys/statvfs.h>
32759 _ACEOF
32760 rm -f conftest.$ac_objext
32761 if { (ac_try="$ac_compile"
32762 case "(($ac_try" in
32763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764   *) ac_try_echo=$ac_try;;
32765 esac
32766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767   (eval "$ac_compile") 2>conftest.er1
32768   ac_status=$?
32769   grep -v '^ *+' conftest.er1 >conftest.err
32770   rm -f conftest.er1
32771   cat conftest.err >&5
32772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773   (exit $ac_status); } && {
32774          test -z "$ac_c_werror_flag" ||
32775          test ! -s conftest.err
32776        } && test -s conftest.$ac_objext; then
32777   ac_header_compiler=yes
32778 else
32779   echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32781
32782         ac_header_compiler=no
32783 fi
32784
32785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32787 echo "${ECHO_T}$ac_header_compiler" >&6; }
32788
32789 # Is the header present?
32790 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32791 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32792 cat >conftest.$ac_ext <<_ACEOF
32793 /* confdefs.h.  */
32794 _ACEOF
32795 cat confdefs.h >>conftest.$ac_ext
32796 cat >>conftest.$ac_ext <<_ACEOF
32797 /* end confdefs.h.  */
32798 #include <sys/statvfs.h>
32799 _ACEOF
32800 if { (ac_try="$ac_cpp conftest.$ac_ext"
32801 case "(($ac_try" in
32802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32803   *) ac_try_echo=$ac_try;;
32804 esac
32805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32807   ac_status=$?
32808   grep -v '^ *+' conftest.er1 >conftest.err
32809   rm -f conftest.er1
32810   cat conftest.err >&5
32811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812   (exit $ac_status); } >/dev/null && {
32813          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32814          test ! -s conftest.err
32815        }; then
32816   ac_header_preproc=yes
32817 else
32818   echo "$as_me: failed program was:" >&5
32819 sed 's/^/| /' conftest.$ac_ext >&5
32820
32821   ac_header_preproc=no
32822 fi
32823
32824 rm -f conftest.err conftest.$ac_ext
32825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32826 echo "${ECHO_T}$ac_header_preproc" >&6; }
32827
32828 # So?  What about this header?
32829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32830   yes:no: )
32831     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32832 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32833     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32834 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32835     ac_header_preproc=yes
32836     ;;
32837   no:yes:* )
32838     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32839 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32840     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32841 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32842     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32843 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32844     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32846     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32848     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32849 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32850
32851     ;;
32852 esac
32853 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32854 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32855 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32856   echo $ECHO_N "(cached) $ECHO_C" >&6
32857 else
32858   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32859 fi
32860 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32861 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32862
32863 fi
32864 if test $ac_cv_header_sys_statvfs_h = yes; then
32865
32866 cat >>confdefs.h <<\_ACEOF
32867 #define HAVE_SYS_STATVFS_H 1
32868 _ACEOF
32869
32870 fi
32871
32872
32873
32874 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32875 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32876 if test "${ac_cv_type_signal+set}" = set; then
32877   echo $ECHO_N "(cached) $ECHO_C" >&6
32878 else
32879   cat >conftest.$ac_ext <<_ACEOF
32880 /* confdefs.h.  */
32881 _ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h.  */
32885 #include <sys/types.h>
32886 #include <signal.h>
32887
32888 int
32889 main ()
32890 {
32891 return *(signal (0, 0)) (0) == 1;
32892   ;
32893   return 0;
32894 }
32895 _ACEOF
32896 rm -f conftest.$ac_objext
32897 if { (ac_try="$ac_compile"
32898 case "(($ac_try" in
32899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900   *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903   (eval "$ac_compile") 2>conftest.er1
32904   ac_status=$?
32905   grep -v '^ *+' conftest.er1 >conftest.err
32906   rm -f conftest.er1
32907   cat conftest.err >&5
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); } && {
32910          test -z "$ac_c_werror_flag" ||
32911          test ! -s conftest.err
32912        } && test -s conftest.$ac_objext; then
32913   ac_cv_type_signal=int
32914 else
32915   echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32917
32918         ac_cv_type_signal=void
32919 fi
32920
32921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32922 fi
32923 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32924 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32925
32926 cat >>confdefs.h <<_ACEOF
32927 #define RETSIGTYPE $ac_cv_type_signal
32928 _ACEOF
32929
32930
32931
32932   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32933 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32934   if test "${bash_cv_signal_vintage+set}" = set; then
32935   echo $ECHO_N "(cached) $ECHO_C" >&6
32936 else
32937
32938     cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h.  */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h.  */
32944 #include <signal.h>
32945 int
32946 main ()
32947 {
32948
32949       sigset_t ss;
32950       struct sigaction sa;
32951       sigemptyset(&ss); sigsuspend(&ss);
32952       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32953       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32954
32955   ;
32956   return 0;
32957 }
32958 _ACEOF
32959 rm -f conftest.$ac_objext conftest$ac_exeext
32960 if { (ac_try="$ac_link"
32961 case "(($ac_try" in
32962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963   *) ac_try_echo=$ac_try;;
32964 esac
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966   (eval "$ac_link") 2>conftest.er1
32967   ac_status=$?
32968   grep -v '^ *+' conftest.er1 >conftest.err
32969   rm -f conftest.er1
32970   cat conftest.err >&5
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); } && {
32973          test -z "$ac_c_werror_flag" ||
32974          test ! -s conftest.err
32975        } && test -s conftest$ac_exeext &&
32976        $as_test_x conftest$ac_exeext; then
32977   bash_cv_signal_vintage="posix"
32978 else
32979   echo "$as_me: failed program was:" >&5
32980 sed 's/^/| /' conftest.$ac_ext >&5
32981
32982
32983       cat >conftest.$ac_ext <<_ACEOF
32984 /* confdefs.h.  */
32985 _ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h.  */
32989 #include <signal.h>
32990 int
32991 main ()
32992 {
32993
32994           int mask = sigmask(SIGINT);
32995           sigsetmask(mask); sigblock(mask); sigpause(mask);
32996
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_link") 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } && {
33015          test -z "$ac_c_werror_flag" ||
33016          test ! -s conftest.err
33017        } && test -s conftest$ac_exeext &&
33018        $as_test_x conftest$ac_exeext; then
33019   bash_cv_signal_vintage="4.2bsd"
33020 else
33021   echo "$as_me: failed program was:" >&5
33022 sed 's/^/| /' conftest.$ac_ext >&5
33023
33024
33025         cat >conftest.$ac_ext <<_ACEOF
33026 /* confdefs.h.  */
33027 _ACEOF
33028 cat confdefs.h >>conftest.$ac_ext
33029 cat >>conftest.$ac_ext <<_ACEOF
33030 /* end confdefs.h.  */
33031
33032           #include <signal.h>
33033           RETSIGTYPE foo() { }
33034 int
33035 main ()
33036 {
33037
33038                   int mask = sigmask(SIGINT);
33039                   sigset(SIGINT, foo); sigrelse(SIGINT);
33040                   sighold(SIGINT); sigpause(SIGINT);
33041
33042   ;
33043   return 0;
33044 }
33045 _ACEOF
33046 rm -f conftest.$ac_objext conftest$ac_exeext
33047 if { (ac_try="$ac_link"
33048 case "(($ac_try" in
33049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050   *) ac_try_echo=$ac_try;;
33051 esac
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053   (eval "$ac_link") 2>conftest.er1
33054   ac_status=$?
33055   grep -v '^ *+' conftest.er1 >conftest.err
33056   rm -f conftest.er1
33057   cat conftest.err >&5
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); } && {
33060          test -z "$ac_c_werror_flag" ||
33061          test ! -s conftest.err
33062        } && test -s conftest$ac_exeext &&
33063        $as_test_x conftest$ac_exeext; then
33064   bash_cv_signal_vintage="svr3"
33065 else
33066   echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33068
33069         bash_cv_signal_vintage="v7"
33070
33071 fi
33072
33073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33074       conftest$ac_exeext conftest.$ac_ext
33075
33076 fi
33077
33078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33079       conftest$ac_exeext conftest.$ac_ext
33080
33081 fi
33082
33083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33084       conftest$ac_exeext conftest.$ac_ext
33085
33086 fi
33087
33088   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33089 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33090   if test "$bash_cv_signal_vintage" = "posix"; then
33091     cat >>confdefs.h <<\_ACEOF
33092 #define HAVE_POSIX_SIGNALS 1
33093 _ACEOF
33094
33095   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33096     cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_BSD_SIGNALS 1
33098 _ACEOF
33099
33100   elif test "$bash_cv_signal_vintage" = "svr3"; then
33101     cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_USG_SIGHOLD 1
33103 _ACEOF
33104
33105   fi
33106
33107 { echo "$as_me:$LINENO: checking for mode_t" >&5
33108 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33109 if test "${ac_cv_type_mode_t+set}" = set; then
33110   echo $ECHO_N "(cached) $ECHO_C" >&6
33111 else
33112   cat >conftest.$ac_ext <<_ACEOF
33113 /* confdefs.h.  */
33114 _ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h.  */
33118 $ac_includes_default
33119 typedef mode_t ac__type_new_;
33120 int
33121 main ()
33122 {
33123 if ((ac__type_new_ *) 0)
33124   return 0;
33125 if (sizeof (ac__type_new_))
33126   return 0;
33127   ;
33128   return 0;
33129 }
33130 _ACEOF
33131 rm -f conftest.$ac_objext
33132 if { (ac_try="$ac_compile"
33133 case "(($ac_try" in
33134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135   *) ac_try_echo=$ac_try;;
33136 esac
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138   (eval "$ac_compile") 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } && {
33145          test -z "$ac_c_werror_flag" ||
33146          test ! -s conftest.err
33147        } && test -s conftest.$ac_objext; then
33148   ac_cv_type_mode_t=yes
33149 else
33150   echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33152
33153         ac_cv_type_mode_t=no
33154 fi
33155
33156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33157 fi
33158 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33159 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33160 if test $ac_cv_type_mode_t = yes; then
33161   :
33162 else
33163
33164 cat >>confdefs.h <<_ACEOF
33165 #define mode_t int
33166 _ACEOF
33167
33168 fi
33169
33170 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33171 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33172 if test "${ac_cv_type_uid_t+set}" = set; then
33173   echo $ECHO_N "(cached) $ECHO_C" >&6
33174 else
33175   cat >conftest.$ac_ext <<_ACEOF
33176 /* confdefs.h.  */
33177 _ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h.  */
33181 #include <sys/types.h>
33182
33183 _ACEOF
33184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33185   $EGREP "uid_t" >/dev/null 2>&1; then
33186   ac_cv_type_uid_t=yes
33187 else
33188   ac_cv_type_uid_t=no
33189 fi
33190 rm -f conftest*
33191
33192 fi
33193 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33194 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33195 if test $ac_cv_type_uid_t = no; then
33196
33197 cat >>confdefs.h <<\_ACEOF
33198 #define uid_t int
33199 _ACEOF
33200
33201
33202 cat >>confdefs.h <<\_ACEOF
33203 #define gid_t int
33204 _ACEOF
33205
33206 fi
33207
33208 { echo "$as_me:$LINENO: checking for size_t" >&5
33209 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33210 if test "${ac_cv_type_size_t+set}" = set; then
33211   echo $ECHO_N "(cached) $ECHO_C" >&6
33212 else
33213   cat >conftest.$ac_ext <<_ACEOF
33214 /* confdefs.h.  */
33215 _ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h.  */
33219 $ac_includes_default
33220 typedef size_t ac__type_new_;
33221 int
33222 main ()
33223 {
33224 if ((ac__type_new_ *) 0)
33225   return 0;
33226 if (sizeof (ac__type_new_))
33227   return 0;
33228   ;
33229   return 0;
33230 }
33231 _ACEOF
33232 rm -f conftest.$ac_objext
33233 if { (ac_try="$ac_compile"
33234 case "(($ac_try" in
33235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236   *) ac_try_echo=$ac_try;;
33237 esac
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239   (eval "$ac_compile") 2>conftest.er1
33240   ac_status=$?
33241   grep -v '^ *+' conftest.er1 >conftest.err
33242   rm -f conftest.er1
33243   cat conftest.err >&5
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); } && {
33246          test -z "$ac_c_werror_flag" ||
33247          test ! -s conftest.err
33248        } && test -s conftest.$ac_objext; then
33249   ac_cv_type_size_t=yes
33250 else
33251   echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33253
33254         ac_cv_type_size_t=no
33255 fi
33256
33257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33258 fi
33259 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33260 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33261 if test $ac_cv_type_size_t = yes; then
33262   :
33263 else
33264
33265 cat >>confdefs.h <<_ACEOF
33266 #define size_t unsigned int
33267 _ACEOF
33268
33269 fi
33270
33271 { echo "$as_me:$LINENO: checking for pid_t" >&5
33272 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33273 if test "${ac_cv_type_pid_t+set}" = set; then
33274   echo $ECHO_N "(cached) $ECHO_C" >&6
33275 else
33276   cat >conftest.$ac_ext <<_ACEOF
33277 /* confdefs.h.  */
33278 _ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h.  */
33282 $ac_includes_default
33283 typedef pid_t ac__type_new_;
33284 int
33285 main ()
33286 {
33287 if ((ac__type_new_ *) 0)
33288   return 0;
33289 if (sizeof (ac__type_new_))
33290   return 0;
33291   ;
33292   return 0;
33293 }
33294 _ACEOF
33295 rm -f conftest.$ac_objext
33296 if { (ac_try="$ac_compile"
33297 case "(($ac_try" in
33298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299   *) ac_try_echo=$ac_try;;
33300 esac
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302   (eval "$ac_compile") 2>conftest.er1
33303   ac_status=$?
33304   grep -v '^ *+' conftest.er1 >conftest.err
33305   rm -f conftest.er1
33306   cat conftest.err >&5
33307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308   (exit $ac_status); } && {
33309          test -z "$ac_c_werror_flag" ||
33310          test ! -s conftest.err
33311        } && test -s conftest.$ac_objext; then
33312   ac_cv_type_pid_t=yes
33313 else
33314   echo "$as_me: failed program was:" >&5
33315 sed 's/^/| /' conftest.$ac_ext >&5
33316
33317         ac_cv_type_pid_t=no
33318 fi
33319
33320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33321 fi
33322 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33323 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33324 if test $ac_cv_type_pid_t = yes; then
33325   :
33326 else
33327
33328 cat >>confdefs.h <<_ACEOF
33329 #define pid_t int
33330 _ACEOF
33331
33332 fi
33333
33334 { echo "$as_me:$LINENO: checking for off_t" >&5
33335 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33336 if test "${ac_cv_type_off_t+set}" = set; then
33337   echo $ECHO_N "(cached) $ECHO_C" >&6
33338 else
33339   cat >conftest.$ac_ext <<_ACEOF
33340 /* confdefs.h.  */
33341 _ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h.  */
33345 $ac_includes_default
33346 typedef off_t ac__type_new_;
33347 int
33348 main ()
33349 {
33350 if ((ac__type_new_ *) 0)
33351   return 0;
33352 if (sizeof (ac__type_new_))
33353   return 0;
33354   ;
33355   return 0;
33356 }
33357 _ACEOF
33358 rm -f conftest.$ac_objext
33359 if { (ac_try="$ac_compile"
33360 case "(($ac_try" in
33361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362   *) ac_try_echo=$ac_try;;
33363 esac
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365   (eval "$ac_compile") 2>conftest.er1
33366   ac_status=$?
33367   grep -v '^ *+' conftest.er1 >conftest.err
33368   rm -f conftest.er1
33369   cat conftest.err >&5
33370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371   (exit $ac_status); } && {
33372          test -z "$ac_c_werror_flag" ||
33373          test ! -s conftest.err
33374        } && test -s conftest.$ac_objext; then
33375   ac_cv_type_off_t=yes
33376 else
33377   echo "$as_me: failed program was:" >&5
33378 sed 's/^/| /' conftest.$ac_ext >&5
33379
33380         ac_cv_type_off_t=no
33381 fi
33382
33383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33384 fi
33385 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33386 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33387 if test $ac_cv_type_off_t = yes; then
33388   :
33389 else
33390
33391 cat >>confdefs.h <<_ACEOF
33392 #define off_t long int
33393 _ACEOF
33394
33395 fi
33396
33397 { echo "$as_me:$LINENO: checking for ino_t" >&5
33398 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33399 if test "${ac_cv_type_ino_t+set}" = set; then
33400   echo $ECHO_N "(cached) $ECHO_C" >&6
33401 else
33402   cat >conftest.$ac_ext <<_ACEOF
33403 /* confdefs.h.  */
33404 _ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h.  */
33408 $ac_includes_default
33409 typedef ino_t ac__type_new_;
33410 int
33411 main ()
33412 {
33413 if ((ac__type_new_ *) 0)
33414   return 0;
33415 if (sizeof (ac__type_new_))
33416   return 0;
33417   ;
33418   return 0;
33419 }
33420 _ACEOF
33421 rm -f conftest.$ac_objext
33422 if { (ac_try="$ac_compile"
33423 case "(($ac_try" in
33424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425   *) ac_try_echo=$ac_try;;
33426 esac
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428   (eval "$ac_compile") 2>conftest.er1
33429   ac_status=$?
33430   grep -v '^ *+' conftest.er1 >conftest.err
33431   rm -f conftest.er1
33432   cat conftest.err >&5
33433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434   (exit $ac_status); } && {
33435          test -z "$ac_c_werror_flag" ||
33436          test ! -s conftest.err
33437        } && test -s conftest.$ac_objext; then
33438   ac_cv_type_ino_t=yes
33439 else
33440   echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33442
33443         ac_cv_type_ino_t=no
33444 fi
33445
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33447 fi
33448 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33449 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33450 if test $ac_cv_type_ino_t = yes; then
33451   :
33452 else
33453
33454 cat >>confdefs.h <<_ACEOF
33455 #define ino_t unsigned long
33456 _ACEOF
33457
33458 fi
33459
33460 { echo "$as_me:$LINENO: checking for dev_t" >&5
33461 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33462 if test "${ac_cv_type_dev_t+set}" = set; then
33463   echo $ECHO_N "(cached) $ECHO_C" >&6
33464 else
33465   cat >conftest.$ac_ext <<_ACEOF
33466 /* confdefs.h.  */
33467 _ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h.  */
33471 $ac_includes_default
33472 typedef dev_t ac__type_new_;
33473 int
33474 main ()
33475 {
33476 if ((ac__type_new_ *) 0)
33477   return 0;
33478 if (sizeof (ac__type_new_))
33479   return 0;
33480   ;
33481   return 0;
33482 }
33483 _ACEOF
33484 rm -f conftest.$ac_objext
33485 if { (ac_try="$ac_compile"
33486 case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_compile") 2>conftest.er1
33492   ac_status=$?
33493   grep -v '^ *+' conftest.er1 >conftest.err
33494   rm -f conftest.er1
33495   cat conftest.err >&5
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); } && {
33498          test -z "$ac_c_werror_flag" ||
33499          test ! -s conftest.err
33500        } && test -s conftest.$ac_objext; then
33501   ac_cv_type_dev_t=yes
33502 else
33503   echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33505
33506         ac_cv_type_dev_t=no
33507 fi
33508
33509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33510 fi
33511 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33512 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33513 if test $ac_cv_type_dev_t = yes; then
33514   :
33515 else
33516
33517 cat >>confdefs.h <<_ACEOF
33518 #define dev_t unsigned long
33519 _ACEOF
33520
33521 fi
33522
33523 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33524 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33525 if test "${ac_cv_type_daddr_t+set}" = set; then
33526   echo $ECHO_N "(cached) $ECHO_C" >&6
33527 else
33528   cat >conftest.$ac_ext <<_ACEOF
33529 /* confdefs.h.  */
33530 _ACEOF
33531 cat confdefs.h >>conftest.$ac_ext
33532 cat >>conftest.$ac_ext <<_ACEOF
33533 /* end confdefs.h.  */
33534 $ac_includes_default
33535 typedef daddr_t ac__type_new_;
33536 int
33537 main ()
33538 {
33539 if ((ac__type_new_ *) 0)
33540   return 0;
33541 if (sizeof (ac__type_new_))
33542   return 0;
33543   ;
33544   return 0;
33545 }
33546 _ACEOF
33547 rm -f conftest.$ac_objext
33548 if { (ac_try="$ac_compile"
33549 case "(($ac_try" in
33550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551   *) ac_try_echo=$ac_try;;
33552 esac
33553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554   (eval "$ac_compile") 2>conftest.er1
33555   ac_status=$?
33556   grep -v '^ *+' conftest.er1 >conftest.err
33557   rm -f conftest.er1
33558   cat conftest.err >&5
33559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560   (exit $ac_status); } && {
33561          test -z "$ac_c_werror_flag" ||
33562          test ! -s conftest.err
33563        } && test -s conftest.$ac_objext; then
33564   ac_cv_type_daddr_t=yes
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569         ac_cv_type_daddr_t=no
33570 fi
33571
33572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33573 fi
33574 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33575 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33576 if test $ac_cv_type_daddr_t = yes; then
33577   :
33578 else
33579
33580 cat >>confdefs.h <<_ACEOF
33581 #define daddr_t long
33582 _ACEOF
33583
33584 fi
33585
33586 { echo "$as_me:$LINENO: checking for major_t" >&5
33587 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33588 if test "${ac_cv_type_major_t+set}" = set; then
33589   echo $ECHO_N "(cached) $ECHO_C" >&6
33590 else
33591   cat >conftest.$ac_ext <<_ACEOF
33592 /* confdefs.h.  */
33593 _ACEOF
33594 cat confdefs.h >>conftest.$ac_ext
33595 cat >>conftest.$ac_ext <<_ACEOF
33596 /* end confdefs.h.  */
33597 $ac_includes_default
33598 typedef major_t ac__type_new_;
33599 int
33600 main ()
33601 {
33602 if ((ac__type_new_ *) 0)
33603   return 0;
33604 if (sizeof (ac__type_new_))
33605   return 0;
33606   ;
33607   return 0;
33608 }
33609 _ACEOF
33610 rm -f conftest.$ac_objext
33611 if { (ac_try="$ac_compile"
33612 case "(($ac_try" in
33613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614   *) ac_try_echo=$ac_try;;
33615 esac
33616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617   (eval "$ac_compile") 2>conftest.er1
33618   ac_status=$?
33619   grep -v '^ *+' conftest.er1 >conftest.err
33620   rm -f conftest.er1
33621   cat conftest.err >&5
33622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623   (exit $ac_status); } && {
33624          test -z "$ac_c_werror_flag" ||
33625          test ! -s conftest.err
33626        } && test -s conftest.$ac_objext; then
33627   ac_cv_type_major_t=yes
33628 else
33629   echo "$as_me: failed program was:" >&5
33630 sed 's/^/| /' conftest.$ac_ext >&5
33631
33632         ac_cv_type_major_t=no
33633 fi
33634
33635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33636 fi
33637 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33638 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33639 if test $ac_cv_type_major_t = yes; then
33640   :
33641 else
33642
33643 cat >>confdefs.h <<_ACEOF
33644 #define major_t int
33645 _ACEOF
33646
33647 fi
33648
33649 { echo "$as_me:$LINENO: checking for minor_t" >&5
33650 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33651 if test "${ac_cv_type_minor_t+set}" = set; then
33652   echo $ECHO_N "(cached) $ECHO_C" >&6
33653 else
33654   cat >conftest.$ac_ext <<_ACEOF
33655 /* confdefs.h.  */
33656 _ACEOF
33657 cat confdefs.h >>conftest.$ac_ext
33658 cat >>conftest.$ac_ext <<_ACEOF
33659 /* end confdefs.h.  */
33660 $ac_includes_default
33661 typedef minor_t ac__type_new_;
33662 int
33663 main ()
33664 {
33665 if ((ac__type_new_ *) 0)
33666   return 0;
33667 if (sizeof (ac__type_new_))
33668   return 0;
33669   ;
33670   return 0;
33671 }
33672 _ACEOF
33673 rm -f conftest.$ac_objext
33674 if { (ac_try="$ac_compile"
33675 case "(($ac_try" in
33676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677   *) ac_try_echo=$ac_try;;
33678 esac
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680   (eval "$ac_compile") 2>conftest.er1
33681   ac_status=$?
33682   grep -v '^ *+' conftest.er1 >conftest.err
33683   rm -f conftest.er1
33684   cat conftest.err >&5
33685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686   (exit $ac_status); } && {
33687          test -z "$ac_c_werror_flag" ||
33688          test ! -s conftest.err
33689        } && test -s conftest.$ac_objext; then
33690   ac_cv_type_minor_t=yes
33691 else
33692   echo "$as_me: failed program was:" >&5
33693 sed 's/^/| /' conftest.$ac_ext >&5
33694
33695         ac_cv_type_minor_t=no
33696 fi
33697
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33699 fi
33700 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33701 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33702 if test $ac_cv_type_minor_t = yes; then
33703   :
33704 else
33705
33706 cat >>confdefs.h <<_ACEOF
33707 #define minor_t int
33708 _ACEOF
33709
33710 fi
33711
33712 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33713 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33714 if test "${ac_cv_type_ssize_t+set}" = set; then
33715   echo $ECHO_N "(cached) $ECHO_C" >&6
33716 else
33717   cat >conftest.$ac_ext <<_ACEOF
33718 /* confdefs.h.  */
33719 _ACEOF
33720 cat confdefs.h >>conftest.$ac_ext
33721 cat >>conftest.$ac_ext <<_ACEOF
33722 /* end confdefs.h.  */
33723 $ac_includes_default
33724 typedef ssize_t ac__type_new_;
33725 int
33726 main ()
33727 {
33728 if ((ac__type_new_ *) 0)
33729   return 0;
33730 if (sizeof (ac__type_new_))
33731   return 0;
33732   ;
33733   return 0;
33734 }
33735 _ACEOF
33736 rm -f conftest.$ac_objext
33737 if { (ac_try="$ac_compile"
33738 case "(($ac_try" in
33739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740   *) ac_try_echo=$ac_try;;
33741 esac
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743   (eval "$ac_compile") 2>conftest.er1
33744   ac_status=$?
33745   grep -v '^ *+' conftest.er1 >conftest.err
33746   rm -f conftest.er1
33747   cat conftest.err >&5
33748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749   (exit $ac_status); } && {
33750          test -z "$ac_c_werror_flag" ||
33751          test ! -s conftest.err
33752        } && test -s conftest.$ac_objext; then
33753   ac_cv_type_ssize_t=yes
33754 else
33755   echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33757
33758         ac_cv_type_ssize_t=no
33759 fi
33760
33761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33762 fi
33763 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33764 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33765 if test $ac_cv_type_ssize_t = yes; then
33766   :
33767 else
33768
33769 cat >>confdefs.h <<_ACEOF
33770 #define ssize_t int
33771 _ACEOF
33772
33773 fi
33774
33775 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33776 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33777 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33778   echo $ECHO_N "(cached) $ECHO_C" >&6
33779 else
33780   cat >conftest.$ac_ext <<_ACEOF
33781 /* confdefs.h.  */
33782 _ACEOF
33783 cat confdefs.h >>conftest.$ac_ext
33784 cat >>conftest.$ac_ext <<_ACEOF
33785 /* end confdefs.h.  */
33786 $ac_includes_default
33787 int
33788 main ()
33789 {
33790 static struct stat ac_aggr;
33791 if (ac_aggr.st_blocks)
33792 return 0;
33793   ;
33794   return 0;
33795 }
33796 _ACEOF
33797 rm -f conftest.$ac_objext
33798 if { (ac_try="$ac_compile"
33799 case "(($ac_try" in
33800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801   *) ac_try_echo=$ac_try;;
33802 esac
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804   (eval "$ac_compile") 2>conftest.er1
33805   ac_status=$?
33806   grep -v '^ *+' conftest.er1 >conftest.err
33807   rm -f conftest.er1
33808   cat conftest.err >&5
33809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810   (exit $ac_status); } && {
33811          test -z "$ac_c_werror_flag" ||
33812          test ! -s conftest.err
33813        } && test -s conftest.$ac_objext; then
33814   ac_cv_member_struct_stat_st_blocks=yes
33815 else
33816   echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33818
33819         cat >conftest.$ac_ext <<_ACEOF
33820 /* confdefs.h.  */
33821 _ACEOF
33822 cat confdefs.h >>conftest.$ac_ext
33823 cat >>conftest.$ac_ext <<_ACEOF
33824 /* end confdefs.h.  */
33825 $ac_includes_default
33826 int
33827 main ()
33828 {
33829 static struct stat ac_aggr;
33830 if (sizeof ac_aggr.st_blocks)
33831 return 0;
33832   ;
33833   return 0;
33834 }
33835 _ACEOF
33836 rm -f conftest.$ac_objext
33837 if { (ac_try="$ac_compile"
33838 case "(($ac_try" in
33839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840   *) ac_try_echo=$ac_try;;
33841 esac
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843   (eval "$ac_compile") 2>conftest.er1
33844   ac_status=$?
33845   grep -v '^ *+' conftest.er1 >conftest.err
33846   rm -f conftest.er1
33847   cat conftest.err >&5
33848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849   (exit $ac_status); } && {
33850          test -z "$ac_c_werror_flag" ||
33851          test ! -s conftest.err
33852        } && test -s conftest.$ac_objext; then
33853   ac_cv_member_struct_stat_st_blocks=yes
33854 else
33855   echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33857
33858         ac_cv_member_struct_stat_st_blocks=no
33859 fi
33860
33861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33862 fi
33863
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 fi
33866 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33867 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33868 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33869
33870 cat >>confdefs.h <<_ACEOF
33871 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33872 _ACEOF
33873
33874
33875 cat >>confdefs.h <<\_ACEOF
33876 #define HAVE_ST_BLOCKS 1
33877 _ACEOF
33878
33879 else
33880   case " $LIBOBJS " in
33881   *" fileblocks.$ac_objext "* ) ;;
33882   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33883  ;;
33884 esac
33885
33886 fi
33887
33888
33889 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33890 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33891 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33892   echo $ECHO_N "(cached) $ECHO_C" >&6
33893 else
33894   cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h.  */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h.  */
33900 $ac_includes_default
33901 int
33902 main ()
33903 {
33904 static struct stat ac_aggr;
33905 if (ac_aggr.st_rdev)
33906 return 0;
33907   ;
33908   return 0;
33909 }
33910 _ACEOF
33911 rm -f conftest.$ac_objext
33912 if { (ac_try="$ac_compile"
33913 case "(($ac_try" in
33914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915   *) ac_try_echo=$ac_try;;
33916 esac
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918   (eval "$ac_compile") 2>conftest.er1
33919   ac_status=$?
33920   grep -v '^ *+' conftest.er1 >conftest.err
33921   rm -f conftest.er1
33922   cat conftest.err >&5
33923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924   (exit $ac_status); } && {
33925          test -z "$ac_c_werror_flag" ||
33926          test ! -s conftest.err
33927        } && test -s conftest.$ac_objext; then
33928   ac_cv_member_struct_stat_st_rdev=yes
33929 else
33930   echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33932
33933         cat >conftest.$ac_ext <<_ACEOF
33934 /* confdefs.h.  */
33935 _ACEOF
33936 cat confdefs.h >>conftest.$ac_ext
33937 cat >>conftest.$ac_ext <<_ACEOF
33938 /* end confdefs.h.  */
33939 $ac_includes_default
33940 int
33941 main ()
33942 {
33943 static struct stat ac_aggr;
33944 if (sizeof ac_aggr.st_rdev)
33945 return 0;
33946   ;
33947   return 0;
33948 }
33949 _ACEOF
33950 rm -f conftest.$ac_objext
33951 if { (ac_try="$ac_compile"
33952 case "(($ac_try" in
33953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33954   *) ac_try_echo=$ac_try;;
33955 esac
33956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33957   (eval "$ac_compile") 2>conftest.er1
33958   ac_status=$?
33959   grep -v '^ *+' conftest.er1 >conftest.err
33960   rm -f conftest.er1
33961   cat conftest.err >&5
33962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963   (exit $ac_status); } && {
33964          test -z "$ac_c_werror_flag" ||
33965          test ! -s conftest.err
33966        } && test -s conftest.$ac_objext; then
33967   ac_cv_member_struct_stat_st_rdev=yes
33968 else
33969   echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33971
33972         ac_cv_member_struct_stat_st_rdev=no
33973 fi
33974
33975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33976 fi
33977
33978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33979 fi
33980 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33981 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33982 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33983
33984 cat >>confdefs.h <<_ACEOF
33985 #define HAVE_STRUCT_STAT_ST_RDEV 1
33986 _ACEOF
33987
33988
33989 cat >>confdefs.h <<\_ACEOF
33990 #define HAVE_ST_RDEV 1
33991 _ACEOF
33992
33993 fi
33994
33995
33996 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33997 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
33998 if test "${ac_cv_struct_tm+set}" = set; then
33999   echo $ECHO_N "(cached) $ECHO_C" >&6
34000 else
34001   cat >conftest.$ac_ext <<_ACEOF
34002 /* confdefs.h.  */
34003 _ACEOF
34004 cat confdefs.h >>conftest.$ac_ext
34005 cat >>conftest.$ac_ext <<_ACEOF
34006 /* end confdefs.h.  */
34007 #include <sys/types.h>
34008 #include <time.h>
34009
34010 int
34011 main ()
34012 {
34013 struct tm tm;
34014                                      int *p = &tm.tm_sec;
34015                                      return !p;
34016   ;
34017   return 0;
34018 }
34019 _ACEOF
34020 rm -f conftest.$ac_objext
34021 if { (ac_try="$ac_compile"
34022 case "(($ac_try" in
34023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024   *) ac_try_echo=$ac_try;;
34025 esac
34026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027   (eval "$ac_compile") 2>conftest.er1
34028   ac_status=$?
34029   grep -v '^ *+' conftest.er1 >conftest.err
34030   rm -f conftest.er1
34031   cat conftest.err >&5
34032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033   (exit $ac_status); } && {
34034          test -z "$ac_c_werror_flag" ||
34035          test ! -s conftest.err
34036        } && test -s conftest.$ac_objext; then
34037   ac_cv_struct_tm=time.h
34038 else
34039   echo "$as_me: failed program was:" >&5
34040 sed 's/^/| /' conftest.$ac_ext >&5
34041
34042         ac_cv_struct_tm=sys/time.h
34043 fi
34044
34045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34046 fi
34047 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34048 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34049 if test $ac_cv_struct_tm = sys/time.h; then
34050
34051 cat >>confdefs.h <<\_ACEOF
34052 #define TM_IN_SYS_TIME 1
34053 _ACEOF
34054
34055 fi
34056
34057 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34059 if test "${ac_cv_c_const+set}" = set; then
34060   echo $ECHO_N "(cached) $ECHO_C" >&6
34061 else
34062   cat >conftest.$ac_ext <<_ACEOF
34063 /* confdefs.h.  */
34064 _ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h.  */
34068
34069 int
34070 main ()
34071 {
34072 /* FIXME: Include the comments suggested by Paul. */
34073 #ifndef __cplusplus
34074   /* Ultrix mips cc rejects this.  */
34075   typedef int charset[2];
34076   const charset cs;
34077   /* SunOS 4.1.1 cc rejects this.  */
34078   char const *const *pcpcc;
34079   char **ppc;
34080   /* NEC SVR4.0.2 mips cc rejects this.  */
34081   struct point {int x, y;};
34082   static struct point const zero = {0,0};
34083   /* AIX XL C 1.02.0.0 rejects this.
34084      It does not let you subtract one const X* pointer from another in
34085      an arm of an if-expression whose if-part is not a constant
34086      expression */
34087   const char *g = "string";
34088   pcpcc = &g + (g ? g-g : 0);
34089   /* HPUX 7.0 cc rejects these. */
34090   ++pcpcc;
34091   ppc = (char**) pcpcc;
34092   pcpcc = (char const *const *) ppc;
34093   { /* SCO 3.2v4 cc rejects this.  */
34094     char *t;
34095     char const *s = 0 ? (char *) 0 : (char const *) 0;
34096
34097     *t++ = 0;
34098     if (s) return 0;
34099   }
34100   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34101     int x[] = {25, 17};
34102     const int *foo = &x[0];
34103     ++foo;
34104   }
34105   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34106     typedef const int *iptr;
34107     iptr p = 0;
34108     ++p;
34109   }
34110   { /* AIX XL C 1.02.0.0 rejects this saying
34111        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34112     struct s { int j; const int *ap[3]; };
34113     struct s *b; b->j = 5;
34114   }
34115   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34116     const int foo = 10;
34117     if (!foo) return 0;
34118   }
34119   return !cs[0] && !zero.x;
34120 #endif
34121
34122   ;
34123   return 0;
34124 }
34125 _ACEOF
34126 rm -f conftest.$ac_objext
34127 if { (ac_try="$ac_compile"
34128 case "(($ac_try" in
34129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34130   *) ac_try_echo=$ac_try;;
34131 esac
34132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34133   (eval "$ac_compile") 2>conftest.er1
34134   ac_status=$?
34135   grep -v '^ *+' conftest.er1 >conftest.err
34136   rm -f conftest.er1
34137   cat conftest.err >&5
34138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139   (exit $ac_status); } && {
34140          test -z "$ac_c_werror_flag" ||
34141          test ! -s conftest.err
34142        } && test -s conftest.$ac_objext; then
34143   ac_cv_c_const=yes
34144 else
34145   echo "$as_me: failed program was:" >&5
34146 sed 's/^/| /' conftest.$ac_ext >&5
34147
34148         ac_cv_c_const=no
34149 fi
34150
34151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34152 fi
34153 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34154 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34155 if test $ac_cv_c_const = no; then
34156
34157 cat >>confdefs.h <<\_ACEOF
34158 #define const
34159 _ACEOF
34160
34161 fi
34162
34163
34164 { echo "$as_me:$LINENO: checking for char" >&5
34165 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34166 if test "${ac_cv_type_char+set}" = set; then
34167   echo $ECHO_N "(cached) $ECHO_C" >&6
34168 else
34169   cat >conftest.$ac_ext <<_ACEOF
34170 /* confdefs.h.  */
34171 _ACEOF
34172 cat confdefs.h >>conftest.$ac_ext
34173 cat >>conftest.$ac_ext <<_ACEOF
34174 /* end confdefs.h.  */
34175 $ac_includes_default
34176 typedef char ac__type_new_;
34177 int
34178 main ()
34179 {
34180 if ((ac__type_new_ *) 0)
34181   return 0;
34182 if (sizeof (ac__type_new_))
34183   return 0;
34184   ;
34185   return 0;
34186 }
34187 _ACEOF
34188 rm -f conftest.$ac_objext
34189 if { (ac_try="$ac_compile"
34190 case "(($ac_try" in
34191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34192   *) ac_try_echo=$ac_try;;
34193 esac
34194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34195   (eval "$ac_compile") 2>conftest.er1
34196   ac_status=$?
34197   grep -v '^ *+' conftest.er1 >conftest.err
34198   rm -f conftest.er1
34199   cat conftest.err >&5
34200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201   (exit $ac_status); } && {
34202          test -z "$ac_c_werror_flag" ||
34203          test ! -s conftest.err
34204        } && test -s conftest.$ac_objext; then
34205   ac_cv_type_char=yes
34206 else
34207   echo "$as_me: failed program was:" >&5
34208 sed 's/^/| /' conftest.$ac_ext >&5
34209
34210         ac_cv_type_char=no
34211 fi
34212
34213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34214 fi
34215 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34216 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34217
34218 # The cast to long int works around a bug in the HP C Compiler
34219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34221 # This bug is HP SR number 8606223364.
34222 { echo "$as_me:$LINENO: checking size of char" >&5
34223 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34224 if test "${ac_cv_sizeof_char+set}" = set; then
34225   echo $ECHO_N "(cached) $ECHO_C" >&6
34226 else
34227   if test "$cross_compiling" = yes; then
34228   # Depending upon the size, compute the lo and hi bounds.
34229 cat >conftest.$ac_ext <<_ACEOF
34230 /* confdefs.h.  */
34231 _ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h.  */
34235 $ac_includes_default
34236    typedef char ac__type_sizeof_;
34237 int
34238 main ()
34239 {
34240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34241 test_array [0] = 0
34242
34243   ;
34244   return 0;
34245 }
34246 _ACEOF
34247 rm -f conftest.$ac_objext
34248 if { (ac_try="$ac_compile"
34249 case "(($ac_try" in
34250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34251   *) ac_try_echo=$ac_try;;
34252 esac
34253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34254   (eval "$ac_compile") 2>conftest.er1
34255   ac_status=$?
34256   grep -v '^ *+' conftest.er1 >conftest.err
34257   rm -f conftest.er1
34258   cat conftest.err >&5
34259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260   (exit $ac_status); } && {
34261          test -z "$ac_c_werror_flag" ||
34262          test ! -s conftest.err
34263        } && test -s conftest.$ac_objext; then
34264   ac_lo=0 ac_mid=0
34265   while :; do
34266     cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h.  */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h.  */
34272 $ac_includes_default
34273    typedef char ac__type_sizeof_;
34274 int
34275 main ()
34276 {
34277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34278 test_array [0] = 0
34279
34280   ;
34281   return 0;
34282 }
34283 _ACEOF
34284 rm -f conftest.$ac_objext
34285 if { (ac_try="$ac_compile"
34286 case "(($ac_try" in
34287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34288   *) ac_try_echo=$ac_try;;
34289 esac
34290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34291   (eval "$ac_compile") 2>conftest.er1
34292   ac_status=$?
34293   grep -v '^ *+' conftest.er1 >conftest.err
34294   rm -f conftest.er1
34295   cat conftest.err >&5
34296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297   (exit $ac_status); } && {
34298          test -z "$ac_c_werror_flag" ||
34299          test ! -s conftest.err
34300        } && test -s conftest.$ac_objext; then
34301   ac_hi=$ac_mid; break
34302 else
34303   echo "$as_me: failed program was:" >&5
34304 sed 's/^/| /' conftest.$ac_ext >&5
34305
34306         ac_lo=`expr $ac_mid + 1`
34307                         if test $ac_lo -le $ac_mid; then
34308                           ac_lo= ac_hi=
34309                           break
34310                         fi
34311                         ac_mid=`expr 2 '*' $ac_mid + 1`
34312 fi
34313
34314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34315   done
34316 else
34317   echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34319
34320         cat >conftest.$ac_ext <<_ACEOF
34321 /* confdefs.h.  */
34322 _ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h.  */
34326 $ac_includes_default
34327    typedef char ac__type_sizeof_;
34328 int
34329 main ()
34330 {
34331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34332 test_array [0] = 0
34333
34334   ;
34335   return 0;
34336 }
34337 _ACEOF
34338 rm -f conftest.$ac_objext
34339 if { (ac_try="$ac_compile"
34340 case "(($ac_try" in
34341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34342   *) ac_try_echo=$ac_try;;
34343 esac
34344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34345   (eval "$ac_compile") 2>conftest.er1
34346   ac_status=$?
34347   grep -v '^ *+' conftest.er1 >conftest.err
34348   rm -f conftest.er1
34349   cat conftest.err >&5
34350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351   (exit $ac_status); } && {
34352          test -z "$ac_c_werror_flag" ||
34353          test ! -s conftest.err
34354        } && test -s conftest.$ac_objext; then
34355   ac_hi=-1 ac_mid=-1
34356   while :; do
34357     cat >conftest.$ac_ext <<_ACEOF
34358 /* confdefs.h.  */
34359 _ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h.  */
34363 $ac_includes_default
34364    typedef char ac__type_sizeof_;
34365 int
34366 main ()
34367 {
34368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34369 test_array [0] = 0
34370
34371   ;
34372   return 0;
34373 }
34374 _ACEOF
34375 rm -f conftest.$ac_objext
34376 if { (ac_try="$ac_compile"
34377 case "(($ac_try" in
34378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34379   *) ac_try_echo=$ac_try;;
34380 esac
34381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34382   (eval "$ac_compile") 2>conftest.er1
34383   ac_status=$?
34384   grep -v '^ *+' conftest.er1 >conftest.err
34385   rm -f conftest.er1
34386   cat conftest.err >&5
34387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388   (exit $ac_status); } && {
34389          test -z "$ac_c_werror_flag" ||
34390          test ! -s conftest.err
34391        } && test -s conftest.$ac_objext; then
34392   ac_lo=$ac_mid; break
34393 else
34394   echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397         ac_hi=`expr '(' $ac_mid ')' - 1`
34398                         if test $ac_mid -le $ac_hi; then
34399                           ac_lo= ac_hi=
34400                           break
34401                         fi
34402                         ac_mid=`expr 2 '*' $ac_mid`
34403 fi
34404
34405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34406   done
34407 else
34408   echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34410
34411         ac_lo= ac_hi=
34412 fi
34413
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34415 fi
34416
34417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34418 # Binary search between lo and hi bounds.
34419 while test "x$ac_lo" != "x$ac_hi"; do
34420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34421   cat >conftest.$ac_ext <<_ACEOF
34422 /* confdefs.h.  */
34423 _ACEOF
34424 cat confdefs.h >>conftest.$ac_ext
34425 cat >>conftest.$ac_ext <<_ACEOF
34426 /* end confdefs.h.  */
34427 $ac_includes_default
34428    typedef char ac__type_sizeof_;
34429 int
34430 main ()
34431 {
34432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34433 test_array [0] = 0
34434
34435   ;
34436   return 0;
34437 }
34438 _ACEOF
34439 rm -f conftest.$ac_objext
34440 if { (ac_try="$ac_compile"
34441 case "(($ac_try" in
34442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443   *) ac_try_echo=$ac_try;;
34444 esac
34445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446   (eval "$ac_compile") 2>conftest.er1
34447   ac_status=$?
34448   grep -v '^ *+' conftest.er1 >conftest.err
34449   rm -f conftest.er1
34450   cat conftest.err >&5
34451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452   (exit $ac_status); } && {
34453          test -z "$ac_c_werror_flag" ||
34454          test ! -s conftest.err
34455        } && test -s conftest.$ac_objext; then
34456   ac_hi=$ac_mid
34457 else
34458   echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34460
34461         ac_lo=`expr '(' $ac_mid ')' + 1`
34462 fi
34463
34464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34465 done
34466 case $ac_lo in
34467 ?*) ac_cv_sizeof_char=$ac_lo;;
34468 '') if test "$ac_cv_type_char" = yes; then
34469      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34470 See \`config.log' for more details." >&5
34471 echo "$as_me: error: cannot compute sizeof (char)
34472 See \`config.log' for more details." >&2;}
34473    { (exit 77); exit 77; }; }
34474    else
34475      ac_cv_sizeof_char=0
34476    fi ;;
34477 esac
34478 else
34479   cat >conftest.$ac_ext <<_ACEOF
34480 /* confdefs.h.  */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h.  */
34485 $ac_includes_default
34486    typedef char ac__type_sizeof_;
34487 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34488 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34489 #include <stdio.h>
34490 #include <stdlib.h>
34491 int
34492 main ()
34493 {
34494
34495   FILE *f = fopen ("conftest.val", "w");
34496   if (! f)
34497     return 1;
34498   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34499     {
34500       long int i = longval ();
34501       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34502         return 1;
34503       fprintf (f, "%ld\n", i);
34504     }
34505   else
34506     {
34507       unsigned long int i = ulongval ();
34508       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34509         return 1;
34510       fprintf (f, "%lu\n", i);
34511     }
34512   return ferror (f) || fclose (f) != 0;
34513
34514   ;
34515   return 0;
34516 }
34517 _ACEOF
34518 rm -f conftest$ac_exeext
34519 if { (ac_try="$ac_link"
34520 case "(($ac_try" in
34521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34522   *) ac_try_echo=$ac_try;;
34523 esac
34524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34525   (eval "$ac_link") 2>&5
34526   ac_status=$?
34527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34529   { (case "(($ac_try" in
34530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34531   *) ac_try_echo=$ac_try;;
34532 esac
34533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34534   (eval "$ac_try") 2>&5
34535   ac_status=$?
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); }; }; then
34538   ac_cv_sizeof_char=`cat conftest.val`
34539 else
34540   echo "$as_me: program exited with status $ac_status" >&5
34541 echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34543
34544 ( exit $ac_status )
34545 if test "$ac_cv_type_char" = yes; then
34546      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34547 See \`config.log' for more details." >&5
34548 echo "$as_me: error: cannot compute sizeof (char)
34549 See \`config.log' for more details." >&2;}
34550    { (exit 77); exit 77; }; }
34551    else
34552      ac_cv_sizeof_char=0
34553    fi
34554 fi
34555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34556 fi
34557 rm -f conftest.val
34558 fi
34559 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34560 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34561
34562
34563
34564 cat >>confdefs.h <<_ACEOF
34565 #define SIZEOF_CHAR $ac_cv_sizeof_char
34566 _ACEOF
34567
34568
34569 { echo "$as_me:$LINENO: checking for short int" >&5
34570 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34571 if test "${ac_cv_type_short_int+set}" = set; then
34572   echo $ECHO_N "(cached) $ECHO_C" >&6
34573 else
34574   cat >conftest.$ac_ext <<_ACEOF
34575 /* confdefs.h.  */
34576 _ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h.  */
34580 $ac_includes_default
34581 typedef short int ac__type_new_;
34582 int
34583 main ()
34584 {
34585 if ((ac__type_new_ *) 0)
34586   return 0;
34587 if (sizeof (ac__type_new_))
34588   return 0;
34589   ;
34590   return 0;
34591 }
34592 _ACEOF
34593 rm -f conftest.$ac_objext
34594 if { (ac_try="$ac_compile"
34595 case "(($ac_try" in
34596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597   *) ac_try_echo=$ac_try;;
34598 esac
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600   (eval "$ac_compile") 2>conftest.er1
34601   ac_status=$?
34602   grep -v '^ *+' conftest.er1 >conftest.err
34603   rm -f conftest.er1
34604   cat conftest.err >&5
34605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606   (exit $ac_status); } && {
34607          test -z "$ac_c_werror_flag" ||
34608          test ! -s conftest.err
34609        } && test -s conftest.$ac_objext; then
34610   ac_cv_type_short_int=yes
34611 else
34612   echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.$ac_ext >&5
34614
34615         ac_cv_type_short_int=no
34616 fi
34617
34618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34619 fi
34620 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34621 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34622
34623 # The cast to long int works around a bug in the HP C Compiler
34624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34626 # This bug is HP SR number 8606223364.
34627 { echo "$as_me:$LINENO: checking size of short int" >&5
34628 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34629 if test "${ac_cv_sizeof_short_int+set}" = set; then
34630   echo $ECHO_N "(cached) $ECHO_C" >&6
34631 else
34632   if test "$cross_compiling" = yes; then
34633   # Depending upon the size, compute the lo and hi bounds.
34634 cat >conftest.$ac_ext <<_ACEOF
34635 /* confdefs.h.  */
34636 _ACEOF
34637 cat confdefs.h >>conftest.$ac_ext
34638 cat >>conftest.$ac_ext <<_ACEOF
34639 /* end confdefs.h.  */
34640 $ac_includes_default
34641    typedef short int ac__type_sizeof_;
34642 int
34643 main ()
34644 {
34645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34646 test_array [0] = 0
34647
34648   ;
34649   return 0;
34650 }
34651 _ACEOF
34652 rm -f conftest.$ac_objext
34653 if { (ac_try="$ac_compile"
34654 case "(($ac_try" in
34655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656   *) ac_try_echo=$ac_try;;
34657 esac
34658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659   (eval "$ac_compile") 2>conftest.er1
34660   ac_status=$?
34661   grep -v '^ *+' conftest.er1 >conftest.err
34662   rm -f conftest.er1
34663   cat conftest.err >&5
34664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665   (exit $ac_status); } && {
34666          test -z "$ac_c_werror_flag" ||
34667          test ! -s conftest.err
34668        } && test -s conftest.$ac_objext; then
34669   ac_lo=0 ac_mid=0
34670   while :; do
34671     cat >conftest.$ac_ext <<_ACEOF
34672 /* confdefs.h.  */
34673 _ACEOF
34674 cat confdefs.h >>conftest.$ac_ext
34675 cat >>conftest.$ac_ext <<_ACEOF
34676 /* end confdefs.h.  */
34677 $ac_includes_default
34678    typedef short int ac__type_sizeof_;
34679 int
34680 main ()
34681 {
34682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34683 test_array [0] = 0
34684
34685   ;
34686   return 0;
34687 }
34688 _ACEOF
34689 rm -f conftest.$ac_objext
34690 if { (ac_try="$ac_compile"
34691 case "(($ac_try" in
34692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693   *) ac_try_echo=$ac_try;;
34694 esac
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696   (eval "$ac_compile") 2>conftest.er1
34697   ac_status=$?
34698   grep -v '^ *+' conftest.er1 >conftest.err
34699   rm -f conftest.er1
34700   cat conftest.err >&5
34701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702   (exit $ac_status); } && {
34703          test -z "$ac_c_werror_flag" ||
34704          test ! -s conftest.err
34705        } && test -s conftest.$ac_objext; then
34706   ac_hi=$ac_mid; break
34707 else
34708   echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34710
34711         ac_lo=`expr $ac_mid + 1`
34712                         if test $ac_lo -le $ac_mid; then
34713                           ac_lo= ac_hi=
34714                           break
34715                         fi
34716                         ac_mid=`expr 2 '*' $ac_mid + 1`
34717 fi
34718
34719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34720   done
34721 else
34722   echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34724
34725         cat >conftest.$ac_ext <<_ACEOF
34726 /* confdefs.h.  */
34727 _ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h.  */
34731 $ac_includes_default
34732    typedef short int ac__type_sizeof_;
34733 int
34734 main ()
34735 {
34736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34737 test_array [0] = 0
34738
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext
34744 if { (ac_try="$ac_compile"
34745 case "(($ac_try" in
34746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747   *) ac_try_echo=$ac_try;;
34748 esac
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750   (eval "$ac_compile") 2>conftest.er1
34751   ac_status=$?
34752   grep -v '^ *+' conftest.er1 >conftest.err
34753   rm -f conftest.er1
34754   cat conftest.err >&5
34755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756   (exit $ac_status); } && {
34757          test -z "$ac_c_werror_flag" ||
34758          test ! -s conftest.err
34759        } && test -s conftest.$ac_objext; then
34760   ac_hi=-1 ac_mid=-1
34761   while :; do
34762     cat >conftest.$ac_ext <<_ACEOF
34763 /* confdefs.h.  */
34764 _ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h.  */
34768 $ac_includes_default
34769    typedef short int ac__type_sizeof_;
34770 int
34771 main ()
34772 {
34773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34774 test_array [0] = 0
34775
34776   ;
34777   return 0;
34778 }
34779 _ACEOF
34780 rm -f conftest.$ac_objext
34781 if { (ac_try="$ac_compile"
34782 case "(($ac_try" in
34783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784   *) ac_try_echo=$ac_try;;
34785 esac
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787   (eval "$ac_compile") 2>conftest.er1
34788   ac_status=$?
34789   grep -v '^ *+' conftest.er1 >conftest.err
34790   rm -f conftest.er1
34791   cat conftest.err >&5
34792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793   (exit $ac_status); } && {
34794          test -z "$ac_c_werror_flag" ||
34795          test ! -s conftest.err
34796        } && test -s conftest.$ac_objext; then
34797   ac_lo=$ac_mid; break
34798 else
34799   echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34801
34802         ac_hi=`expr '(' $ac_mid ')' - 1`
34803                         if test $ac_mid -le $ac_hi; then
34804                           ac_lo= ac_hi=
34805                           break
34806                         fi
34807                         ac_mid=`expr 2 '*' $ac_mid`
34808 fi
34809
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34811   done
34812 else
34813   echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34815
34816         ac_lo= ac_hi=
34817 fi
34818
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34820 fi
34821
34822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34823 # Binary search between lo and hi bounds.
34824 while test "x$ac_lo" != "x$ac_hi"; do
34825   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34826   cat >conftest.$ac_ext <<_ACEOF
34827 /* confdefs.h.  */
34828 _ACEOF
34829 cat confdefs.h >>conftest.$ac_ext
34830 cat >>conftest.$ac_ext <<_ACEOF
34831 /* end confdefs.h.  */
34832 $ac_includes_default
34833    typedef short int ac__type_sizeof_;
34834 int
34835 main ()
34836 {
34837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34838 test_array [0] = 0
34839
34840   ;
34841   return 0;
34842 }
34843 _ACEOF
34844 rm -f conftest.$ac_objext
34845 if { (ac_try="$ac_compile"
34846 case "(($ac_try" in
34847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848   *) ac_try_echo=$ac_try;;
34849 esac
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851   (eval "$ac_compile") 2>conftest.er1
34852   ac_status=$?
34853   grep -v '^ *+' conftest.er1 >conftest.err
34854   rm -f conftest.er1
34855   cat conftest.err >&5
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); } && {
34858          test -z "$ac_c_werror_flag" ||
34859          test ! -s conftest.err
34860        } && test -s conftest.$ac_objext; then
34861   ac_hi=$ac_mid
34862 else
34863   echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.$ac_ext >&5
34865
34866         ac_lo=`expr '(' $ac_mid ')' + 1`
34867 fi
34868
34869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34870 done
34871 case $ac_lo in
34872 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34873 '') if test "$ac_cv_type_short_int" = yes; then
34874      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34875 See \`config.log' for more details." >&5
34876 echo "$as_me: error: cannot compute sizeof (short int)
34877 See \`config.log' for more details." >&2;}
34878    { (exit 77); exit 77; }; }
34879    else
34880      ac_cv_sizeof_short_int=0
34881    fi ;;
34882 esac
34883 else
34884   cat >conftest.$ac_ext <<_ACEOF
34885 /* confdefs.h.  */
34886 _ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h.  */
34890 $ac_includes_default
34891    typedef short int ac__type_sizeof_;
34892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34894 #include <stdio.h>
34895 #include <stdlib.h>
34896 int
34897 main ()
34898 {
34899
34900   FILE *f = fopen ("conftest.val", "w");
34901   if (! f)
34902     return 1;
34903   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34904     {
34905       long int i = longval ();
34906       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34907         return 1;
34908       fprintf (f, "%ld\n", i);
34909     }
34910   else
34911     {
34912       unsigned long int i = ulongval ();
34913       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34914         return 1;
34915       fprintf (f, "%lu\n", i);
34916     }
34917   return ferror (f) || fclose (f) != 0;
34918
34919   ;
34920   return 0;
34921 }
34922 _ACEOF
34923 rm -f conftest$ac_exeext
34924 if { (ac_try="$ac_link"
34925 case "(($ac_try" in
34926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34927   *) ac_try_echo=$ac_try;;
34928 esac
34929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34930   (eval "$ac_link") 2>&5
34931   ac_status=$?
34932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34934   { (case "(($ac_try" in
34935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936   *) ac_try_echo=$ac_try;;
34937 esac
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939   (eval "$ac_try") 2>&5
34940   ac_status=$?
34941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942   (exit $ac_status); }; }; then
34943   ac_cv_sizeof_short_int=`cat conftest.val`
34944 else
34945   echo "$as_me: program exited with status $ac_status" >&5
34946 echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34948
34949 ( exit $ac_status )
34950 if test "$ac_cv_type_short_int" = yes; then
34951      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34952 See \`config.log' for more details." >&5
34953 echo "$as_me: error: cannot compute sizeof (short int)
34954 See \`config.log' for more details." >&2;}
34955    { (exit 77); exit 77; }; }
34956    else
34957      ac_cv_sizeof_short_int=0
34958    fi
34959 fi
34960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34961 fi
34962 rm -f conftest.val
34963 fi
34964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34965 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34966
34967
34968
34969 cat >>confdefs.h <<_ACEOF
34970 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34971 _ACEOF
34972
34973
34974 { echo "$as_me:$LINENO: checking for int" >&5
34975 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34976 if test "${ac_cv_type_int+set}" = set; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979   cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h.  */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h.  */
34985 $ac_includes_default
34986 typedef int ac__type_new_;
34987 int
34988 main ()
34989 {
34990 if ((ac__type_new_ *) 0)
34991   return 0;
34992 if (sizeof (ac__type_new_))
34993   return 0;
34994   ;
34995   return 0;
34996 }
34997 _ACEOF
34998 rm -f conftest.$ac_objext
34999 if { (ac_try="$ac_compile"
35000 case "(($ac_try" in
35001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002   *) ac_try_echo=$ac_try;;
35003 esac
35004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35005   (eval "$ac_compile") 2>conftest.er1
35006   ac_status=$?
35007   grep -v '^ *+' conftest.er1 >conftest.err
35008   rm -f conftest.er1
35009   cat conftest.err >&5
35010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011   (exit $ac_status); } && {
35012          test -z "$ac_c_werror_flag" ||
35013          test ! -s conftest.err
35014        } && test -s conftest.$ac_objext; then
35015   ac_cv_type_int=yes
35016 else
35017   echo "$as_me: failed program was:" >&5
35018 sed 's/^/| /' conftest.$ac_ext >&5
35019
35020         ac_cv_type_int=no
35021 fi
35022
35023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35024 fi
35025 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35026 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35027
35028 # The cast to long int works around a bug in the HP C Compiler
35029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35031 # This bug is HP SR number 8606223364.
35032 { echo "$as_me:$LINENO: checking size of int" >&5
35033 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35034 if test "${ac_cv_sizeof_int+set}" = set; then
35035   echo $ECHO_N "(cached) $ECHO_C" >&6
35036 else
35037   if test "$cross_compiling" = yes; then
35038   # Depending upon the size, compute the lo and hi bounds.
35039 cat >conftest.$ac_ext <<_ACEOF
35040 /* confdefs.h.  */
35041 _ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h.  */
35045 $ac_includes_default
35046    typedef int ac__type_sizeof_;
35047 int
35048 main ()
35049 {
35050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35051 test_array [0] = 0
35052
35053   ;
35054   return 0;
35055 }
35056 _ACEOF
35057 rm -f conftest.$ac_objext
35058 if { (ac_try="$ac_compile"
35059 case "(($ac_try" in
35060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35061   *) ac_try_echo=$ac_try;;
35062 esac
35063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35064   (eval "$ac_compile") 2>conftest.er1
35065   ac_status=$?
35066   grep -v '^ *+' conftest.er1 >conftest.err
35067   rm -f conftest.er1
35068   cat conftest.err >&5
35069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); } && {
35071          test -z "$ac_c_werror_flag" ||
35072          test ! -s conftest.err
35073        } && test -s conftest.$ac_objext; then
35074   ac_lo=0 ac_mid=0
35075   while :; do
35076     cat >conftest.$ac_ext <<_ACEOF
35077 /* confdefs.h.  */
35078 _ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h.  */
35082 $ac_includes_default
35083    typedef int ac__type_sizeof_;
35084 int
35085 main ()
35086 {
35087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35088 test_array [0] = 0
35089
35090   ;
35091   return 0;
35092 }
35093 _ACEOF
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098   *) ac_try_echo=$ac_try;;
35099 esac
35100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35101   (eval "$ac_compile") 2>conftest.er1
35102   ac_status=$?
35103   grep -v '^ *+' conftest.er1 >conftest.err
35104   rm -f conftest.er1
35105   cat conftest.err >&5
35106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107   (exit $ac_status); } && {
35108          test -z "$ac_c_werror_flag" ||
35109          test ! -s conftest.err
35110        } && test -s conftest.$ac_objext; then
35111   ac_hi=$ac_mid; break
35112 else
35113   echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35115
35116         ac_lo=`expr $ac_mid + 1`
35117                         if test $ac_lo -le $ac_mid; then
35118                           ac_lo= ac_hi=
35119                           break
35120                         fi
35121                         ac_mid=`expr 2 '*' $ac_mid + 1`
35122 fi
35123
35124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35125   done
35126 else
35127   echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35129
35130         cat >conftest.$ac_ext <<_ACEOF
35131 /* confdefs.h.  */
35132 _ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h.  */
35136 $ac_includes_default
35137    typedef int ac__type_sizeof_;
35138 int
35139 main ()
35140 {
35141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35142 test_array [0] = 0
35143
35144   ;
35145   return 0;
35146 }
35147 _ACEOF
35148 rm -f conftest.$ac_objext
35149 if { (ac_try="$ac_compile"
35150 case "(($ac_try" in
35151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152   *) ac_try_echo=$ac_try;;
35153 esac
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155   (eval "$ac_compile") 2>conftest.er1
35156   ac_status=$?
35157   grep -v '^ *+' conftest.er1 >conftest.err
35158   rm -f conftest.er1
35159   cat conftest.err >&5
35160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161   (exit $ac_status); } && {
35162          test -z "$ac_c_werror_flag" ||
35163          test ! -s conftest.err
35164        } && test -s conftest.$ac_objext; then
35165   ac_hi=-1 ac_mid=-1
35166   while :; do
35167     cat >conftest.$ac_ext <<_ACEOF
35168 /* confdefs.h.  */
35169 _ACEOF
35170 cat confdefs.h >>conftest.$ac_ext
35171 cat >>conftest.$ac_ext <<_ACEOF
35172 /* end confdefs.h.  */
35173 $ac_includes_default
35174    typedef int ac__type_sizeof_;
35175 int
35176 main ()
35177 {
35178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35179 test_array [0] = 0
35180
35181   ;
35182   return 0;
35183 }
35184 _ACEOF
35185 rm -f conftest.$ac_objext
35186 if { (ac_try="$ac_compile"
35187 case "(($ac_try" in
35188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189   *) ac_try_echo=$ac_try;;
35190 esac
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192   (eval "$ac_compile") 2>conftest.er1
35193   ac_status=$?
35194   grep -v '^ *+' conftest.er1 >conftest.err
35195   rm -f conftest.er1
35196   cat conftest.err >&5
35197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198   (exit $ac_status); } && {
35199          test -z "$ac_c_werror_flag" ||
35200          test ! -s conftest.err
35201        } && test -s conftest.$ac_objext; then
35202   ac_lo=$ac_mid; break
35203 else
35204   echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35206
35207         ac_hi=`expr '(' $ac_mid ')' - 1`
35208                         if test $ac_mid -le $ac_hi; then
35209                           ac_lo= ac_hi=
35210                           break
35211                         fi
35212                         ac_mid=`expr 2 '*' $ac_mid`
35213 fi
35214
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35216   done
35217 else
35218   echo "$as_me: failed program was:" >&5
35219 sed 's/^/| /' conftest.$ac_ext >&5
35220
35221         ac_lo= ac_hi=
35222 fi
35223
35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35225 fi
35226
35227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35228 # Binary search between lo and hi bounds.
35229 while test "x$ac_lo" != "x$ac_hi"; do
35230   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35231   cat >conftest.$ac_ext <<_ACEOF
35232 /* confdefs.h.  */
35233 _ACEOF
35234 cat confdefs.h >>conftest.$ac_ext
35235 cat >>conftest.$ac_ext <<_ACEOF
35236 /* end confdefs.h.  */
35237 $ac_includes_default
35238    typedef int ac__type_sizeof_;
35239 int
35240 main ()
35241 {
35242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35243 test_array [0] = 0
35244
35245   ;
35246   return 0;
35247 }
35248 _ACEOF
35249 rm -f conftest.$ac_objext
35250 if { (ac_try="$ac_compile"
35251 case "(($ac_try" in
35252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35253   *) ac_try_echo=$ac_try;;
35254 esac
35255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35256   (eval "$ac_compile") 2>conftest.er1
35257   ac_status=$?
35258   grep -v '^ *+' conftest.er1 >conftest.err
35259   rm -f conftest.er1
35260   cat conftest.err >&5
35261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262   (exit $ac_status); } && {
35263          test -z "$ac_c_werror_flag" ||
35264          test ! -s conftest.err
35265        } && test -s conftest.$ac_objext; then
35266   ac_hi=$ac_mid
35267 else
35268   echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35270
35271         ac_lo=`expr '(' $ac_mid ')' + 1`
35272 fi
35273
35274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35275 done
35276 case $ac_lo in
35277 ?*) ac_cv_sizeof_int=$ac_lo;;
35278 '') if test "$ac_cv_type_int" = yes; then
35279      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35280 See \`config.log' for more details." >&5
35281 echo "$as_me: error: cannot compute sizeof (int)
35282 See \`config.log' for more details." >&2;}
35283    { (exit 77); exit 77; }; }
35284    else
35285      ac_cv_sizeof_int=0
35286    fi ;;
35287 esac
35288 else
35289   cat >conftest.$ac_ext <<_ACEOF
35290 /* confdefs.h.  */
35291 _ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h.  */
35295 $ac_includes_default
35296    typedef int ac__type_sizeof_;
35297 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35298 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35299 #include <stdio.h>
35300 #include <stdlib.h>
35301 int
35302 main ()
35303 {
35304
35305   FILE *f = fopen ("conftest.val", "w");
35306   if (! f)
35307     return 1;
35308   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35309     {
35310       long int i = longval ();
35311       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35312         return 1;
35313       fprintf (f, "%ld\n", i);
35314     }
35315   else
35316     {
35317       unsigned long int i = ulongval ();
35318       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35319         return 1;
35320       fprintf (f, "%lu\n", i);
35321     }
35322   return ferror (f) || fclose (f) != 0;
35323
35324   ;
35325   return 0;
35326 }
35327 _ACEOF
35328 rm -f conftest$ac_exeext
35329 if { (ac_try="$ac_link"
35330 case "(($ac_try" in
35331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332   *) ac_try_echo=$ac_try;;
35333 esac
35334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335   (eval "$ac_link") 2>&5
35336   ac_status=$?
35337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35339   { (case "(($ac_try" in
35340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341   *) ac_try_echo=$ac_try;;
35342 esac
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344   (eval "$ac_try") 2>&5
35345   ac_status=$?
35346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347   (exit $ac_status); }; }; then
35348   ac_cv_sizeof_int=`cat conftest.val`
35349 else
35350   echo "$as_me: program exited with status $ac_status" >&5
35351 echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35353
35354 ( exit $ac_status )
35355 if test "$ac_cv_type_int" = yes; then
35356      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35357 See \`config.log' for more details." >&5
35358 echo "$as_me: error: cannot compute sizeof (int)
35359 See \`config.log' for more details." >&2;}
35360    { (exit 77); exit 77; }; }
35361    else
35362      ac_cv_sizeof_int=0
35363    fi
35364 fi
35365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35366 fi
35367 rm -f conftest.val
35368 fi
35369 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35370 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35371
35372
35373
35374 cat >>confdefs.h <<_ACEOF
35375 #define SIZEOF_INT $ac_cv_sizeof_int
35376 _ACEOF
35377
35378
35379 { echo "$as_me:$LINENO: checking for long int" >&5
35380 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35381 if test "${ac_cv_type_long_int+set}" = set; then
35382   echo $ECHO_N "(cached) $ECHO_C" >&6
35383 else
35384   cat >conftest.$ac_ext <<_ACEOF
35385 /* confdefs.h.  */
35386 _ACEOF
35387 cat confdefs.h >>conftest.$ac_ext
35388 cat >>conftest.$ac_ext <<_ACEOF
35389 /* end confdefs.h.  */
35390 $ac_includes_default
35391 typedef long int ac__type_new_;
35392 int
35393 main ()
35394 {
35395 if ((ac__type_new_ *) 0)
35396   return 0;
35397 if (sizeof (ac__type_new_))
35398   return 0;
35399   ;
35400   return 0;
35401 }
35402 _ACEOF
35403 rm -f conftest.$ac_objext
35404 if { (ac_try="$ac_compile"
35405 case "(($ac_try" in
35406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35407   *) ac_try_echo=$ac_try;;
35408 esac
35409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35410   (eval "$ac_compile") 2>conftest.er1
35411   ac_status=$?
35412   grep -v '^ *+' conftest.er1 >conftest.err
35413   rm -f conftest.er1
35414   cat conftest.err >&5
35415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416   (exit $ac_status); } && {
35417          test -z "$ac_c_werror_flag" ||
35418          test ! -s conftest.err
35419        } && test -s conftest.$ac_objext; then
35420   ac_cv_type_long_int=yes
35421 else
35422   echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.$ac_ext >&5
35424
35425         ac_cv_type_long_int=no
35426 fi
35427
35428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35429 fi
35430 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35431 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35432
35433 # The cast to long int works around a bug in the HP C Compiler
35434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35436 # This bug is HP SR number 8606223364.
35437 { echo "$as_me:$LINENO: checking size of long int" >&5
35438 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35439 if test "${ac_cv_sizeof_long_int+set}" = set; then
35440   echo $ECHO_N "(cached) $ECHO_C" >&6
35441 else
35442   if test "$cross_compiling" = yes; then
35443   # Depending upon the size, compute the lo and hi bounds.
35444 cat >conftest.$ac_ext <<_ACEOF
35445 /* confdefs.h.  */
35446 _ACEOF
35447 cat confdefs.h >>conftest.$ac_ext
35448 cat >>conftest.$ac_ext <<_ACEOF
35449 /* end confdefs.h.  */
35450 $ac_includes_default
35451    typedef long int ac__type_sizeof_;
35452 int
35453 main ()
35454 {
35455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35456 test_array [0] = 0
35457
35458   ;
35459   return 0;
35460 }
35461 _ACEOF
35462 rm -f conftest.$ac_objext
35463 if { (ac_try="$ac_compile"
35464 case "(($ac_try" in
35465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466   *) ac_try_echo=$ac_try;;
35467 esac
35468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35469   (eval "$ac_compile") 2>conftest.er1
35470   ac_status=$?
35471   grep -v '^ *+' conftest.er1 >conftest.err
35472   rm -f conftest.er1
35473   cat conftest.err >&5
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); } && {
35476          test -z "$ac_c_werror_flag" ||
35477          test ! -s conftest.err
35478        } && test -s conftest.$ac_objext; then
35479   ac_lo=0 ac_mid=0
35480   while :; do
35481     cat >conftest.$ac_ext <<_ACEOF
35482 /* confdefs.h.  */
35483 _ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h.  */
35487 $ac_includes_default
35488    typedef long int ac__type_sizeof_;
35489 int
35490 main ()
35491 {
35492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35493 test_array [0] = 0
35494
35495   ;
35496   return 0;
35497 }
35498 _ACEOF
35499 rm -f conftest.$ac_objext
35500 if { (ac_try="$ac_compile"
35501 case "(($ac_try" in
35502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35503   *) ac_try_echo=$ac_try;;
35504 esac
35505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35506   (eval "$ac_compile") 2>conftest.er1
35507   ac_status=$?
35508   grep -v '^ *+' conftest.er1 >conftest.err
35509   rm -f conftest.er1
35510   cat conftest.err >&5
35511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512   (exit $ac_status); } && {
35513          test -z "$ac_c_werror_flag" ||
35514          test ! -s conftest.err
35515        } && test -s conftest.$ac_objext; then
35516   ac_hi=$ac_mid; break
35517 else
35518   echo "$as_me: failed program was:" >&5
35519 sed 's/^/| /' conftest.$ac_ext >&5
35520
35521         ac_lo=`expr $ac_mid + 1`
35522                         if test $ac_lo -le $ac_mid; then
35523                           ac_lo= ac_hi=
35524                           break
35525                         fi
35526                         ac_mid=`expr 2 '*' $ac_mid + 1`
35527 fi
35528
35529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35530   done
35531 else
35532   echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35534
35535         cat >conftest.$ac_ext <<_ACEOF
35536 /* confdefs.h.  */
35537 _ACEOF
35538 cat confdefs.h >>conftest.$ac_ext
35539 cat >>conftest.$ac_ext <<_ACEOF
35540 /* end confdefs.h.  */
35541 $ac_includes_default
35542    typedef long int ac__type_sizeof_;
35543 int
35544 main ()
35545 {
35546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35547 test_array [0] = 0
35548
35549   ;
35550   return 0;
35551 }
35552 _ACEOF
35553 rm -f conftest.$ac_objext
35554 if { (ac_try="$ac_compile"
35555 case "(($ac_try" in
35556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35557   *) ac_try_echo=$ac_try;;
35558 esac
35559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35560   (eval "$ac_compile") 2>conftest.er1
35561   ac_status=$?
35562   grep -v '^ *+' conftest.er1 >conftest.err
35563   rm -f conftest.er1
35564   cat conftest.err >&5
35565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566   (exit $ac_status); } && {
35567          test -z "$ac_c_werror_flag" ||
35568          test ! -s conftest.err
35569        } && test -s conftest.$ac_objext; then
35570   ac_hi=-1 ac_mid=-1
35571   while :; do
35572     cat >conftest.$ac_ext <<_ACEOF
35573 /* confdefs.h.  */
35574 _ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h.  */
35578 $ac_includes_default
35579    typedef long int ac__type_sizeof_;
35580 int
35581 main ()
35582 {
35583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35584 test_array [0] = 0
35585
35586   ;
35587   return 0;
35588 }
35589 _ACEOF
35590 rm -f conftest.$ac_objext
35591 if { (ac_try="$ac_compile"
35592 case "(($ac_try" in
35593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594   *) ac_try_echo=$ac_try;;
35595 esac
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597   (eval "$ac_compile") 2>conftest.er1
35598   ac_status=$?
35599   grep -v '^ *+' conftest.er1 >conftest.err
35600   rm -f conftest.er1
35601   cat conftest.err >&5
35602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603   (exit $ac_status); } && {
35604          test -z "$ac_c_werror_flag" ||
35605          test ! -s conftest.err
35606        } && test -s conftest.$ac_objext; then
35607   ac_lo=$ac_mid; break
35608 else
35609   echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35611
35612         ac_hi=`expr '(' $ac_mid ')' - 1`
35613                         if test $ac_mid -le $ac_hi; then
35614                           ac_lo= ac_hi=
35615                           break
35616                         fi
35617                         ac_mid=`expr 2 '*' $ac_mid`
35618 fi
35619
35620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35621   done
35622 else
35623   echo "$as_me: failed program was:" >&5
35624 sed 's/^/| /' conftest.$ac_ext >&5
35625
35626         ac_lo= ac_hi=
35627 fi
35628
35629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35630 fi
35631
35632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35633 # Binary search between lo and hi bounds.
35634 while test "x$ac_lo" != "x$ac_hi"; do
35635   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35636   cat >conftest.$ac_ext <<_ACEOF
35637 /* confdefs.h.  */
35638 _ACEOF
35639 cat confdefs.h >>conftest.$ac_ext
35640 cat >>conftest.$ac_ext <<_ACEOF
35641 /* end confdefs.h.  */
35642 $ac_includes_default
35643    typedef long int ac__type_sizeof_;
35644 int
35645 main ()
35646 {
35647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35648 test_array [0] = 0
35649
35650   ;
35651   return 0;
35652 }
35653 _ACEOF
35654 rm -f conftest.$ac_objext
35655 if { (ac_try="$ac_compile"
35656 case "(($ac_try" in
35657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35658   *) ac_try_echo=$ac_try;;
35659 esac
35660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35661   (eval "$ac_compile") 2>conftest.er1
35662   ac_status=$?
35663   grep -v '^ *+' conftest.er1 >conftest.err
35664   rm -f conftest.er1
35665   cat conftest.err >&5
35666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); } && {
35668          test -z "$ac_c_werror_flag" ||
35669          test ! -s conftest.err
35670        } && test -s conftest.$ac_objext; then
35671   ac_hi=$ac_mid
35672 else
35673   echo "$as_me: failed program was:" >&5
35674 sed 's/^/| /' conftest.$ac_ext >&5
35675
35676         ac_lo=`expr '(' $ac_mid ')' + 1`
35677 fi
35678
35679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35680 done
35681 case $ac_lo in
35682 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35683 '') if test "$ac_cv_type_long_int" = yes; then
35684      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35685 See \`config.log' for more details." >&5
35686 echo "$as_me: error: cannot compute sizeof (long int)
35687 See \`config.log' for more details." >&2;}
35688    { (exit 77); exit 77; }; }
35689    else
35690      ac_cv_sizeof_long_int=0
35691    fi ;;
35692 esac
35693 else
35694   cat >conftest.$ac_ext <<_ACEOF
35695 /* confdefs.h.  */
35696 _ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h.  */
35700 $ac_includes_default
35701    typedef long int ac__type_sizeof_;
35702 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35703 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35704 #include <stdio.h>
35705 #include <stdlib.h>
35706 int
35707 main ()
35708 {
35709
35710   FILE *f = fopen ("conftest.val", "w");
35711   if (! f)
35712     return 1;
35713   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35714     {
35715       long int i = longval ();
35716       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35717         return 1;
35718       fprintf (f, "%ld\n", i);
35719     }
35720   else
35721     {
35722       unsigned long int i = ulongval ();
35723       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35724         return 1;
35725       fprintf (f, "%lu\n", i);
35726     }
35727   return ferror (f) || fclose (f) != 0;
35728
35729   ;
35730   return 0;
35731 }
35732 _ACEOF
35733 rm -f conftest$ac_exeext
35734 if { (ac_try="$ac_link"
35735 case "(($ac_try" in
35736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35737   *) ac_try_echo=$ac_try;;
35738 esac
35739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35740   (eval "$ac_link") 2>&5
35741   ac_status=$?
35742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35744   { (case "(($ac_try" in
35745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746   *) ac_try_echo=$ac_try;;
35747 esac
35748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35749   (eval "$ac_try") 2>&5
35750   ac_status=$?
35751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752   (exit $ac_status); }; }; then
35753   ac_cv_sizeof_long_int=`cat conftest.val`
35754 else
35755   echo "$as_me: program exited with status $ac_status" >&5
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35758
35759 ( exit $ac_status )
35760 if test "$ac_cv_type_long_int" = yes; then
35761      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35762 See \`config.log' for more details." >&5
35763 echo "$as_me: error: cannot compute sizeof (long int)
35764 See \`config.log' for more details." >&2;}
35765    { (exit 77); exit 77; }; }
35766    else
35767      ac_cv_sizeof_long_int=0
35768    fi
35769 fi
35770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35771 fi
35772 rm -f conftest.val
35773 fi
35774 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35775 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35776
35777
35778
35779 cat >>confdefs.h <<_ACEOF
35780 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35781 _ACEOF
35782
35783
35784 { echo "$as_me:$LINENO: checking for long long int" >&5
35785 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35786 if test "${ac_cv_type_long_long_int+set}" = set; then
35787   echo $ECHO_N "(cached) $ECHO_C" >&6
35788 else
35789   cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795 $ac_includes_default
35796 typedef long long int ac__type_new_;
35797 int
35798 main ()
35799 {
35800 if ((ac__type_new_ *) 0)
35801   return 0;
35802 if (sizeof (ac__type_new_))
35803   return 0;
35804   ;
35805   return 0;
35806 }
35807 _ACEOF
35808 rm -f conftest.$ac_objext
35809 if { (ac_try="$ac_compile"
35810 case "(($ac_try" in
35811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35812   *) ac_try_echo=$ac_try;;
35813 esac
35814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35815   (eval "$ac_compile") 2>conftest.er1
35816   ac_status=$?
35817   grep -v '^ *+' conftest.er1 >conftest.err
35818   rm -f conftest.er1
35819   cat conftest.err >&5
35820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821   (exit $ac_status); } && {
35822          test -z "$ac_c_werror_flag" ||
35823          test ! -s conftest.err
35824        } && test -s conftest.$ac_objext; then
35825   ac_cv_type_long_long_int=yes
35826 else
35827   echo "$as_me: failed program was:" >&5
35828 sed 's/^/| /' conftest.$ac_ext >&5
35829
35830         ac_cv_type_long_long_int=no
35831 fi
35832
35833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35834 fi
35835 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35836 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35837
35838 # The cast to long int works around a bug in the HP C Compiler
35839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35841 # This bug is HP SR number 8606223364.
35842 { echo "$as_me:$LINENO: checking size of long long int" >&5
35843 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35844 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35845   echo $ECHO_N "(cached) $ECHO_C" >&6
35846 else
35847   if test "$cross_compiling" = yes; then
35848   # Depending upon the size, compute the lo and hi bounds.
35849 cat >conftest.$ac_ext <<_ACEOF
35850 /* confdefs.h.  */
35851 _ACEOF
35852 cat confdefs.h >>conftest.$ac_ext
35853 cat >>conftest.$ac_ext <<_ACEOF
35854 /* end confdefs.h.  */
35855 $ac_includes_default
35856    typedef long long int ac__type_sizeof_;
35857 int
35858 main ()
35859 {
35860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35861 test_array [0] = 0
35862
35863   ;
35864   return 0;
35865 }
35866 _ACEOF
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871   *) ac_try_echo=$ac_try;;
35872 esac
35873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874   (eval "$ac_compile") 2>conftest.er1
35875   ac_status=$?
35876   grep -v '^ *+' conftest.er1 >conftest.err
35877   rm -f conftest.er1
35878   cat conftest.err >&5
35879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880   (exit $ac_status); } && {
35881          test -z "$ac_c_werror_flag" ||
35882          test ! -s conftest.err
35883        } && test -s conftest.$ac_objext; then
35884   ac_lo=0 ac_mid=0
35885   while :; do
35886     cat >conftest.$ac_ext <<_ACEOF
35887 /* confdefs.h.  */
35888 _ACEOF
35889 cat confdefs.h >>conftest.$ac_ext
35890 cat >>conftest.$ac_ext <<_ACEOF
35891 /* end confdefs.h.  */
35892 $ac_includes_default
35893    typedef long long int ac__type_sizeof_;
35894 int
35895 main ()
35896 {
35897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35898 test_array [0] = 0
35899
35900   ;
35901   return 0;
35902 }
35903 _ACEOF
35904 rm -f conftest.$ac_objext
35905 if { (ac_try="$ac_compile"
35906 case "(($ac_try" in
35907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35908   *) ac_try_echo=$ac_try;;
35909 esac
35910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35911   (eval "$ac_compile") 2>conftest.er1
35912   ac_status=$?
35913   grep -v '^ *+' conftest.er1 >conftest.err
35914   rm -f conftest.er1
35915   cat conftest.err >&5
35916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917   (exit $ac_status); } && {
35918          test -z "$ac_c_werror_flag" ||
35919          test ! -s conftest.err
35920        } && test -s conftest.$ac_objext; then
35921   ac_hi=$ac_mid; break
35922 else
35923   echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35925
35926         ac_lo=`expr $ac_mid + 1`
35927                         if test $ac_lo -le $ac_mid; then
35928                           ac_lo= ac_hi=
35929                           break
35930                         fi
35931                         ac_mid=`expr 2 '*' $ac_mid + 1`
35932 fi
35933
35934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35935   done
35936 else
35937   echo "$as_me: failed program was:" >&5
35938 sed 's/^/| /' conftest.$ac_ext >&5
35939
35940         cat >conftest.$ac_ext <<_ACEOF
35941 /* confdefs.h.  */
35942 _ACEOF
35943 cat confdefs.h >>conftest.$ac_ext
35944 cat >>conftest.$ac_ext <<_ACEOF
35945 /* end confdefs.h.  */
35946 $ac_includes_default
35947    typedef long long int ac__type_sizeof_;
35948 int
35949 main ()
35950 {
35951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35952 test_array [0] = 0
35953
35954   ;
35955   return 0;
35956 }
35957 _ACEOF
35958 rm -f conftest.$ac_objext
35959 if { (ac_try="$ac_compile"
35960 case "(($ac_try" in
35961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962   *) ac_try_echo=$ac_try;;
35963 esac
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965   (eval "$ac_compile") 2>conftest.er1
35966   ac_status=$?
35967   grep -v '^ *+' conftest.er1 >conftest.err
35968   rm -f conftest.er1
35969   cat conftest.err >&5
35970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971   (exit $ac_status); } && {
35972          test -z "$ac_c_werror_flag" ||
35973          test ! -s conftest.err
35974        } && test -s conftest.$ac_objext; then
35975   ac_hi=-1 ac_mid=-1
35976   while :; do
35977     cat >conftest.$ac_ext <<_ACEOF
35978 /* confdefs.h.  */
35979 _ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h.  */
35983 $ac_includes_default
35984    typedef long long int ac__type_sizeof_;
35985 int
35986 main ()
35987 {
35988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35989 test_array [0] = 0
35990
35991   ;
35992   return 0;
35993 }
35994 _ACEOF
35995 rm -f conftest.$ac_objext
35996 if { (ac_try="$ac_compile"
35997 case "(($ac_try" in
35998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35999   *) ac_try_echo=$ac_try;;
36000 esac
36001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36002   (eval "$ac_compile") 2>conftest.er1
36003   ac_status=$?
36004   grep -v '^ *+' conftest.er1 >conftest.err
36005   rm -f conftest.er1
36006   cat conftest.err >&5
36007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008   (exit $ac_status); } && {
36009          test -z "$ac_c_werror_flag" ||
36010          test ! -s conftest.err
36011        } && test -s conftest.$ac_objext; then
36012   ac_lo=$ac_mid; break
36013 else
36014   echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36016
36017         ac_hi=`expr '(' $ac_mid ')' - 1`
36018                         if test $ac_mid -le $ac_hi; then
36019                           ac_lo= ac_hi=
36020                           break
36021                         fi
36022                         ac_mid=`expr 2 '*' $ac_mid`
36023 fi
36024
36025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36026   done
36027 else
36028   echo "$as_me: failed program was:" >&5
36029 sed 's/^/| /' conftest.$ac_ext >&5
36030
36031         ac_lo= ac_hi=
36032 fi
36033
36034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36035 fi
36036
36037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36038 # Binary search between lo and hi bounds.
36039 while test "x$ac_lo" != "x$ac_hi"; do
36040   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36041   cat >conftest.$ac_ext <<_ACEOF
36042 /* confdefs.h.  */
36043 _ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h.  */
36047 $ac_includes_default
36048    typedef long long int ac__type_sizeof_;
36049 int
36050 main ()
36051 {
36052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36053 test_array [0] = 0
36054
36055   ;
36056   return 0;
36057 }
36058 _ACEOF
36059 rm -f conftest.$ac_objext
36060 if { (ac_try="$ac_compile"
36061 case "(($ac_try" in
36062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36063   *) ac_try_echo=$ac_try;;
36064 esac
36065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36066   (eval "$ac_compile") 2>conftest.er1
36067   ac_status=$?
36068   grep -v '^ *+' conftest.er1 >conftest.err
36069   rm -f conftest.er1
36070   cat conftest.err >&5
36071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072   (exit $ac_status); } && {
36073          test -z "$ac_c_werror_flag" ||
36074          test ! -s conftest.err
36075        } && test -s conftest.$ac_objext; then
36076   ac_hi=$ac_mid
36077 else
36078   echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36080
36081         ac_lo=`expr '(' $ac_mid ')' + 1`
36082 fi
36083
36084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36085 done
36086 case $ac_lo in
36087 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36088 '') if test "$ac_cv_type_long_long_int" = yes; then
36089      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36090 See \`config.log' for more details." >&5
36091 echo "$as_me: error: cannot compute sizeof (long long int)
36092 See \`config.log' for more details." >&2;}
36093    { (exit 77); exit 77; }; }
36094    else
36095      ac_cv_sizeof_long_long_int=0
36096    fi ;;
36097 esac
36098 else
36099   cat >conftest.$ac_ext <<_ACEOF
36100 /* confdefs.h.  */
36101 _ACEOF
36102 cat confdefs.h >>conftest.$ac_ext
36103 cat >>conftest.$ac_ext <<_ACEOF
36104 /* end confdefs.h.  */
36105 $ac_includes_default
36106    typedef long long int ac__type_sizeof_;
36107 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36108 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36109 #include <stdio.h>
36110 #include <stdlib.h>
36111 int
36112 main ()
36113 {
36114
36115   FILE *f = fopen ("conftest.val", "w");
36116   if (! f)
36117     return 1;
36118   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36119     {
36120       long int i = longval ();
36121       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36122         return 1;
36123       fprintf (f, "%ld\n", i);
36124     }
36125   else
36126     {
36127       unsigned long int i = ulongval ();
36128       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36129         return 1;
36130       fprintf (f, "%lu\n", i);
36131     }
36132   return ferror (f) || fclose (f) != 0;
36133
36134   ;
36135   return 0;
36136 }
36137 _ACEOF
36138 rm -f conftest$ac_exeext
36139 if { (ac_try="$ac_link"
36140 case "(($ac_try" in
36141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36142   *) ac_try_echo=$ac_try;;
36143 esac
36144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36145   (eval "$ac_link") 2>&5
36146   ac_status=$?
36147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36149   { (case "(($ac_try" in
36150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151   *) ac_try_echo=$ac_try;;
36152 esac
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154   (eval "$ac_try") 2>&5
36155   ac_status=$?
36156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157   (exit $ac_status); }; }; then
36158   ac_cv_sizeof_long_long_int=`cat conftest.val`
36159 else
36160   echo "$as_me: program exited with status $ac_status" >&5
36161 echo "$as_me: failed program was:" >&5
36162 sed 's/^/| /' conftest.$ac_ext >&5
36163
36164 ( exit $ac_status )
36165 if test "$ac_cv_type_long_long_int" = yes; then
36166      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36167 See \`config.log' for more details." >&5
36168 echo "$as_me: error: cannot compute sizeof (long long int)
36169 See \`config.log' for more details." >&2;}
36170    { (exit 77); exit 77; }; }
36171    else
36172      ac_cv_sizeof_long_long_int=0
36173    fi
36174 fi
36175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36176 fi
36177 rm -f conftest.val
36178 fi
36179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36180 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36181
36182
36183
36184 cat >>confdefs.h <<_ACEOF
36185 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36186 _ACEOF
36187
36188
36189 { echo "$as_me:$LINENO: checking for int *" >&5
36190 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36191 if test "${ac_cv_type_int_p+set}" = set; then
36192   echo $ECHO_N "(cached) $ECHO_C" >&6
36193 else
36194   cat >conftest.$ac_ext <<_ACEOF
36195 /* confdefs.h.  */
36196 _ACEOF
36197 cat confdefs.h >>conftest.$ac_ext
36198 cat >>conftest.$ac_ext <<_ACEOF
36199 /* end confdefs.h.  */
36200 $ac_includes_default
36201 typedef int * ac__type_new_;
36202 int
36203 main ()
36204 {
36205 if ((ac__type_new_ *) 0)
36206   return 0;
36207 if (sizeof (ac__type_new_))
36208   return 0;
36209   ;
36210   return 0;
36211 }
36212 _ACEOF
36213 rm -f conftest.$ac_objext
36214 if { (ac_try="$ac_compile"
36215 case "(($ac_try" in
36216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36217   *) ac_try_echo=$ac_try;;
36218 esac
36219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36220   (eval "$ac_compile") 2>conftest.er1
36221   ac_status=$?
36222   grep -v '^ *+' conftest.er1 >conftest.err
36223   rm -f conftest.er1
36224   cat conftest.err >&5
36225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226   (exit $ac_status); } && {
36227          test -z "$ac_c_werror_flag" ||
36228          test ! -s conftest.err
36229        } && test -s conftest.$ac_objext; then
36230   ac_cv_type_int_p=yes
36231 else
36232   echo "$as_me: failed program was:" >&5
36233 sed 's/^/| /' conftest.$ac_ext >&5
36234
36235         ac_cv_type_int_p=no
36236 fi
36237
36238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36239 fi
36240 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36241 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36242
36243 # The cast to long int works around a bug in the HP C Compiler
36244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36246 # This bug is HP SR number 8606223364.
36247 { echo "$as_me:$LINENO: checking size of int *" >&5
36248 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36249 if test "${ac_cv_sizeof_int_p+set}" = set; then
36250   echo $ECHO_N "(cached) $ECHO_C" >&6
36251 else
36252   if test "$cross_compiling" = yes; then
36253   # Depending upon the size, compute the lo and hi bounds.
36254 cat >conftest.$ac_ext <<_ACEOF
36255 /* confdefs.h.  */
36256 _ACEOF
36257 cat confdefs.h >>conftest.$ac_ext
36258 cat >>conftest.$ac_ext <<_ACEOF
36259 /* end confdefs.h.  */
36260 $ac_includes_default
36261    typedef int * ac__type_sizeof_;
36262 int
36263 main ()
36264 {
36265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36266 test_array [0] = 0
36267
36268   ;
36269   return 0;
36270 }
36271 _ACEOF
36272 rm -f conftest.$ac_objext
36273 if { (ac_try="$ac_compile"
36274 case "(($ac_try" in
36275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36276   *) ac_try_echo=$ac_try;;
36277 esac
36278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36279   (eval "$ac_compile") 2>conftest.er1
36280   ac_status=$?
36281   grep -v '^ *+' conftest.er1 >conftest.err
36282   rm -f conftest.er1
36283   cat conftest.err >&5
36284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285   (exit $ac_status); } && {
36286          test -z "$ac_c_werror_flag" ||
36287          test ! -s conftest.err
36288        } && test -s conftest.$ac_objext; then
36289   ac_lo=0 ac_mid=0
36290   while :; do
36291     cat >conftest.$ac_ext <<_ACEOF
36292 /* confdefs.h.  */
36293 _ACEOF
36294 cat confdefs.h >>conftest.$ac_ext
36295 cat >>conftest.$ac_ext <<_ACEOF
36296 /* end confdefs.h.  */
36297 $ac_includes_default
36298    typedef int * ac__type_sizeof_;
36299 int
36300 main ()
36301 {
36302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36303 test_array [0] = 0
36304
36305   ;
36306   return 0;
36307 }
36308 _ACEOF
36309 rm -f conftest.$ac_objext
36310 if { (ac_try="$ac_compile"
36311 case "(($ac_try" in
36312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313   *) ac_try_echo=$ac_try;;
36314 esac
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316   (eval "$ac_compile") 2>conftest.er1
36317   ac_status=$?
36318   grep -v '^ *+' conftest.er1 >conftest.err
36319   rm -f conftest.er1
36320   cat conftest.err >&5
36321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322   (exit $ac_status); } && {
36323          test -z "$ac_c_werror_flag" ||
36324          test ! -s conftest.err
36325        } && test -s conftest.$ac_objext; then
36326   ac_hi=$ac_mid; break
36327 else
36328   echo "$as_me: failed program was:" >&5
36329 sed 's/^/| /' conftest.$ac_ext >&5
36330
36331         ac_lo=`expr $ac_mid + 1`
36332                         if test $ac_lo -le $ac_mid; then
36333                           ac_lo= ac_hi=
36334                           break
36335                         fi
36336                         ac_mid=`expr 2 '*' $ac_mid + 1`
36337 fi
36338
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36340   done
36341 else
36342   echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36344
36345         cat >conftest.$ac_ext <<_ACEOF
36346 /* confdefs.h.  */
36347 _ACEOF
36348 cat confdefs.h >>conftest.$ac_ext
36349 cat >>conftest.$ac_ext <<_ACEOF
36350 /* end confdefs.h.  */
36351 $ac_includes_default
36352    typedef int * ac__type_sizeof_;
36353 int
36354 main ()
36355 {
36356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36357 test_array [0] = 0
36358
36359   ;
36360   return 0;
36361 }
36362 _ACEOF
36363 rm -f conftest.$ac_objext
36364 if { (ac_try="$ac_compile"
36365 case "(($ac_try" in
36366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36367   *) ac_try_echo=$ac_try;;
36368 esac
36369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36370   (eval "$ac_compile") 2>conftest.er1
36371   ac_status=$?
36372   grep -v '^ *+' conftest.er1 >conftest.err
36373   rm -f conftest.er1
36374   cat conftest.err >&5
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); } && {
36377          test -z "$ac_c_werror_flag" ||
36378          test ! -s conftest.err
36379        } && test -s conftest.$ac_objext; then
36380   ac_hi=-1 ac_mid=-1
36381   while :; do
36382     cat >conftest.$ac_ext <<_ACEOF
36383 /* confdefs.h.  */
36384 _ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h.  */
36388 $ac_includes_default
36389    typedef int * ac__type_sizeof_;
36390 int
36391 main ()
36392 {
36393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36394 test_array [0] = 0
36395
36396   ;
36397   return 0;
36398 }
36399 _ACEOF
36400 rm -f conftest.$ac_objext
36401 if { (ac_try="$ac_compile"
36402 case "(($ac_try" in
36403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36404   *) ac_try_echo=$ac_try;;
36405 esac
36406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36407   (eval "$ac_compile") 2>conftest.er1
36408   ac_status=$?
36409   grep -v '^ *+' conftest.er1 >conftest.err
36410   rm -f conftest.er1
36411   cat conftest.err >&5
36412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413   (exit $ac_status); } && {
36414          test -z "$ac_c_werror_flag" ||
36415          test ! -s conftest.err
36416        } && test -s conftest.$ac_objext; then
36417   ac_lo=$ac_mid; break
36418 else
36419   echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36421
36422         ac_hi=`expr '(' $ac_mid ')' - 1`
36423                         if test $ac_mid -le $ac_hi; then
36424                           ac_lo= ac_hi=
36425                           break
36426                         fi
36427                         ac_mid=`expr 2 '*' $ac_mid`
36428 fi
36429
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36431   done
36432 else
36433   echo "$as_me: failed program was:" >&5
36434 sed 's/^/| /' conftest.$ac_ext >&5
36435
36436         ac_lo= ac_hi=
36437 fi
36438
36439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36440 fi
36441
36442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36443 # Binary search between lo and hi bounds.
36444 while test "x$ac_lo" != "x$ac_hi"; do
36445   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36446   cat >conftest.$ac_ext <<_ACEOF
36447 /* confdefs.h.  */
36448 _ACEOF
36449 cat confdefs.h >>conftest.$ac_ext
36450 cat >>conftest.$ac_ext <<_ACEOF
36451 /* end confdefs.h.  */
36452 $ac_includes_default
36453    typedef int * ac__type_sizeof_;
36454 int
36455 main ()
36456 {
36457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36458 test_array [0] = 0
36459
36460   ;
36461   return 0;
36462 }
36463 _ACEOF
36464 rm -f conftest.$ac_objext
36465 if { (ac_try="$ac_compile"
36466 case "(($ac_try" in
36467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36468   *) ac_try_echo=$ac_try;;
36469 esac
36470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36471   (eval "$ac_compile") 2>conftest.er1
36472   ac_status=$?
36473   grep -v '^ *+' conftest.er1 >conftest.err
36474   rm -f conftest.er1
36475   cat conftest.err >&5
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); } && {
36478          test -z "$ac_c_werror_flag" ||
36479          test ! -s conftest.err
36480        } && test -s conftest.$ac_objext; then
36481   ac_hi=$ac_mid
36482 else
36483   echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36485
36486         ac_lo=`expr '(' $ac_mid ')' + 1`
36487 fi
36488
36489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36490 done
36491 case $ac_lo in
36492 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36493 '') if test "$ac_cv_type_int_p" = yes; then
36494      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36495 See \`config.log' for more details." >&5
36496 echo "$as_me: error: cannot compute sizeof (int *)
36497 See \`config.log' for more details." >&2;}
36498    { (exit 77); exit 77; }; }
36499    else
36500      ac_cv_sizeof_int_p=0
36501    fi ;;
36502 esac
36503 else
36504   cat >conftest.$ac_ext <<_ACEOF
36505 /* confdefs.h.  */
36506 _ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h.  */
36510 $ac_includes_default
36511    typedef int * ac__type_sizeof_;
36512 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36513 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36514 #include <stdio.h>
36515 #include <stdlib.h>
36516 int
36517 main ()
36518 {
36519
36520   FILE *f = fopen ("conftest.val", "w");
36521   if (! f)
36522     return 1;
36523   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36524     {
36525       long int i = longval ();
36526       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36527         return 1;
36528       fprintf (f, "%ld\n", i);
36529     }
36530   else
36531     {
36532       unsigned long int i = ulongval ();
36533       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36534         return 1;
36535       fprintf (f, "%lu\n", i);
36536     }
36537   return ferror (f) || fclose (f) != 0;
36538
36539   ;
36540   return 0;
36541 }
36542 _ACEOF
36543 rm -f conftest$ac_exeext
36544 if { (ac_try="$ac_link"
36545 case "(($ac_try" in
36546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36547   *) ac_try_echo=$ac_try;;
36548 esac
36549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36550   (eval "$ac_link") 2>&5
36551   ac_status=$?
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36554   { (case "(($ac_try" in
36555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36556   *) ac_try_echo=$ac_try;;
36557 esac
36558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36559   (eval "$ac_try") 2>&5
36560   ac_status=$?
36561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562   (exit $ac_status); }; }; then
36563   ac_cv_sizeof_int_p=`cat conftest.val`
36564 else
36565   echo "$as_me: program exited with status $ac_status" >&5
36566 echo "$as_me: failed program was:" >&5
36567 sed 's/^/| /' conftest.$ac_ext >&5
36568
36569 ( exit $ac_status )
36570 if test "$ac_cv_type_int_p" = yes; then
36571      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36572 See \`config.log' for more details." >&5
36573 echo "$as_me: error: cannot compute sizeof (int *)
36574 See \`config.log' for more details." >&2;}
36575    { (exit 77); exit 77; }; }
36576    else
36577      ac_cv_sizeof_int_p=0
36578    fi
36579 fi
36580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36581 fi
36582 rm -f conftest.val
36583 fi
36584 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36585 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36586
36587
36588
36589 cat >>confdefs.h <<_ACEOF
36590 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36591 _ACEOF
36592
36593
36594
36595 { echo "$as_me:$LINENO: checking for u_int type" >&5
36596 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36597 if test "${ac_cv_have_u_int+set}" = set; then
36598   echo $ECHO_N "(cached) $ECHO_C" >&6
36599 else
36600
36601        cat >conftest.$ac_ext <<_ACEOF
36602 /* confdefs.h.  */
36603 _ACEOF
36604 cat confdefs.h >>conftest.$ac_ext
36605 cat >>conftest.$ac_ext <<_ACEOF
36606 /* end confdefs.h.  */
36607
36608               #include <sys/types.h>
36609
36610 int
36611 main ()
36612 {
36613
36614               u_int a; a = 1;
36615
36616   ;
36617   return 0;
36618 }
36619 _ACEOF
36620 rm -f conftest.$ac_objext
36621 if { (ac_try="$ac_compile"
36622 case "(($ac_try" in
36623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36624   *) ac_try_echo=$ac_try;;
36625 esac
36626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36627   (eval "$ac_compile") 2>conftest.er1
36628   ac_status=$?
36629   grep -v '^ *+' conftest.er1 >conftest.err
36630   rm -f conftest.er1
36631   cat conftest.err >&5
36632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633   (exit $ac_status); } && {
36634          test -z "$ac_c_werror_flag" ||
36635          test ! -s conftest.err
36636        } && test -s conftest.$ac_objext; then
36637
36638               ac_cv_have_u_int="yes"
36639
36640 else
36641   echo "$as_me: failed program was:" >&5
36642 sed 's/^/| /' conftest.$ac_ext >&5
36643
36644
36645               ac_cv_have_u_int="no"
36646
36647
36648 fi
36649
36650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36651
36652
36653 fi
36654 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36655 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36656 if test "x$ac_cv_have_u_int" = "xyes" ; then
36657    cat >>confdefs.h <<\_ACEOF
36658 #define HAVE_U_INT 1
36659 _ACEOF
36660
36661    have_u_int=1
36662 fi
36663
36664 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36665 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36666 if test "${ac_cv_have_intmax_t+set}" = set; then
36667   echo $ECHO_N "(cached) $ECHO_C" >&6
36668 else
36669
36670        cat >conftest.$ac_ext <<_ACEOF
36671 /* confdefs.h.  */
36672 _ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h.  */
36676
36677               #include <sys/types.h>
36678
36679 int
36680 main ()
36681 {
36682
36683               intmax_t a; a = 1;
36684
36685   ;
36686   return 0;
36687 }
36688 _ACEOF
36689 rm -f conftest.$ac_objext
36690 if { (ac_try="$ac_compile"
36691 case "(($ac_try" in
36692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693   *) ac_try_echo=$ac_try;;
36694 esac
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696   (eval "$ac_compile") 2>conftest.er1
36697   ac_status=$?
36698   grep -v '^ *+' conftest.er1 >conftest.err
36699   rm -f conftest.er1
36700   cat conftest.err >&5
36701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702   (exit $ac_status); } && {
36703          test -z "$ac_c_werror_flag" ||
36704          test ! -s conftest.err
36705        } && test -s conftest.$ac_objext; then
36706
36707               ac_cv_have_intmax_t="yes"
36708
36709 else
36710   echo "$as_me: failed program was:" >&5
36711 sed 's/^/| /' conftest.$ac_ext >&5
36712
36713
36714               cat >conftest.$ac_ext <<_ACEOF
36715 /* confdefs.h.  */
36716 _ACEOF
36717 cat confdefs.h >>conftest.$ac_ext
36718 cat >>conftest.$ac_ext <<_ACEOF
36719 /* end confdefs.h.  */
36720
36721                      #include <stdint.h>
36722
36723 int
36724 main ()
36725 {
36726
36727                      intmax_t a; a = 1;
36728
36729   ;
36730   return 0;
36731 }
36732 _ACEOF
36733 rm -f conftest.$ac_objext
36734 if { (ac_try="$ac_compile"
36735 case "(($ac_try" in
36736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36737   *) ac_try_echo=$ac_try;;
36738 esac
36739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36740   (eval "$ac_compile") 2>conftest.er1
36741   ac_status=$?
36742   grep -v '^ *+' conftest.er1 >conftest.err
36743   rm -f conftest.er1
36744   cat conftest.err >&5
36745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746   (exit $ac_status); } && {
36747          test -z "$ac_c_werror_flag" ||
36748          test ! -s conftest.err
36749        } && test -s conftest.$ac_objext; then
36750
36751                      ac_cv_have_intmax_t="yes"
36752
36753 else
36754   echo "$as_me: failed program was:" >&5
36755 sed 's/^/| /' conftest.$ac_ext >&5
36756
36757
36758                      ac_cv_have_intmax_t="no"
36759
36760
36761 fi
36762
36763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36764
36765
36766 fi
36767
36768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36769
36770
36771 fi
36772 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36773 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36774 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36775    cat >>confdefs.h <<\_ACEOF
36776 #define HAVE_INTMAX_T 1
36777 _ACEOF
36778
36779    have_intmax_t=1
36780 fi
36781
36782 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36783 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36784 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36785   echo $ECHO_N "(cached) $ECHO_C" >&6
36786 else
36787
36788        cat >conftest.$ac_ext <<_ACEOF
36789 /* confdefs.h.  */
36790 _ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h.  */
36794
36795               #include <sys/types.h>
36796
36797 int
36798 main ()
36799 {
36800
36801               u_intmax_t a; a = 1;
36802
36803   ;
36804   return 0;
36805 }
36806 _ACEOF
36807 rm -f conftest.$ac_objext
36808 if { (ac_try="$ac_compile"
36809 case "(($ac_try" in
36810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811   *) ac_try_echo=$ac_try;;
36812 esac
36813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36814   (eval "$ac_compile") 2>conftest.er1
36815   ac_status=$?
36816   grep -v '^ *+' conftest.er1 >conftest.err
36817   rm -f conftest.er1
36818   cat conftest.err >&5
36819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820   (exit $ac_status); } && {
36821          test -z "$ac_c_werror_flag" ||
36822          test ! -s conftest.err
36823        } && test -s conftest.$ac_objext; then
36824
36825               ac_cv_have_u_intmax_t="yes"
36826
36827 else
36828   echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36830
36831
36832               cat >conftest.$ac_ext <<_ACEOF
36833 /* confdefs.h.  */
36834 _ACEOF
36835 cat confdefs.h >>conftest.$ac_ext
36836 cat >>conftest.$ac_ext <<_ACEOF
36837 /* end confdefs.h.  */
36838
36839                      #include <stdint.h>
36840
36841 int
36842 main ()
36843 {
36844
36845                     u_intmax_t a; a = 1;
36846
36847   ;
36848   return 0;
36849 }
36850 _ACEOF
36851 rm -f conftest.$ac_objext
36852 if { (ac_try="$ac_compile"
36853 case "(($ac_try" in
36854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855   *) ac_try_echo=$ac_try;;
36856 esac
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858   (eval "$ac_compile") 2>conftest.er1
36859   ac_status=$?
36860   grep -v '^ *+' conftest.er1 >conftest.err
36861   rm -f conftest.er1
36862   cat conftest.err >&5
36863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864   (exit $ac_status); } && {
36865          test -z "$ac_c_werror_flag" ||
36866          test ! -s conftest.err
36867        } && test -s conftest.$ac_objext; then
36868
36869                     ac_cv_have_u_intmax_t="yes"
36870
36871 else
36872   echo "$as_me: failed program was:" >&5
36873 sed 's/^/| /' conftest.$ac_ext >&5
36874
36875
36876                     ac_cv_have_u_intmax_t="no"
36877
36878
36879 fi
36880
36881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36882
36883
36884 fi
36885
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36887
36888
36889 fi
36890 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36891 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36892 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36893    cat >>confdefs.h <<\_ACEOF
36894 #define HAVE_U_INTMAX_T 1
36895 _ACEOF
36896
36897    have_u_intmax_t=1
36898 fi
36899
36900 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36901 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36902 if test "${ac_cv_have_intxx_t+set}" = set; then
36903   echo $ECHO_N "(cached) $ECHO_C" >&6
36904 else
36905
36906        cat >conftest.$ac_ext <<_ACEOF
36907 /* confdefs.h.  */
36908 _ACEOF
36909 cat confdefs.h >>conftest.$ac_ext
36910 cat >>conftest.$ac_ext <<_ACEOF
36911 /* end confdefs.h.  */
36912
36913               #include <sys/types.h>
36914
36915 int
36916 main ()
36917 {
36918
36919               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36920
36921   ;
36922   return 0;
36923 }
36924 _ACEOF
36925 rm -f conftest.$ac_objext
36926 if { (ac_try="$ac_compile"
36927 case "(($ac_try" in
36928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36929   *) ac_try_echo=$ac_try;;
36930 esac
36931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36932   (eval "$ac_compile") 2>conftest.er1
36933   ac_status=$?
36934   grep -v '^ *+' conftest.er1 >conftest.err
36935   rm -f conftest.er1
36936   cat conftest.err >&5
36937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938   (exit $ac_status); } && {
36939          test -z "$ac_c_werror_flag" ||
36940          test ! -s conftest.err
36941        } && test -s conftest.$ac_objext; then
36942
36943               ac_cv_have_intxx_t="yes"
36944
36945 else
36946   echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36948
36949
36950               ac_cv_have_intxx_t="no"
36951
36952
36953 fi
36954
36955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36956
36957
36958 fi
36959 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36960 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36961 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36962    cat >>confdefs.h <<\_ACEOF
36963 #define HAVE_INTXX_T 1
36964 _ACEOF
36965
36966    have_intxx_t=1
36967 fi
36968
36969 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36970 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36971 if test "${ac_cv_have_int64_t+set}" = set; then
36972   echo $ECHO_N "(cached) $ECHO_C" >&6
36973 else
36974
36975        cat >conftest.$ac_ext <<_ACEOF
36976 /* confdefs.h.  */
36977 _ACEOF
36978 cat confdefs.h >>conftest.$ac_ext
36979 cat >>conftest.$ac_ext <<_ACEOF
36980 /* end confdefs.h.  */
36981
36982               #include <sys/types.h>
36983
36984 int
36985 main ()
36986 {
36987
36988               int64_t a; a = 1;
36989
36990   ;
36991   return 0;
36992 }
36993 _ACEOF
36994 rm -f conftest.$ac_objext
36995 if { (ac_try="$ac_compile"
36996 case "(($ac_try" in
36997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36998   *) ac_try_echo=$ac_try;;
36999 esac
37000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37001   (eval "$ac_compile") 2>conftest.er1
37002   ac_status=$?
37003   grep -v '^ *+' conftest.er1 >conftest.err
37004   rm -f conftest.er1
37005   cat conftest.err >&5
37006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007   (exit $ac_status); } && {
37008          test -z "$ac_c_werror_flag" ||
37009          test ! -s conftest.err
37010        } && test -s conftest.$ac_objext; then
37011
37012               ac_cv_have_int64_t="yes"
37013
37014 else
37015   echo "$as_me: failed program was:" >&5
37016 sed 's/^/| /' conftest.$ac_ext >&5
37017
37018
37019               ac_cv_have_int64_t="no"
37020
37021
37022 fi
37023
37024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37025
37026
37027 fi
37028 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37029 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37030 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37031    cat >>confdefs.h <<\_ACEOF
37032 #define HAVE_INT64_T 1
37033 _ACEOF
37034
37035    have_int64_t=1
37036 fi
37037
37038 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37039 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37040 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37041   echo $ECHO_N "(cached) $ECHO_C" >&6
37042 else
37043
37044        cat >conftest.$ac_ext <<_ACEOF
37045 /* confdefs.h.  */
37046 _ACEOF
37047 cat confdefs.h >>conftest.$ac_ext
37048 cat >>conftest.$ac_ext <<_ACEOF
37049 /* end confdefs.h.  */
37050
37051               #include <sys/types.h>
37052
37053 int
37054 main ()
37055 {
37056
37057               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37058
37059   ;
37060   return 0;
37061 }
37062 _ACEOF
37063 rm -f conftest.$ac_objext
37064 if { (ac_try="$ac_compile"
37065 case "(($ac_try" in
37066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37067   *) ac_try_echo=$ac_try;;
37068 esac
37069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37070   (eval "$ac_compile") 2>conftest.er1
37071   ac_status=$?
37072   grep -v '^ *+' conftest.er1 >conftest.err
37073   rm -f conftest.er1
37074   cat conftest.err >&5
37075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076   (exit $ac_status); } && {
37077          test -z "$ac_c_werror_flag" ||
37078          test ! -s conftest.err
37079        } && test -s conftest.$ac_objext; then
37080
37081              ac_cv_have_u_intxx_t="yes"
37082
37083 else
37084   echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37086
37087
37088              ac_cv_have_u_intxx_t="no"
37089
37090
37091 fi
37092
37093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37094
37095
37096 fi
37097 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37098 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37099 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37100    cat >>confdefs.h <<\_ACEOF
37101 #define HAVE_U_INTXX_T 1
37102 _ACEOF
37103
37104    have_u_intxx_t=1
37105 fi
37106
37107 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37108 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37109 if test "${ac_cv_have_u_int64_t+set}" = set; then
37110   echo $ECHO_N "(cached) $ECHO_C" >&6
37111 else
37112
37113        cat >conftest.$ac_ext <<_ACEOF
37114 /* confdefs.h.  */
37115 _ACEOF
37116 cat confdefs.h >>conftest.$ac_ext
37117 cat >>conftest.$ac_ext <<_ACEOF
37118 /* end confdefs.h.  */
37119
37120               #include <sys/types.h>
37121
37122 int
37123 main ()
37124 {
37125
37126               u_int64_t a; a = 1;
37127
37128   ;
37129   return 0;
37130 }
37131 _ACEOF
37132 rm -f conftest.$ac_objext
37133 if { (ac_try="$ac_compile"
37134 case "(($ac_try" in
37135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37136   *) ac_try_echo=$ac_try;;
37137 esac
37138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37139   (eval "$ac_compile") 2>conftest.er1
37140   ac_status=$?
37141   grep -v '^ *+' conftest.er1 >conftest.err
37142   rm -f conftest.er1
37143   cat conftest.err >&5
37144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145   (exit $ac_status); } && {
37146          test -z "$ac_c_werror_flag" ||
37147          test ! -s conftest.err
37148        } && test -s conftest.$ac_objext; then
37149
37150              ac_cv_have_u_int64_t="yes"
37151
37152 else
37153   echo "$as_me: failed program was:" >&5
37154 sed 's/^/| /' conftest.$ac_ext >&5
37155
37156
37157              ac_cv_have_u_int64_t="no"
37158
37159
37160 fi
37161
37162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37163
37164
37165 fi
37166 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37167 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37168 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37169    cat >>confdefs.h <<\_ACEOF
37170 #define HAVE_U_INT64_T 1
37171 _ACEOF
37172
37173    have_u_int64_t=1
37174 fi
37175
37176 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37177     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37178 then
37179    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37180 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37181    cat >conftest.$ac_ext <<_ACEOF
37182 /* confdefs.h.  */
37183 _ACEOF
37184 cat confdefs.h >>conftest.$ac_ext
37185 cat >>conftest.$ac_ext <<_ACEOF
37186 /* end confdefs.h.  */
37187
37188           #include <sys/bitypes.h>
37189
37190 int
37191 main ()
37192 {
37193
37194           int8_t a; int16_t b; int32_t c;
37195           u_int8_t e; u_int16_t f; u_int32_t g;
37196           a = b = c = e = f = g = 1;
37197
37198   ;
37199   return 0;
37200 }
37201 _ACEOF
37202 rm -f conftest.$ac_objext
37203 if { (ac_try="$ac_compile"
37204 case "(($ac_try" in
37205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37206   *) ac_try_echo=$ac_try;;
37207 esac
37208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37209   (eval "$ac_compile") 2>conftest.er1
37210   ac_status=$?
37211   grep -v '^ *+' conftest.er1 >conftest.err
37212   rm -f conftest.er1
37213   cat conftest.err >&5
37214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37215   (exit $ac_status); } && {
37216          test -z "$ac_c_werror_flag" ||
37217          test ! -s conftest.err
37218        } && test -s conftest.$ac_objext; then
37219
37220           cat >>confdefs.h <<\_ACEOF
37221 #define HAVE_U_INTXX_T 1
37222 _ACEOF
37223
37224           cat >>confdefs.h <<\_ACEOF
37225 #define HAVE_INTXX_T 1
37226 _ACEOF
37227
37228           cat >>confdefs.h <<\_ACEOF
37229 #define HAVE_SYS_BITYPES_H 1
37230 _ACEOF
37231
37232           { echo "$as_me:$LINENO: result: yes" >&5
37233 echo "${ECHO_T}yes" >&6; }
37234
37235 else
37236   echo "$as_me: failed program was:" >&5
37237 sed 's/^/| /' conftest.$ac_ext >&5
37238
37239
37240           { echo "$as_me:$LINENO: result: no" >&5
37241 echo "${ECHO_T}no" >&6; }
37242
37243
37244 fi
37245
37246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37247 fi
37248
37249 if test -z "$have_u_intxx_t" ; then
37250    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37251 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37252 if test "${ac_cv_have_uintxx_t+set}" = set; then
37253   echo $ECHO_N "(cached) $ECHO_C" >&6
37254 else
37255
37256           cat >conftest.$ac_ext <<_ACEOF
37257 /* confdefs.h.  */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h.  */
37262
37263                  #include <sys/types.h>
37264
37265 int
37266 main ()
37267 {
37268
37269                  uint8_t a; uint16_t b;
37270                  uint32_t c; a = b = c = 1;
37271
37272   ;
37273   return 0;
37274 }
37275 _ACEOF
37276 rm -f conftest.$ac_objext
37277 if { (ac_try="$ac_compile"
37278 case "(($ac_try" in
37279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37280   *) ac_try_echo=$ac_try;;
37281 esac
37282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37283   (eval "$ac_compile") 2>conftest.er1
37284   ac_status=$?
37285   grep -v '^ *+' conftest.er1 >conftest.err
37286   rm -f conftest.er1
37287   cat conftest.err >&5
37288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289   (exit $ac_status); } && {
37290          test -z "$ac_c_werror_flag" ||
37291          test ! -s conftest.err
37292        } && test -s conftest.$ac_objext; then
37293
37294                 ac_cv_have_uintxx_t="yes"
37295
37296 else
37297   echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37299
37300
37301                 ac_cv_have_uintxx_t="no"
37302
37303
37304 fi
37305
37306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37307
37308
37309 fi
37310 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37311 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37312    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37313       cat >>confdefs.h <<\_ACEOF
37314 #define HAVE_UINTXX_T 1
37315 _ACEOF
37316
37317    fi
37318 fi
37319
37320 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37321     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37322 then
37323    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37324 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37325    cat >conftest.$ac_ext <<_ACEOF
37326 /* confdefs.h.  */
37327 _ACEOF
37328 cat confdefs.h >>conftest.$ac_ext
37329 cat >>conftest.$ac_ext <<_ACEOF
37330 /* end confdefs.h.  */
37331
37332           #include <sys/bitypes.h>
37333
37334 int
37335 main ()
37336 {
37337
37338           int64_t a; u_int64_t b;
37339           a = b = 1;
37340
37341   ;
37342   return 0;
37343 }
37344 _ACEOF
37345 rm -f conftest.$ac_objext
37346 if { (ac_try="$ac_compile"
37347 case "(($ac_try" in
37348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349   *) ac_try_echo=$ac_try;;
37350 esac
37351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37352   (eval "$ac_compile") 2>conftest.er1
37353   ac_status=$?
37354   grep -v '^ *+' conftest.er1 >conftest.err
37355   rm -f conftest.er1
37356   cat conftest.err >&5
37357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358   (exit $ac_status); } && {
37359          test -z "$ac_c_werror_flag" ||
37360          test ! -s conftest.err
37361        } && test -s conftest.$ac_objext; then
37362
37363           cat >>confdefs.h <<\_ACEOF
37364 #define HAVE_U_INT64_T 1
37365 _ACEOF
37366
37367           cat >>confdefs.h <<\_ACEOF
37368 #define HAVE_INT64_T 1
37369 _ACEOF
37370
37371           { echo "$as_me:$LINENO: result: yes" >&5
37372 echo "${ECHO_T}yes" >&6; }
37373
37374 else
37375   echo "$as_me: failed program was:" >&5
37376 sed 's/^/| /' conftest.$ac_ext >&5
37377
37378
37379           { echo "$as_me:$LINENO: result: no" >&5
37380 echo "${ECHO_T}no" >&6; }
37381
37382
37383 fi
37384
37385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37386 fi
37387
37388 if (test -z "$have_uintxx_t" && \
37389     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37390 then
37391    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37392 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37393    cat >conftest.$ac_ext <<_ACEOF
37394 /* confdefs.h.  */
37395 _ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h.  */
37399
37400           #include <sys/bitypes.h>
37401
37402 int
37403 main ()
37404 {
37405
37406           uint8_t a; uint16_t b;
37407           uint32_t c; a = b = c = 1;
37408
37409   ;
37410   return 0;
37411 }
37412 _ACEOF
37413 rm -f conftest.$ac_objext
37414 if { (ac_try="$ac_compile"
37415 case "(($ac_try" in
37416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37417   *) ac_try_echo=$ac_try;;
37418 esac
37419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37420   (eval "$ac_compile") 2>conftest.er1
37421   ac_status=$?
37422   grep -v '^ *+' conftest.er1 >conftest.err
37423   rm -f conftest.er1
37424   cat conftest.err >&5
37425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426   (exit $ac_status); } && {
37427          test -z "$ac_c_werror_flag" ||
37428          test ! -s conftest.err
37429        } && test -s conftest.$ac_objext; then
37430
37431           cat >>confdefs.h <<\_ACEOF
37432 #define HAVE_UINTXX_T 1
37433 _ACEOF
37434
37435           { echo "$as_me:$LINENO: result: yes" >&5
37436 echo "${ECHO_T}yes" >&6; }
37437
37438 else
37439   echo "$as_me: failed program was:" >&5
37440 sed 's/^/| /' conftest.$ac_ext >&5
37441
37442
37443           { echo "$as_me:$LINENO: result: no" >&5
37444 echo "${ECHO_T}no" >&6; }
37445
37446
37447 fi
37448
37449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37450 fi
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465 for ac_func in \
37466    fork \
37467    getcwd \
37468    gethostname \
37469    getpid \
37470    gettimeofday \
37471    setpgid \
37472    setpgrp \
37473    setsid \
37474    signal \
37475    strerror \
37476    strncmp \
37477    strncpy \
37478    vfprintf \
37479
37480 do
37481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37485   echo $ECHO_N "(cached) $ECHO_C" >&6
37486 else
37487   cat >conftest.$ac_ext <<_ACEOF
37488 /* confdefs.h.  */
37489 _ACEOF
37490 cat confdefs.h >>conftest.$ac_ext
37491 cat >>conftest.$ac_ext <<_ACEOF
37492 /* end confdefs.h.  */
37493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37495 #define $ac_func innocuous_$ac_func
37496
37497 /* System header to define __stub macros and hopefully few prototypes,
37498     which can conflict with char $ac_func (); below.
37499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37500     <limits.h> exists even on freestanding compilers.  */
37501
37502 #ifdef __STDC__
37503 # include <limits.h>
37504 #else
37505 # include <assert.h>
37506 #endif
37507
37508 #undef $ac_func
37509
37510 /* Override any GCC internal prototype to avoid an error.
37511    Use char because int might match the return type of a GCC
37512    builtin and then its argument prototype would still apply.  */
37513 #ifdef __cplusplus
37514 extern "C"
37515 #endif
37516 char $ac_func ();
37517 /* The GNU C library defines this for functions which it implements
37518     to always fail with ENOSYS.  Some functions are actually named
37519     something starting with __ and the normal name is an alias.  */
37520 #if defined __stub_$ac_func || defined __stub___$ac_func
37521 choke me
37522 #endif
37523
37524 int
37525 main ()
37526 {
37527 return $ac_func ();
37528   ;
37529   return 0;
37530 }
37531 _ACEOF
37532 rm -f conftest.$ac_objext conftest$ac_exeext
37533 if { (ac_try="$ac_link"
37534 case "(($ac_try" in
37535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37536   *) ac_try_echo=$ac_try;;
37537 esac
37538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37539   (eval "$ac_link") 2>conftest.er1
37540   ac_status=$?
37541   grep -v '^ *+' conftest.er1 >conftest.err
37542   rm -f conftest.er1
37543   cat conftest.err >&5
37544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545   (exit $ac_status); } && {
37546          test -z "$ac_c_werror_flag" ||
37547          test ! -s conftest.err
37548        } && test -s conftest$ac_exeext &&
37549        $as_test_x conftest$ac_exeext; then
37550   eval "$as_ac_var=yes"
37551 else
37552   echo "$as_me: failed program was:" >&5
37553 sed 's/^/| /' conftest.$ac_ext >&5
37554
37555         eval "$as_ac_var=no"
37556 fi
37557
37558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37559       conftest$ac_exeext conftest.$ac_ext
37560 fi
37561 ac_res=`eval echo '${'$as_ac_var'}'`
37562                { echo "$as_me:$LINENO: result: $ac_res" >&5
37563 echo "${ECHO_T}$ac_res" >&6; }
37564 if test `eval echo '${'$as_ac_var'}'` = yes; then
37565   cat >>confdefs.h <<_ACEOF
37566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37567 _ACEOF
37568
37569 else
37570   echo 'configure: cannot find needed function.'; exit 1
37571
37572 fi
37573 done
37574
37575
37576
37577 for ac_func in fchdir
37578 do
37579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37583   echo $ECHO_N "(cached) $ECHO_C" >&6
37584 else
37585   cat >conftest.$ac_ext <<_ACEOF
37586 /* confdefs.h.  */
37587 _ACEOF
37588 cat confdefs.h >>conftest.$ac_ext
37589 cat >>conftest.$ac_ext <<_ACEOF
37590 /* end confdefs.h.  */
37591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37593 #define $ac_func innocuous_$ac_func
37594
37595 /* System header to define __stub macros and hopefully few prototypes,
37596     which can conflict with char $ac_func (); below.
37597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37598     <limits.h> exists even on freestanding compilers.  */
37599
37600 #ifdef __STDC__
37601 # include <limits.h>
37602 #else
37603 # include <assert.h>
37604 #endif
37605
37606 #undef $ac_func
37607
37608 /* Override any GCC internal prototype to avoid an error.
37609    Use char because int might match the return type of a GCC
37610    builtin and then its argument prototype would still apply.  */
37611 #ifdef __cplusplus
37612 extern "C"
37613 #endif
37614 char $ac_func ();
37615 /* The GNU C library defines this for functions which it implements
37616     to always fail with ENOSYS.  Some functions are actually named
37617     something starting with __ and the normal name is an alias.  */
37618 #if defined __stub_$ac_func || defined __stub___$ac_func
37619 choke me
37620 #endif
37621
37622 int
37623 main ()
37624 {
37625 return $ac_func ();
37626   ;
37627   return 0;
37628 }
37629 _ACEOF
37630 rm -f conftest.$ac_objext conftest$ac_exeext
37631 if { (ac_try="$ac_link"
37632 case "(($ac_try" in
37633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634   *) ac_try_echo=$ac_try;;
37635 esac
37636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37637   (eval "$ac_link") 2>conftest.er1
37638   ac_status=$?
37639   grep -v '^ *+' conftest.er1 >conftest.err
37640   rm -f conftest.er1
37641   cat conftest.err >&5
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); } && {
37644          test -z "$ac_c_werror_flag" ||
37645          test ! -s conftest.err
37646        } && test -s conftest$ac_exeext &&
37647        $as_test_x conftest$ac_exeext; then
37648   eval "$as_ac_var=yes"
37649 else
37650   echo "$as_me: failed program was:" >&5
37651 sed 's/^/| /' conftest.$ac_ext >&5
37652
37653         eval "$as_ac_var=no"
37654 fi
37655
37656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37657       conftest$ac_exeext conftest.$ac_ext
37658 fi
37659 ac_res=`eval echo '${'$as_ac_var'}'`
37660                { echo "$as_me:$LINENO: result: $ac_res" >&5
37661 echo "${ECHO_T}$ac_res" >&6; }
37662 if test `eval echo '${'$as_ac_var'}'` = yes; then
37663   cat >>confdefs.h <<_ACEOF
37664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37665 _ACEOF
37666  cat >>confdefs.h <<\_ACEOF
37667 #define HAVE_FCHDIR 1
37668 _ACEOF
37669
37670 fi
37671 done
37672
37673
37674 for ac_func in strtoll
37675 do
37676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37680   echo $ECHO_N "(cached) $ECHO_C" >&6
37681 else
37682   cat >conftest.$ac_ext <<_ACEOF
37683 /* confdefs.h.  */
37684 _ACEOF
37685 cat confdefs.h >>conftest.$ac_ext
37686 cat >>conftest.$ac_ext <<_ACEOF
37687 /* end confdefs.h.  */
37688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37690 #define $ac_func innocuous_$ac_func
37691
37692 /* System header to define __stub macros and hopefully few prototypes,
37693     which can conflict with char $ac_func (); below.
37694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37695     <limits.h> exists even on freestanding compilers.  */
37696
37697 #ifdef __STDC__
37698 # include <limits.h>
37699 #else
37700 # include <assert.h>
37701 #endif
37702
37703 #undef $ac_func
37704
37705 /* Override any GCC internal prototype to avoid an error.
37706    Use char because int might match the return type of a GCC
37707    builtin and then its argument prototype would still apply.  */
37708 #ifdef __cplusplus
37709 extern "C"
37710 #endif
37711 char $ac_func ();
37712 /* The GNU C library defines this for functions which it implements
37713     to always fail with ENOSYS.  Some functions are actually named
37714     something starting with __ and the normal name is an alias.  */
37715 #if defined __stub_$ac_func || defined __stub___$ac_func
37716 choke me
37717 #endif
37718
37719 int
37720 main ()
37721 {
37722 return $ac_func ();
37723   ;
37724   return 0;
37725 }
37726 _ACEOF
37727 rm -f conftest.$ac_objext conftest$ac_exeext
37728 if { (ac_try="$ac_link"
37729 case "(($ac_try" in
37730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37731   *) ac_try_echo=$ac_try;;
37732 esac
37733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37734   (eval "$ac_link") 2>conftest.er1
37735   ac_status=$?
37736   grep -v '^ *+' conftest.er1 >conftest.err
37737   rm -f conftest.er1
37738   cat conftest.err >&5
37739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740   (exit $ac_status); } && {
37741          test -z "$ac_c_werror_flag" ||
37742          test ! -s conftest.err
37743        } && test -s conftest$ac_exeext &&
37744        $as_test_x conftest$ac_exeext; then
37745   eval "$as_ac_var=yes"
37746 else
37747   echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37749
37750         eval "$as_ac_var=no"
37751 fi
37752
37753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37754       conftest$ac_exeext conftest.$ac_ext
37755 fi
37756 ac_res=`eval echo '${'$as_ac_var'}'`
37757                { echo "$as_me:$LINENO: result: $ac_res" >&5
37758 echo "${ECHO_T}$ac_res" >&6; }
37759 if test `eval echo '${'$as_ac_var'}'` = yes; then
37760   cat >>confdefs.h <<_ACEOF
37761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37762 _ACEOF
37763  cat >>confdefs.h <<\_ACEOF
37764 #define HAVE_STRTOLL 1
37765 _ACEOF
37766
37767 fi
37768 done
37769
37770
37771 for ac_func in posix_fadvise
37772 do
37773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37777   echo $ECHO_N "(cached) $ECHO_C" >&6
37778 else
37779   cat >conftest.$ac_ext <<_ACEOF
37780 /* confdefs.h.  */
37781 _ACEOF
37782 cat confdefs.h >>conftest.$ac_ext
37783 cat >>conftest.$ac_ext <<_ACEOF
37784 /* end confdefs.h.  */
37785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37787 #define $ac_func innocuous_$ac_func
37788
37789 /* System header to define __stub macros and hopefully few prototypes,
37790     which can conflict with char $ac_func (); below.
37791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37792     <limits.h> exists even on freestanding compilers.  */
37793
37794 #ifdef __STDC__
37795 # include <limits.h>
37796 #else
37797 # include <assert.h>
37798 #endif
37799
37800 #undef $ac_func
37801
37802 /* Override any GCC internal prototype to avoid an error.
37803    Use char because int might match the return type of a GCC
37804    builtin and then its argument prototype would still apply.  */
37805 #ifdef __cplusplus
37806 extern "C"
37807 #endif
37808 char $ac_func ();
37809 /* The GNU C library defines this for functions which it implements
37810     to always fail with ENOSYS.  Some functions are actually named
37811     something starting with __ and the normal name is an alias.  */
37812 #if defined __stub_$ac_func || defined __stub___$ac_func
37813 choke me
37814 #endif
37815
37816 int
37817 main ()
37818 {
37819 return $ac_func ();
37820   ;
37821   return 0;
37822 }
37823 _ACEOF
37824 rm -f conftest.$ac_objext conftest$ac_exeext
37825 if { (ac_try="$ac_link"
37826 case "(($ac_try" in
37827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828   *) ac_try_echo=$ac_try;;
37829 esac
37830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37831   (eval "$ac_link") 2>conftest.er1
37832   ac_status=$?
37833   grep -v '^ *+' conftest.er1 >conftest.err
37834   rm -f conftest.er1
37835   cat conftest.err >&5
37836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837   (exit $ac_status); } && {
37838          test -z "$ac_c_werror_flag" ||
37839          test ! -s conftest.err
37840        } && test -s conftest$ac_exeext &&
37841        $as_test_x conftest$ac_exeext; then
37842   eval "$as_ac_var=yes"
37843 else
37844   echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37846
37847         eval "$as_ac_var=no"
37848 fi
37849
37850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37851       conftest$ac_exeext conftest.$ac_ext
37852 fi
37853 ac_res=`eval echo '${'$as_ac_var'}'`
37854                { echo "$as_me:$LINENO: result: $ac_res" >&5
37855 echo "${ECHO_T}$ac_res" >&6; }
37856 if test `eval echo '${'$as_ac_var'}'` = yes; then
37857   cat >>confdefs.h <<_ACEOF
37858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37859 _ACEOF
37860
37861 fi
37862 done
37863
37864
37865 for ac_func in fdatasync
37866 do
37867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37871   echo $ECHO_N "(cached) $ECHO_C" >&6
37872 else
37873   cat >conftest.$ac_ext <<_ACEOF
37874 /* confdefs.h.  */
37875 _ACEOF
37876 cat confdefs.h >>conftest.$ac_ext
37877 cat >>conftest.$ac_ext <<_ACEOF
37878 /* end confdefs.h.  */
37879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37881 #define $ac_func innocuous_$ac_func
37882
37883 /* System header to define __stub macros and hopefully few prototypes,
37884     which can conflict with char $ac_func (); below.
37885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37886     <limits.h> exists even on freestanding compilers.  */
37887
37888 #ifdef __STDC__
37889 # include <limits.h>
37890 #else
37891 # include <assert.h>
37892 #endif
37893
37894 #undef $ac_func
37895
37896 /* Override any GCC internal prototype to avoid an error.
37897    Use char because int might match the return type of a GCC
37898    builtin and then its argument prototype would still apply.  */
37899 #ifdef __cplusplus
37900 extern "C"
37901 #endif
37902 char $ac_func ();
37903 /* The GNU C library defines this for functions which it implements
37904     to always fail with ENOSYS.  Some functions are actually named
37905     something starting with __ and the normal name is an alias.  */
37906 #if defined __stub_$ac_func || defined __stub___$ac_func
37907 choke me
37908 #endif
37909
37910 int
37911 main ()
37912 {
37913 return $ac_func ();
37914   ;
37915   return 0;
37916 }
37917 _ACEOF
37918 rm -f conftest.$ac_objext conftest$ac_exeext
37919 if { (ac_try="$ac_link"
37920 case "(($ac_try" in
37921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37922   *) ac_try_echo=$ac_try;;
37923 esac
37924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37925   (eval "$ac_link") 2>conftest.er1
37926   ac_status=$?
37927   grep -v '^ *+' conftest.er1 >conftest.err
37928   rm -f conftest.er1
37929   cat conftest.err >&5
37930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931   (exit $ac_status); } && {
37932          test -z "$ac_c_werror_flag" ||
37933          test ! -s conftest.err
37934        } && test -s conftest$ac_exeext &&
37935        $as_test_x conftest$ac_exeext; then
37936   eval "$as_ac_var=yes"
37937 else
37938   echo "$as_me: failed program was:" >&5
37939 sed 's/^/| /' conftest.$ac_ext >&5
37940
37941         eval "$as_ac_var=no"
37942 fi
37943
37944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37945       conftest$ac_exeext conftest.$ac_ext
37946 fi
37947 ac_res=`eval echo '${'$as_ac_var'}'`
37948                { echo "$as_me:$LINENO: result: $ac_res" >&5
37949 echo "${ECHO_T}$ac_res" >&6; }
37950 if test `eval echo '${'$as_ac_var'}'` = yes; then
37951   cat >>confdefs.h <<_ACEOF
37952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37953 _ACEOF
37954
37955 fi
37956 done
37957
37958
37959
37960 for ac_func in chflags
37961 do
37962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37966   echo $ECHO_N "(cached) $ECHO_C" >&6
37967 else
37968   cat >conftest.$ac_ext <<_ACEOF
37969 /* confdefs.h.  */
37970 _ACEOF
37971 cat confdefs.h >>conftest.$ac_ext
37972 cat >>conftest.$ac_ext <<_ACEOF
37973 /* end confdefs.h.  */
37974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37976 #define $ac_func innocuous_$ac_func
37977
37978 /* System header to define __stub macros and hopefully few prototypes,
37979     which can conflict with char $ac_func (); below.
37980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37981     <limits.h> exists even on freestanding compilers.  */
37982
37983 #ifdef __STDC__
37984 # include <limits.h>
37985 #else
37986 # include <assert.h>
37987 #endif
37988
37989 #undef $ac_func
37990
37991 /* Override any GCC internal prototype to avoid an error.
37992    Use char because int might match the return type of a GCC
37993    builtin and then its argument prototype would still apply.  */
37994 #ifdef __cplusplus
37995 extern "C"
37996 #endif
37997 char $ac_func ();
37998 /* The GNU C library defines this for functions which it implements
37999     to always fail with ENOSYS.  Some functions are actually named
38000     something starting with __ and the normal name is an alias.  */
38001 #if defined __stub_$ac_func || defined __stub___$ac_func
38002 choke me
38003 #endif
38004
38005 int
38006 main ()
38007 {
38008 return $ac_func ();
38009   ;
38010   return 0;
38011 }
38012 _ACEOF
38013 rm -f conftest.$ac_objext conftest$ac_exeext
38014 if { (ac_try="$ac_link"
38015 case "(($ac_try" in
38016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38017   *) ac_try_echo=$ac_try;;
38018 esac
38019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38020   (eval "$ac_link") 2>conftest.er1
38021   ac_status=$?
38022   grep -v '^ *+' conftest.er1 >conftest.err
38023   rm -f conftest.er1
38024   cat conftest.err >&5
38025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026   (exit $ac_status); } && {
38027          test -z "$ac_c_werror_flag" ||
38028          test ! -s conftest.err
38029        } && test -s conftest$ac_exeext &&
38030        $as_test_x conftest$ac_exeext; then
38031   eval "$as_ac_var=yes"
38032 else
38033   echo "$as_me: failed program was:" >&5
38034 sed 's/^/| /' conftest.$ac_ext >&5
38035
38036         eval "$as_ac_var=no"
38037 fi
38038
38039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38040       conftest$ac_exeext conftest.$ac_ext
38041 fi
38042 ac_res=`eval echo '${'$as_ac_var'}'`
38043                { echo "$as_me:$LINENO: result: $ac_res" >&5
38044 echo "${ECHO_T}$ac_res" >&6; }
38045 if test `eval echo '${'$as_ac_var'}'` = yes; then
38046   cat >>confdefs.h <<_ACEOF
38047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38048 _ACEOF
38049
38050 fi
38051 done
38052
38053
38054
38055
38056
38057
38058 for ac_func in snprintf vsnprintf gethostid fseeko
38059 do
38060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38064   echo $ECHO_N "(cached) $ECHO_C" >&6
38065 else
38066   cat >conftest.$ac_ext <<_ACEOF
38067 /* confdefs.h.  */
38068 _ACEOF
38069 cat confdefs.h >>conftest.$ac_ext
38070 cat >>conftest.$ac_ext <<_ACEOF
38071 /* end confdefs.h.  */
38072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38074 #define $ac_func innocuous_$ac_func
38075
38076 /* System header to define __stub macros and hopefully few prototypes,
38077     which can conflict with char $ac_func (); below.
38078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38079     <limits.h> exists even on freestanding compilers.  */
38080
38081 #ifdef __STDC__
38082 # include <limits.h>
38083 #else
38084 # include <assert.h>
38085 #endif
38086
38087 #undef $ac_func
38088
38089 /* Override any GCC internal prototype to avoid an error.
38090    Use char because int might match the return type of a GCC
38091    builtin and then its argument prototype would still apply.  */
38092 #ifdef __cplusplus
38093 extern "C"
38094 #endif
38095 char $ac_func ();
38096 /* The GNU C library defines this for functions which it implements
38097     to always fail with ENOSYS.  Some functions are actually named
38098     something starting with __ and the normal name is an alias.  */
38099 #if defined __stub_$ac_func || defined __stub___$ac_func
38100 choke me
38101 #endif
38102
38103 int
38104 main ()
38105 {
38106 return $ac_func ();
38107   ;
38108   return 0;
38109 }
38110 _ACEOF
38111 rm -f conftest.$ac_objext conftest$ac_exeext
38112 if { (ac_try="$ac_link"
38113 case "(($ac_try" in
38114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38115   *) ac_try_echo=$ac_try;;
38116 esac
38117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38118   (eval "$ac_link") 2>conftest.er1
38119   ac_status=$?
38120   grep -v '^ *+' conftest.er1 >conftest.err
38121   rm -f conftest.er1
38122   cat conftest.err >&5
38123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124   (exit $ac_status); } && {
38125          test -z "$ac_c_werror_flag" ||
38126          test ! -s conftest.err
38127        } && test -s conftest$ac_exeext &&
38128        $as_test_x conftest$ac_exeext; then
38129   eval "$as_ac_var=yes"
38130 else
38131   echo "$as_me: failed program was:" >&5
38132 sed 's/^/| /' conftest.$ac_ext >&5
38133
38134         eval "$as_ac_var=no"
38135 fi
38136
38137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38138       conftest$ac_exeext conftest.$ac_ext
38139 fi
38140 ac_res=`eval echo '${'$as_ac_var'}'`
38141                { echo "$as_me:$LINENO: result: $ac_res" >&5
38142 echo "${ECHO_T}$ac_res" >&6; }
38143 if test `eval echo '${'$as_ac_var'}'` = yes; then
38144   cat >>confdefs.h <<_ACEOF
38145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38146 _ACEOF
38147
38148 fi
38149 done
38150
38151
38152 { echo "$as_me:$LINENO: checking for va_copy" >&5
38153 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38154 if test "${ba_cv_va_copy+set}" = set; then
38155   echo $ECHO_N "(cached) $ECHO_C" >&6
38156 else
38157
38158        cat >conftest.$ac_ext <<_ACEOF
38159 /* confdefs.h.  */
38160 _ACEOF
38161 cat confdefs.h >>conftest.$ac_ext
38162 cat >>conftest.$ac_ext <<_ACEOF
38163 /* end confdefs.h.  */
38164
38165               #include <stdarg.h>
38166               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38167               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38168
38169 int
38170 main ()
38171 {
38172
38173               call_use_va_copy(1,2,3)
38174
38175   ;
38176   return 0;
38177 }
38178 _ACEOF
38179 rm -f conftest.$ac_objext conftest$ac_exeext
38180 if { (ac_try="$ac_link"
38181 case "(($ac_try" in
38182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38183   *) ac_try_echo=$ac_try;;
38184 esac
38185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38186   (eval "$ac_link") 2>conftest.er1
38187   ac_status=$?
38188   grep -v '^ *+' conftest.er1 >conftest.err
38189   rm -f conftest.er1
38190   cat conftest.err >&5
38191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192   (exit $ac_status); } && {
38193          test -z "$ac_c_werror_flag" ||
38194          test ! -s conftest.err
38195        } && test -s conftest$ac_exeext &&
38196        $as_test_x conftest$ac_exeext; then
38197
38198               ba_cv_va_copy=yes,
38199
38200 else
38201   echo "$as_me: failed program was:" >&5
38202 sed 's/^/| /' conftest.$ac_ext >&5
38203
38204
38205               ba_cv_va_copy=no
38206
38207
38208 fi
38209
38210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38211       conftest$ac_exeext conftest.$ac_ext
38212
38213
38214 fi
38215 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38216 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38217 test $ba_cv_va_copy = yes &&
38218 cat >>confdefs.h <<\_ACEOF
38219 #define HAVE_VA_COPY 1
38220 _ACEOF
38221
38222
38223
38224
38225
38226
38227 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38228 do
38229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38233   echo $ECHO_N "(cached) $ECHO_C" >&6
38234 else
38235   cat >conftest.$ac_ext <<_ACEOF
38236 /* confdefs.h.  */
38237 _ACEOF
38238 cat confdefs.h >>conftest.$ac_ext
38239 cat >>conftest.$ac_ext <<_ACEOF
38240 /* end confdefs.h.  */
38241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38243 #define $ac_func innocuous_$ac_func
38244
38245 /* System header to define __stub macros and hopefully few prototypes,
38246     which can conflict with char $ac_func (); below.
38247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38248     <limits.h> exists even on freestanding compilers.  */
38249
38250 #ifdef __STDC__
38251 # include <limits.h>
38252 #else
38253 # include <assert.h>
38254 #endif
38255
38256 #undef $ac_func
38257
38258 /* Override any GCC internal prototype to avoid an error.
38259    Use char because int might match the return type of a GCC
38260    builtin and then its argument prototype would still apply.  */
38261 #ifdef __cplusplus
38262 extern "C"
38263 #endif
38264 char $ac_func ();
38265 /* The GNU C library defines this for functions which it implements
38266     to always fail with ENOSYS.  Some functions are actually named
38267     something starting with __ and the normal name is an alias.  */
38268 #if defined __stub_$ac_func || defined __stub___$ac_func
38269 choke me
38270 #endif
38271
38272 int
38273 main ()
38274 {
38275 return $ac_func ();
38276   ;
38277   return 0;
38278 }
38279 _ACEOF
38280 rm -f conftest.$ac_objext conftest$ac_exeext
38281 if { (ac_try="$ac_link"
38282 case "(($ac_try" in
38283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38284   *) ac_try_echo=$ac_try;;
38285 esac
38286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38287   (eval "$ac_link") 2>conftest.er1
38288   ac_status=$?
38289   grep -v '^ *+' conftest.er1 >conftest.err
38290   rm -f conftest.er1
38291   cat conftest.err >&5
38292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293   (exit $ac_status); } && {
38294          test -z "$ac_c_werror_flag" ||
38295          test ! -s conftest.err
38296        } && test -s conftest$ac_exeext &&
38297        $as_test_x conftest$ac_exeext; then
38298   eval "$as_ac_var=yes"
38299 else
38300   echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38302
38303         eval "$as_ac_var=no"
38304 fi
38305
38306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38307       conftest$ac_exeext conftest.$ac_ext
38308 fi
38309 ac_res=`eval echo '${'$as_ac_var'}'`
38310                { echo "$as_me:$LINENO: result: $ac_res" >&5
38311 echo "${ECHO_T}$ac_res" >&6; }
38312 if test `eval echo '${'$as_ac_var'}'` = yes; then
38313   cat >>confdefs.h <<_ACEOF
38314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38315 _ACEOF
38316
38317 fi
38318 done
38319
38320
38321 # If resolver functions are not in libc check for -lnsl or -lresolv.
38322 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38323 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38324 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38325   echo $ECHO_N "(cached) $ECHO_C" >&6
38326 else
38327   cat >conftest.$ac_ext <<_ACEOF
38328 /* confdefs.h.  */
38329 _ACEOF
38330 cat confdefs.h >>conftest.$ac_ext
38331 cat >>conftest.$ac_ext <<_ACEOF
38332 /* end confdefs.h.  */
38333 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38335 #define gethostbyname_r innocuous_gethostbyname_r
38336
38337 /* System header to define __stub macros and hopefully few prototypes,
38338     which can conflict with char gethostbyname_r (); below.
38339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38340     <limits.h> exists even on freestanding compilers.  */
38341
38342 #ifdef __STDC__
38343 # include <limits.h>
38344 #else
38345 # include <assert.h>
38346 #endif
38347
38348 #undef gethostbyname_r
38349
38350 /* Override any GCC internal prototype to avoid an error.
38351    Use char because int might match the return type of a GCC
38352    builtin and then its argument prototype would still apply.  */
38353 #ifdef __cplusplus
38354 extern "C"
38355 #endif
38356 char gethostbyname_r ();
38357 /* The GNU C library defines this for functions which it implements
38358     to always fail with ENOSYS.  Some functions are actually named
38359     something starting with __ and the normal name is an alias.  */
38360 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38361 choke me
38362 #endif
38363
38364 int
38365 main ()
38366 {
38367 return gethostbyname_r ();
38368   ;
38369   return 0;
38370 }
38371 _ACEOF
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (ac_try="$ac_link"
38374 case "(($ac_try" in
38375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38376   *) ac_try_echo=$ac_try;;
38377 esac
38378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38379   (eval "$ac_link") 2>conftest.er1
38380   ac_status=$?
38381   grep -v '^ *+' conftest.er1 >conftest.err
38382   rm -f conftest.er1
38383   cat conftest.err >&5
38384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385   (exit $ac_status); } && {
38386          test -z "$ac_c_werror_flag" ||
38387          test ! -s conftest.err
38388        } && test -s conftest$ac_exeext &&
38389        $as_test_x conftest$ac_exeext; then
38390   ac_cv_func_gethostbyname_r=yes
38391 else
38392   echo "$as_me: failed program was:" >&5
38393 sed 's/^/| /' conftest.$ac_ext >&5
38394
38395         ac_cv_func_gethostbyname_r=no
38396 fi
38397
38398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38399       conftest$ac_exeext conftest.$ac_ext
38400 fi
38401 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38402 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38403 if test $ac_cv_func_gethostbyname_r = yes; then
38404   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38405 echo "${ECHO_T}using libc's resolver" >&6; }
38406 else
38407
38408 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38409 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38410 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38411   echo $ECHO_N "(cached) $ECHO_C" >&6
38412 else
38413   ac_check_lib_save_LIBS=$LIBS
38414 LIBS="-lnsl  $LIBS"
38415 cat >conftest.$ac_ext <<_ACEOF
38416 /* confdefs.h.  */
38417 _ACEOF
38418 cat confdefs.h >>conftest.$ac_ext
38419 cat >>conftest.$ac_ext <<_ACEOF
38420 /* end confdefs.h.  */
38421
38422 /* Override any GCC internal prototype to avoid an error.
38423    Use char because int might match the return type of a GCC
38424    builtin and then its argument prototype would still apply.  */
38425 #ifdef __cplusplus
38426 extern "C"
38427 #endif
38428 char gethostbyname_r ();
38429 int
38430 main ()
38431 {
38432 return gethostbyname_r ();
38433   ;
38434   return 0;
38435 }
38436 _ACEOF
38437 rm -f conftest.$ac_objext conftest$ac_exeext
38438 if { (ac_try="$ac_link"
38439 case "(($ac_try" in
38440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38441   *) ac_try_echo=$ac_try;;
38442 esac
38443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38444   (eval "$ac_link") 2>conftest.er1
38445   ac_status=$?
38446   grep -v '^ *+' conftest.er1 >conftest.err
38447   rm -f conftest.er1
38448   cat conftest.err >&5
38449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450   (exit $ac_status); } && {
38451          test -z "$ac_c_werror_flag" ||
38452          test ! -s conftest.err
38453        } && test -s conftest$ac_exeext &&
38454        $as_test_x conftest$ac_exeext; then
38455   ac_cv_lib_nsl_gethostbyname_r=yes
38456 else
38457   echo "$as_me: failed program was:" >&5
38458 sed 's/^/| /' conftest.$ac_ext >&5
38459
38460         ac_cv_lib_nsl_gethostbyname_r=no
38461 fi
38462
38463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38464       conftest$ac_exeext conftest.$ac_ext
38465 LIBS=$ac_check_lib_save_LIBS
38466 fi
38467 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38468 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38469 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38470   cat >>confdefs.h <<_ACEOF
38471 #define HAVE_LIBNSL 1
38472 _ACEOF
38473
38474   LIBS="-lnsl $LIBS"
38475
38476 fi
38477
38478
38479 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38480 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38481 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38482   echo $ECHO_N "(cached) $ECHO_C" >&6
38483 else
38484   ac_check_lib_save_LIBS=$LIBS
38485 LIBS="-lresolv  $LIBS"
38486 cat >conftest.$ac_ext <<_ACEOF
38487 /* confdefs.h.  */
38488 _ACEOF
38489 cat confdefs.h >>conftest.$ac_ext
38490 cat >>conftest.$ac_ext <<_ACEOF
38491 /* end confdefs.h.  */
38492
38493 /* Override any GCC internal prototype to avoid an error.
38494    Use char because int might match the return type of a GCC
38495    builtin and then its argument prototype would still apply.  */
38496 #ifdef __cplusplus
38497 extern "C"
38498 #endif
38499 char gethostbyname_r ();
38500 int
38501 main ()
38502 {
38503 return gethostbyname_r ();
38504   ;
38505   return 0;
38506 }
38507 _ACEOF
38508 rm -f conftest.$ac_objext conftest$ac_exeext
38509 if { (ac_try="$ac_link"
38510 case "(($ac_try" in
38511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38512   *) ac_try_echo=$ac_try;;
38513 esac
38514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38515   (eval "$ac_link") 2>conftest.er1
38516   ac_status=$?
38517   grep -v '^ *+' conftest.er1 >conftest.err
38518   rm -f conftest.er1
38519   cat conftest.err >&5
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); } && {
38522          test -z "$ac_c_werror_flag" ||
38523          test ! -s conftest.err
38524        } && test -s conftest$ac_exeext &&
38525        $as_test_x conftest$ac_exeext; then
38526   ac_cv_lib_resolv_gethostbyname_r=yes
38527 else
38528   echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38530
38531         ac_cv_lib_resolv_gethostbyname_r=no
38532 fi
38533
38534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38535       conftest$ac_exeext conftest.$ac_ext
38536 LIBS=$ac_check_lib_save_LIBS
38537 fi
38538 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38539 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38540 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38541   cat >>confdefs.h <<_ACEOF
38542 #define HAVE_LIBRESOLV 1
38543 _ACEOF
38544
38545   LIBS="-lresolv $LIBS"
38546
38547 fi
38548
38549 fi
38550
38551
38552
38553 for ac_func in inet_pton
38554 do
38555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38559   echo $ECHO_N "(cached) $ECHO_C" >&6
38560 else
38561   cat >conftest.$ac_ext <<_ACEOF
38562 /* confdefs.h.  */
38563 _ACEOF
38564 cat confdefs.h >>conftest.$ac_ext
38565 cat >>conftest.$ac_ext <<_ACEOF
38566 /* end confdefs.h.  */
38567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38569 #define $ac_func innocuous_$ac_func
38570
38571 /* System header to define __stub macros and hopefully few prototypes,
38572     which can conflict with char $ac_func (); below.
38573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38574     <limits.h> exists even on freestanding compilers.  */
38575
38576 #ifdef __STDC__
38577 # include <limits.h>
38578 #else
38579 # include <assert.h>
38580 #endif
38581
38582 #undef $ac_func
38583
38584 /* Override any GCC internal prototype to avoid an error.
38585    Use char because int might match the return type of a GCC
38586    builtin and then its argument prototype would still apply.  */
38587 #ifdef __cplusplus
38588 extern "C"
38589 #endif
38590 char $ac_func ();
38591 /* The GNU C library defines this for functions which it implements
38592     to always fail with ENOSYS.  Some functions are actually named
38593     something starting with __ and the normal name is an alias.  */
38594 #if defined __stub_$ac_func || defined __stub___$ac_func
38595 choke me
38596 #endif
38597
38598 int
38599 main ()
38600 {
38601 return $ac_func ();
38602   ;
38603   return 0;
38604 }
38605 _ACEOF
38606 rm -f conftest.$ac_objext conftest$ac_exeext
38607 if { (ac_try="$ac_link"
38608 case "(($ac_try" in
38609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38610   *) ac_try_echo=$ac_try;;
38611 esac
38612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38613   (eval "$ac_link") 2>conftest.er1
38614   ac_status=$?
38615   grep -v '^ *+' conftest.er1 >conftest.err
38616   rm -f conftest.er1
38617   cat conftest.err >&5
38618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619   (exit $ac_status); } && {
38620          test -z "$ac_c_werror_flag" ||
38621          test ! -s conftest.err
38622        } && test -s conftest$ac_exeext &&
38623        $as_test_x conftest$ac_exeext; then
38624   eval "$as_ac_var=yes"
38625 else
38626   echo "$as_me: failed program was:" >&5
38627 sed 's/^/| /' conftest.$ac_ext >&5
38628
38629         eval "$as_ac_var=no"
38630 fi
38631
38632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38633       conftest$ac_exeext conftest.$ac_ext
38634 fi
38635 ac_res=`eval echo '${'$as_ac_var'}'`
38636                { echo "$as_me:$LINENO: result: $ac_res" >&5
38637 echo "${ECHO_T}$ac_res" >&6; }
38638 if test `eval echo '${'$as_ac_var'}'` = yes; then
38639   cat >>confdefs.h <<_ACEOF
38640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38641 _ACEOF
38642  cat >>confdefs.h <<\_ACEOF
38643 #define HAVE_INET_PTON 1
38644 _ACEOF
38645
38646 fi
38647 done
38648
38649
38650 for ac_func in inet_ntop
38651 do
38652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38656   echo $ECHO_N "(cached) $ECHO_C" >&6
38657 else
38658   cat >conftest.$ac_ext <<_ACEOF
38659 /* confdefs.h.  */
38660 _ACEOF
38661 cat confdefs.h >>conftest.$ac_ext
38662 cat >>conftest.$ac_ext <<_ACEOF
38663 /* end confdefs.h.  */
38664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38666 #define $ac_func innocuous_$ac_func
38667
38668 /* System header to define __stub macros and hopefully few prototypes,
38669     which can conflict with char $ac_func (); below.
38670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38671     <limits.h> exists even on freestanding compilers.  */
38672
38673 #ifdef __STDC__
38674 # include <limits.h>
38675 #else
38676 # include <assert.h>
38677 #endif
38678
38679 #undef $ac_func
38680
38681 /* Override any GCC internal prototype to avoid an error.
38682    Use char because int might match the return type of a GCC
38683    builtin and then its argument prototype would still apply.  */
38684 #ifdef __cplusplus
38685 extern "C"
38686 #endif
38687 char $ac_func ();
38688 /* The GNU C library defines this for functions which it implements
38689     to always fail with ENOSYS.  Some functions are actually named
38690     something starting with __ and the normal name is an alias.  */
38691 #if defined __stub_$ac_func || defined __stub___$ac_func
38692 choke me
38693 #endif
38694
38695 int
38696 main ()
38697 {
38698 return $ac_func ();
38699   ;
38700   return 0;
38701 }
38702 _ACEOF
38703 rm -f conftest.$ac_objext conftest$ac_exeext
38704 if { (ac_try="$ac_link"
38705 case "(($ac_try" in
38706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38707   *) ac_try_echo=$ac_try;;
38708 esac
38709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38710   (eval "$ac_link") 2>conftest.er1
38711   ac_status=$?
38712   grep -v '^ *+' conftest.er1 >conftest.err
38713   rm -f conftest.er1
38714   cat conftest.err >&5
38715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716   (exit $ac_status); } && {
38717          test -z "$ac_c_werror_flag" ||
38718          test ! -s conftest.err
38719        } && test -s conftest$ac_exeext &&
38720        $as_test_x conftest$ac_exeext; then
38721   eval "$as_ac_var=yes"
38722 else
38723   echo "$as_me: failed program was:" >&5
38724 sed 's/^/| /' conftest.$ac_ext >&5
38725
38726         eval "$as_ac_var=no"
38727 fi
38728
38729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38730       conftest$ac_exeext conftest.$ac_ext
38731 fi
38732 ac_res=`eval echo '${'$as_ac_var'}'`
38733                { echo "$as_me:$LINENO: result: $ac_res" >&5
38734 echo "${ECHO_T}$ac_res" >&6; }
38735 if test `eval echo '${'$as_ac_var'}'` = yes; then
38736   cat >>confdefs.h <<_ACEOF
38737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38738 _ACEOF
38739  cat >>confdefs.h <<\_ACEOF
38740 #define HAVE_INET_NTOP 1
38741 _ACEOF
38742
38743 fi
38744 done
38745
38746
38747 for ac_func in gethostbyname2
38748 do
38749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38753   echo $ECHO_N "(cached) $ECHO_C" >&6
38754 else
38755   cat >conftest.$ac_ext <<_ACEOF
38756 /* confdefs.h.  */
38757 _ACEOF
38758 cat confdefs.h >>conftest.$ac_ext
38759 cat >>conftest.$ac_ext <<_ACEOF
38760 /* end confdefs.h.  */
38761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38763 #define $ac_func innocuous_$ac_func
38764
38765 /* System header to define __stub macros and hopefully few prototypes,
38766     which can conflict with char $ac_func (); below.
38767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38768     <limits.h> exists even on freestanding compilers.  */
38769
38770 #ifdef __STDC__
38771 # include <limits.h>
38772 #else
38773 # include <assert.h>
38774 #endif
38775
38776 #undef $ac_func
38777
38778 /* Override any GCC internal prototype to avoid an error.
38779    Use char because int might match the return type of a GCC
38780    builtin and then its argument prototype would still apply.  */
38781 #ifdef __cplusplus
38782 extern "C"
38783 #endif
38784 char $ac_func ();
38785 /* The GNU C library defines this for functions which it implements
38786     to always fail with ENOSYS.  Some functions are actually named
38787     something starting with __ and the normal name is an alias.  */
38788 #if defined __stub_$ac_func || defined __stub___$ac_func
38789 choke me
38790 #endif
38791
38792 int
38793 main ()
38794 {
38795 return $ac_func ();
38796   ;
38797   return 0;
38798 }
38799 _ACEOF
38800 rm -f conftest.$ac_objext conftest$ac_exeext
38801 if { (ac_try="$ac_link"
38802 case "(($ac_try" in
38803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38804   *) ac_try_echo=$ac_try;;
38805 esac
38806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38807   (eval "$ac_link") 2>conftest.er1
38808   ac_status=$?
38809   grep -v '^ *+' conftest.er1 >conftest.err
38810   rm -f conftest.er1
38811   cat conftest.err >&5
38812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813   (exit $ac_status); } && {
38814          test -z "$ac_c_werror_flag" ||
38815          test ! -s conftest.err
38816        } && test -s conftest$ac_exeext &&
38817        $as_test_x conftest$ac_exeext; then
38818   eval "$as_ac_var=yes"
38819 else
38820   echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38822
38823         eval "$as_ac_var=no"
38824 fi
38825
38826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38827       conftest$ac_exeext conftest.$ac_ext
38828 fi
38829 ac_res=`eval echo '${'$as_ac_var'}'`
38830                { echo "$as_me:$LINENO: result: $ac_res" >&5
38831 echo "${ECHO_T}$ac_res" >&6; }
38832 if test `eval echo '${'$as_ac_var'}'` = yes; then
38833   cat >>confdefs.h <<_ACEOF
38834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38835 _ACEOF
38836  cat >>confdefs.h <<\_ACEOF
38837 #define HAVE_GETHOSTBYNAME2 1
38838 _ACEOF
38839
38840 fi
38841 done
38842
38843
38844 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38845 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38846 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38847   echo $ECHO_N "(cached) $ECHO_C" >&6
38848 else
38849
38850        cat >conftest.$ac_ext <<_ACEOF
38851 /* confdefs.h.  */
38852 _ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h.  */
38856
38857               #include <sys/socket.h>
38858
38859 int
38860 main ()
38861 {
38862
38863               struct sockaddr s; s.sa_len;
38864
38865   ;
38866   return 0;
38867 }
38868 _ACEOF
38869 rm -f conftest.$ac_objext
38870 if { (ac_try="$ac_compile"
38871 case "(($ac_try" in
38872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38873   *) ac_try_echo=$ac_try;;
38874 esac
38875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38876   (eval "$ac_compile") 2>conftest.er1
38877   ac_status=$?
38878   grep -v '^ *+' conftest.er1 >conftest.err
38879   rm -f conftest.er1
38880   cat conftest.err >&5
38881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882   (exit $ac_status); } && {
38883          test -z "$ac_c_werror_flag" ||
38884          test ! -s conftest.err
38885        } && test -s conftest.$ac_objext; then
38886
38887              ac_cv_struct_sockaddr_sa_len=yes
38888
38889 else
38890   echo "$as_me: failed program was:" >&5
38891 sed 's/^/| /' conftest.$ac_ext >&5
38892
38893         ac_cv_struct_sockaddr_sa_len=no
38894
38895
38896 fi
38897
38898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38899
38900
38901 fi
38902 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38903 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38904
38905 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38906
38907 cat >>confdefs.h <<\_ACEOF
38908 #define HAVE_SA_LEN 1
38909 _ACEOF
38910
38911 fi
38912
38913
38914 for ac_func in strftime
38915 do
38916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38920   echo $ECHO_N "(cached) $ECHO_C" >&6
38921 else
38922   cat >conftest.$ac_ext <<_ACEOF
38923 /* confdefs.h.  */
38924 _ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h.  */
38928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38930 #define $ac_func innocuous_$ac_func
38931
38932 /* System header to define __stub macros and hopefully few prototypes,
38933     which can conflict with char $ac_func (); below.
38934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38935     <limits.h> exists even on freestanding compilers.  */
38936
38937 #ifdef __STDC__
38938 # include <limits.h>
38939 #else
38940 # include <assert.h>
38941 #endif
38942
38943 #undef $ac_func
38944
38945 /* Override any GCC internal prototype to avoid an error.
38946    Use char because int might match the return type of a GCC
38947    builtin and then its argument prototype would still apply.  */
38948 #ifdef __cplusplus
38949 extern "C"
38950 #endif
38951 char $ac_func ();
38952 /* The GNU C library defines this for functions which it implements
38953     to always fail with ENOSYS.  Some functions are actually named
38954     something starting with __ and the normal name is an alias.  */
38955 #if defined __stub_$ac_func || defined __stub___$ac_func
38956 choke me
38957 #endif
38958
38959 int
38960 main ()
38961 {
38962 return $ac_func ();
38963   ;
38964   return 0;
38965 }
38966 _ACEOF
38967 rm -f conftest.$ac_objext conftest$ac_exeext
38968 if { (ac_try="$ac_link"
38969 case "(($ac_try" in
38970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38971   *) ac_try_echo=$ac_try;;
38972 esac
38973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38974   (eval "$ac_link") 2>conftest.er1
38975   ac_status=$?
38976   grep -v '^ *+' conftest.er1 >conftest.err
38977   rm -f conftest.er1
38978   cat conftest.err >&5
38979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980   (exit $ac_status); } && {
38981          test -z "$ac_c_werror_flag" ||
38982          test ! -s conftest.err
38983        } && test -s conftest$ac_exeext &&
38984        $as_test_x conftest$ac_exeext; then
38985   eval "$as_ac_var=yes"
38986 else
38987   echo "$as_me: failed program was:" >&5
38988 sed 's/^/| /' conftest.$ac_ext >&5
38989
38990         eval "$as_ac_var=no"
38991 fi
38992
38993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38994       conftest$ac_exeext conftest.$ac_ext
38995 fi
38996 ac_res=`eval echo '${'$as_ac_var'}'`
38997                { echo "$as_me:$LINENO: result: $ac_res" >&5
38998 echo "${ECHO_T}$ac_res" >&6; }
38999 if test `eval echo '${'$as_ac_var'}'` = yes; then
39000   cat >>confdefs.h <<_ACEOF
39001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39002 _ACEOF
39003
39004 else
39005   # strftime is in -lintl on SCO UNIX.
39006 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39007 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39008 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39009   echo $ECHO_N "(cached) $ECHO_C" >&6
39010 else
39011   ac_check_lib_save_LIBS=$LIBS
39012 LIBS="-lintl  $LIBS"
39013 cat >conftest.$ac_ext <<_ACEOF
39014 /* confdefs.h.  */
39015 _ACEOF
39016 cat confdefs.h >>conftest.$ac_ext
39017 cat >>conftest.$ac_ext <<_ACEOF
39018 /* end confdefs.h.  */
39019
39020 /* Override any GCC internal prototype to avoid an error.
39021    Use char because int might match the return type of a GCC
39022    builtin and then its argument prototype would still apply.  */
39023 #ifdef __cplusplus
39024 extern "C"
39025 #endif
39026 char strftime ();
39027 int
39028 main ()
39029 {
39030 return strftime ();
39031   ;
39032   return 0;
39033 }
39034 _ACEOF
39035 rm -f conftest.$ac_objext conftest$ac_exeext
39036 if { (ac_try="$ac_link"
39037 case "(($ac_try" in
39038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39039   *) ac_try_echo=$ac_try;;
39040 esac
39041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39042   (eval "$ac_link") 2>conftest.er1
39043   ac_status=$?
39044   grep -v '^ *+' conftest.er1 >conftest.err
39045   rm -f conftest.er1
39046   cat conftest.err >&5
39047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39048   (exit $ac_status); } && {
39049          test -z "$ac_c_werror_flag" ||
39050          test ! -s conftest.err
39051        } && test -s conftest$ac_exeext &&
39052        $as_test_x conftest$ac_exeext; then
39053   ac_cv_lib_intl_strftime=yes
39054 else
39055   echo "$as_me: failed program was:" >&5
39056 sed 's/^/| /' conftest.$ac_ext >&5
39057
39058         ac_cv_lib_intl_strftime=no
39059 fi
39060
39061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39062       conftest$ac_exeext conftest.$ac_ext
39063 LIBS=$ac_check_lib_save_LIBS
39064 fi
39065 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39066 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39067 if test $ac_cv_lib_intl_strftime = yes; then
39068   cat >>confdefs.h <<\_ACEOF
39069 #define HAVE_STRFTIME 1
39070 _ACEOF
39071
39072 LIBS="-lintl $LIBS"
39073 fi
39074
39075 fi
39076 done
39077
39078
39079 for ac_func in vprintf
39080 do
39081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39085   echo $ECHO_N "(cached) $ECHO_C" >&6
39086 else
39087   cat >conftest.$ac_ext <<_ACEOF
39088 /* confdefs.h.  */
39089 _ACEOF
39090 cat confdefs.h >>conftest.$ac_ext
39091 cat >>conftest.$ac_ext <<_ACEOF
39092 /* end confdefs.h.  */
39093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39095 #define $ac_func innocuous_$ac_func
39096
39097 /* System header to define __stub macros and hopefully few prototypes,
39098     which can conflict with char $ac_func (); below.
39099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39100     <limits.h> exists even on freestanding compilers.  */
39101
39102 #ifdef __STDC__
39103 # include <limits.h>
39104 #else
39105 # include <assert.h>
39106 #endif
39107
39108 #undef $ac_func
39109
39110 /* Override any GCC internal prototype to avoid an error.
39111    Use char because int might match the return type of a GCC
39112    builtin and then its argument prototype would still apply.  */
39113 #ifdef __cplusplus
39114 extern "C"
39115 #endif
39116 char $ac_func ();
39117 /* The GNU C library defines this for functions which it implements
39118     to always fail with ENOSYS.  Some functions are actually named
39119     something starting with __ and the normal name is an alias.  */
39120 #if defined __stub_$ac_func || defined __stub___$ac_func
39121 choke me
39122 #endif
39123
39124 int
39125 main ()
39126 {
39127 return $ac_func ();
39128   ;
39129   return 0;
39130 }
39131 _ACEOF
39132 rm -f conftest.$ac_objext conftest$ac_exeext
39133 if { (ac_try="$ac_link"
39134 case "(($ac_try" in
39135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39136   *) ac_try_echo=$ac_try;;
39137 esac
39138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39139   (eval "$ac_link") 2>conftest.er1
39140   ac_status=$?
39141   grep -v '^ *+' conftest.er1 >conftest.err
39142   rm -f conftest.er1
39143   cat conftest.err >&5
39144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145   (exit $ac_status); } && {
39146          test -z "$ac_c_werror_flag" ||
39147          test ! -s conftest.err
39148        } && test -s conftest$ac_exeext &&
39149        $as_test_x conftest$ac_exeext; then
39150   eval "$as_ac_var=yes"
39151 else
39152   echo "$as_me: failed program was:" >&5
39153 sed 's/^/| /' conftest.$ac_ext >&5
39154
39155         eval "$as_ac_var=no"
39156 fi
39157
39158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39159       conftest$ac_exeext conftest.$ac_ext
39160 fi
39161 ac_res=`eval echo '${'$as_ac_var'}'`
39162                { echo "$as_me:$LINENO: result: $ac_res" >&5
39163 echo "${ECHO_T}$ac_res" >&6; }
39164 if test `eval echo '${'$as_ac_var'}'` = yes; then
39165   cat >>confdefs.h <<_ACEOF
39166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39167 _ACEOF
39168
39169 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39170 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39171 if test "${ac_cv_func__doprnt+set}" = set; then
39172   echo $ECHO_N "(cached) $ECHO_C" >&6
39173 else
39174   cat >conftest.$ac_ext <<_ACEOF
39175 /* confdefs.h.  */
39176 _ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h.  */
39180 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39182 #define _doprnt innocuous__doprnt
39183
39184 /* System header to define __stub macros and hopefully few prototypes,
39185     which can conflict with char _doprnt (); below.
39186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39187     <limits.h> exists even on freestanding compilers.  */
39188
39189 #ifdef __STDC__
39190 # include <limits.h>
39191 #else
39192 # include <assert.h>
39193 #endif
39194
39195 #undef _doprnt
39196
39197 /* Override any GCC internal prototype to avoid an error.
39198    Use char because int might match the return type of a GCC
39199    builtin and then its argument prototype would still apply.  */
39200 #ifdef __cplusplus
39201 extern "C"
39202 #endif
39203 char _doprnt ();
39204 /* The GNU C library defines this for functions which it implements
39205     to always fail with ENOSYS.  Some functions are actually named
39206     something starting with __ and the normal name is an alias.  */
39207 #if defined __stub__doprnt || defined __stub____doprnt
39208 choke me
39209 #endif
39210
39211 int
39212 main ()
39213 {
39214 return _doprnt ();
39215   ;
39216   return 0;
39217 }
39218 _ACEOF
39219 rm -f conftest.$ac_objext conftest$ac_exeext
39220 if { (ac_try="$ac_link"
39221 case "(($ac_try" in
39222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39223   *) ac_try_echo=$ac_try;;
39224 esac
39225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39226   (eval "$ac_link") 2>conftest.er1
39227   ac_status=$?
39228   grep -v '^ *+' conftest.er1 >conftest.err
39229   rm -f conftest.er1
39230   cat conftest.err >&5
39231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232   (exit $ac_status); } && {
39233          test -z "$ac_c_werror_flag" ||
39234          test ! -s conftest.err
39235        } && test -s conftest$ac_exeext &&
39236        $as_test_x conftest$ac_exeext; then
39237   ac_cv_func__doprnt=yes
39238 else
39239   echo "$as_me: failed program was:" >&5
39240 sed 's/^/| /' conftest.$ac_ext >&5
39241
39242         ac_cv_func__doprnt=no
39243 fi
39244
39245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39246       conftest$ac_exeext conftest.$ac_ext
39247 fi
39248 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39249 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39250 if test $ac_cv_func__doprnt = yes; then
39251
39252 cat >>confdefs.h <<\_ACEOF
39253 #define HAVE_DOPRNT 1
39254 _ACEOF
39255
39256 fi
39257
39258 fi
39259 done
39260
39261
39262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39263 # for constant arguments.  Useless!
39264 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39266 if test "${ac_cv_working_alloca_h+set}" = set; then
39267   echo $ECHO_N "(cached) $ECHO_C" >&6
39268 else
39269   cat >conftest.$ac_ext <<_ACEOF
39270 /* confdefs.h.  */
39271 _ACEOF
39272 cat confdefs.h >>conftest.$ac_ext
39273 cat >>conftest.$ac_ext <<_ACEOF
39274 /* end confdefs.h.  */
39275 #include <alloca.h>
39276 int
39277 main ()
39278 {
39279 char *p = (char *) alloca (2 * sizeof (int));
39280                           if (p) return 0;
39281   ;
39282   return 0;
39283 }
39284 _ACEOF
39285 rm -f conftest.$ac_objext conftest$ac_exeext
39286 if { (ac_try="$ac_link"
39287 case "(($ac_try" in
39288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39289   *) ac_try_echo=$ac_try;;
39290 esac
39291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39292   (eval "$ac_link") 2>conftest.er1
39293   ac_status=$?
39294   grep -v '^ *+' conftest.er1 >conftest.err
39295   rm -f conftest.er1
39296   cat conftest.err >&5
39297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298   (exit $ac_status); } && {
39299          test -z "$ac_c_werror_flag" ||
39300          test ! -s conftest.err
39301        } && test -s conftest$ac_exeext &&
39302        $as_test_x conftest$ac_exeext; then
39303   ac_cv_working_alloca_h=yes
39304 else
39305   echo "$as_me: failed program was:" >&5
39306 sed 's/^/| /' conftest.$ac_ext >&5
39307
39308         ac_cv_working_alloca_h=no
39309 fi
39310
39311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39312       conftest$ac_exeext conftest.$ac_ext
39313 fi
39314 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39315 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39316 if test $ac_cv_working_alloca_h = yes; then
39317
39318 cat >>confdefs.h <<\_ACEOF
39319 #define HAVE_ALLOCA_H 1
39320 _ACEOF
39321
39322 fi
39323
39324 { echo "$as_me:$LINENO: checking for alloca" >&5
39325 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39326 if test "${ac_cv_func_alloca_works+set}" = set; then
39327   echo $ECHO_N "(cached) $ECHO_C" >&6
39328 else
39329   cat >conftest.$ac_ext <<_ACEOF
39330 /* confdefs.h.  */
39331 _ACEOF
39332 cat confdefs.h >>conftest.$ac_ext
39333 cat >>conftest.$ac_ext <<_ACEOF
39334 /* end confdefs.h.  */
39335 #ifdef __GNUC__
39336 # define alloca __builtin_alloca
39337 #else
39338 # ifdef _MSC_VER
39339 #  include <malloc.h>
39340 #  define alloca _alloca
39341 # else
39342 #  ifdef HAVE_ALLOCA_H
39343 #   include <alloca.h>
39344 #  else
39345 #   ifdef _AIX
39346  #pragma alloca
39347 #   else
39348 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39349 char *alloca ();
39350 #    endif
39351 #   endif
39352 #  endif
39353 # endif
39354 #endif
39355
39356 int
39357 main ()
39358 {
39359 char *p = (char *) alloca (1);
39360                                     if (p) return 0;
39361   ;
39362   return 0;
39363 }
39364 _ACEOF
39365 rm -f conftest.$ac_objext conftest$ac_exeext
39366 if { (ac_try="$ac_link"
39367 case "(($ac_try" in
39368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39369   *) ac_try_echo=$ac_try;;
39370 esac
39371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39372   (eval "$ac_link") 2>conftest.er1
39373   ac_status=$?
39374   grep -v '^ *+' conftest.er1 >conftest.err
39375   rm -f conftest.er1
39376   cat conftest.err >&5
39377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39378   (exit $ac_status); } && {
39379          test -z "$ac_c_werror_flag" ||
39380          test ! -s conftest.err
39381        } && test -s conftest$ac_exeext &&
39382        $as_test_x conftest$ac_exeext; then
39383   ac_cv_func_alloca_works=yes
39384 else
39385   echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39387
39388         ac_cv_func_alloca_works=no
39389 fi
39390
39391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39392       conftest$ac_exeext conftest.$ac_ext
39393 fi
39394 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39395 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39396
39397 if test $ac_cv_func_alloca_works = yes; then
39398
39399 cat >>confdefs.h <<\_ACEOF
39400 #define HAVE_ALLOCA 1
39401 _ACEOF
39402
39403 else
39404   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39405 # that cause trouble.  Some versions do not even contain alloca or
39406 # contain a buggy version.  If you still want to use their alloca,
39407 # use ar to extract alloca.o from them instead of compiling alloca.c.
39408
39409 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39410
39411 cat >>confdefs.h <<\_ACEOF
39412 #define C_ALLOCA 1
39413 _ACEOF
39414
39415
39416 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39417 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39418 if test "${ac_cv_os_cray+set}" = set; then
39419   echo $ECHO_N "(cached) $ECHO_C" >&6
39420 else
39421   cat >conftest.$ac_ext <<_ACEOF
39422 /* confdefs.h.  */
39423 _ACEOF
39424 cat confdefs.h >>conftest.$ac_ext
39425 cat >>conftest.$ac_ext <<_ACEOF
39426 /* end confdefs.h.  */
39427 #if defined CRAY && ! defined CRAY2
39428 webecray
39429 #else
39430 wenotbecray
39431 #endif
39432
39433 _ACEOF
39434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39435   $EGREP "webecray" >/dev/null 2>&1; then
39436   ac_cv_os_cray=yes
39437 else
39438   ac_cv_os_cray=no
39439 fi
39440 rm -f conftest*
39441
39442 fi
39443 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39444 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39445 if test $ac_cv_os_cray = yes; then
39446   for ac_func in _getb67 GETB67 getb67; do
39447     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39451   echo $ECHO_N "(cached) $ECHO_C" >&6
39452 else
39453   cat >conftest.$ac_ext <<_ACEOF
39454 /* confdefs.h.  */
39455 _ACEOF
39456 cat confdefs.h >>conftest.$ac_ext
39457 cat >>conftest.$ac_ext <<_ACEOF
39458 /* end confdefs.h.  */
39459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39461 #define $ac_func innocuous_$ac_func
39462
39463 /* System header to define __stub macros and hopefully few prototypes,
39464     which can conflict with char $ac_func (); below.
39465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39466     <limits.h> exists even on freestanding compilers.  */
39467
39468 #ifdef __STDC__
39469 # include <limits.h>
39470 #else
39471 # include <assert.h>
39472 #endif
39473
39474 #undef $ac_func
39475
39476 /* Override any GCC internal prototype to avoid an error.
39477    Use char because int might match the return type of a GCC
39478    builtin and then its argument prototype would still apply.  */
39479 #ifdef __cplusplus
39480 extern "C"
39481 #endif
39482 char $ac_func ();
39483 /* The GNU C library defines this for functions which it implements
39484     to always fail with ENOSYS.  Some functions are actually named
39485     something starting with __ and the normal name is an alias.  */
39486 #if defined __stub_$ac_func || defined __stub___$ac_func
39487 choke me
39488 #endif
39489
39490 int
39491 main ()
39492 {
39493 return $ac_func ();
39494   ;
39495   return 0;
39496 }
39497 _ACEOF
39498 rm -f conftest.$ac_objext conftest$ac_exeext
39499 if { (ac_try="$ac_link"
39500 case "(($ac_try" in
39501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39502   *) ac_try_echo=$ac_try;;
39503 esac
39504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39505   (eval "$ac_link") 2>conftest.er1
39506   ac_status=$?
39507   grep -v '^ *+' conftest.er1 >conftest.err
39508   rm -f conftest.er1
39509   cat conftest.err >&5
39510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511   (exit $ac_status); } && {
39512          test -z "$ac_c_werror_flag" ||
39513          test ! -s conftest.err
39514        } && test -s conftest$ac_exeext &&
39515        $as_test_x conftest$ac_exeext; then
39516   eval "$as_ac_var=yes"
39517 else
39518   echo "$as_me: failed program was:" >&5
39519 sed 's/^/| /' conftest.$ac_ext >&5
39520
39521         eval "$as_ac_var=no"
39522 fi
39523
39524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39525       conftest$ac_exeext conftest.$ac_ext
39526 fi
39527 ac_res=`eval echo '${'$as_ac_var'}'`
39528                { echo "$as_me:$LINENO: result: $ac_res" >&5
39529 echo "${ECHO_T}$ac_res" >&6; }
39530 if test `eval echo '${'$as_ac_var'}'` = yes; then
39531
39532 cat >>confdefs.h <<_ACEOF
39533 #define CRAY_STACKSEG_END $ac_func
39534 _ACEOF
39535
39536     break
39537 fi
39538
39539   done
39540 fi
39541
39542 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39543 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39544 if test "${ac_cv_c_stack_direction+set}" = set; then
39545   echo $ECHO_N "(cached) $ECHO_C" >&6
39546 else
39547   if test "$cross_compiling" = yes; then
39548   ac_cv_c_stack_direction=0
39549 else
39550   cat >conftest.$ac_ext <<_ACEOF
39551 /* confdefs.h.  */
39552 _ACEOF
39553 cat confdefs.h >>conftest.$ac_ext
39554 cat >>conftest.$ac_ext <<_ACEOF
39555 /* end confdefs.h.  */
39556 $ac_includes_default
39557 int
39558 find_stack_direction ()
39559 {
39560   static char *addr = 0;
39561   auto char dummy;
39562   if (addr == 0)
39563     {
39564       addr = &dummy;
39565       return find_stack_direction ();
39566     }
39567   else
39568     return (&dummy > addr) ? 1 : -1;
39569 }
39570
39571 int
39572 main ()
39573 {
39574   return find_stack_direction () < 0;
39575 }
39576 _ACEOF
39577 rm -f conftest$ac_exeext
39578 if { (ac_try="$ac_link"
39579 case "(($ac_try" in
39580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39581   *) ac_try_echo=$ac_try;;
39582 esac
39583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39584   (eval "$ac_link") 2>&5
39585   ac_status=$?
39586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39588   { (case "(($ac_try" in
39589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39590   *) ac_try_echo=$ac_try;;
39591 esac
39592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39593   (eval "$ac_try") 2>&5
39594   ac_status=$?
39595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596   (exit $ac_status); }; }; then
39597   ac_cv_c_stack_direction=1
39598 else
39599   echo "$as_me: program exited with status $ac_status" >&5
39600 echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39602
39603 ( exit $ac_status )
39604 ac_cv_c_stack_direction=-1
39605 fi
39606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39607 fi
39608
39609
39610 fi
39611 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39613
39614 cat >>confdefs.h <<_ACEOF
39615 #define STACK_DIRECTION $ac_cv_c_stack_direction
39616 _ACEOF
39617
39618
39619 fi
39620
39621 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39622 # -lseq on Dynix/PTX, -lgen on Unixware.
39623 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39624 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39625 if test "${ac_cv_search_getmntent+set}" = set; then
39626   echo $ECHO_N "(cached) $ECHO_C" >&6
39627 else
39628   ac_func_search_save_LIBS=$LIBS
39629 cat >conftest.$ac_ext <<_ACEOF
39630 /* confdefs.h.  */
39631 _ACEOF
39632 cat confdefs.h >>conftest.$ac_ext
39633 cat >>conftest.$ac_ext <<_ACEOF
39634 /* end confdefs.h.  */
39635
39636 /* Override any GCC internal prototype to avoid an error.
39637    Use char because int might match the return type of a GCC
39638    builtin and then its argument prototype would still apply.  */
39639 #ifdef __cplusplus
39640 extern "C"
39641 #endif
39642 char getmntent ();
39643 int
39644 main ()
39645 {
39646 return getmntent ();
39647   ;
39648   return 0;
39649 }
39650 _ACEOF
39651 for ac_lib in '' sun seq gen; do
39652   if test -z "$ac_lib"; then
39653     ac_res="none required"
39654   else
39655     ac_res=-l$ac_lib
39656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39657   fi
39658   rm -f conftest.$ac_objext conftest$ac_exeext
39659 if { (ac_try="$ac_link"
39660 case "(($ac_try" in
39661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39662   *) ac_try_echo=$ac_try;;
39663 esac
39664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39665   (eval "$ac_link") 2>conftest.er1
39666   ac_status=$?
39667   grep -v '^ *+' conftest.er1 >conftest.err
39668   rm -f conftest.er1
39669   cat conftest.err >&5
39670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671   (exit $ac_status); } && {
39672          test -z "$ac_c_werror_flag" ||
39673          test ! -s conftest.err
39674        } && test -s conftest$ac_exeext &&
39675        $as_test_x conftest$ac_exeext; then
39676   ac_cv_search_getmntent=$ac_res
39677 else
39678   echo "$as_me: failed program was:" >&5
39679 sed 's/^/| /' conftest.$ac_ext >&5
39680
39681
39682 fi
39683
39684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39685       conftest$ac_exeext
39686   if test "${ac_cv_search_getmntent+set}" = set; then
39687   break
39688 fi
39689 done
39690 if test "${ac_cv_search_getmntent+set}" = set; then
39691   :
39692 else
39693   ac_cv_search_getmntent=no
39694 fi
39695 rm conftest.$ac_ext
39696 LIBS=$ac_func_search_save_LIBS
39697 fi
39698 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39699 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39700 ac_res=$ac_cv_search_getmntent
39701 if test "$ac_res" != no; then
39702   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39703   ac_cv_func_getmntent=yes
39704
39705 cat >>confdefs.h <<\_ACEOF
39706 #define HAVE_GETMNTENT 1
39707 _ACEOF
39708
39709 else
39710   ac_cv_func_getmntent=no
39711 fi
39712
39713
39714 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39715 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39716 if test "${ac_cv_func_closedir_void+set}" = set; then
39717   echo $ECHO_N "(cached) $ECHO_C" >&6
39718 else
39719   if test "$cross_compiling" = yes; then
39720   ac_cv_func_closedir_void=yes
39721 else
39722   cat >conftest.$ac_ext <<_ACEOF
39723 /* confdefs.h.  */
39724 _ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h.  */
39728 $ac_includes_default
39729 #include <$ac_header_dirent>
39730 #ifndef __cplusplus
39731 int closedir ();
39732 #endif
39733
39734 int
39735 main ()
39736 {
39737 return closedir (opendir (".")) != 0;
39738   ;
39739   return 0;
39740 }
39741 _ACEOF
39742 rm -f conftest$ac_exeext
39743 if { (ac_try="$ac_link"
39744 case "(($ac_try" in
39745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39746   *) ac_try_echo=$ac_try;;
39747 esac
39748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39749   (eval "$ac_link") 2>&5
39750   ac_status=$?
39751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39753   { (case "(($ac_try" in
39754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39755   *) ac_try_echo=$ac_try;;
39756 esac
39757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39758   (eval "$ac_try") 2>&5
39759   ac_status=$?
39760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39761   (exit $ac_status); }; }; then
39762   ac_cv_func_closedir_void=no
39763 else
39764   echo "$as_me: program exited with status $ac_status" >&5
39765 echo "$as_me: failed program was:" >&5
39766 sed 's/^/| /' conftest.$ac_ext >&5
39767
39768 ( exit $ac_status )
39769 ac_cv_func_closedir_void=yes
39770 fi
39771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39772 fi
39773
39774
39775 fi
39776 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39777 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39778 if test $ac_cv_func_closedir_void = yes; then
39779
39780 cat >>confdefs.h <<\_ACEOF
39781 #define CLOSEDIR_VOID 1
39782 _ACEOF
39783
39784 fi
39785
39786 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39787 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39788 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39789   echo $ECHO_N "(cached) $ECHO_C" >&6
39790 else
39791   if test "$cross_compiling" = yes; then
39792   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39793 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39794    { (exit 1); exit 1; }; }
39795 else
39796   cat >conftest.$ac_ext <<_ACEOF
39797 /* confdefs.h.  */
39798 _ACEOF
39799 cat confdefs.h >>conftest.$ac_ext
39800 cat >>conftest.$ac_ext <<_ACEOF
39801 /* end confdefs.h.  */
39802 $ac_includes_default
39803 int
39804 main ()
39805 {
39806 /* If this system has a BSD-style setpgrp which takes arguments,
39807   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39808   exit successfully. */
39809   return setpgrp (1,1) != -1;
39810   ;
39811   return 0;
39812 }
39813 _ACEOF
39814 rm -f conftest$ac_exeext
39815 if { (ac_try="$ac_link"
39816 case "(($ac_try" in
39817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39818   *) ac_try_echo=$ac_try;;
39819 esac
39820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39821   (eval "$ac_link") 2>&5
39822   ac_status=$?
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39825   { (case "(($ac_try" in
39826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39827   *) ac_try_echo=$ac_try;;
39828 esac
39829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39830   (eval "$ac_try") 2>&5
39831   ac_status=$?
39832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833   (exit $ac_status); }; }; then
39834   ac_cv_func_setpgrp_void=no
39835 else
39836   echo "$as_me: program exited with status $ac_status" >&5
39837 echo "$as_me: failed program was:" >&5
39838 sed 's/^/| /' conftest.$ac_ext >&5
39839
39840 ( exit $ac_status )
39841 ac_cv_func_setpgrp_void=yes
39842 fi
39843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39844 fi
39845
39846
39847 fi
39848 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39849 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39850 if test $ac_cv_func_setpgrp_void = yes; then
39851
39852 cat >>confdefs.h <<\_ACEOF
39853 #define SETPGRP_VOID 1
39854 _ACEOF
39855
39856 fi
39857              # AC_FUNC_FNMATCH    dnl use local version
39858
39859 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39860 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39861 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39862   echo $ECHO_N "(cached) $ECHO_C" >&6
39863 else
39864   ac_check_lib_save_LIBS=$LIBS
39865 LIBS="-lintl  $LIBS"
39866 cat >conftest.$ac_ext <<_ACEOF
39867 /* confdefs.h.  */
39868 _ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h.  */
39872
39873 /* Override any GCC internal prototype to avoid an error.
39874    Use char because int might match the return type of a GCC
39875    builtin and then its argument prototype would still apply.  */
39876 #ifdef __cplusplus
39877 extern "C"
39878 #endif
39879 char gettext ();
39880 int
39881 main ()
39882 {
39883 return gettext ();
39884   ;
39885   return 0;
39886 }
39887 _ACEOF
39888 rm -f conftest.$ac_objext conftest$ac_exeext
39889 if { (ac_try="$ac_link"
39890 case "(($ac_try" in
39891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39892   *) ac_try_echo=$ac_try;;
39893 esac
39894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39895   (eval "$ac_link") 2>conftest.er1
39896   ac_status=$?
39897   grep -v '^ *+' conftest.er1 >conftest.err
39898   rm -f conftest.er1
39899   cat conftest.err >&5
39900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901   (exit $ac_status); } && {
39902          test -z "$ac_c_werror_flag" ||
39903          test ! -s conftest.err
39904        } && test -s conftest$ac_exeext &&
39905        $as_test_x conftest$ac_exeext; then
39906   ac_cv_lib_intl_gettext=yes
39907 else
39908   echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39910
39911         ac_cv_lib_intl_gettext=no
39912 fi
39913
39914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39915       conftest$ac_exeext conftest.$ac_ext
39916 LIBS=$ac_check_lib_save_LIBS
39917 fi
39918 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39919 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39920 if test $ac_cv_lib_intl_gettext = yes; then
39921   LIBS="$LIBS -lintl"
39922 fi
39923
39924
39925
39926 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39927 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39928 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39929   echo $ECHO_N "(cached) $ECHO_C" >&6
39930 else
39931   ac_check_lib_save_LIBS=$LIBS
39932 LIBS="-lsun  $LIBS"
39933 cat >conftest.$ac_ext <<_ACEOF
39934 /* confdefs.h.  */
39935 _ACEOF
39936 cat confdefs.h >>conftest.$ac_ext
39937 cat >>conftest.$ac_ext <<_ACEOF
39938 /* end confdefs.h.  */
39939
39940 /* Override any GCC internal prototype to avoid an error.
39941    Use char because int might match the return type of a GCC
39942    builtin and then its argument prototype would still apply.  */
39943 #ifdef __cplusplus
39944 extern "C"
39945 #endif
39946 char getpwnam ();
39947 int
39948 main ()
39949 {
39950 return getpwnam ();
39951   ;
39952   return 0;
39953 }
39954 _ACEOF
39955 rm -f conftest.$ac_objext conftest$ac_exeext
39956 if { (ac_try="$ac_link"
39957 case "(($ac_try" in
39958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39959   *) ac_try_echo=$ac_try;;
39960 esac
39961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39962   (eval "$ac_link") 2>conftest.er1
39963   ac_status=$?
39964   grep -v '^ *+' conftest.er1 >conftest.err
39965   rm -f conftest.er1
39966   cat conftest.err >&5
39967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968   (exit $ac_status); } && {
39969          test -z "$ac_c_werror_flag" ||
39970          test ! -s conftest.err
39971        } && test -s conftest$ac_exeext &&
39972        $as_test_x conftest$ac_exeext; then
39973   ac_cv_lib_sun_getpwnam=yes
39974 else
39975   echo "$as_me: failed program was:" >&5
39976 sed 's/^/| /' conftest.$ac_ext >&5
39977
39978         ac_cv_lib_sun_getpwnam=no
39979 fi
39980
39981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39982       conftest$ac_exeext conftest.$ac_ext
39983 LIBS=$ac_check_lib_save_LIBS
39984 fi
39985 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39986 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39987 if test $ac_cv_lib_sun_getpwnam = yes; then
39988   cat >>confdefs.h <<_ACEOF
39989 #define HAVE_LIBSUN 1
39990 _ACEOF
39991
39992   LIBS="-lsun $LIBS"
39993
39994 fi
39995
39996
39997
39998 for ac_header in zlib.h
39999 do
40000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40002   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40005   echo $ECHO_N "(cached) $ECHO_C" >&6
40006 fi
40007 ac_res=`eval echo '${'$as_ac_Header'}'`
40008                { echo "$as_me:$LINENO: result: $ac_res" >&5
40009 echo "${ECHO_T}$ac_res" >&6; }
40010 else
40011   # Is the header compilable?
40012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40014 cat >conftest.$ac_ext <<_ACEOF
40015 /* confdefs.h.  */
40016 _ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h.  */
40020 $ac_includes_default
40021 #include <$ac_header>
40022 _ACEOF
40023 rm -f conftest.$ac_objext
40024 if { (ac_try="$ac_compile"
40025 case "(($ac_try" in
40026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40027   *) ac_try_echo=$ac_try;;
40028 esac
40029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40030   (eval "$ac_compile") 2>conftest.er1
40031   ac_status=$?
40032   grep -v '^ *+' conftest.er1 >conftest.err
40033   rm -f conftest.er1
40034   cat conftest.err >&5
40035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40036   (exit $ac_status); } && {
40037          test -z "$ac_c_werror_flag" ||
40038          test ! -s conftest.err
40039        } && test -s conftest.$ac_objext; then
40040   ac_header_compiler=yes
40041 else
40042   echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40044
40045         ac_header_compiler=no
40046 fi
40047
40048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40050 echo "${ECHO_T}$ac_header_compiler" >&6; }
40051
40052 # Is the header present?
40053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40055 cat >conftest.$ac_ext <<_ACEOF
40056 /* confdefs.h.  */
40057 _ACEOF
40058 cat confdefs.h >>conftest.$ac_ext
40059 cat >>conftest.$ac_ext <<_ACEOF
40060 /* end confdefs.h.  */
40061 #include <$ac_header>
40062 _ACEOF
40063 if { (ac_try="$ac_cpp conftest.$ac_ext"
40064 case "(($ac_try" in
40065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40066   *) ac_try_echo=$ac_try;;
40067 esac
40068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40070   ac_status=$?
40071   grep -v '^ *+' conftest.er1 >conftest.err
40072   rm -f conftest.er1
40073   cat conftest.err >&5
40074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075   (exit $ac_status); } >/dev/null && {
40076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40077          test ! -s conftest.err
40078        }; then
40079   ac_header_preproc=yes
40080 else
40081   echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40083
40084   ac_header_preproc=no
40085 fi
40086
40087 rm -f conftest.err conftest.$ac_ext
40088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40089 echo "${ECHO_T}$ac_header_preproc" >&6; }
40090
40091 # So?  What about this header?
40092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40093   yes:no: )
40094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40098     ac_header_preproc=yes
40099     ;;
40100   no:yes:* )
40101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40113
40114     ;;
40115 esac
40116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40119   echo $ECHO_N "(cached) $ECHO_C" >&6
40120 else
40121   eval "$as_ac_Header=\$ac_header_preproc"
40122 fi
40123 ac_res=`eval echo '${'$as_ac_Header'}'`
40124                { echo "$as_me:$LINENO: result: $ac_res" >&5
40125 echo "${ECHO_T}$ac_res" >&6; }
40126
40127 fi
40128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40129   cat >>confdefs.h <<_ACEOF
40130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40131 _ACEOF
40132
40133 fi
40134
40135 done
40136
40137 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40138 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40139 if test "${ac_cv_lib_z_deflate+set}" = set; then
40140   echo $ECHO_N "(cached) $ECHO_C" >&6
40141 else
40142   ac_check_lib_save_LIBS=$LIBS
40143 LIBS="-lz  $LIBS"
40144 cat >conftest.$ac_ext <<_ACEOF
40145 /* confdefs.h.  */
40146 _ACEOF
40147 cat confdefs.h >>conftest.$ac_ext
40148 cat >>conftest.$ac_ext <<_ACEOF
40149 /* end confdefs.h.  */
40150
40151 /* Override any GCC internal prototype to avoid an error.
40152    Use char because int might match the return type of a GCC
40153    builtin and then its argument prototype would still apply.  */
40154 #ifdef __cplusplus
40155 extern "C"
40156 #endif
40157 char deflate ();
40158 int
40159 main ()
40160 {
40161 return deflate ();
40162   ;
40163   return 0;
40164 }
40165 _ACEOF
40166 rm -f conftest.$ac_objext conftest$ac_exeext
40167 if { (ac_try="$ac_link"
40168 case "(($ac_try" in
40169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40170   *) ac_try_echo=$ac_try;;
40171 esac
40172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40173   (eval "$ac_link") 2>conftest.er1
40174   ac_status=$?
40175   grep -v '^ *+' conftest.er1 >conftest.err
40176   rm -f conftest.er1
40177   cat conftest.err >&5
40178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179   (exit $ac_status); } && {
40180          test -z "$ac_c_werror_flag" ||
40181          test ! -s conftest.err
40182        } && test -s conftest$ac_exeext &&
40183        $as_test_x conftest$ac_exeext; then
40184   ac_cv_lib_z_deflate=yes
40185 else
40186   echo "$as_me: failed program was:" >&5
40187 sed 's/^/| /' conftest.$ac_ext >&5
40188
40189         ac_cv_lib_z_deflate=no
40190 fi
40191
40192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40193       conftest$ac_exeext conftest.$ac_ext
40194 LIBS=$ac_check_lib_save_LIBS
40195 fi
40196 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40197 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40198 if test $ac_cv_lib_z_deflate = yes; then
40199   FDLIBS="-lz"
40200 fi
40201
40202 have_zlib=no
40203 if test x$FDLIBS = x-lz; then
40204    cat >>confdefs.h <<\_ACEOF
40205 #define HAVE_LIBZ 1
40206 _ACEOF
40207
40208    have_zlib=yes
40209 fi
40210
40211 have_acl=no
40212 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40213   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40214 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40215 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40216   echo $ECHO_N "(cached) $ECHO_C" >&6
40217 fi
40218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40219 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40220 else
40221   # Is the header compilable?
40222 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40223 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40224 cat >conftest.$ac_ext <<_ACEOF
40225 /* confdefs.h.  */
40226 _ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h.  */
40230 $ac_includes_default
40231 #include <sys/acl.h>
40232 _ACEOF
40233 rm -f conftest.$ac_objext
40234 if { (ac_try="$ac_compile"
40235 case "(($ac_try" in
40236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40237   *) ac_try_echo=$ac_try;;
40238 esac
40239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40240   (eval "$ac_compile") 2>conftest.er1
40241   ac_status=$?
40242   grep -v '^ *+' conftest.er1 >conftest.err
40243   rm -f conftest.er1
40244   cat conftest.err >&5
40245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40246   (exit $ac_status); } && {
40247          test -z "$ac_c_werror_flag" ||
40248          test ! -s conftest.err
40249        } && test -s conftest.$ac_objext; then
40250   ac_header_compiler=yes
40251 else
40252   echo "$as_me: failed program was:" >&5
40253 sed 's/^/| /' conftest.$ac_ext >&5
40254
40255         ac_header_compiler=no
40256 fi
40257
40258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40260 echo "${ECHO_T}$ac_header_compiler" >&6; }
40261
40262 # Is the header present?
40263 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40264 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40265 cat >conftest.$ac_ext <<_ACEOF
40266 /* confdefs.h.  */
40267 _ACEOF
40268 cat confdefs.h >>conftest.$ac_ext
40269 cat >>conftest.$ac_ext <<_ACEOF
40270 /* end confdefs.h.  */
40271 #include <sys/acl.h>
40272 _ACEOF
40273 if { (ac_try="$ac_cpp conftest.$ac_ext"
40274 case "(($ac_try" in
40275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40276   *) ac_try_echo=$ac_try;;
40277 esac
40278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40280   ac_status=$?
40281   grep -v '^ *+' conftest.er1 >conftest.err
40282   rm -f conftest.er1
40283   cat conftest.err >&5
40284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285   (exit $ac_status); } >/dev/null && {
40286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40287          test ! -s conftest.err
40288        }; then
40289   ac_header_preproc=yes
40290 else
40291   echo "$as_me: failed program was:" >&5
40292 sed 's/^/| /' conftest.$ac_ext >&5
40293
40294   ac_header_preproc=no
40295 fi
40296
40297 rm -f conftest.err conftest.$ac_ext
40298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40299 echo "${ECHO_T}$ac_header_preproc" >&6; }
40300
40301 # So?  What about this header?
40302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40303   yes:no: )
40304     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40305 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40306     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40307 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40308     ac_header_preproc=yes
40309     ;;
40310   no:yes:* )
40311     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40312 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40313     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40314 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40315     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40316 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40317     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40318 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40319     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40320 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40321     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40322 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40323
40324     ;;
40325 esac
40326 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40327 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40328 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40329   echo $ECHO_N "(cached) $ECHO_C" >&6
40330 else
40331   ac_cv_header_sys_acl_h=$ac_header_preproc
40332 fi
40333 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40334 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40335
40336 fi
40337
40338
40339 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40340 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40341 if test "${ac_cv_func_acl_get_file+set}" = set; then
40342   echo $ECHO_N "(cached) $ECHO_C" >&6
40343 else
40344   cat >conftest.$ac_ext <<_ACEOF
40345 /* confdefs.h.  */
40346 _ACEOF
40347 cat confdefs.h >>conftest.$ac_ext
40348 cat >>conftest.$ac_ext <<_ACEOF
40349 /* end confdefs.h.  */
40350 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40352 #define acl_get_file innocuous_acl_get_file
40353
40354 /* System header to define __stub macros and hopefully few prototypes,
40355     which can conflict with char acl_get_file (); below.
40356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40357     <limits.h> exists even on freestanding compilers.  */
40358
40359 #ifdef __STDC__
40360 # include <limits.h>
40361 #else
40362 # include <assert.h>
40363 #endif
40364
40365 #undef acl_get_file
40366
40367 /* Override any GCC internal prototype to avoid an error.
40368    Use char because int might match the return type of a GCC
40369    builtin and then its argument prototype would still apply.  */
40370 #ifdef __cplusplus
40371 extern "C"
40372 #endif
40373 char acl_get_file ();
40374 /* The GNU C library defines this for functions which it implements
40375     to always fail with ENOSYS.  Some functions are actually named
40376     something starting with __ and the normal name is an alias.  */
40377 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40378 choke me
40379 #endif
40380
40381 int
40382 main ()
40383 {
40384 return acl_get_file ();
40385   ;
40386   return 0;
40387 }
40388 _ACEOF
40389 rm -f conftest.$ac_objext conftest$ac_exeext
40390 if { (ac_try="$ac_link"
40391 case "(($ac_try" in
40392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40393   *) ac_try_echo=$ac_try;;
40394 esac
40395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40396   (eval "$ac_link") 2>conftest.er1
40397   ac_status=$?
40398   grep -v '^ *+' conftest.er1 >conftest.err
40399   rm -f conftest.er1
40400   cat conftest.err >&5
40401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402   (exit $ac_status); } && {
40403          test -z "$ac_c_werror_flag" ||
40404          test ! -s conftest.err
40405        } && test -s conftest$ac_exeext &&
40406        $as_test_x conftest$ac_exeext; then
40407   ac_cv_func_acl_get_file=yes
40408 else
40409   echo "$as_me: failed program was:" >&5
40410 sed 's/^/| /' conftest.$ac_ext >&5
40411
40412         ac_cv_func_acl_get_file=no
40413 fi
40414
40415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40416       conftest$ac_exeext conftest.$ac_ext
40417 fi
40418 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40419 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40420 if test $ac_cv_func_acl_get_file = yes; then
40421   have_acl=yes
40422 else
40423
40424        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40425 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40426 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40427   echo $ECHO_N "(cached) $ECHO_C" >&6
40428 else
40429   ac_check_lib_save_LIBS=$LIBS
40430 LIBS="-lacl  $LIBS"
40431 cat >conftest.$ac_ext <<_ACEOF
40432 /* confdefs.h.  */
40433 _ACEOF
40434 cat confdefs.h >>conftest.$ac_ext
40435 cat >>conftest.$ac_ext <<_ACEOF
40436 /* end confdefs.h.  */
40437
40438 /* Override any GCC internal prototype to avoid an error.
40439    Use char because int might match the return type of a GCC
40440    builtin and then its argument prototype would still apply.  */
40441 #ifdef __cplusplus
40442 extern "C"
40443 #endif
40444 char acl_get_file ();
40445 int
40446 main ()
40447 {
40448 return acl_get_file ();
40449   ;
40450   return 0;
40451 }
40452 _ACEOF
40453 rm -f conftest.$ac_objext conftest$ac_exeext
40454 if { (ac_try="$ac_link"
40455 case "(($ac_try" in
40456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40457   *) ac_try_echo=$ac_try;;
40458 esac
40459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40460   (eval "$ac_link") 2>conftest.er1
40461   ac_status=$?
40462   grep -v '^ *+' conftest.er1 >conftest.err
40463   rm -f conftest.er1
40464   cat conftest.err >&5
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } && {
40467          test -z "$ac_c_werror_flag" ||
40468          test ! -s conftest.err
40469        } && test -s conftest$ac_exeext &&
40470        $as_test_x conftest$ac_exeext; then
40471   ac_cv_lib_acl_acl_get_file=yes
40472 else
40473   echo "$as_me: failed program was:" >&5
40474 sed 's/^/| /' conftest.$ac_ext >&5
40475
40476         ac_cv_lib_acl_acl_get_file=no
40477 fi
40478
40479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40480       conftest$ac_exeext conftest.$ac_ext
40481 LIBS=$ac_check_lib_save_LIBS
40482 fi
40483 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40484 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40485 if test $ac_cv_lib_acl_acl_get_file = yes; then
40486
40487               have_acl=yes;
40488               FDLIBS="-lacl $FDLIBS"
40489
40490 else
40491
40492               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40493 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40494 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40495   echo $ECHO_N "(cached) $ECHO_C" >&6
40496 else
40497   ac_check_lib_save_LIBS=$LIBS
40498 LIBS="-lsec  $LIBS"
40499 cat >conftest.$ac_ext <<_ACEOF
40500 /* confdefs.h.  */
40501 _ACEOF
40502 cat confdefs.h >>conftest.$ac_ext
40503 cat >>conftest.$ac_ext <<_ACEOF
40504 /* end confdefs.h.  */
40505
40506 /* Override any GCC internal prototype to avoid an error.
40507    Use char because int might match the return type of a GCC
40508    builtin and then its argument prototype would still apply.  */
40509 #ifdef __cplusplus
40510 extern "C"
40511 #endif
40512 char acltotext ();
40513 int
40514 main ()
40515 {
40516 return acltotext ();
40517   ;
40518   return 0;
40519 }
40520 _ACEOF
40521 rm -f conftest.$ac_objext conftest$ac_exeext
40522 if { (ac_try="$ac_link"
40523 case "(($ac_try" in
40524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40525   *) ac_try_echo=$ac_try;;
40526 esac
40527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40528   (eval "$ac_link") 2>conftest.er1
40529   ac_status=$?
40530   grep -v '^ *+' conftest.er1 >conftest.err
40531   rm -f conftest.er1
40532   cat conftest.err >&5
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); } && {
40535          test -z "$ac_c_werror_flag" ||
40536          test ! -s conftest.err
40537        } && test -s conftest$ac_exeext &&
40538        $as_test_x conftest$ac_exeext; then
40539   ac_cv_lib_sec_acltotext=yes
40540 else
40541   echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40543
40544         ac_cv_lib_sec_acltotext=no
40545 fi
40546
40547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40548       conftest$ac_exeext conftest.$ac_ext
40549 LIBS=$ac_check_lib_save_LIBS
40550 fi
40551 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40552 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40553 if test $ac_cv_lib_sec_acltotext = yes; then
40554
40555                      have_acl=yes;
40556                      FDLIBS="-lsec $FDLIBS"
40557
40558
40559 fi
40560
40561
40562
40563 fi
40564
40565
40566
40567 fi
40568
40569 if test $have_acl = yes; then
40570    cat >>confdefs.h <<\_ACEOF
40571 #define HAVE_ACL 1
40572 _ACEOF
40573
40574 fi
40575
40576 PTHREAD_LIB=""
40577 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40578 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40579 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40580   echo $ECHO_N "(cached) $ECHO_C" >&6
40581 else
40582   ac_check_lib_save_LIBS=$LIBS
40583 LIBS="-lpthread  $LIBS"
40584 cat >conftest.$ac_ext <<_ACEOF
40585 /* confdefs.h.  */
40586 _ACEOF
40587 cat confdefs.h >>conftest.$ac_ext
40588 cat >>conftest.$ac_ext <<_ACEOF
40589 /* end confdefs.h.  */
40590
40591 /* Override any GCC internal prototype to avoid an error.
40592    Use char because int might match the return type of a GCC
40593    builtin and then its argument prototype would still apply.  */
40594 #ifdef __cplusplus
40595 extern "C"
40596 #endif
40597 char pthread_create ();
40598 int
40599 main ()
40600 {
40601 return pthread_create ();
40602   ;
40603   return 0;
40604 }
40605 _ACEOF
40606 rm -f conftest.$ac_objext conftest$ac_exeext
40607 if { (ac_try="$ac_link"
40608 case "(($ac_try" in
40609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40610   *) ac_try_echo=$ac_try;;
40611 esac
40612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40613   (eval "$ac_link") 2>conftest.er1
40614   ac_status=$?
40615   grep -v '^ *+' conftest.er1 >conftest.err
40616   rm -f conftest.er1
40617   cat conftest.err >&5
40618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40619   (exit $ac_status); } && {
40620          test -z "$ac_c_werror_flag" ||
40621          test ! -s conftest.err
40622        } && test -s conftest$ac_exeext &&
40623        $as_test_x conftest$ac_exeext; then
40624   ac_cv_lib_pthread_pthread_create=yes
40625 else
40626   echo "$as_me: failed program was:" >&5
40627 sed 's/^/| /' conftest.$ac_ext >&5
40628
40629         ac_cv_lib_pthread_pthread_create=no
40630 fi
40631
40632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40633       conftest$ac_exeext conftest.$ac_ext
40634 LIBS=$ac_check_lib_save_LIBS
40635 fi
40636 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40637 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40638 if test $ac_cv_lib_pthread_pthread_create = yes; then
40639   PTHREAD_LIB="-lpthread"
40640 else
40641
40642        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40643 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40644 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40645   echo $ECHO_N "(cached) $ECHO_C" >&6
40646 else
40647   ac_check_lib_save_LIBS=$LIBS
40648 LIBS="-lpthreads  $LIBS"
40649 cat >conftest.$ac_ext <<_ACEOF
40650 /* confdefs.h.  */
40651 _ACEOF
40652 cat confdefs.h >>conftest.$ac_ext
40653 cat >>conftest.$ac_ext <<_ACEOF
40654 /* end confdefs.h.  */
40655
40656 /* Override any GCC internal prototype to avoid an error.
40657    Use char because int might match the return type of a GCC
40658    builtin and then its argument prototype would still apply.  */
40659 #ifdef __cplusplus
40660 extern "C"
40661 #endif
40662 char pthread_create ();
40663 int
40664 main ()
40665 {
40666 return pthread_create ();
40667   ;
40668   return 0;
40669 }
40670 _ACEOF
40671 rm -f conftest.$ac_objext conftest$ac_exeext
40672 if { (ac_try="$ac_link"
40673 case "(($ac_try" in
40674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40675   *) ac_try_echo=$ac_try;;
40676 esac
40677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40678   (eval "$ac_link") 2>conftest.er1
40679   ac_status=$?
40680   grep -v '^ *+' conftest.er1 >conftest.err
40681   rm -f conftest.er1
40682   cat conftest.err >&5
40683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684   (exit $ac_status); } && {
40685          test -z "$ac_c_werror_flag" ||
40686          test ! -s conftest.err
40687        } && test -s conftest$ac_exeext &&
40688        $as_test_x conftest$ac_exeext; then
40689   ac_cv_lib_pthreads_pthread_create=yes
40690 else
40691   echo "$as_me: failed program was:" >&5
40692 sed 's/^/| /' conftest.$ac_ext >&5
40693
40694         ac_cv_lib_pthreads_pthread_create=no
40695 fi
40696
40697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40698       conftest$ac_exeext conftest.$ac_ext
40699 LIBS=$ac_check_lib_save_LIBS
40700 fi
40701 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40702 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40703 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40704   PTHREAD_LIB="-lpthreads"
40705 else
40706
40707               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40708 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40709 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40710   echo $ECHO_N "(cached) $ECHO_C" >&6
40711 else
40712   ac_check_lib_save_LIBS=$LIBS
40713 LIBS="-lc_r  $LIBS"
40714 cat >conftest.$ac_ext <<_ACEOF
40715 /* confdefs.h.  */
40716 _ACEOF
40717 cat confdefs.h >>conftest.$ac_ext
40718 cat >>conftest.$ac_ext <<_ACEOF
40719 /* end confdefs.h.  */
40720
40721 /* Override any GCC internal prototype to avoid an error.
40722    Use char because int might match the return type of a GCC
40723    builtin and then its argument prototype would still apply.  */
40724 #ifdef __cplusplus
40725 extern "C"
40726 #endif
40727 char pthread_create ();
40728 int
40729 main ()
40730 {
40731 return pthread_create ();
40732   ;
40733   return 0;
40734 }
40735 _ACEOF
40736 rm -f conftest.$ac_objext conftest$ac_exeext
40737 if { (ac_try="$ac_link"
40738 case "(($ac_try" in
40739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40740   *) ac_try_echo=$ac_try;;
40741 esac
40742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40743   (eval "$ac_link") 2>conftest.er1
40744   ac_status=$?
40745   grep -v '^ *+' conftest.er1 >conftest.err
40746   rm -f conftest.er1
40747   cat conftest.err >&5
40748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40749   (exit $ac_status); } && {
40750          test -z "$ac_c_werror_flag" ||
40751          test ! -s conftest.err
40752        } && test -s conftest$ac_exeext &&
40753        $as_test_x conftest$ac_exeext; then
40754   ac_cv_lib_c_r_pthread_create=yes
40755 else
40756   echo "$as_me: failed program was:" >&5
40757 sed 's/^/| /' conftest.$ac_ext >&5
40758
40759         ac_cv_lib_c_r_pthread_create=no
40760 fi
40761
40762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40763       conftest$ac_exeext conftest.$ac_ext
40764 LIBS=$ac_check_lib_save_LIBS
40765 fi
40766 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40767 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40768 if test $ac_cv_lib_c_r_pthread_create = yes; then
40769   PTHREAD_LIB="-lc_r"
40770 else
40771
40772                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40773 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40774 if test "${ac_cv_func_pthread_create+set}" = set; then
40775   echo $ECHO_N "(cached) $ECHO_C" >&6
40776 else
40777   cat >conftest.$ac_ext <<_ACEOF
40778 /* confdefs.h.  */
40779 _ACEOF
40780 cat confdefs.h >>conftest.$ac_ext
40781 cat >>conftest.$ac_ext <<_ACEOF
40782 /* end confdefs.h.  */
40783 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40785 #define pthread_create innocuous_pthread_create
40786
40787 /* System header to define __stub macros and hopefully few prototypes,
40788     which can conflict with char pthread_create (); below.
40789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40790     <limits.h> exists even on freestanding compilers.  */
40791
40792 #ifdef __STDC__
40793 # include <limits.h>
40794 #else
40795 # include <assert.h>
40796 #endif
40797
40798 #undef pthread_create
40799
40800 /* Override any GCC internal prototype to avoid an error.
40801    Use char because int might match the return type of a GCC
40802    builtin and then its argument prototype would still apply.  */
40803 #ifdef __cplusplus
40804 extern "C"
40805 #endif
40806 char pthread_create ();
40807 /* The GNU C library defines this for functions which it implements
40808     to always fail with ENOSYS.  Some functions are actually named
40809     something starting with __ and the normal name is an alias.  */
40810 #if defined __stub_pthread_create || defined __stub___pthread_create
40811 choke me
40812 #endif
40813
40814 int
40815 main ()
40816 {
40817 return pthread_create ();
40818   ;
40819   return 0;
40820 }
40821 _ACEOF
40822 rm -f conftest.$ac_objext conftest$ac_exeext
40823 if { (ac_try="$ac_link"
40824 case "(($ac_try" in
40825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40826   *) ac_try_echo=$ac_try;;
40827 esac
40828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40829   (eval "$ac_link") 2>conftest.er1
40830   ac_status=$?
40831   grep -v '^ *+' conftest.er1 >conftest.err
40832   rm -f conftest.er1
40833   cat conftest.err >&5
40834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835   (exit $ac_status); } && {
40836          test -z "$ac_c_werror_flag" ||
40837          test ! -s conftest.err
40838        } && test -s conftest$ac_exeext &&
40839        $as_test_x conftest$ac_exeext; then
40840   ac_cv_func_pthread_create=yes
40841 else
40842   echo "$as_me: failed program was:" >&5
40843 sed 's/^/| /' conftest.$ac_ext >&5
40844
40845         ac_cv_func_pthread_create=no
40846 fi
40847
40848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40849       conftest$ac_exeext conftest.$ac_ext
40850 fi
40851 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40852 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40853
40854
40855
40856 fi
40857
40858
40859
40860 fi
40861
40862
40863
40864 fi
40865
40866
40867
40868 cat >>confdefs.h <<\_ACEOF
40869 #define FDLIBS 1
40870 _ACEOF
40871
40872
40873 CFLAGS=${CFLAGS--O}
40874
40875 if test x$have_gcc = xyes ; then
40876    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40877    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40878 fi
40879 LDFLAGS=${LDFLAGS--O}
40880 DB_LIBS="${SQL_LFLAGS}"
40881 CPPFLAGS="$CPPFLAGS"
40882 CFLAGS="$CFLAGS"
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899 OBJLIST=
40900
40901
40902 lld="lld"
40903 llu="llu"
40904
40905 WCFLAGS=
40906 WLDFLAGS=
40907
40908 PFILES="platforms/Makefile"
40909 PSCMD="ps -e"
40910 WIN32=
40911 MACOSX=
40912 hostname=`uname -n | cut -d '.' -f 1`
40913 if test x${hostname} = x ; then
40914    hostname="localhost"
40915 fi
40916 case "$DISTNAME" in
40917 aix)
40918    DISTVER=`uname -r`
40919    PSCMD="ps -e -o pid,comm"
40920    PFILES="${PFILES} \
40921       platforms/aix/Makefile"
40922    TAPEDRIVE="/dev/rmt0.1"
40923   ;;
40924 alpha)
40925    DISTVER=`uname -r`
40926    PTHREAD_LIB="-lpthread -lexc"
40927    if test "${CC}" = "gcc" ; then
40928       lld="lld"
40929       llu="llu"
40930    else
40931       lld="ld"
40932       llu="lu"
40933    fi
40934    TAPEDRIVE="/dev/nrmt0"
40935   ;;
40936 bsdi)
40937    DISTVER=`uname -a |awk '{print $3}'`
40938    TAPEDRIVE="/dev/nrmt0"
40939    PTHREAD_LIB="-pthread"
40940    CFLAGS="${CFLAGS} -pthread"
40941    PSCMD="ps -ax -o pid,command"
40942    lld="qd"
40943    llu="qu"
40944    PFILES="${PFILES} \
40945        platforms/bsdi/Makefile \
40946        platforms/bsdi/bacula-fd \
40947        platforms/bsdi/bacula-sd \
40948        platforms/bsdi/bacula-dir"
40949    largefile_support="yes"
40950   ;;
40951 cygwin)
40952    DISTVER=`uname -a |awk '{print $3}'`
40953    TAPEDRIVE="/dev/nrst0"
40954    WIN32=win32
40955    WCFLAGS="-mwindows"
40956    WLDFLAGS="-mwindows"
40957   ;;
40958 darwin)
40959    DISTVER=`uname -r`
40960    TAPEDRIVE="/dev/nst0"
40961    PSCMD="ps -e -o pid,command"
40962    MACOSX=macosx
40963    PFILES="${PFILES} \
40964       platforms/darwin/Makefile"
40965   ;;
40966 debian)
40967       ping -c 1 $hostname 2>&1 1>/dev/null
40968    if test ! $? = 0; then
40969       hostname="localhost"
40970    fi
40971    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40972       DISTNAME="ubuntu"
40973    fi
40974    DISTVER=`cat /etc/debian_version`
40975    if test -f /etc/lsb-release ; then
40976       . /etc/lsb-release
40977       if test "x$DISTRIB_ID" != "x" ; then
40978          DISTNAME=$DISTRIB_ID
40979       fi
40980       if test "x$DISTRIB_RELEASE" != "x" ; then
40981          DISTVER=$DISTRIB_RELEASE
40982       fi
40983    fi
40984    if test "$DISTNAME" = "Ubuntu" ; then
40985       DISTNAME="ubuntu"
40986    fi
40987    TAPEDRIVE="/dev/nst0"
40988    PSCMD="ps -e -o pid,command"
40989    if test "$DISTNAME" = "ubuntu" ; then
40990       PFILES="${PFILES} \
40991          platforms/ubuntu/Makefile \
40992          platforms/ubuntu/bacula-fd \
40993          platforms/ubuntu/bacula-sd \
40994          platforms/ubuntu/bacula-dir"
40995    else
40996       PFILES="${PFILES} \
40997          platforms/debian/Makefile \
40998          platforms/debian/bacula-fd \
40999          platforms/debian/bacula-sd \
41000          platforms/debian/bacula-dir"
41001    fi
41002   ;;
41003 freebsd)
41004       ping -c 1 $hostname 2>&1 1>/dev/null
41005    if test ! $? = 0; then
41006       hostname="localhost"
41007    fi
41008    DISTVER=`uname -a |awk '{print $3}'`
41009    VER=`echo $DISTVER | cut -c 1`
41010    if test x$VER = x4 ; then
41011       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41012       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41013    fi
41014    lld="qd"
41015    llu="qu"
41016    TAPEDRIVE="/dev/nrsa0"
41017    PSCMD="ps -ax -o pid,command"
41018    PFILES="${PFILES} \
41019        platforms/freebsd/Makefile \
41020        platforms/freebsd/bacula-fd \
41021        platforms/freebsd/bacula-sd \
41022        platforms/freebsd/bacula-dir"
41023    largefile_support="yes"
41024   ;;
41025 hpux)
41026    PSCMD="UNIX95=1; ps -e -o pid,comm"
41027    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41028    DISTVER=`uname -r`
41029    TAPEDRIVE="/dev/rmt/0hnb"
41030    PTHREAD_LIB="-lpthread"
41031    cat >>confdefs.h <<\_ACEOF
41032 #define _INCLUDE_LONGLONG 1
41033 _ACEOF
41034
41035   ;;
41036 irix)
41037    DISTVER=`uname -r`
41038    TAPEDRIVE="/dev/rmt/0cbn"
41039    PSCMD="ps -e -o pid,comm"
41040    PFILES="${PFILES} \
41041        platforms/irix/Makefile \
41042        platforms/irix/bacula-fd \
41043        platforms/irix/bacula-sd \
41044        platforms/irix/bacula-dir"
41045   ;;
41046 netbsd)
41047    DISTVER=`uname -a |awk '{print $3}'`
41048    lld="qd"
41049    llu="qu"
41050    TAPEDRIVE="/dev/nrst0"
41051    PSCMD="ps -ax -o pid,command"
41052    PTHREAD_LIB="-pthread"
41053    CFLAGS="${CFLAGS} -pthread"
41054   ;;
41055 openbsd)
41056    DISTVER=`uname -a |awk '{print $3}'`
41057    lld="qd"
41058    llu="qu"
41059    TAPEDRIVE="/dev/nrst0"
41060    PSCMD="ps -ax -o pid,command"
41061    PTHREAD_LIB="-pthread"
41062    CFLAGS="${CFLAGS} -pthread"
41063    PFILES="${PFILES} \
41064        platforms/openbsd/Makefile \
41065        platforms/openbsd/bacula-fd \
41066        platforms/openbsd/bacula-sd \
41067        platforms/openbsd/bacula-dir"
41068   ;;
41069 redhat)
41070       ping -c 1 $hostname 2>&1 1>/dev/null
41071    if test ! $? = 0; then
41072       hostname="localhost"
41073    fi
41074    if test -f /etc/whitebox-release ; then
41075       f=/etc/whitebox-release
41076    else
41077       f=/etc/redhat-release
41078    fi
41079    if test `cat $f | grep release |\
41080          cut -f 3 -d ' '`x = "Enterprise"x ; then
41081       DISTVER="Enterprise "`cat $f | grep release |\
41082           cut -f 6 -d ' '`
41083    else
41084        DISTVER=`cat /etc/redhat-release | grep release |\
41085            cut -f 5 -d ' '`
41086    fi
41087    TAPEDRIVE="/dev/nst0"
41088    PSCMD="ps -e -o pid,command"
41089    PFILES="${PFILES} \
41090        platforms/redhat/Makefile \
41091        platforms/redhat/bacula-fd \
41092        platforms/redhat/bacula-sd \
41093        platforms/redhat/bacula-dir \
41094        platforms/redhat/bacula.spec \
41095        "
41096   ;;
41097 mandrake)
41098       ping -c 1 $hostname 2>&1 1>/dev/null
41099    if test ! $? = 0; then
41100       hostname="localhost"
41101    fi
41102    DISTVER=`cat /etc/mandrake-release | grep release |\
41103       cut -f 5 -d ' '`
41104    TAPEDRIVE="/dev/nst0"
41105    PSCMD="ps -e -o pid,command"
41106    PFILES="${PFILES} \
41107        platforms/mandrake/Makefile \
41108        platforms/mandrake/bacula-fd \
41109        platforms/mandrake/bacula-sd \
41110        platforms/mandrake/bacula-dir \
41111        platforms/mandrake/bacula.spec \
41112        "
41113   ;;
41114 gentoo)
41115       ping -c 1 $hostname 2>&1 1>/dev/null
41116    if test ! $? = 0; then
41117       hostname="localhost"
41118    fi
41119    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41120    TAPEDRIVE="/dev/nst0"
41121    PSCMD="ps -e -o pid,command"
41122    PFILES="${PFILES} \
41123        platforms/gentoo/Makefile \
41124     platforms/gentoo/bacula-init \
41125        platforms/gentoo/bacula-fd \
41126        platforms/gentoo/bacula-sd \
41127        platforms/gentoo/bacula-dir"
41128   ;;
41129 slackware)
41130       ping -c 1 $hostname 2>&1 1>/dev/null
41131    if test ! $? = 0; then
41132       hostname="localhost"
41133    fi
41134    DISTVER=`cat /etc/slackware-version`
41135    TAPEDRIVE="/dev/nst0"
41136    PSCMD="ps -e -o pid,command"
41137    PFILES="${PFILES} \
41138        platforms/slackware/Makefile \
41139        platforms/slackware/rc.bacula-fd \
41140        platforms/slackware/rc.bacula-sd \
41141        platforms/slackware/rc.bacula-dir\
41142        platforms/slackware/functions.bacula"
41143   ;;
41144 solaris)
41145    DISTVER=`uname -r`
41146    TAPEDRIVE="/dev/rmt/0cbn"
41147    PSCMD="ps -e -o pid,comm"
41148    PFILES="${PFILES} \
41149        platforms/solaris/Makefile \
41150        platforms/solaris/bacula-fd \
41151        platforms/solaris/bacula-sd \
41152        platforms/solaris/bacula-dir"
41153    if test x$DISTVER = x5.6 ; then
41154        cat >>confdefs.h <<\_ACEOF
41155 #define HAVE_OLD_SOCKOPT 1
41156 _ACEOF
41157
41158    fi
41159    LIBS="$LIBS -lresolv"
41160   ;;
41161 suse)
41162       ping -c 1 $hostname 2>&1 1>/dev/null
41163    if test ! $? = 0; then
41164       hostname="localhost"
41165    fi
41166    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41167        cut -f 3 -d ' '`
41168    TAPEDRIVE="/dev/nst0"
41169    PSCMD="ps -e -o pid,command"
41170    PFILES="${PFILES} \
41171        platforms/suse/Makefile \
41172        platforms/suse/bacula-fd \
41173        platforms/suse/bacula-sd \
41174        platforms/suse/bacula-dir \
41175        platforms/suse/bacula \
41176        platforms/suse/bacula.spec"
41177   ;;
41178 suse5)
41179       ping -c 1 $hostname 2>&1 1>/dev/null
41180    if test ! $? = 0; then
41181       hostname="localhost"
41182    fi
41183    DISTNAME=suse
41184    DISTVER=5.x
41185    TAPEDRIVE="/dev/nst0"
41186    PSCMD="ps -e -o pid,command"
41187    PFILES="${PFILES} \
41188        platforms/suse/Makefile \
41189        platforms/suse/bacula-fd \
41190        platforms/suse/bacula-sd \
41191        platforms/suse/bacula-dir"
41192   ;;
41193 unknown)
41194    DISTVER=unknown
41195    TAPEDRIVE="/dev/nst0"
41196   ;;
41197 *)
41198   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41199   ;;
41200 esac
41201
41202
41203
41204 LIBS="$PTHREAD_LIB $LIBS"
41205
41206 cat >>confdefs.h <<_ACEOF
41207 #define lld "$lld"
41208 _ACEOF
41209
41210 cat >>confdefs.h <<_ACEOF
41211 #define llu "$llu"
41212 _ACEOF
41213
41214
41215
41216
41217
41218
41219
41220
41221 MCOMMON=./autoconf/Make.common
41222
41223
41224 if test "x${subsysdir}" = "x${sbindir}" ; then
41225    echo " "
41226    echo " "
41227    echo "You have set both --sbindir and --with-subsys-dir"
41228    echo "  equal to: ${subsysdir} "
41229    echo "This is not permitted. Please reconfigure."
41230    echo " "
41231    echo "Aborting configuration ..."
41232    echo " "
41233    echo " "
41234    exit 1
41235 fi
41236
41237 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41238
41239 ac_config_commands="$ac_config_commands default"
41240
41241 cat >confcache <<\_ACEOF
41242 # This file is a shell script that caches the results of configure
41243 # tests run on this system so they can be shared between configure
41244 # scripts and configure runs, see configure's option --config-cache.
41245 # It is not useful on other systems.  If it contains results you don't
41246 # want to keep, you may remove or edit it.
41247 #
41248 # config.status only pays attention to the cache file if you give it
41249 # the --recheck option to rerun configure.
41250 #
41251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41253 # following values.
41254
41255 _ACEOF
41256
41257 # The following way of writing the cache mishandles newlines in values,
41258 # but we know of no workaround that is simple, portable, and efficient.
41259 # So, we kill variables containing newlines.
41260 # Ultrix sh set writes to stderr and can't be redirected directly,
41261 # and sets the high bit in the cache file unless we assign to the vars.
41262 (
41263   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41264     eval ac_val=\$$ac_var
41265     case $ac_val in #(
41266     *${as_nl}*)
41267       case $ac_var in #(
41268       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41270       esac
41271       case $ac_var in #(
41272       _ | IFS | as_nl) ;; #(
41273       *) $as_unset $ac_var ;;
41274       esac ;;
41275     esac
41276   done
41277
41278   (set) 2>&1 |
41279     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41280     *${as_nl}ac_space=\ *)
41281       # `set' does not quote correctly, so add quotes (double-quote
41282       # substitution turns \\\\ into \\, and sed turns \\ into \).
41283       sed -n \
41284         "s/'/'\\\\''/g;
41285           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41286       ;; #(
41287     *)
41288       # `set' quotes correctly as required by POSIX, so do not add quotes.
41289       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41290       ;;
41291     esac |
41292     sort
41293 ) |
41294   sed '
41295      /^ac_cv_env_/b end
41296      t clear
41297      :clear
41298      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41299      t end
41300      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41301      :end' >>confcache
41302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41303   if test -w "$cache_file"; then
41304     test "x$cache_file" != "x/dev/null" &&
41305       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41306 echo "$as_me: updating cache $cache_file" >&6;}
41307     cat confcache >$cache_file
41308   else
41309     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41311   fi
41312 fi
41313 rm -f confcache
41314
41315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41316 # Let make expand exec_prefix.
41317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41318
41319 DEFS=-DHAVE_CONFIG_H
41320
41321 ac_libobjs=
41322 ac_ltlibobjs=
41323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41324   # 1. Remove the extension, and $U if already installed.
41325   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41326   ac_i=`echo "$ac_i" | sed "$ac_script"`
41327   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41328   #    will be set to the directory where LIBOBJS objects are built.
41329   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41330   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41331 done
41332 LIBOBJS=$ac_libobjs
41333
41334 LTLIBOBJS=$ac_ltlibobjs
41335
41336
41337
41338 : ${CONFIG_STATUS=./config.status}
41339 ac_clean_files_save=$ac_clean_files
41340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41343 cat >$CONFIG_STATUS <<_ACEOF
41344 #! $SHELL
41345 # Generated by $as_me.
41346 # Run this file to recreate the current configuration.
41347 # Compiler output produced by configure, useful for debugging
41348 # configure, is in config.log if it exists.
41349
41350 debug=false
41351 ac_cs_recheck=false
41352 ac_cs_silent=false
41353 SHELL=\${CONFIG_SHELL-$SHELL}
41354 _ACEOF
41355
41356 cat >>$CONFIG_STATUS <<\_ACEOF
41357 ## --------------------- ##
41358 ## M4sh Initialization.  ##
41359 ## --------------------- ##
41360
41361 # Be more Bourne compatible
41362 DUALCASE=1; export DUALCASE # for MKS sh
41363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41364   emulate sh
41365   NULLCMD=:
41366   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41367   # is contrary to our usage.  Disable this feature.
41368   alias -g '${1+"$@"}'='"$@"'
41369   setopt NO_GLOB_SUBST
41370 else
41371   case `(set -o) 2>/dev/null` in
41372   *posix*) set -o posix ;;
41373 esac
41374
41375 fi
41376
41377
41378
41379
41380 # PATH needs CR
41381 # Avoid depending upon Character Ranges.
41382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41385 as_cr_digits='0123456789'
41386 as_cr_alnum=$as_cr_Letters$as_cr_digits
41387
41388 # The user is always right.
41389 if test "${PATH_SEPARATOR+set}" != set; then
41390   echo "#! /bin/sh" >conf$$.sh
41391   echo  "exit 0"   >>conf$$.sh
41392   chmod +x conf$$.sh
41393   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41394     PATH_SEPARATOR=';'
41395   else
41396     PATH_SEPARATOR=:
41397   fi
41398   rm -f conf$$.sh
41399 fi
41400
41401 # Support unset when possible.
41402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41403   as_unset=unset
41404 else
41405   as_unset=false
41406 fi
41407
41408
41409 # IFS
41410 # We need space, tab and new line, in precisely that order.  Quoting is
41411 # there to prevent editors from complaining about space-tab.
41412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41413 # splitting by setting IFS to empty value.)
41414 as_nl='
41415 '
41416 IFS=" ""        $as_nl"
41417
41418 # Find who we are.  Look in the path if we contain no directory separator.
41419 case $0 in
41420   *[\\/]* ) as_myself=$0 ;;
41421   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41422 for as_dir in $PATH
41423 do
41424   IFS=$as_save_IFS
41425   test -z "$as_dir" && as_dir=.
41426   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41427 done
41428 IFS=$as_save_IFS
41429
41430      ;;
41431 esac
41432 # We did not find ourselves, most probably we were run as `sh COMMAND'
41433 # in which case we are not to be found in the path.
41434 if test "x$as_myself" = x; then
41435   as_myself=$0
41436 fi
41437 if test ! -f "$as_myself"; then
41438   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41439   { (exit 1); exit 1; }
41440 fi
41441
41442 # Work around bugs in pre-3.0 UWIN ksh.
41443 for as_var in ENV MAIL MAILPATH
41444 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41445 done
41446 PS1='$ '
41447 PS2='> '
41448 PS4='+ '
41449
41450 # NLS nuisances.
41451 for as_var in \
41452   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41453   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41454   LC_TELEPHONE LC_TIME
41455 do
41456   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41457     eval $as_var=C; export $as_var
41458   else
41459     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41460   fi
41461 done
41462
41463 # Required to use basename.
41464 if expr a : '\(a\)' >/dev/null 2>&1 &&
41465    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41466   as_expr=expr
41467 else
41468   as_expr=false
41469 fi
41470
41471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41472   as_basename=basename
41473 else
41474   as_basename=false
41475 fi
41476
41477
41478 # Name of the executable.
41479 as_me=`$as_basename -- "$0" ||
41480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41481          X"$0" : 'X\(//\)$' \| \
41482          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41483 echo X/"$0" |
41484     sed '/^.*\/\([^/][^/]*\)\/*$/{
41485             s//\1/
41486             q
41487           }
41488           /^X\/\(\/\/\)$/{
41489             s//\1/
41490             q
41491           }
41492           /^X\/\(\/\).*/{
41493             s//\1/
41494             q
41495           }
41496           s/.*/./; q'`
41497
41498 # CDPATH.
41499 $as_unset CDPATH
41500
41501
41502
41503   as_lineno_1=$LINENO
41504   as_lineno_2=$LINENO
41505   test "x$as_lineno_1" != "x$as_lineno_2" &&
41506   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41507
41508   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41509   # uniformly replaced by the line number.  The first 'sed' inserts a
41510   # line-number line after each line using $LINENO; the second 'sed'
41511   # does the real work.  The second script uses 'N' to pair each
41512   # line-number line with the line containing $LINENO, and appends
41513   # trailing '-' during substitution so that $LINENO is not a special
41514   # case at line end.
41515   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41516   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41517   # E. McMahon (1931-1989) for sed's syntax.  :-)
41518   sed -n '
41519     p
41520     /[$]LINENO/=
41521   ' <$as_myself |
41522     sed '
41523       s/[$]LINENO.*/&-/
41524       t lineno
41525       b
41526       :lineno
41527       N
41528       :loop
41529       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41530       t loop
41531       s/-\n.*//
41532     ' >$as_me.lineno &&
41533   chmod +x "$as_me.lineno" ||
41534     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41535    { (exit 1); exit 1; }; }
41536
41537   # Don't try to exec as it changes $[0], causing all sort of problems
41538   # (the dirname of $[0] is not the place where we might find the
41539   # original and so on.  Autoconf is especially sensitive to this).
41540   . "./$as_me.lineno"
41541   # Exit status is that of the last command.
41542   exit
41543 }
41544
41545
41546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41547   as_dirname=dirname
41548 else
41549   as_dirname=false
41550 fi
41551
41552 ECHO_C= ECHO_N= ECHO_T=
41553 case `echo -n x` in
41554 -n*)
41555   case `echo 'x\c'` in
41556   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41557   *)   ECHO_C='\c';;
41558   esac;;
41559 *)
41560   ECHO_N='-n';;
41561 esac
41562
41563 if expr a : '\(a\)' >/dev/null 2>&1 &&
41564    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41565   as_expr=expr
41566 else
41567   as_expr=false
41568 fi
41569
41570 rm -f conf$$ conf$$.exe conf$$.file
41571 if test -d conf$$.dir; then
41572   rm -f conf$$.dir/conf$$.file
41573 else
41574   rm -f conf$$.dir
41575   mkdir conf$$.dir
41576 fi
41577 echo >conf$$.file
41578 if ln -s conf$$.file conf$$ 2>/dev/null; then
41579   as_ln_s='ln -s'
41580   # ... but there are two gotchas:
41581   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41582   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41583   # In both cases, we have to default to `cp -p'.
41584   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41585     as_ln_s='cp -p'
41586 elif ln conf$$.file conf$$ 2>/dev/null; then
41587   as_ln_s=ln
41588 else
41589   as_ln_s='cp -p'
41590 fi
41591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41592 rmdir conf$$.dir 2>/dev/null
41593
41594 if mkdir -p . 2>/dev/null; then
41595   as_mkdir_p=:
41596 else
41597   test -d ./-p && rmdir ./-p
41598   as_mkdir_p=false
41599 fi
41600
41601 if test -x / >/dev/null 2>&1; then
41602   as_test_x='test -x'
41603 else
41604   if ls -dL / >/dev/null 2>&1; then
41605     as_ls_L_option=L
41606   else
41607     as_ls_L_option=
41608   fi
41609   as_test_x='
41610     eval sh -c '\''
41611       if test -d "$1"; then
41612         test -d "$1/.";
41613       else
41614         case $1 in
41615         -*)set "./$1";;
41616         esac;
41617         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41618         ???[sx]*):;;*)false;;esac;fi
41619     '\'' sh
41620   '
41621 fi
41622 as_executable_p=$as_test_x
41623
41624 # Sed expression to map a string onto a valid CPP name.
41625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41626
41627 # Sed expression to map a string onto a valid variable name.
41628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41629
41630
41631 exec 6>&1
41632
41633 # Save the log message, to keep $[0] and so on meaningful, and to
41634 # report actual input values of CONFIG_FILES etc. instead of their
41635 # values after options handling.
41636 ac_log="
41637 This file was extended by $as_me, which was
41638 generated by GNU Autoconf 2.61.  Invocation command line was
41639
41640   CONFIG_FILES    = $CONFIG_FILES
41641   CONFIG_HEADERS  = $CONFIG_HEADERS
41642   CONFIG_LINKS    = $CONFIG_LINKS
41643   CONFIG_COMMANDS = $CONFIG_COMMANDS
41644   $ $0 $@
41645
41646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41647 "
41648
41649 _ACEOF
41650
41651 cat >>$CONFIG_STATUS <<_ACEOF
41652 # Files that config.status was made for.
41653 config_files="$ac_config_files"
41654 config_headers="$ac_config_headers"
41655 config_commands="$ac_config_commands"
41656
41657 _ACEOF
41658
41659 cat >>$CONFIG_STATUS <<\_ACEOF
41660 ac_cs_usage="\
41661 \`$as_me' instantiates files from templates according to the
41662 current configuration.
41663
41664 Usage: $0 [OPTIONS] [FILE]...
41665
41666   -h, --help       print this help, then exit
41667   -V, --version    print version number and configuration settings, then exit
41668   -q, --quiet      do not print progress messages
41669   -d, --debug      don't remove temporary files
41670       --recheck    update $as_me by reconfiguring in the same conditions
41671   --file=FILE[:TEMPLATE]
41672                    instantiate the configuration file FILE
41673   --header=FILE[:TEMPLATE]
41674                    instantiate the configuration header FILE
41675
41676 Configuration files:
41677 $config_files
41678
41679 Configuration headers:
41680 $config_headers
41681
41682 Configuration commands:
41683 $config_commands
41684
41685 Report bugs to <bug-autoconf@gnu.org>."
41686
41687 _ACEOF
41688 cat >>$CONFIG_STATUS <<_ACEOF
41689 ac_cs_version="\\
41690 config.status
41691 configured by $0, generated by GNU Autoconf 2.61,
41692   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41693
41694 Copyright (C) 2006 Free Software Foundation, Inc.
41695 This config.status script is free software; the Free Software Foundation
41696 gives unlimited permission to copy, distribute and modify it."
41697
41698 ac_pwd='$ac_pwd'
41699 srcdir='$srcdir'
41700 INSTALL='$INSTALL'
41701 _ACEOF
41702
41703 cat >>$CONFIG_STATUS <<\_ACEOF
41704 # If no file are specified by the user, then we need to provide default
41705 # value.  By we need to know if files were specified by the user.
41706 ac_need_defaults=:
41707 while test $# != 0
41708 do
41709   case $1 in
41710   --*=*)
41711     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41712     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41713     ac_shift=:
41714     ;;
41715   *)
41716     ac_option=$1
41717     ac_optarg=$2
41718     ac_shift=shift
41719     ;;
41720   esac
41721
41722   case $ac_option in
41723   # Handling of the options.
41724   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41725     ac_cs_recheck=: ;;
41726   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41727     echo "$ac_cs_version"; exit ;;
41728   --debug | --debu | --deb | --de | --d | -d )
41729     debug=: ;;
41730   --file | --fil | --fi | --f )
41731     $ac_shift
41732     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41733     ac_need_defaults=false;;
41734   --header | --heade | --head | --hea )
41735     $ac_shift
41736     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41737     ac_need_defaults=false;;
41738   --he | --h)
41739     # Conflict between --help and --header
41740     { echo "$as_me: error: ambiguous option: $1
41741 Try \`$0 --help' for more information." >&2
41742    { (exit 1); exit 1; }; };;
41743   --help | --hel | -h )
41744     echo "$ac_cs_usage"; exit ;;
41745   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41746   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41747     ac_cs_silent=: ;;
41748
41749   # This is an error.
41750   -*) { echo "$as_me: error: unrecognized option: $1
41751 Try \`$0 --help' for more information." >&2
41752    { (exit 1); exit 1; }; } ;;
41753
41754   *) ac_config_targets="$ac_config_targets $1"
41755      ac_need_defaults=false ;;
41756
41757   esac
41758   shift
41759 done
41760
41761 ac_configure_extra_args=
41762
41763 if $ac_cs_silent; then
41764   exec 6>/dev/null
41765   ac_configure_extra_args="$ac_configure_extra_args --silent"
41766 fi
41767
41768 _ACEOF
41769 cat >>$CONFIG_STATUS <<_ACEOF
41770 if \$ac_cs_recheck; then
41771   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41772   CONFIG_SHELL=$SHELL
41773   export CONFIG_SHELL
41774   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41775 fi
41776
41777 _ACEOF
41778 cat >>$CONFIG_STATUS <<\_ACEOF
41779 exec 5>>config.log
41780 {
41781   echo
41782   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41783 ## Running $as_me. ##
41784 _ASBOX
41785   echo "$ac_log"
41786 } >&5
41787
41788 _ACEOF
41789 cat >>$CONFIG_STATUS <<_ACEOF
41790 #
41791 # INIT-COMMANDS
41792 #
41793
41794
41795 # The HP-UX ksh and POSIX shell print the target directory to stdout
41796 # if CDPATH is set.
41797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41798
41799 sed_quote_subst='$sed_quote_subst'
41800 double_quote_subst='$double_quote_subst'
41801 delay_variable_subst='$delay_variable_subst'
41802 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41803 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41804 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41805 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41806 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41807 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41808 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41809 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41810 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41811 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41812 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41813 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41814 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41815 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41816 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41817 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41818 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41819 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41820 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41821 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41822 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41823 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41824 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41825 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41826 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41827 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41828 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41829 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41830 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41831 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41832 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41833 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41834 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41835 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41836 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41837 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41838 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41839 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41840 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41841 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41842 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41843 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41844 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41845 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41846 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"`'
41847 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"`'
41848 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41849 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41850 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41851 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41852 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41853 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41854 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41855 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41856 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41857 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41858 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41859 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41860 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41861 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41862 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41863 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41864 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41865 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41866 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41867 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41868 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41869 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41870 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41871 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41872 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41873 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41874 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41875 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41878 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41879 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41880 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41881 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41882 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41883 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41884 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41888 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41889 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41890 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41891 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41892 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41893 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41894 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41895 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41896 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41897 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41898 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41899 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41900 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41901 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41902 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41903 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41904 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41905 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41906 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41907 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41908 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41909 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41910 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41911 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41912 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41913 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41914 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41915 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41916 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41917 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41918 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41919 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41920 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41921 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41922 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41923 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41924 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41925 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41926 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41927 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41928 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41929 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973
41974 LTCC='$LTCC'
41975 LTCFLAGS='$LTCFLAGS'
41976 compiler='$compiler_DEFAULT'
41977
41978 # Quote evaled strings.
41979 for var in SED \
41980 GREP \
41981 EGREP \
41982 FGREP \
41983 LD \
41984 NM \
41985 LN_S \
41986 lt_SP2NL \
41987 lt_NL2SP \
41988 reload_flag \
41989 OBJDUMP \
41990 deplibs_check_method \
41991 file_magic_cmd \
41992 AR \
41993 AR_FLAGS \
41994 STRIP \
41995 RANLIB \
41996 CC \
41997 CFLAGS \
41998 compiler \
41999 lt_cv_sys_global_symbol_pipe \
42000 lt_cv_sys_global_symbol_to_cdecl \
42001 lt_cv_sys_global_symbol_to_c_name_address \
42002 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42003 SHELL \
42004 ECHO \
42005 lt_prog_compiler_no_builtin_flag \
42006 lt_prog_compiler_wl \
42007 lt_prog_compiler_pic \
42008 lt_prog_compiler_static \
42009 lt_cv_prog_compiler_c_o \
42010 need_locks \
42011 DSYMUTIL \
42012 NMEDIT \
42013 LIPO \
42014 OTOOL \
42015 OTOOL64 \
42016 shrext_cmds \
42017 export_dynamic_flag_spec \
42018 whole_archive_flag_spec \
42019 compiler_needs_object \
42020 with_gnu_ld \
42021 allow_undefined_flag \
42022 no_undefined_flag \
42023 hardcode_libdir_flag_spec \
42024 hardcode_libdir_flag_spec_ld \
42025 hardcode_libdir_separator \
42026 fix_srcfile_path \
42027 exclude_expsyms \
42028 include_expsyms \
42029 file_list_spec \
42030 variables_saved_for_relink \
42031 libname_spec \
42032 library_names_spec \
42033 soname_spec \
42034 finish_eval \
42035 old_striplib \
42036 striplib \
42037 compiler_lib_search_dirs \
42038 predep_objects \
42039 postdep_objects \
42040 predeps \
42041 postdeps \
42042 compiler_lib_search_path \
42043 LD_CXX \
42044 compiler_CXX \
42045 lt_prog_compiler_no_builtin_flag_CXX \
42046 lt_prog_compiler_wl_CXX \
42047 lt_prog_compiler_pic_CXX \
42048 lt_prog_compiler_static_CXX \
42049 lt_cv_prog_compiler_c_o_CXX \
42050 export_dynamic_flag_spec_CXX \
42051 whole_archive_flag_spec_CXX \
42052 compiler_needs_object_CXX \
42053 with_gnu_ld_CXX \
42054 allow_undefined_flag_CXX \
42055 no_undefined_flag_CXX \
42056 hardcode_libdir_flag_spec_CXX \
42057 hardcode_libdir_flag_spec_ld_CXX \
42058 hardcode_libdir_separator_CXX \
42059 fix_srcfile_path_CXX \
42060 exclude_expsyms_CXX \
42061 include_expsyms_CXX \
42062 file_list_spec_CXX \
42063 compiler_lib_search_dirs_CXX \
42064 predep_objects_CXX \
42065 postdep_objects_CXX \
42066 predeps_CXX \
42067 postdeps_CXX \
42068 compiler_lib_search_path_CXX; do
42069     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42070     *[\\\\\\\`\\"\\\$]*)
42071       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42072       ;;
42073     *)
42074       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42075       ;;
42076     esac
42077 done
42078
42079 # Double-quote double-evaled strings.
42080 for var in reload_cmds \
42081 old_postinstall_cmds \
42082 old_postuninstall_cmds \
42083 old_archive_cmds \
42084 extract_expsyms_cmds \
42085 old_archive_from_new_cmds \
42086 old_archive_from_expsyms_cmds \
42087 archive_cmds \
42088 archive_expsym_cmds \
42089 module_cmds \
42090 module_expsym_cmds \
42091 export_symbols_cmds \
42092 prelink_cmds \
42093 postinstall_cmds \
42094 postuninstall_cmds \
42095 finish_cmds \
42096 sys_lib_search_path_spec \
42097 sys_lib_dlsearch_path_spec \
42098 old_archive_cmds_CXX \
42099 old_archive_from_new_cmds_CXX \
42100 old_archive_from_expsyms_cmds_CXX \
42101 archive_cmds_CXX \
42102 archive_expsym_cmds_CXX \
42103 module_cmds_CXX \
42104 module_expsym_cmds_CXX \
42105 export_symbols_cmds_CXX \
42106 prelink_cmds_CXX; do
42107     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42108     *[\\\\\\\`\\"\\\$]*)
42109       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42110       ;;
42111     *)
42112       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42113       ;;
42114     esac
42115 done
42116
42117 # Fix-up fallback echo if it was mangled by the above quoting rules.
42118 case \$lt_ECHO in
42119 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42120   ;;
42121 esac
42122
42123 ac_aux_dir='$ac_aux_dir'
42124 xsi_shell='$xsi_shell'
42125 lt_shell_append='$lt_shell_append'
42126
42127 # See if we are running on zsh, and set the options which allow our
42128 # commands through without removal of \ escapes INIT.
42129 if test -n "\${ZSH_VERSION+set}" ; then
42130    setopt NO_GLOB_SUBST
42131 fi
42132
42133
42134     PACKAGE='$PACKAGE'
42135     VERSION='$VERSION'
42136     TIMESTAMP='$TIMESTAMP'
42137     RM='$RM'
42138     ofile='$ofile'
42139
42140
42141
42142
42143
42144 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42145     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42146     # from automake.
42147     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42148     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42149     LINGUAS="${LINGUAS-%UNSET%}"
42150
42151
42152 _ACEOF
42153
42154 cat >>$CONFIG_STATUS <<\_ACEOF
42155
42156 # Handling of arguments.
42157 for ac_config_target in $ac_config_targets
42158 do
42159   case $ac_config_target in
42160     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42161     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42162     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42163     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42164     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42165     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42166     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42167     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42168     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42169     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42170     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42171     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42172     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42173     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42174     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42175     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42176     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42177     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42178     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42179     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42180     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42181     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42182     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42183     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42184     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42185     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42186     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42187     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42188     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42189     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42190     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42191     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42192     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42193     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42194     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42195     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42196     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42197     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42198     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42199     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42200     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42201     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42202     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42203     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42204     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42205     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42206     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42207     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42208     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42209     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42210     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42211     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42212     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42213     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42214     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42215     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42216     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42217     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42218     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42219     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42220     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42221     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42222     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42223     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42224     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42225     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42226     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42227     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42228     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42229     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42230     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42231     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42232     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42233     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42234     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42235     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42236     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42237     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42238     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42239     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42240     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42241     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42242     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42243     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42244     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42245     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42246     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42247     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42248     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42249     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42250     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42251     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42252     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42253     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42254     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42255     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42256     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42257     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42258     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42259     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42260     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42261     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42262     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42263     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42264     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42265     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42266     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42267     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42268     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42269     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42270     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42271     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42272     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42273
42274   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42275 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42276    { (exit 1); exit 1; }; };;
42277   esac
42278 done
42279
42280
42281 # If the user did not use the arguments to specify the items to instantiate,
42282 # then the envvar interface is used.  Set only those that are not.
42283 # We use the long form for the default assignment because of an extremely
42284 # bizarre bug on SunOS 4.1.3.
42285 if $ac_need_defaults; then
42286   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42287   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42288   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42289 fi
42290
42291 # Have a temporary directory for convenience.  Make it in the build tree
42292 # simply because there is no reason against having it here, and in addition,
42293 # creating and moving files from /tmp can sometimes cause problems.
42294 # Hook for its removal unless debugging.
42295 # Note that there is a small window in which the directory will not be cleaned:
42296 # after its creation but before its name has been assigned to `$tmp'.
42297 $debug ||
42298 {
42299   tmp=
42300   trap 'exit_status=$?
42301   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42302 ' 0
42303   trap '{ (exit 1); exit 1; }' 1 2 13 15
42304 }
42305 # Create a (secure) tmp directory for tmp files.
42306
42307 {
42308   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42309   test -n "$tmp" && test -d "$tmp"
42310 }  ||
42311 {
42312   tmp=./conf$$-$RANDOM
42313   (umask 077 && mkdir "$tmp")
42314 } ||
42315 {
42316    echo "$me: cannot create a temporary directory in ." >&2
42317    { (exit 1); exit 1; }
42318 }
42319
42320 #
42321 # Set up the sed scripts for CONFIG_FILES section.
42322 #
42323
42324 # No need to generate the scripts if there are no CONFIG_FILES.
42325 # This happens for instance when ./config.status config.h
42326 if test -n "$CONFIG_FILES"; then
42327
42328 _ACEOF
42329
42330 # Create sed commands to just substitute file output variables.
42331
42332 # Remaining file output variables are in a fragment that also has non-file
42333 # output varibles.
42334
42335
42336
42337 ac_delim='%!_!# '
42338 for ac_last_try in false false false false false :; do
42339   cat >conf$$subs.sed <<_ACEOF
42340 SHELL!$SHELL$ac_delim
42341 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42342 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42343 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42344 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42345 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42346 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42347 exec_prefix!$exec_prefix$ac_delim
42348 prefix!$prefix$ac_delim
42349 program_transform_name!$program_transform_name$ac_delim
42350 bindir!$bindir$ac_delim
42351 sbindir!$sbindir$ac_delim
42352 libexecdir!$libexecdir$ac_delim
42353 datarootdir!$datarootdir$ac_delim
42354 datadir!$datadir$ac_delim
42355 sysconfdir!$sysconfdir$ac_delim
42356 sharedstatedir!$sharedstatedir$ac_delim
42357 localstatedir!$localstatedir$ac_delim
42358 includedir!$includedir$ac_delim
42359 oldincludedir!$oldincludedir$ac_delim
42360 docdir!$docdir$ac_delim
42361 infodir!$infodir$ac_delim
42362 htmldir!$htmldir$ac_delim
42363 dvidir!$dvidir$ac_delim
42364 pdfdir!$pdfdir$ac_delim
42365 psdir!$psdir$ac_delim
42366 libdir!$libdir$ac_delim
42367 localedir!$localedir$ac_delim
42368 mandir!$mandir$ac_delim
42369 DEFS!$DEFS$ac_delim
42370 ECHO_C!$ECHO_C$ac_delim
42371 ECHO_N!$ECHO_N$ac_delim
42372 ECHO_T!$ECHO_T$ac_delim
42373 LIBS!$LIBS$ac_delim
42374 build_alias!$build_alias$ac_delim
42375 host_alias!$host_alias$ac_delim
42376 target_alias!$target_alias$ac_delim
42377 BUILD_DIR!$BUILD_DIR$ac_delim
42378 TOP_DIR!$TOP_DIR$ac_delim
42379 TRUEPRG!$TRUEPRG$ac_delim
42380 FALSEPRG!$FALSEPRG$ac_delim
42381 VERSION!$VERSION$ac_delim
42382 DATE!$DATE$ac_delim
42383 LSMDATE!$LSMDATE$ac_delim
42384 BACULA!$BACULA$ac_delim
42385 post_host!$post_host$ac_delim
42386 CC!$CC$ac_delim
42387 CFLAGS!$CFLAGS$ac_delim
42388 LDFLAGS!$LDFLAGS$ac_delim
42389 CPPFLAGS!$CPPFLAGS$ac_delim
42390 ac_ct_CC!$ac_ct_CC$ac_delim
42391 EXEEXT!$EXEEXT$ac_delim
42392 OBJEXT!$OBJEXT$ac_delim
42393 CXX!$CXX$ac_delim
42394 CXXFLAGS!$CXXFLAGS$ac_delim
42395 ac_ct_CXX!$ac_ct_CXX$ac_delim
42396 CPP!$CPP$ac_delim
42397 GREP!$GREP$ac_delim
42398 EGREP!$EGREP$ac_delim
42399 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42400 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42401 INSTALL_DATA!$INSTALL_DATA$ac_delim
42402 MV!$MV$ac_delim
42403 REMOVE!$REMOVE$ac_delim
42404 CP!$CP$ac_delim
42405 SED!$SED$ac_delim
42406 ECHO!$ECHO$ac_delim
42407 CMP!$CMP$ac_delim
42408 TBL!$TBL$ac_delim
42409 AR!$AR$ac_delim
42410 OPENSSL!$OPENSSL$ac_delim
42411 MTX!$MTX$ac_delim
42412 DD!$DD$ac_delim
42413 MKISOFS!$MKISOFS$ac_delim
42414 PYTHON!$PYTHON$ac_delim
42415 GROWISOFS!$GROWISOFS$ac_delim
42416 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42417 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42418 PKGCONFIG!$PKGCONFIG$ac_delim
42419 QMAKE!$QMAKE$ac_delim
42420 QMAKEQT4!$QMAKEQT4$ac_delim
42421 WXCONFIG!$WXCONFIG$ac_delim
42422 WXFLAGS!$WXFLAGS$ac_delim
42423 CDRECORD!$CDRECORD$ac_delim
42424 PIDOF!$PIDOF$ac_delim
42425 AWK!$AWK$ac_delim
42426 ARFLAGS!$ARFLAGS$ac_delim
42427 MAKE_SHELL!$MAKE_SHELL$ac_delim
42428 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42429 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42430 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42431 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42432 LIBTOOL!$LIBTOOL$ac_delim
42433 build!$build$ac_delim
42434 _ACEOF
42435
42436   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42437     break
42438   elif $ac_last_try; then
42439     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42441    { (exit 1); exit 1; }; }
42442   else
42443     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42444   fi
42445 done
42446
42447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42448 if test -n "$ac_eof"; then
42449   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42450   ac_eof=`expr $ac_eof + 1`
42451 fi
42452
42453 cat >>$CONFIG_STATUS <<_ACEOF
42454 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42456 /^[      ]*@MCOMMON@[    ]*$/{
42457 r $MCOMMON
42458 d
42459 }
42460 _ACEOF
42461 sed '
42462 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42463 s/^/s,@/; s/!/@,|#_!!_#|/
42464 :n
42465 t n
42466 s/'"$ac_delim"'$/,g/; t
42467 s/$/\\/; p
42468 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42469 ' >>$CONFIG_STATUS <conf$$subs.sed
42470 rm -f conf$$subs.sed
42471 cat >>$CONFIG_STATUS <<_ACEOF
42472 CEOF$ac_eof
42473 _ACEOF
42474
42475
42476 ac_delim='%!_!# '
42477 for ac_last_try in false false false false false :; do
42478   cat >conf$$subs.sed <<_ACEOF
42479 build_cpu!$build_cpu$ac_delim
42480 build_vendor!$build_vendor$ac_delim
42481 build_os!$build_os$ac_delim
42482 host!$host$ac_delim
42483 host_cpu!$host_cpu$ac_delim
42484 host_vendor!$host_vendor$ac_delim
42485 host_os!$host_os$ac_delim
42486 FGREP!$FGREP$ac_delim
42487 LD!$LD$ac_delim
42488 DUMPBIN!$DUMPBIN$ac_delim
42489 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42490 NM!$NM$ac_delim
42491 LN_S!$LN_S$ac_delim
42492 OBJDUMP!$OBJDUMP$ac_delim
42493 STRIP!$STRIP$ac_delim
42494 RANLIB!$RANLIB$ac_delim
42495 lt_ECHO!$lt_ECHO$ac_delim
42496 DSYMUTIL!$DSYMUTIL$ac_delim
42497 NMEDIT!$NMEDIT$ac_delim
42498 LIPO!$LIPO$ac_delim
42499 OTOOL!$OTOOL$ac_delim
42500 OTOOL64!$OTOOL64$ac_delim
42501 CXXCPP!$CXXCPP$ac_delim
42502 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42503 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42504 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42505 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42506 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42507 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42508 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42509 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42510 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42511 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42512 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42513 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42514 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42515 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42516 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42517 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42518 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42519 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42520 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42521 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42522 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42523 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42524 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42525 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42526 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42527 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42528 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42529 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42530 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42531 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42532 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42533 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42534 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42535 SET_MAKE!$SET_MAKE$ac_delim
42536 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42537 USE_NLS!$USE_NLS$ac_delim
42538 MSGFMT!$MSGFMT$ac_delim
42539 GMSGFMT!$GMSGFMT$ac_delim
42540 XGETTEXT!$XGETTEXT$ac_delim
42541 MSGMERGE!$MSGMERGE$ac_delim
42542 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42543 LIBICONV!$LIBICONV$ac_delim
42544 LTLIBICONV!$LTLIBICONV$ac_delim
42545 INTLLIBS!$INTLLIBS$ac_delim
42546 LIBINTL!$LIBINTL$ac_delim
42547 LTLIBINTL!$LTLIBINTL$ac_delim
42548 POSUB!$POSUB$ac_delim
42549 GLIBC2!$GLIBC2$ac_delim
42550 ALLOCA!$ALLOCA$ac_delim
42551 GLIBC21!$GLIBC21$ac_delim
42552 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42553 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42554 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42555 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42556 INTLBISON!$INTLBISON$ac_delim
42557 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42558 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42559 CATOBJEXT!$CATOBJEXT$ac_delim
42560 DATADIRNAME!$DATADIRNAME$ac_delim
42561 INSTOBJEXT!$INSTOBJEXT$ac_delim
42562 GENCAT!$GENCAT$ac_delim
42563 INTLOBJS!$INTLOBJS$ac_delim
42564 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42565 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42566 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42567 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42568 GNOME_LIBS!$GNOME_LIBS$ac_delim
42569 GNOME_DIR!$GNOME_DIR$ac_delim
42570 BAT_DIR!$BAT_DIR$ac_delim
42571 QWT_INC!$QWT_INC$ac_delim
42572 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42573 QWT_LIB!$QWT_LIB$ac_delim
42574 QWT!$QWT$ac_delim
42575 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42576 _ACEOF
42577
42578   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42579     break
42580   elif $ac_last_try; then
42581     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42583    { (exit 1); exit 1; }; }
42584   else
42585     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42586   fi
42587 done
42588
42589 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42590 if test -n "$ac_eof"; then
42591   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42592   ac_eof=`expr $ac_eof + 1`
42593 fi
42594
42595 cat >>$CONFIG_STATUS <<_ACEOF
42596 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42598 _ACEOF
42599 sed '
42600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42601 s/^/s,@/; s/!/@,|#_!!_#|/
42602 :n
42603 t n
42604 s/'"$ac_delim"'$/,g/; t
42605 s/$/\\/; p
42606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42607 ' >>$CONFIG_STATUS <conf$$subs.sed
42608 rm -f conf$$subs.sed
42609 cat >>$CONFIG_STATUS <<_ACEOF
42610 CEOF$ac_eof
42611 _ACEOF
42612
42613
42614 ac_delim='%!_!# '
42615 for ac_last_try in false false false false false :; do
42616   cat >conf$$subs.sed <<_ACEOF
42617 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42618 WX_DIR!$WX_DIR$ac_delim
42619 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42620 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42621 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42622 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42623 STATIC_FD!$STATIC_FD$ac_delim
42624 STATIC_SD!$STATIC_SD$ac_delim
42625 STATIC_DIR!$STATIC_DIR$ac_delim
42626 STATIC_CONS!$STATIC_CONS$ac_delim
42627 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42628 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42629 ALL_DIRS!$ALL_DIRS$ac_delim
42630 DIRD_DIR!$DIRD_DIR$ac_delim
42631 DIR_TOOLS!$DIR_TOOLS$ac_delim
42632 STORED_DIR!$STORED_DIR$ac_delim
42633 CONS_INC!$CONS_INC$ac_delim
42634 CONS_OBJ!$CONS_OBJ$ac_delim
42635 CONS_SRC!$CONS_SRC$ac_delim
42636 CONS_LIBS!$CONS_LIBS$ac_delim
42637 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42638 READLINE_SRC!$READLINE_SRC$ac_delim
42639 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42640 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42641 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42642 OPENSSL_INC!$OPENSSL_INC$ac_delim
42643 working_dir!$working_dir$ac_delim
42644 archivedir!$archivedir$ac_delim
42645 scriptdir!$scriptdir$ac_delim
42646 plugindir!$plugindir$ac_delim
42647 dump_email!$dump_email$ac_delim
42648 job_email!$job_email$ac_delim
42649 smtp_host!$smtp_host$ac_delim
42650 piddir!$piddir$ac_delim
42651 subsysdir!$subsysdir$ac_delim
42652 baseport!$baseport$ac_delim
42653 dir_port!$dir_port$ac_delim
42654 fd_port!$fd_port$ac_delim
42655 sd_port!$sd_port$ac_delim
42656 dir_password!$dir_password$ac_delim
42657 fd_password!$fd_password$ac_delim
42658 sd_password!$sd_password$ac_delim
42659 mon_dir_password!$mon_dir_password$ac_delim
42660 mon_fd_password!$mon_fd_password$ac_delim
42661 mon_sd_password!$mon_sd_password$ac_delim
42662 db_name!$db_name$ac_delim
42663 db_user!$db_user$ac_delim
42664 db_password!$db_password$ac_delim
42665 db_port!$db_port$ac_delim
42666 dir_user!$dir_user$ac_delim
42667 dir_group!$dir_group$ac_delim
42668 sd_user!$sd_user$ac_delim
42669 sd_group!$sd_group$ac_delim
42670 fd_user!$fd_user$ac_delim
42671 fd_group!$fd_group$ac_delim
42672 SBINPERM!$SBINPERM$ac_delim
42673 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42674 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42675 SQL_BINDIR!$SQL_BINDIR$ac_delim
42676 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42677 uncomment_dbi!$uncomment_dbi$ac_delim
42678 DB_PROG!$DB_PROG$ac_delim
42679 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42680 cats!$cats$ac_delim
42681 DB_TYPE!$DB_TYPE$ac_delim
42682 GETCONF!$GETCONF$ac_delim
42683 XMKMF!$XMKMF$ac_delim
42684 X_CFLAGS!$X_CFLAGS$ac_delim
42685 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42686 X_LIBS!$X_LIBS$ac_delim
42687 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42688 LIBOBJS!$LIBOBJS$ac_delim
42689 FDLIBS!$FDLIBS$ac_delim
42690 DEBUG!$DEBUG$ac_delim
42691 DINCLUDE!$DINCLUDE$ac_delim
42692 DLIB!$DLIB$ac_delim
42693 DB_LIBS!$DB_LIBS$ac_delim
42694 WCFLAGS!$WCFLAGS$ac_delim
42695 WLDFLAGS!$WLDFLAGS$ac_delim
42696 WRAPLIBS!$WRAPLIBS$ac_delim
42697 OBJLIST!$OBJLIST$ac_delim
42698 hostname!$hostname$ac_delim
42699 TAPEDRIVE!$TAPEDRIVE$ac_delim
42700 PSCMD!$PSCMD$ac_delim
42701 WIN32!$WIN32$ac_delim
42702 MACOSX!$MACOSX$ac_delim
42703 DISTNAME!$DISTNAME$ac_delim
42704 DISTVER!$DISTVER$ac_delim
42705 LTLIBOBJS!$LTLIBOBJS$ac_delim
42706 _ACEOF
42707
42708   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42709     break
42710   elif $ac_last_try; then
42711     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42712 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42713    { (exit 1); exit 1; }; }
42714   else
42715     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42716   fi
42717 done
42718
42719 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42720 if test -n "$ac_eof"; then
42721   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42722   ac_eof=`expr $ac_eof + 1`
42723 fi
42724
42725 cat >>$CONFIG_STATUS <<_ACEOF
42726 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42728 _ACEOF
42729 sed '
42730 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42731 s/^/s,@/; s/!/@,|#_!!_#|/
42732 :n
42733 t n
42734 s/'"$ac_delim"'$/,g/; t
42735 s/$/\\/; p
42736 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42737 ' >>$CONFIG_STATUS <conf$$subs.sed
42738 rm -f conf$$subs.sed
42739 cat >>$CONFIG_STATUS <<_ACEOF
42740 :end
42741 s/|#_!!_#|//g
42742 CEOF$ac_eof
42743 _ACEOF
42744
42745
42746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42748 # trailing colons and then remove the whole line if VPATH becomes empty
42749 # (actually we leave an empty line to preserve line numbers).
42750 if test "x$srcdir" = x.; then
42751   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42752 s/:*\$(srcdir):*/:/
42753 s/:*\${srcdir}:*/:/
42754 s/:*@srcdir@:*/:/
42755 s/^\([^=]*=[     ]*\):*/\1/
42756 s/:*$//
42757 s/^[^=]*=[       ]*$//
42758 }'
42759 fi
42760
42761 cat >>$CONFIG_STATUS <<\_ACEOF
42762 fi # test -n "$CONFIG_FILES"
42763
42764
42765 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42766 do
42767   case $ac_tag in
42768   :[FHLC]) ac_mode=$ac_tag; continue;;
42769   esac
42770   case $ac_mode$ac_tag in
42771   :[FHL]*:*);;
42772   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42773 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42774    { (exit 1); exit 1; }; };;
42775   :[FH]-) ac_tag=-:-;;
42776   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42777   esac
42778   ac_save_IFS=$IFS
42779   IFS=:
42780   set x $ac_tag
42781   IFS=$ac_save_IFS
42782   shift
42783   ac_file=$1
42784   shift
42785
42786   case $ac_mode in
42787   :L) ac_source=$1;;
42788   :[FH])
42789     ac_file_inputs=
42790     for ac_f
42791     do
42792       case $ac_f in
42793       -) ac_f="$tmp/stdin";;
42794       *) # Look for the file first in the build tree, then in the source tree
42795          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42796          # because $ac_f cannot contain `:'.
42797          test -f "$ac_f" ||
42798            case $ac_f in
42799            [\\/$]*) false;;
42800            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42801            esac ||
42802            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42803 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42804    { (exit 1); exit 1; }; };;
42805       esac
42806       ac_file_inputs="$ac_file_inputs $ac_f"
42807     done
42808
42809     # Let's still pretend it is `configure' which instantiates (i.e., don't
42810     # use $as_me), people would be surprised to read:
42811     #    /* config.h.  Generated by config.status.  */
42812     configure_input="Generated from "`IFS=:
42813           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42814     if test x"$ac_file" != x-; then
42815       configure_input="$ac_file.  $configure_input"
42816       { echo "$as_me:$LINENO: creating $ac_file" >&5
42817 echo "$as_me: creating $ac_file" >&6;}
42818     fi
42819
42820     case $ac_tag in
42821     *:-:* | *:-) cat >"$tmp/stdin";;
42822     esac
42823     ;;
42824   esac
42825
42826   ac_dir=`$as_dirname -- "$ac_file" ||
42827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42828          X"$ac_file" : 'X\(//\)[^/]' \| \
42829          X"$ac_file" : 'X\(//\)$' \| \
42830          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42831 echo X"$ac_file" |
42832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42833             s//\1/
42834             q
42835           }
42836           /^X\(\/\/\)[^/].*/{
42837             s//\1/
42838             q
42839           }
42840           /^X\(\/\/\)$/{
42841             s//\1/
42842             q
42843           }
42844           /^X\(\/\).*/{
42845             s//\1/
42846             q
42847           }
42848           s/.*/./; q'`
42849   { as_dir="$ac_dir"
42850   case $as_dir in #(
42851   -*) as_dir=./$as_dir;;
42852   esac
42853   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42854     as_dirs=
42855     while :; do
42856       case $as_dir in #(
42857       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42858       *) as_qdir=$as_dir;;
42859       esac
42860       as_dirs="'$as_qdir' $as_dirs"
42861       as_dir=`$as_dirname -- "$as_dir" ||
42862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42863          X"$as_dir" : 'X\(//\)[^/]' \| \
42864          X"$as_dir" : 'X\(//\)$' \| \
42865          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42866 echo X"$as_dir" |
42867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42868             s//\1/
42869             q
42870           }
42871           /^X\(\/\/\)[^/].*/{
42872             s//\1/
42873             q
42874           }
42875           /^X\(\/\/\)$/{
42876             s//\1/
42877             q
42878           }
42879           /^X\(\/\).*/{
42880             s//\1/
42881             q
42882           }
42883           s/.*/./; q'`
42884       test -d "$as_dir" && break
42885     done
42886     test -z "$as_dirs" || eval "mkdir $as_dirs"
42887   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42888 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42889    { (exit 1); exit 1; }; }; }
42890   ac_builddir=.
42891
42892 case "$ac_dir" in
42893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42894 *)
42895   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42896   # A ".." for each directory in $ac_dir_suffix.
42897   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42898   case $ac_top_builddir_sub in
42899   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42900   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42901   esac ;;
42902 esac
42903 ac_abs_top_builddir=$ac_pwd
42904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42905 # for backward compatibility:
42906 ac_top_builddir=$ac_top_build_prefix
42907
42908 case $srcdir in
42909   .)  # We are building in place.
42910     ac_srcdir=.
42911     ac_top_srcdir=$ac_top_builddir_sub
42912     ac_abs_top_srcdir=$ac_pwd ;;
42913   [\\/]* | ?:[\\/]* )  # Absolute name.
42914     ac_srcdir=$srcdir$ac_dir_suffix;
42915     ac_top_srcdir=$srcdir
42916     ac_abs_top_srcdir=$srcdir ;;
42917   *) # Relative name.
42918     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42919     ac_top_srcdir=$ac_top_build_prefix$srcdir
42920     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42921 esac
42922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42923
42924
42925   case $ac_mode in
42926   :F)
42927   #
42928   # CONFIG_FILE
42929   #
42930
42931   case $INSTALL in
42932   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42933   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42934   esac
42935 _ACEOF
42936
42937 cat >>$CONFIG_STATUS <<\_ACEOF
42938 # If the template does not know about datarootdir, expand it.
42939 # FIXME: This hack should be removed a few years after 2.60.
42940 ac_datarootdir_hack=; ac_datarootdir_seen=
42941
42942 case `sed -n '/datarootdir/ {
42943   p
42944   q
42945 }
42946 /@datadir@/p
42947 /@docdir@/p
42948 /@infodir@/p
42949 /@localedir@/p
42950 /@mandir@/p
42951 ' $ac_file_inputs` in
42952 *datarootdir*) ac_datarootdir_seen=yes;;
42953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42954   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42955 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42956 _ACEOF
42957 cat >>$CONFIG_STATUS <<_ACEOF
42958   ac_datarootdir_hack='
42959   s&@datadir@&$datadir&g
42960   s&@docdir@&$docdir&g
42961   s&@infodir@&$infodir&g
42962   s&@localedir@&$localedir&g
42963   s&@mandir@&$mandir&g
42964     s&\\\${datarootdir}&$datarootdir&g' ;;
42965 esac
42966 _ACEOF
42967
42968 # Neutralize VPATH when `$srcdir' = `.'.
42969 # Shell code in configure.ac might set extrasub.
42970 # FIXME: do we really want to maintain this feature?
42971 cat >>$CONFIG_STATUS <<_ACEOF
42972   sed "$ac_vpsub
42973 $extrasub
42974 _ACEOF
42975 cat >>$CONFIG_STATUS <<\_ACEOF
42976 :t
42977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42978 s&@configure_input@&$configure_input&;t t
42979 s&@top_builddir@&$ac_top_builddir_sub&;t t
42980 s&@srcdir@&$ac_srcdir&;t t
42981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42982 s&@top_srcdir@&$ac_top_srcdir&;t t
42983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42984 s&@builddir@&$ac_builddir&;t t
42985 s&@abs_builddir@&$ac_abs_builddir&;t t
42986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42987 s&@INSTALL@&$ac_INSTALL&;t t
42988 $ac_datarootdir_hack
42989 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42990
42991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42992   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42993   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42994   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42995 which seems to be undefined.  Please make sure it is defined." >&5
42996 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42997 which seems to be undefined.  Please make sure it is defined." >&2;}
42998
42999   rm -f "$tmp/stdin"
43000   case $ac_file in
43001   -) cat "$tmp/out"; rm -f "$tmp/out";;
43002   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43003   esac
43004  ;;
43005   :H)
43006   #
43007   # CONFIG_HEADER
43008   #
43009 _ACEOF
43010
43011 # Transform confdefs.h into a sed script `conftest.defines', that
43012 # substitutes the proper values into config.h.in to produce config.h.
43013 rm -f conftest.defines conftest.tail
43014 # First, append a space to every undef/define line, to ease matching.
43015 echo 's/$/ /' >conftest.defines
43016 # Then, protect against being on the right side of a sed subst, or in
43017 # an unquoted here document, in config.status.  If some macros were
43018 # called several times there might be several #defines for the same
43019 # symbol, which is useless.  But do not sort them, since the last
43020 # AC_DEFINE must be honored.
43021 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43022 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43023 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43024 # PARAMS is the parameter list in the macro definition--in most cases, it's
43025 # just an empty string.
43026 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43027 ac_dB='\\)[      (].*,\\1define\\2'
43028 ac_dC=' '
43029 ac_dD=' ,'
43030
43031 uniq confdefs.h |
43032   sed -n '
43033         t rset
43034         :rset
43035         s/^[     ]*#[    ]*define[       ][      ]*//
43036         t ok
43037         d
43038         :ok
43039         s/[\\&,]/\\&/g
43040         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43041         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43042   ' >>conftest.defines
43043
43044 # Remove the space that was appended to ease matching.
43045 # Then replace #undef with comments.  This is necessary, for
43046 # example, in the case of _POSIX_SOURCE, which is predefined and required
43047 # on some systems where configure will not decide to define it.
43048 # (The regexp can be short, since the line contains either #define or #undef.)
43049 echo 's/ $//
43050 s,^[     #]*u.*,/* & */,' >>conftest.defines
43051
43052 # Break up conftest.defines:
43053 ac_max_sed_lines=50
43054
43055 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43056 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43057 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43058 # et cetera.
43059 ac_in='$ac_file_inputs'
43060 ac_out='"$tmp/out1"'
43061 ac_nxt='"$tmp/out2"'
43062
43063 while :
43064 do
43065   # Write a here document:
43066     cat >>$CONFIG_STATUS <<_ACEOF
43067     # First, check the format of the line:
43068     cat >"\$tmp/defines.sed" <<\\CEOF
43069 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43070 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43071 b
43072 :def
43073 _ACEOF
43074   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43075   echo 'CEOF
43076     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43077   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43078   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43079   grep . conftest.tail >/dev/null || break
43080   rm -f conftest.defines
43081   mv conftest.tail conftest.defines
43082 done
43083 rm -f conftest.defines conftest.tail
43084
43085 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43086 cat >>$CONFIG_STATUS <<\_ACEOF
43087   if test x"$ac_file" != x-; then
43088     echo "/* $configure_input  */" >"$tmp/config.h"
43089     cat "$ac_result" >>"$tmp/config.h"
43090     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43091       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43092 echo "$as_me: $ac_file is unchanged" >&6;}
43093     else
43094       rm -f $ac_file
43095       mv "$tmp/config.h" $ac_file
43096     fi
43097   else
43098     echo "/* $configure_input  */"
43099     cat "$ac_result"
43100   fi
43101   rm -f "$tmp/out12"
43102  ;;
43103
43104   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43105 echo "$as_me: executing $ac_file commands" >&6;}
43106  ;;
43107   esac
43108
43109
43110   case $ac_file$ac_mode in
43111     "libtool":C)
43112
43113     # See if we are running on zsh, and set the options which allow our
43114     # commands through without removal of \ escapes.
43115     if test -n "${ZSH_VERSION+set}" ; then
43116       setopt NO_GLOB_SUBST
43117     fi
43118
43119     cfgfile="${ofile}T"
43120     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43121     $RM "$cfgfile"
43122
43123     cat <<_LT_EOF >> "$cfgfile"
43124 #! $SHELL
43125
43126 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43127 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43130 #
43131 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43132 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43133 #   Written by Gordon Matzigkeit, 1996
43134 #
43135 #   This file is part of GNU Libtool.
43136 #
43137 # GNU Libtool is free software; you can redistribute it and/or
43138 # modify it under the terms of the GNU General Public License as
43139 # published by the Free Software Foundation; either version 2 of
43140 # the License, or (at your option) any later version.
43141 #
43142 # As a special exception to the GNU General Public License,
43143 # if you distribute this file as part of a program or library that
43144 # is built using GNU Libtool, you may include this file under the
43145 # same distribution terms that you use for the rest of that program.
43146 #
43147 # GNU Libtool is distributed in the hope that it will be useful,
43148 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43149 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43150 # GNU General Public License for more details.
43151 #
43152 # You should have received a copy of the GNU General Public License
43153 # along with GNU Libtool; see the file COPYING.  If not, a copy
43154 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43155 # obtained by writing to the Free Software Foundation, Inc.,
43156 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43157
43158
43159 # The names of the tagged configurations supported by this script.
43160 available_tags="CXX "
43161
43162 # ### BEGIN LIBTOOL CONFIG
43163
43164 # Which release of libtool.m4 was used?
43165 macro_version=$macro_version
43166 macro_revision=$macro_revision
43167
43168 # Whether or not to build shared libraries.
43169 build_libtool_libs=$enable_shared
43170
43171 # Whether or not to build static libraries.
43172 build_old_libs=$enable_static
43173
43174 # What type of objects to build.
43175 pic_mode=$pic_mode
43176
43177 # Whether or not to optimize for fast installation.
43178 fast_install=$enable_fast_install
43179
43180 # The host system.
43181 host_alias=$host_alias
43182 host=$host
43183 host_os=$host_os
43184
43185 # The build system.
43186 build_alias=$build_alias
43187 build=$build
43188 build_os=$build_os
43189
43190 # A sed program that does not truncate output.
43191 SED=$lt_SED
43192
43193 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43194 Xsed="\$SED -e 1s/^X//"
43195
43196 # A grep program that handles long lines.
43197 GREP=$lt_GREP
43198
43199 # An ERE matcher.
43200 EGREP=$lt_EGREP
43201
43202 # A literal string matcher.
43203 FGREP=$lt_FGREP
43204
43205 # A BSD- or MS-compatible name lister.
43206 NM=$lt_NM
43207
43208 # Whether we need soft or hard links.
43209 LN_S=$lt_LN_S
43210
43211 # What is the maximum length of a command?
43212 max_cmd_len=$max_cmd_len
43213
43214 # Object file suffix (normally "o").
43215 objext=$ac_objext
43216
43217 # Executable file suffix (normally "").
43218 exeext=$exeext
43219
43220 # whether the shell understands "unset".
43221 lt_unset=$lt_unset
43222
43223 # turn spaces into newlines.
43224 SP2NL=$lt_lt_SP2NL
43225
43226 # turn newlines into spaces.
43227 NL2SP=$lt_lt_NL2SP
43228
43229 # How to create reloadable object files.
43230 reload_flag=$lt_reload_flag
43231 reload_cmds=$lt_reload_cmds
43232
43233 # An object symbol dumper.
43234 OBJDUMP=$lt_OBJDUMP
43235
43236 # Method to check whether dependent libraries are shared objects.
43237 deplibs_check_method=$lt_deplibs_check_method
43238
43239 # Command to use when deplibs_check_method == "file_magic".
43240 file_magic_cmd=$lt_file_magic_cmd
43241
43242 # The archiver.
43243 AR=$lt_AR
43244 AR_FLAGS=$lt_AR_FLAGS
43245
43246 # A symbol stripping program.
43247 STRIP=$lt_STRIP
43248
43249 # Commands used to install an old-style archive.
43250 RANLIB=$lt_RANLIB
43251 old_postinstall_cmds=$lt_old_postinstall_cmds
43252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43253
43254 # A C compiler.
43255 LTCC=$lt_CC
43256
43257 # LTCC compiler flags.
43258 LTCFLAGS=$lt_CFLAGS
43259
43260 # Take the output of nm and produce a listing of raw symbols and C names.
43261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43262
43263 # Transform the output of nm in a proper C declaration.
43264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43265
43266 # Transform the output of nm in a C name address pair.
43267 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43268
43269 # Transform the output of nm in a C name address pair when lib prefix is needed.
43270 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43271
43272 # The name of the directory that contains temporary libtool files.
43273 objdir=$objdir
43274
43275 # Shell to use when invoking shell scripts.
43276 SHELL=$lt_SHELL
43277
43278 # An echo program that does not interpret backslashes.
43279 ECHO=$lt_ECHO
43280
43281 # Used to examine libraries when file_magic_cmd begins with "file".
43282 MAGIC_CMD=$MAGIC_CMD
43283
43284 # Must we lock files when doing compilation?
43285 need_locks=$lt_need_locks
43286
43287 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43288 DSYMUTIL=$lt_DSYMUTIL
43289
43290 # Tool to change global to local symbols on Mac OS X.
43291 NMEDIT=$lt_NMEDIT
43292
43293 # Tool to manipulate fat objects and archives on Mac OS X.
43294 LIPO=$lt_LIPO
43295
43296 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43297 OTOOL=$lt_OTOOL
43298
43299 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43300 OTOOL64=$lt_OTOOL64
43301
43302 # Old archive suffix (normally "a").
43303 libext=$libext
43304
43305 # Shared library suffix (normally ".so").
43306 shrext_cmds=$lt_shrext_cmds
43307
43308 # The commands to extract the exported symbol list from a shared archive.
43309 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43310
43311 # Variables whose values should be saved in libtool wrapper scripts and
43312 # restored at link time.
43313 variables_saved_for_relink=$lt_variables_saved_for_relink
43314
43315 # Do we need the "lib" prefix for modules?
43316 need_lib_prefix=$need_lib_prefix
43317
43318 # Do we need a version for libraries?
43319 need_version=$need_version
43320
43321 # Library versioning type.
43322 version_type=$version_type
43323
43324 # Shared library runtime path variable.
43325 runpath_var=$runpath_var
43326
43327 # Shared library path variable.
43328 shlibpath_var=$shlibpath_var
43329
43330 # Is shlibpath searched before the hard-coded library search path?
43331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43332
43333 # Format of library name prefix.
43334 libname_spec=$lt_libname_spec
43335
43336 # List of archive names.  First name is the real one, the rest are links.
43337 # The last name is the one that the linker finds with -lNAME
43338 library_names_spec=$lt_library_names_spec
43339
43340 # The coded name of the library, if different from the real name.
43341 soname_spec=$lt_soname_spec
43342
43343 # Command to use after installation of a shared archive.
43344 postinstall_cmds=$lt_postinstall_cmds
43345
43346 # Command to use after uninstallation of a shared archive.
43347 postuninstall_cmds=$lt_postuninstall_cmds
43348
43349 # Commands used to finish a libtool library installation in a directory.
43350 finish_cmds=$lt_finish_cmds
43351
43352 # As "finish_cmds", except a single script fragment to be evaled but
43353 # not shown.
43354 finish_eval=$lt_finish_eval
43355
43356 # Whether we should hardcode library paths into libraries.
43357 hardcode_into_libs=$hardcode_into_libs
43358
43359 # Compile-time system search path for libraries.
43360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43361
43362 # Run-time system search path for libraries.
43363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43364
43365 # Whether dlopen is supported.
43366 dlopen_support=$enable_dlopen
43367
43368 # Whether dlopen of programs is supported.
43369 dlopen_self=$enable_dlopen_self
43370
43371 # Whether dlopen of statically linked programs is supported.
43372 dlopen_self_static=$enable_dlopen_self_static
43373
43374 # Commands to strip libraries.
43375 old_striplib=$lt_old_striplib
43376 striplib=$lt_striplib
43377
43378
43379 # The linker used to build libraries.
43380 LD=$lt_LD
43381
43382 # Commands used to build an old-style archive.
43383 old_archive_cmds=$lt_old_archive_cmds
43384
43385 # A language specific compiler.
43386 CC=$lt_compiler
43387
43388 # Is the compiler the GNU compiler?
43389 with_gcc=$GCC
43390
43391 # Compiler flag to turn off builtin functions.
43392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43393
43394 # How to pass a linker flag through the compiler.
43395 wl=$lt_lt_prog_compiler_wl
43396
43397 # Additional compiler flags for building library objects.
43398 pic_flag=$lt_lt_prog_compiler_pic
43399
43400 # Compiler flag to prevent dynamic linking.
43401 link_static_flag=$lt_lt_prog_compiler_static
43402
43403 # Does compiler simultaneously support -c and -o options?
43404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43405
43406 # Whether or not to add -lc for building shared libraries.
43407 build_libtool_need_lc=$archive_cmds_need_lc
43408
43409 # Whether or not to disallow shared libs when runtime libs are static.
43410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43411
43412 # Compiler flag to allow reflexive dlopens.
43413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43414
43415 # Compiler flag to generate shared objects directly from archives.
43416 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43417
43418 # Whether the compiler copes with passing no objects directly.
43419 compiler_needs_object=$lt_compiler_needs_object
43420
43421 # Create an old-style archive from a shared archive.
43422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43423
43424 # Create a temporary old-style archive to link instead of a shared archive.
43425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43426
43427 # Commands used to build a shared archive.
43428 archive_cmds=$lt_archive_cmds
43429 archive_expsym_cmds=$lt_archive_expsym_cmds
43430
43431 # Commands used to build a loadable module if different from building
43432 # a shared archive.
43433 module_cmds=$lt_module_cmds
43434 module_expsym_cmds=$lt_module_expsym_cmds
43435
43436 # Whether we are building with GNU ld or not.
43437 with_gnu_ld=$lt_with_gnu_ld
43438
43439 # Flag that allows shared libraries with undefined symbols to be built.
43440 allow_undefined_flag=$lt_allow_undefined_flag
43441
43442 # Flag that enforces no undefined symbols.
43443 no_undefined_flag=$lt_no_undefined_flag
43444
43445 # Flag to hardcode \$libdir into a binary during linking.
43446 # This must work even if \$libdir does not exist
43447 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43448
43449 # If ld is used when linking, flag to hardcode \$libdir into a binary
43450 # during linking.  This must work even if \$libdir does not exist.
43451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43452
43453 # Whether we need a single "-rpath" flag with a separated argument.
43454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43455
43456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43457 # DIR into the resulting binary.
43458 hardcode_direct=$hardcode_direct
43459
43460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43461 # DIR into the resulting binary and the resulting library dependency is
43462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43463 # library is relocated.
43464 hardcode_direct_absolute=$hardcode_direct_absolute
43465
43466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43467 # into the resulting binary.
43468 hardcode_minus_L=$hardcode_minus_L
43469
43470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43471 # into the resulting binary.
43472 hardcode_shlibpath_var=$hardcode_shlibpath_var
43473
43474 # Set to "yes" if building a shared library automatically hardcodes DIR
43475 # into the library and all subsequent libraries and executables linked
43476 # against it.
43477 hardcode_automatic=$hardcode_automatic
43478
43479 # Set to yes if linker adds runtime paths of dependent libraries
43480 # to runtime path list.
43481 inherit_rpath=$inherit_rpath
43482
43483 # Whether libtool must link a program against all its dependency libraries.
43484 link_all_deplibs=$link_all_deplibs
43485
43486 # Fix the shell variable \$srcfile for the compiler.
43487 fix_srcfile_path=$lt_fix_srcfile_path
43488
43489 # Set to "yes" if exported symbols are required.
43490 always_export_symbols=$always_export_symbols
43491
43492 # The commands to list exported symbols.
43493 export_symbols_cmds=$lt_export_symbols_cmds
43494
43495 # Symbols that should not be listed in the preloaded symbols.
43496 exclude_expsyms=$lt_exclude_expsyms
43497
43498 # Symbols that must always be exported.
43499 include_expsyms=$lt_include_expsyms
43500
43501 # Commands necessary for linking programs (against libraries) with templates.
43502 prelink_cmds=$lt_prelink_cmds
43503
43504 # Specify filename containing input files.
43505 file_list_spec=$lt_file_list_spec
43506
43507 # How to hardcode a shared library path into an executable.
43508 hardcode_action=$hardcode_action
43509
43510 # The directories searched by this compiler when creating a shared library.
43511 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43512
43513 # Dependencies to place before and after the objects being linked to
43514 # create a shared library.
43515 predep_objects=$lt_predep_objects
43516 postdep_objects=$lt_postdep_objects
43517 predeps=$lt_predeps
43518 postdeps=$lt_postdeps
43519
43520 # The library search path used internally by the compiler when linking
43521 # a shared library.
43522 compiler_lib_search_path=$lt_compiler_lib_search_path
43523
43524 # ### END LIBTOOL CONFIG
43525
43526 _LT_EOF
43527
43528   case $host_os in
43529   aix3*)
43530     cat <<\_LT_EOF >> "$cfgfile"
43531 # AIX sometimes has problems with the GCC collect2 program.  For some
43532 # reason, if we set the COLLECT_NAMES environment variable, the problems
43533 # vanish in a puff of smoke.
43534 if test "X${COLLECT_NAMES+set}" != Xset; then
43535   COLLECT_NAMES=
43536   export COLLECT_NAMES
43537 fi
43538 _LT_EOF
43539     ;;
43540   esac
43541
43542
43543 ltmain="$ac_aux_dir/ltmain.sh"
43544
43545
43546   # We use sed instead of cat because bash on DJGPP gets confused if
43547   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43548   # text mode, it properly converts lines to CR/LF.  This bash problem
43549   # is reportedly fixed, but why not run on old versions too?
43550   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43551     || (rm -f "$cfgfile"; exit 1)
43552
43553   case $xsi_shell in
43554   yes)
43555     cat << \_LT_EOF >> "$cfgfile"
43556
43557 # func_dirname file append nondir_replacement
43558 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43559 # otherwise set result to NONDIR_REPLACEMENT.
43560 func_dirname ()
43561 {
43562   case ${1} in
43563     */*) func_dirname_result="${1%/*}${2}" ;;
43564     *  ) func_dirname_result="${3}" ;;
43565   esac
43566 }
43567
43568 # func_basename file
43569 func_basename ()
43570 {
43571   func_basename_result="${1##*/}"
43572 }
43573
43574 # func_dirname_and_basename file append nondir_replacement
43575 # perform func_basename and func_dirname in a single function
43576 # call:
43577 #   dirname:  Compute the dirname of FILE.  If nonempty,
43578 #             add APPEND to the result, otherwise set result
43579 #             to NONDIR_REPLACEMENT.
43580 #             value returned in "$func_dirname_result"
43581 #   basename: Compute filename of FILE.
43582 #             value retuned in "$func_basename_result"
43583 # Implementation must be kept synchronized with func_dirname
43584 # and func_basename. For efficiency, we do not delegate to
43585 # those functions but instead duplicate the functionality here.
43586 func_dirname_and_basename ()
43587 {
43588   case ${1} in
43589     */*) func_dirname_result="${1%/*}${2}" ;;
43590     *  ) func_dirname_result="${3}" ;;
43591   esac
43592   func_basename_result="${1##*/}"
43593 }
43594
43595 # func_stripname prefix suffix name
43596 # strip PREFIX and SUFFIX off of NAME.
43597 # PREFIX and SUFFIX must not contain globbing or regex special
43598 # characters, hashes, percent signs, but SUFFIX may contain a leading
43599 # dot (in which case that matches only a dot).
43600 func_stripname ()
43601 {
43602   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43603   # positional parameters, so assign one to ordinary parameter first.
43604   func_stripname_result=${3}
43605   func_stripname_result=${func_stripname_result#"${1}"}
43606   func_stripname_result=${func_stripname_result%"${2}"}
43607 }
43608
43609 # func_opt_split
43610 func_opt_split ()
43611 {
43612   func_opt_split_opt=${1%%=*}
43613   func_opt_split_arg=${1#*=}
43614 }
43615
43616 # func_lo2o object
43617 func_lo2o ()
43618 {
43619   case ${1} in
43620     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43621     *)    func_lo2o_result=${1} ;;
43622   esac
43623 }
43624
43625 # func_xform libobj-or-source
43626 func_xform ()
43627 {
43628   func_xform_result=${1%.*}.lo
43629 }
43630
43631 # func_arith arithmetic-term...
43632 func_arith ()
43633 {
43634   func_arith_result=$(( $* ))
43635 }
43636
43637 # func_len string
43638 # STRING may not start with a hyphen.
43639 func_len ()
43640 {
43641   func_len_result=${#1}
43642 }
43643
43644 _LT_EOF
43645     ;;
43646   *) # Bourne compatible functions.
43647     cat << \_LT_EOF >> "$cfgfile"
43648
43649 # func_dirname file append nondir_replacement
43650 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43651 # otherwise set result to NONDIR_REPLACEMENT.
43652 func_dirname ()
43653 {
43654   # Extract subdirectory from the argument.
43655   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43656   if test "X$func_dirname_result" = "X${1}"; then
43657     func_dirname_result="${3}"
43658   else
43659     func_dirname_result="$func_dirname_result${2}"
43660   fi
43661 }
43662
43663 # func_basename file
43664 func_basename ()
43665 {
43666   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43667 }
43668
43669
43670 # func_stripname prefix suffix name
43671 # strip PREFIX and SUFFIX off of NAME.
43672 # PREFIX and SUFFIX must not contain globbing or regex special
43673 # characters, hashes, percent signs, but SUFFIX may contain a leading
43674 # dot (in which case that matches only a dot).
43675 # func_strip_suffix prefix name
43676 func_stripname ()
43677 {
43678   case ${2} in
43679     .*) func_stripname_result=`$ECHO "X${3}" \
43680            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43681     *)  func_stripname_result=`$ECHO "X${3}" \
43682            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43683   esac
43684 }
43685
43686 # sed scripts:
43687 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43688 my_sed_long_arg='1s/^-[^=]*=//'
43689
43690 # func_opt_split
43691 func_opt_split ()
43692 {
43693   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43694   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43695 }
43696
43697 # func_lo2o object
43698 func_lo2o ()
43699 {
43700   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43701 }
43702
43703 # func_xform libobj-or-source
43704 func_xform ()
43705 {
43706   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43707 }
43708
43709 # func_arith arithmetic-term...
43710 func_arith ()
43711 {
43712   func_arith_result=`expr "$@"`
43713 }
43714
43715 # func_len string
43716 # STRING may not start with a hyphen.
43717 func_len ()
43718 {
43719   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43720 }
43721
43722 _LT_EOF
43723 esac
43724
43725 case $lt_shell_append in
43726   yes)
43727     cat << \_LT_EOF >> "$cfgfile"
43728
43729 # func_append var value
43730 # Append VALUE to the end of shell variable VAR.
43731 func_append ()
43732 {
43733   eval "$1+=\$2"
43734 }
43735 _LT_EOF
43736     ;;
43737   *)
43738     cat << \_LT_EOF >> "$cfgfile"
43739
43740 # func_append var value
43741 # Append VALUE to the end of shell variable VAR.
43742 func_append ()
43743 {
43744   eval "$1=\$$1\$2"
43745 }
43746
43747 _LT_EOF
43748     ;;
43749   esac
43750
43751
43752   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43753     || (rm -f "$cfgfile"; exit 1)
43754
43755   mv -f "$cfgfile" "$ofile" ||
43756     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43757   chmod +x "$ofile"
43758
43759
43760     cat <<_LT_EOF >> "$ofile"
43761
43762 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43763
43764 # The linker used to build libraries.
43765 LD=$lt_LD_CXX
43766
43767 # Commands used to build an old-style archive.
43768 old_archive_cmds=$lt_old_archive_cmds_CXX
43769
43770 # A language specific compiler.
43771 CC=$lt_compiler_CXX
43772
43773 # Is the compiler the GNU compiler?
43774 with_gcc=$GCC_CXX
43775
43776 # Compiler flag to turn off builtin functions.
43777 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43778
43779 # How to pass a linker flag through the compiler.
43780 wl=$lt_lt_prog_compiler_wl_CXX
43781
43782 # Additional compiler flags for building library objects.
43783 pic_flag=$lt_lt_prog_compiler_pic_CXX
43784
43785 # Compiler flag to prevent dynamic linking.
43786 link_static_flag=$lt_lt_prog_compiler_static_CXX
43787
43788 # Does compiler simultaneously support -c and -o options?
43789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43790
43791 # Whether or not to add -lc for building shared libraries.
43792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43793
43794 # Whether or not to disallow shared libs when runtime libs are static.
43795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43796
43797 # Compiler flag to allow reflexive dlopens.
43798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43799
43800 # Compiler flag to generate shared objects directly from archives.
43801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43802
43803 # Whether the compiler copes with passing no objects directly.
43804 compiler_needs_object=$lt_compiler_needs_object_CXX
43805
43806 # Create an old-style archive from a shared archive.
43807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43808
43809 # Create a temporary old-style archive to link instead of a shared archive.
43810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43811
43812 # Commands used to build a shared archive.
43813 archive_cmds=$lt_archive_cmds_CXX
43814 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43815
43816 # Commands used to build a loadable module if different from building
43817 # a shared archive.
43818 module_cmds=$lt_module_cmds_CXX
43819 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43820
43821 # Whether we are building with GNU ld or not.
43822 with_gnu_ld=$lt_with_gnu_ld_CXX
43823
43824 # Flag that allows shared libraries with undefined symbols to be built.
43825 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43826
43827 # Flag that enforces no undefined symbols.
43828 no_undefined_flag=$lt_no_undefined_flag_CXX
43829
43830 # Flag to hardcode \$libdir into a binary during linking.
43831 # This must work even if \$libdir does not exist
43832 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43833
43834 # If ld is used when linking, flag to hardcode \$libdir into a binary
43835 # during linking.  This must work even if \$libdir does not exist.
43836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43837
43838 # Whether we need a single "-rpath" flag with a separated argument.
43839 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43840
43841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43842 # DIR into the resulting binary.
43843 hardcode_direct=$hardcode_direct_CXX
43844
43845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43846 # DIR into the resulting binary and the resulting library dependency is
43847 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43848 # library is relocated.
43849 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43850
43851 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43852 # into the resulting binary.
43853 hardcode_minus_L=$hardcode_minus_L_CXX
43854
43855 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43856 # into the resulting binary.
43857 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43858
43859 # Set to "yes" if building a shared library automatically hardcodes DIR
43860 # into the library and all subsequent libraries and executables linked
43861 # against it.
43862 hardcode_automatic=$hardcode_automatic_CXX
43863
43864 # Set to yes if linker adds runtime paths of dependent libraries
43865 # to runtime path list.
43866 inherit_rpath=$inherit_rpath_CXX
43867
43868 # Whether libtool must link a program against all its dependency libraries.
43869 link_all_deplibs=$link_all_deplibs_CXX
43870
43871 # Fix the shell variable \$srcfile for the compiler.
43872 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43873
43874 # Set to "yes" if exported symbols are required.
43875 always_export_symbols=$always_export_symbols_CXX
43876
43877 # The commands to list exported symbols.
43878 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43879
43880 # Symbols that should not be listed in the preloaded symbols.
43881 exclude_expsyms=$lt_exclude_expsyms_CXX
43882
43883 # Symbols that must always be exported.
43884 include_expsyms=$lt_include_expsyms_CXX
43885
43886 # Commands necessary for linking programs (against libraries) with templates.
43887 prelink_cmds=$lt_prelink_cmds_CXX
43888
43889 # Specify filename containing input files.
43890 file_list_spec=$lt_file_list_spec_CXX
43891
43892 # How to hardcode a shared library path into an executable.
43893 hardcode_action=$hardcode_action_CXX
43894
43895 # The directories searched by this compiler when creating a shared library.
43896 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43897
43898 # Dependencies to place before and after the objects being linked to
43899 # create a shared library.
43900 predep_objects=$lt_predep_objects_CXX
43901 postdep_objects=$lt_postdep_objects_CXX
43902 predeps=$lt_predeps_CXX
43903 postdeps=$lt_postdeps_CXX
43904
43905 # The library search path used internally by the compiler when linking
43906 # a shared library.
43907 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43908
43909 # ### END LIBTOOL TAG CONFIG: CXX
43910 _LT_EOF
43911
43912  ;;
43913     "default-1":C)
43914     for ac_file in $CONFIG_FILES; do
43915       # Support "outfile[:infile[:infile...]]"
43916       case "$ac_file" in
43917         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43918       esac
43919       # PO directories have a Makefile.in generated from Makefile.in.in.
43920       case "$ac_file" in */Makefile.in)
43921         # Adjust a relative srcdir.
43922         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43923         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43924         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43925         # In autoconf-2.13 it is called $ac_given_srcdir.
43926         # In autoconf-2.50 it is called $srcdir.
43927         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43928         case "$ac_given_srcdir" in
43929           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43930           /*) top_srcdir="$ac_given_srcdir" ;;
43931           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
43932         esac
43933         # Treat a directory as a PO directory if and only if it has a
43934         # POTFILES.in file. This allows packages to have multiple PO
43935         # directories under different names or in different locations.
43936         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43937           rm -f "$ac_dir/POTFILES"
43938           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43939           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43940           POMAKEFILEDEPS="POTFILES.in"
43941           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43942           # on $ac_dir but don't depend on user-specified configuration
43943           # parameters.
43944           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43945             # The LINGUAS file contains the set of available languages.
43946             if test -n "$OBSOLETE_ALL_LINGUAS"; then
43947               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43948             fi
43949             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43950             # Hide the ALL_LINGUAS assigment from automake.
43951             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43952             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43953           else
43954             # The set of available languages was given in configure.in.
43955             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43956           fi
43957           # Compute POFILES
43958           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43959           # Compute UPDATEPOFILES
43960           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43961           # Compute DUMMYPOFILES
43962           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43963           # Compute GMOFILES
43964           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43965           case "$ac_given_srcdir" in
43966             .) srcdirpre= ;;
43967             *) srcdirpre='$(srcdir)/' ;;
43968           esac
43969           POFILES=
43970           UPDATEPOFILES=
43971           DUMMYPOFILES=
43972           GMOFILES=
43973           for lang in $ALL_LINGUAS; do
43974             POFILES="$POFILES $srcdirpre$lang.po"
43975             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43976             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43977             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43978           done
43979           # CATALOGS depends on both $ac_dir and the user's LINGUAS
43980           # environment variable.
43981           INST_LINGUAS=
43982           if test -n "$ALL_LINGUAS"; then
43983             for presentlang in $ALL_LINGUAS; do
43984               useit=no
43985               if test "%UNSET%" != "$LINGUAS"; then
43986                 desiredlanguages="$LINGUAS"
43987               else
43988                 desiredlanguages="$ALL_LINGUAS"
43989               fi
43990               for desiredlang in $desiredlanguages; do
43991                 # Use the presentlang catalog if desiredlang is
43992                 #   a. equal to presentlang, or
43993                 #   b. a variant of presentlang (because in this case,
43994                 #      presentlang can be used as a fallback for messages
43995                 #      which are not translated in the desiredlang catalog).
43996                 case "$desiredlang" in
43997                   "$presentlang"*) useit=yes;;
43998                 esac
43999               done
44000               if test $useit = yes; then
44001                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44002               fi
44003             done
44004           fi
44005           CATALOGS=
44006           if test -n "$INST_LINGUAS"; then
44007             for lang in $INST_LINGUAS; do
44008               CATALOGS="$CATALOGS $lang.gmo"
44009             done
44010           fi
44011           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44012           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
44013           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44014             if test -f "$f"; then
44015               case "$f" in
44016                 *.orig | *.bak | *~) ;;
44017                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44018               esac
44019             fi
44020           done
44021         fi
44022         ;;
44023       esac
44024     done ;;
44025     "default":C)
44026  ;;
44027
44028   esac
44029 done # for ac_tag
44030
44031
44032 { (exit 0); exit 0; }
44033 _ACEOF
44034 chmod +x $CONFIG_STATUS
44035 ac_clean_files=$ac_clean_files_save
44036
44037
44038 # configure is writing to config.log, and then calls config.status.
44039 # config.status does its own redirection, appending to config.log.
44040 # Unfortunately, on DOS this fails, as config.log is still kept open
44041 # by configure, so config.status won't be able to write to it; its
44042 # output is simply discarded.  So we exec the FD to /dev/null,
44043 # effectively closing config.log, so it can be properly (re)opened and
44044 # appended to by config.status.  When coming back to configure, we
44045 # need to make the FD available again.
44046 if test "$no_create" != yes; then
44047   ac_cs_success=:
44048   ac_config_status_args=
44049   test "$silent" = yes &&
44050     ac_config_status_args="$ac_config_status_args --quiet"
44051   exec 5>/dev/null
44052   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44053   exec 5>>config.log
44054   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44055   # would make configure fail if this is the last instruction.
44056   $ac_cs_success || { (exit 1); exit 1; }
44057 fi
44058
44059
44060 if test "${support_bat}" = "yes" ; then
44061    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44062       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44063       exit 1
44064    fi
44065
44066    QMAKEBIN="qmake"
44067
44068    if test "x$QMAKEQT4" != "xnone"; then
44069        QMAKEBIN=qmake-qt4
44070    fi
44071
44072    cd src/qt-console
44073    chmod 755 install_conf_file build-depkgs-qt-console
44074    echo "Creating bat Makefile"
44075    $QMAKEBIN
44076    make clean
44077    cd ${BUILD_DIR}
44078 fi
44079
44080 if test X"$GCC" = "Xyes" ; then
44081   echo "Doing make of dependencies"
44082   ${MAKE:-make} depend
44083 fi
44084
44085 cd scripts
44086 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44087 chmod 755 dvd-handler dvd-simulator
44088 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44089 cd ..
44090
44091 c=updatedb
44092 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44093 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44094
44095 c=src/cats
44096
44097 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44098 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44099
44100 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44101 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44102
44103 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44104 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44105
44106 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44107 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44108
44109 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44110 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44111
44112 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44113 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44114
44115 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44116 chmod 755 $c/sqlite
44117 chmod 755 $c/mysql
44118
44119 chmod 755 src/win32/build-depkgs-mingw32
44120
44121 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44122    largefile_support="yes"
44123 fi
44124
44125 if test X"$GCC" = "Xyes" ; then
44126                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44127    if test "x${CCVERSION}" = "x" ; then
44128       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44129    fi
44130    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44131    if test x"${CXXVERSION}" = x ; then
44132       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44133    fi
44134 fi
44135
44136 if test "x${db_type}" = "xInternal" ; then
44137    echo " "
44138    echo " "
44139    echo "You have not specified either --enable-client-only or one of the"
44140    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44141    echo "  This is not permitted. Please reconfigure."
44142    echo " "
44143    echo "Aborting the configuration ..."
44144    echo " "
44145    echo " "
44146    exit 1
44147 fi
44148
44149 echo "
44150 Configuration on `date`:
44151
44152    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44153    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44154    Source code location:    ${srcdir}
44155    Install binaries:        ${sbindir}
44156    Install libraries:       ${libdir}
44157    Install config files:    ${sysconfdir}
44158    Scripts directory:       ${scriptdir}
44159    Archive directory:       ${archivedir}
44160    Working directory:       ${working_dir}
44161    PID directory:           ${piddir}
44162    Subsys directory:        ${subsysdir}
44163    Man directory:           ${mandir}
44164    Data directory:          ${datarootdir}
44165    C Compiler:              ${CC} ${CCVERSION}
44166    C++ Compiler:            ${CXX} ${CXXVERSION}
44167    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44168    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44169    Libraries:               ${LIBS}
44170    Statically Linked Tools: ${support_static_tools}
44171    Statically Linked FD:    ${support_static_fd}
44172    Statically Linked SD:    ${support_static_sd}
44173    Statically Linked DIR:   ${support_static_dir}
44174    Statically Linked CONS:  ${support_static_cons}
44175    Database type:           ${db_type}
44176    Database port:           ${db_port}
44177    Database lib:            ${DB_LIBS}
44178    Database name:           ${db_name}
44179    Database user:           ${db_user}
44180
44181    Job Output Email:        ${job_email}
44182    Traceback Email:         ${dump_email}
44183    SMTP Host Address:       ${smtp_host}
44184
44185    Director Port:           ${dir_port}
44186    File daemon Port:        ${fd_port}
44187    Storage daemon Port:     ${sd_port}
44188
44189    Director User:           ${dir_user}
44190    Director Group:          ${dir_group}
44191    Storage Daemon User:     ${sd_user}
44192    Storage DaemonGroup:     ${sd_group}
44193    File Daemon User:        ${fd_user}
44194    File Daemon Group:       ${fd_group}
44195
44196    SQL binaries Directory   ${SQL_BINDIR}
44197
44198    Large file support:      $largefile_support
44199    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44200    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44201    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44202    TLS support:             ${support_tls}
44203    Encryption support:      ${support_crypto}
44204    ZLIB support:            ${have_zlib}
44205    enable-smartalloc:       ${support_smartalloc}
44206    bat support:             ${support_bat} ${QWT_LDFLAGS}
44207    enable-gnome:            ${support_gnome} ${gnome_version}
44208    enable-bwx-console:      ${support_wx_console} ${wx_version}
44209    enable-tray-monitor:     ${support_tray_monitor}
44210    client-only:             ${build_client_only}
44211    build-dird:              ${build_dird}
44212    build-stored:            ${build_stored}
44213    ACL support:             ${have_acl}
44214    Python support:          ${support_python} ${PYTHON_LIBS}
44215    Batch insert enabled:    ${support_batch_insert}
44216
44217   " > config.out
44218
44219 cat config.out