]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Added configure support for the AIX extended attributes interface.
[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 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 BDB_VERSION
815 LIBBAC_LT_RELEASE
816 LIBBACCFG_LT_RELEASE
817 LIBBACPY_LT_RELEASE
818 LIBBACSQL_LT_RELEASE
819 LIBBACFIND_LT_RELEASE
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
827 CXX
828 CXXFLAGS
829 ac_ct_CXX
830 CPP
831 GREP
832 EGREP
833 INSTALL_PROGRAM
834 INSTALL_SCRIPT
835 INSTALL_DATA
836 MV
837 REMOVE
838 CP
839 SED
840 ECHO
841 CMP
842 TBL
843 AR
844 OPENSSL
845 MTX
846 DD
847 MKISOFS
848 PYTHON
849 GROWISOFS
850 DVDRWMEDIAINFO
851 DVDRWFORMAT
852 PKGCONFIG
853 QMAKE
854 GMAKE
855 WXCONFIG
856 WXFLAGS
857 CDRECORD
858 PIDOF
859 AWK
860 ARFLAGS
861 MAKE_SHELL
862 LOCAL_LIBS
863 LOCAL_CFLAGS
864 LOCAL_LDFLAGS
865 LOCAL_DEFS
866 LIBTOOL
867 build
868 build_cpu
869 build_vendor
870 build_os
871 host
872 host_cpu
873 host_vendor
874 host_os
875 FGREP
876 LD
877 DUMPBIN
878 ac_ct_DUMPBIN
879 NM
880 LN_S
881 OBJDUMP
882 STRIP
883 RANLIB
884 lt_ECHO
885 DSYMUTIL
886 NMEDIT
887 LIPO
888 OTOOL
889 OTOOL64
890 CXXCPP
891 DEFAULT_OBJECT_TYPE
892 DEFAULT_ARCHIVE_TYPE
893 DEFAULT_SHARED_OBJECT_TYPE
894 LIBTOOL_INSTALL_TARGET
895 LIBTOOL_UNINSTALL_TARGET
896 LIBTOOL_CLEAN_TARGET
897 QMAKE_LIBTOOL
898 FD_PLUGIN_DIR
899 INCLUDE_INSTALL_TARGET
900 INCLUDE_UNINSTALL_TARGET
901 HAVE_SUN_OS_TRUE
902 HAVE_SUN_OS_FALSE
903 HAVE_OSF1_OS_TRUE
904 HAVE_OSF1_OS_FALSE
905 HAVE_AIX_OS_TRUE
906 HAVE_AIX_OS_FALSE
907 HAVE_HPUX_OS_TRUE
908 HAVE_HPUX_OS_FALSE
909 HAVE_LINUX_OS_TRUE
910 HAVE_LINUX_OS_FALSE
911 HAVE_FREEBSD_OS_TRUE
912 HAVE_FREEBSD_OS_FALSE
913 HAVE_NETBSD_OS_TRUE
914 HAVE_NETBSD_OS_FALSE
915 HAVE_OPENBSD_OS_TRUE
916 HAVE_OPENBSD_OS_FALSE
917 HAVE_BSDI_OS_TRUE
918 HAVE_BSDI_OS_FALSE
919 HAVE_SGI_OS_TRUE
920 HAVE_SGI_OS_FALSE
921 HAVE_IRIX_OS_TRUE
922 HAVE_IRIX_OS_FALSE
923 HAVE_DARWIN_OS_TRUE
924 HAVE_DARWIN_OS_FALSE
925 SET_MAKE
926 MKINSTALLDIRS
927 USE_NLS
928 MSGFMT
929 GMSGFMT
930 XGETTEXT
931 MSGMERGE
932 INTL_MACOSX_LIBS
933 LIBICONV
934 LTLIBICONV
935 INTLLIBS
936 LIBINTL
937 LTLIBINTL
938 POSUB
939 GLIBC2
940 ALLOCA
941 GLIBC21
942 HAVE_POSIX_PRINTF
943 HAVE_ASPRINTF
944 HAVE_SNPRINTF
945 HAVE_WPRINTF
946 INTLBISON
947 BUILD_INCLUDED_LIBINTL
948 USE_INCLUDED_LIBINTL
949 CATOBJEXT
950 DATADIRNAME
951 INSTOBJEXT
952 GENCAT
953 INTLOBJS
954 INTL_LIBTOOL_SUFFIX_PREFIX
955 BAT_DIR
956 QWT_INC
957 QWT_LDFLAGS
958 QWT_LIB
959 QWT
960 WXCONS_CPPFLAGS
961 WXCONS_LDFLAGS
962 WX_DIR
963 TRAY_MONITOR_CPPFLAGS
964 TRAY_MONITOR_LDFLAGS
965 TRAY_MONITOR_DIR
966 TTOOL_LDFLAGS
967 STATIC_FD
968 STATIC_SD
969 STATIC_DIR
970 STATIC_CONS
971 STATIC_GNOME_CONS
972 STATIC_WX_CONS
973 ALL_DIRS
974 DIRD_DIR
975 DIR_TOOLS
976 STORED_DIR
977 CONS_INC
978 CONS_OBJ
979 CONS_SRC
980 CONS_LIBS
981 CONS_LDFLAGS
982 READLINE_SRC
983 PYTHON_LIBS
984 PYTHON_INCDIR
985 OPENSSL_LIBS
986 OPENSSL_INC
987 working_dir
988 archivedir
989 basename
990 hostname
991 scriptdir
992 bsrdir
993 logdir
994 plugindir
995 dump_email
996 job_email
997 smtp_host
998 piddir
999 subsysdir
1000 baseport
1001 dir_port
1002 fd_port
1003 sd_port
1004 dir_password
1005 fd_password
1006 sd_password
1007 mon_dir_password
1008 mon_fd_password
1009 mon_sd_password
1010 db_name
1011 db_user
1012 db_password
1013 db_port
1014 dir_user
1015 dir_group
1016 sd_user
1017 sd_group
1018 fd_user
1019 fd_group
1020 SBINPERM
1021 SQL_LFLAGS
1022 SQL_INCLUDE
1023 SQL_BINDIR
1024 DBI_DBD_DRIVERDIR
1025 uncomment_dbi
1026 DB_PROG
1027 DB_PROG_LIB
1028 cats
1029 DB_TYPE
1030 GETCONF
1031 XMKMF
1032 X_CFLAGS
1033 X_PRE_LIBS
1034 X_LIBS
1035 X_EXTRA_LIBS
1036 LIBOBJS
1037 ZLIBS
1038 AFS_CFLAGS
1039 AFS_LIBS
1040 CAP_LIBS
1041 FDLIBS
1042 DEBUG
1043 DINCLUDE
1044 DLIB
1045 DB_LIBS
1046 WCFLAGS
1047 WLDFLAGS
1048 WRAPLIBS
1049 OBJLIST
1050 TAPEDRIVE
1051 PSCMD
1052 WIN32
1053 MACOSX
1054 DISTNAME
1055 DISTVER
1056 LTLIBOBJS'
1057 ac_subst_files='MCOMMON'
1058       ac_precious_vars='build_alias
1059 host_alias
1060 target_alias
1061 CC
1062 CFLAGS
1063 LDFLAGS
1064 LIBS
1065 CPPFLAGS
1066 CXX
1067 CXXFLAGS
1068 CCC
1069 CPP
1070 WXCONFIG
1071 WXFLAGS
1072 CXXCPP
1073 XMKMF'
1074
1075
1076 # Initialize some variables set by options.
1077 ac_init_help=
1078 ac_init_version=false
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1082 exec_prefix=NONE
1083 no_create=
1084 no_recursion=
1085 prefix=NONE
1086 program_prefix=NONE
1087 program_suffix=NONE
1088 program_transform_name=s,x,x,
1089 silent=
1090 site=
1091 srcdir=
1092 verbose=
1093 x_includes=NONE
1094 x_libraries=NONE
1095
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1114 htmldir='${docdir}'
1115 dvidir='${docdir}'
1116 pdfdir='${docdir}'
1117 psdir='${docdir}'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1121
1122 ac_prev=
1123 ac_dashdash=
1124 for ac_option
1125 do
1126   # If the previous option needs an argument, assign it.
1127   if test -n "$ac_prev"; then
1128     eval $ac_prev=\$ac_option
1129     ac_prev=
1130     continue
1131   fi
1132
1133   case $ac_option in
1134   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135   *)    ac_optarg=yes ;;
1136   esac
1137
1138   # Accept the important Cygnus configure options, so we can diagnose typos.
1139
1140   case $ac_dashdash$ac_option in
1141   --)
1142     ac_dashdash=yes ;;
1143
1144   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1145     ac_prev=bindir ;;
1146   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147     bindir=$ac_optarg ;;
1148
1149   -build | --build | --buil | --bui | --bu)
1150     ac_prev=build_alias ;;
1151   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152     build_alias=$ac_optarg ;;
1153
1154   -cache-file | --cache-file | --cache-fil | --cache-fi \
1155   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156     ac_prev=cache_file ;;
1157   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159     cache_file=$ac_optarg ;;
1160
1161   --config-cache | -C)
1162     cache_file=config.cache ;;
1163
1164   -datadir | --datadir | --datadi | --datad)
1165     ac_prev=datadir ;;
1166   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167     datadir=$ac_optarg ;;
1168
1169   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170   | --dataroo | --dataro | --datar)
1171     ac_prev=datarootdir ;;
1172   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174     datarootdir=$ac_optarg ;;
1175
1176   -disable-* | --disable-*)
1177     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1181    { (exit 1); exit 1; }; }
1182     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1183     eval enable_$ac_feature=no ;;
1184
1185   -docdir | --docdir | --docdi | --doc | --do)
1186     ac_prev=docdir ;;
1187   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188     docdir=$ac_optarg ;;
1189
1190   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191     ac_prev=dvidir ;;
1192   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193     dvidir=$ac_optarg ;;
1194
1195   -enable-* | --enable-*)
1196     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1200    { (exit 1); exit 1; }; }
1201     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1202     eval enable_$ac_feature=\$ac_optarg ;;
1203
1204   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1205   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1206   | --exec | --exe | --ex)
1207     ac_prev=exec_prefix ;;
1208   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1209   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1210   | --exec=* | --exe=* | --ex=*)
1211     exec_prefix=$ac_optarg ;;
1212
1213   -gas | --gas | --ga | --g)
1214     # Obsolete; use --with-gas.
1215     with_gas=yes ;;
1216
1217   -help | --help | --hel | --he | -h)
1218     ac_init_help=long ;;
1219   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1220     ac_init_help=recursive ;;
1221   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1222     ac_init_help=short ;;
1223
1224   -host | --host | --hos | --ho)
1225     ac_prev=host_alias ;;
1226   -host=* | --host=* | --hos=* | --ho=*)
1227     host_alias=$ac_optarg ;;
1228
1229   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1230     ac_prev=htmldir ;;
1231   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1232   | --ht=*)
1233     htmldir=$ac_optarg ;;
1234
1235   -includedir | --includedir | --includedi | --included | --include \
1236   | --includ | --inclu | --incl | --inc)
1237     ac_prev=includedir ;;
1238   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1239   | --includ=* | --inclu=* | --incl=* | --inc=*)
1240     includedir=$ac_optarg ;;
1241
1242   -infodir | --infodir | --infodi | --infod | --info | --inf)
1243     ac_prev=infodir ;;
1244   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1245     infodir=$ac_optarg ;;
1246
1247   -libdir | --libdir | --libdi | --libd)
1248     ac_prev=libdir ;;
1249   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1250     libdir=$ac_optarg ;;
1251
1252   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1253   | --libexe | --libex | --libe)
1254     ac_prev=libexecdir ;;
1255   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1256   | --libexe=* | --libex=* | --libe=*)
1257     libexecdir=$ac_optarg ;;
1258
1259   -localedir | --localedir | --localedi | --localed | --locale)
1260     ac_prev=localedir ;;
1261   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1262     localedir=$ac_optarg ;;
1263
1264   -localstatedir | --localstatedir | --localstatedi | --localstated \
1265   | --localstate | --localstat | --localsta | --localst | --locals)
1266     ac_prev=localstatedir ;;
1267   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1268   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1269     localstatedir=$ac_optarg ;;
1270
1271   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1272     ac_prev=mandir ;;
1273   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1274     mandir=$ac_optarg ;;
1275
1276   -nfp | --nfp | --nf)
1277     # Obsolete; use --without-fp.
1278     with_fp=no ;;
1279
1280   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1281   | --no-cr | --no-c | -n)
1282     no_create=yes ;;
1283
1284   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1285   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1286     no_recursion=yes ;;
1287
1288   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1289   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1290   | --oldin | --oldi | --old | --ol | --o)
1291     ac_prev=oldincludedir ;;
1292   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1293   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1294   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1295     oldincludedir=$ac_optarg ;;
1296
1297   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1298     ac_prev=prefix ;;
1299   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1300     prefix=$ac_optarg ;;
1301
1302   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1303   | --program-pre | --program-pr | --program-p)
1304     ac_prev=program_prefix ;;
1305   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1306   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1307     program_prefix=$ac_optarg ;;
1308
1309   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1310   | --program-suf | --program-su | --program-s)
1311     ac_prev=program_suffix ;;
1312   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1313   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1314     program_suffix=$ac_optarg ;;
1315
1316   -program-transform-name | --program-transform-name \
1317   | --program-transform-nam | --program-transform-na \
1318   | --program-transform-n | --program-transform- \
1319   | --program-transform | --program-transfor \
1320   | --program-transfo | --program-transf \
1321   | --program-trans | --program-tran \
1322   | --progr-tra | --program-tr | --program-t)
1323     ac_prev=program_transform_name ;;
1324   -program-transform-name=* | --program-transform-name=* \
1325   | --program-transform-nam=* | --program-transform-na=* \
1326   | --program-transform-n=* | --program-transform-=* \
1327   | --program-transform=* | --program-transfor=* \
1328   | --program-transfo=* | --program-transf=* \
1329   | --program-trans=* | --program-tran=* \
1330   | --progr-tra=* | --program-tr=* | --program-t=*)
1331     program_transform_name=$ac_optarg ;;
1332
1333   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1334     ac_prev=pdfdir ;;
1335   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1336     pdfdir=$ac_optarg ;;
1337
1338   -psdir | --psdir | --psdi | --psd | --ps)
1339     ac_prev=psdir ;;
1340   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1341     psdir=$ac_optarg ;;
1342
1343   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1344   | -silent | --silent | --silen | --sile | --sil)
1345     silent=yes ;;
1346
1347   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1348     ac_prev=sbindir ;;
1349   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1350   | --sbi=* | --sb=*)
1351     sbindir=$ac_optarg ;;
1352
1353   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1354   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1355   | --sharedst | --shareds | --shared | --share | --shar \
1356   | --sha | --sh)
1357     ac_prev=sharedstatedir ;;
1358   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1359   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1360   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1361   | --sha=* | --sh=*)
1362     sharedstatedir=$ac_optarg ;;
1363
1364   -site | --site | --sit)
1365     ac_prev=site ;;
1366   -site=* | --site=* | --sit=*)
1367     site=$ac_optarg ;;
1368
1369   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1370     ac_prev=srcdir ;;
1371   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1372     srcdir=$ac_optarg ;;
1373
1374   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1375   | --syscon | --sysco | --sysc | --sys | --sy)
1376     ac_prev=sysconfdir ;;
1377   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1378   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1379     sysconfdir=$ac_optarg ;;
1380
1381   -target | --target | --targe | --targ | --tar | --ta | --t)
1382     ac_prev=target_alias ;;
1383   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1384     target_alias=$ac_optarg ;;
1385
1386   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1387     verbose=yes ;;
1388
1389   -version | --version | --versio | --versi | --vers | -V)
1390     ac_init_version=: ;;
1391
1392   -with-* | --with-*)
1393     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       { echo "$as_me: error: invalid package name: $ac_package" >&2
1397    { (exit 1); exit 1; }; }
1398     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399     eval with_$ac_package=\$ac_optarg ;;
1400
1401   -without-* | --without-*)
1402     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403     # Reject names that are not valid shell variable names.
1404     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405       { echo "$as_me: error: invalid package name: $ac_package" >&2
1406    { (exit 1); exit 1; }; }
1407     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1408     eval with_$ac_package=no ;;
1409
1410   --x)
1411     # Obsolete; use --with-x.
1412     with_x=yes ;;
1413
1414   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415   | --x-incl | --x-inc | --x-in | --x-i)
1416     ac_prev=x_includes ;;
1417   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419     x_includes=$ac_optarg ;;
1420
1421   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423     ac_prev=x_libraries ;;
1424   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426     x_libraries=$ac_optarg ;;
1427
1428   -*) { echo "$as_me: error: unrecognized option: $ac_option
1429 Try \`$0 --help' for more information." >&2
1430    { (exit 1); exit 1; }; }
1431     ;;
1432
1433   *=*)
1434     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1435     # Reject names that are not valid shell variable names.
1436     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1437       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1438    { (exit 1); exit 1; }; }
1439     eval $ac_envvar=\$ac_optarg
1440     export $ac_envvar ;;
1441
1442   *)
1443     # FIXME: should be removed in autoconf 3.0.
1444     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1448     ;;
1449
1450   esac
1451 done
1452
1453 if test -n "$ac_prev"; then
1454   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455   { echo "$as_me: error: missing argument to $ac_option" >&2
1456    { (exit 1); exit 1; }; }
1457 fi
1458
1459 # Be sure to have absolute directory names.
1460 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461                 datadir sysconfdir sharedstatedir localstatedir includedir \
1462                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463                 libdir localedir mandir
1464 do
1465   eval ac_val=\$$ac_var
1466   case $ac_val in
1467     [\\/$]* | ?:[\\/]* )  continue;;
1468     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469   esac
1470   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1471    { (exit 1); exit 1; }; }
1472 done
1473
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1477 build=$build_alias
1478 host=$host_alias
1479 target=$target_alias
1480
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x; then
1483   if test "x$build_alias" = x; then
1484     cross_compiling=maybe
1485     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486     If a cross compiler is detected then cross compile mode will be used." >&2
1487   elif test "x$build_alias" != "x$host_alias"; then
1488     cross_compiling=yes
1489   fi
1490 fi
1491
1492 ac_tool_prefix=
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1494
1495 test "$silent" = yes && exec 6>/dev/null
1496
1497
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501   { echo "$as_me: error: Working directory cannot be determined" >&2
1502    { (exit 1); exit 1; }; }
1503 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504   { echo "$as_me: error: pwd does not report name of working directory" >&2
1505    { (exit 1); exit 1; }; }
1506
1507
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510   ac_srcdir_defaulted=yes
1511   # Try the directory containing this script, then the parent directory.
1512   ac_confdir=`$as_dirname -- "$0" ||
1513 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514          X"$0" : 'X\(//\)[^/]' \| \
1515          X"$0" : 'X\(//\)$' \| \
1516          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1517 echo X"$0" |
1518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\/\)[^/].*/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\/\)$/{
1527             s//\1/
1528             q
1529           }
1530           /^X\(\/\).*/{
1531             s//\1/
1532             q
1533           }
1534           s/.*/./; q'`
1535   srcdir=$ac_confdir
1536   if test ! -r "$srcdir/$ac_unique_file"; then
1537     srcdir=..
1538   fi
1539 else
1540   ac_srcdir_defaulted=no
1541 fi
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1544   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1545    { (exit 1); exit 1; }; }
1546 fi
1547 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1548 ac_abs_confdir=`(
1549         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1550    { (exit 1); exit 1; }; }
1551         pwd)`
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1554   srcdir=.
1555 fi
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1559 case $srcdir in
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 esac
1562 for ac_var in $ac_precious_vars; do
1563   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564   eval ac_env_${ac_var}_value=\$${ac_var}
1565   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567 done
1568
1569 #
1570 # Report the --help message.
1571 #
1572 if test "$ac_init_help" = "long"; then
1573   # Omit some internal or obsolete options to make the list less imposing.
1574   # This message is too long to be a string in the A/UX 3.1 sh.
1575   cat <<_ACEOF
1576 \`configure' configures this package to adapt to many kinds of systems.
1577
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1579
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE.  See below for descriptions of some of the useful variables.
1582
1583 Defaults for the options are specified in brackets.
1584
1585 Configuration:
1586   -h, --help              display this help and exit
1587       --help=short        display options specific to this package
1588       --help=recursive    display the short help of all the included packages
1589   -V, --version           display version information and exit
1590   -q, --quiet, --silent   do not print \`checking...' messages
1591       --cache-file=FILE   cache test results in FILE [disabled]
1592   -C, --config-cache      alias for \`--cache-file=config.cache'
1593   -n, --no-create         do not create output files
1594       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1595
1596 Installation directories:
1597   --prefix=PREFIX         install architecture-independent files in PREFIX
1598                           [$ac_default_prefix]
1599   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1600                           [PREFIX]
1601
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1606
1607 For better control, use the options below.
1608
1609 Fine tuning of the installation directories:
1610   --bindir=DIR           user executables [EPREFIX/bin]
1611   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1612   --libexecdir=DIR       program executables [EPREFIX/libexec]
1613   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1614   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1615   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1616   --libdir=DIR           object code libraries [EPREFIX/lib]
1617   --includedir=DIR       C header files [PREFIX/include]
1618   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1619   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1620   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1621   --infodir=DIR          info documentation [DATAROOTDIR/info]
1622   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1623   --mandir=DIR           man documentation [DATAROOTDIR/man]
1624   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1625   --htmldir=DIR          html documentation [DOCDIR]
1626   --dvidir=DIR           dvi documentation [DOCDIR]
1627   --pdfdir=DIR           pdf documentation [DOCDIR]
1628   --psdir=DIR            ps documentation [DOCDIR]
1629 _ACEOF
1630
1631   cat <<\_ACEOF
1632
1633 X features:
1634   --x-includes=DIR    X include files are in DIR
1635   --x-libraries=DIR   X library files are in DIR
1636
1637 System types:
1638   --build=BUILD     configure for building on BUILD [guessed]
1639   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1640 _ACEOF
1641 fi
1642
1643 if test -n "$ac_init_help"; then
1644
1645   cat <<\_ACEOF
1646
1647 Optional Features:
1648   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1649   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1650   --enable-libtool        enable building using GNU libtool [default=yes]
1651   --enable-shared[=PKGS]  build shared libraries [default=yes]
1652   --enable-static[=PKGS]  build static libraries [default=no]
1653   --enable-fast-install[=PKGS]
1654                           optimize for fast installation [default=yes]
1655   --disable-libtool-lock  avoid locking (might break parallel builds)
1656   --enable-includes       enable installing of include files [default=no]
1657   --disable-nls           do not use Native Language Support
1658   --disable-rpath         do not hardcode runtime library paths
1659   --enable-gnome          enable build of bgnome-console GUI [default=no]
1660   --enable-bat            enable build of bat Qt4 GUI [default=no]
1661   --enable-bwx-console    enable build of wxWidgets console [default=no]
1662   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1663                           KDE [default=no]
1664   --enable-smartalloc     enable smartalloc debugging support [default=no]
1665   --enable-lockmgr        enable lock manager support [default=no]
1666   --enable-static-tools   enable static tape tools [default=no]
1667   --enable-static-fd      enable static File daemon [default=no]
1668   --enable-static-sd      enable static Storage daemon [default=no]
1669   --enable-static-dir     enable static Director [default=no]
1670   --enable-static-cons    enable static Console [default=no]
1671   --enable-client-only    build client (File daemon) only [default=no]
1672   --enable-build-dird     enable building of dird (Director) [default=yes]
1673   --enable-build-stored   enable building of stored (Storage daemon)
1674                           [default=yes]
1675   --disable-conio         disable conio support [default=no]
1676   --enable-ipv6           enable ipv6 support [default=yes]
1677   --disable-readline      disable readline support [default=yes]
1678   --enable-batch-insert   enable the DB batch insert code [default=no]
1679   --disable-largefile     omit support for large files
1680   --disable-afs           disable afs support [default=auto]
1681   --disable-acl           disable acl support [default=auto]
1682   --disable-xattr         disable xattr support [default=auto]
1683
1684 Optional Packages:
1685   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1686   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1687   --with-pic              try to use only PIC/non-PIC objects [default=use
1688                           both]
1689   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1690   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1691   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1692   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1693   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1694   --without-libintl-prefix     don't search for libintl in includedir and libdir
1695   --with-included-gettext use the GNU gettext library included here
1696   --with-readline[=DIR]   specify readline library directory
1697   --with-python[=DIR]     Include Python support. DIR is the Python base
1698                           install directory, default is to search through a
1699                           number of common places for the Python files.
1700   --with-tcp-wrappers[=DIR]
1701                           enable tcpwrappers support
1702   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1703   --with-working-dir=PATH specify path of Bacula working directory
1704   --with-archivedir=PATH  specify path of SD archive directory
1705   --with-basename=RESNAME specify base resource name for daemons
1706   --with-hostname=RESNAME specify host name for daemons
1707   --with-scriptdir=PATH   specify path of Bacula scripts directory
1708   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1709   --with-logdir=PATH      specify path of Bacula logs directory
1710   --with-plugindir=PATH   specify path of Bacula plugins directory
1711   --with-dump-email=EMAIL dump email address
1712   --with-job-email=EMAIL  job output email address
1713   --with-smtp-host=HOST   SMTP mail host address
1714   --with-pid-dir=PATH     specify location of Bacula pid files
1715   --with-subsys-dir=PATH  specify location of Bacula subsys file
1716   --with-baseport=PORT    specify base port address for daemons
1717   --with-dir-password=PASSWORD
1718                           specify Director's password
1719   --with-fd-password=PASSWORD
1720                           specify Client's password
1721   --with-sd-password=PASSWORD
1722                           specify Storage daemon's password
1723   --with-mon-dir-password=PASSWORD
1724                           specify Director's password used by the monitor
1725   --with-mon-fd-password=PASSWORD
1726                           specify Client's password used by the monitor
1727   --with-mon-sd-password=PASSWORD
1728                           specify Storage daemon's password used by the
1729                           monitor
1730   --with-db-name=DBNAME   specify database name [default=bacula]
1731   --with-db-user=UNAME    specify database user [default=bacula]
1732   --with-db-password=PWD  specify database password [default=*none*]
1733   --with-db-port=DBPORT   specify a database port [default=null]
1734   --with-dir-user=USER    specify user for Director daemon
1735   --with-dir-group=GROUP  specify group for Director daemon
1736   --with-sd-user=USER     specify user for Storage daemon
1737   --with-sd-group=GROUP   specify group for Storage daemon
1738   --with-fd-user=USER     specify user for File daemon
1739   --with-fd-group=GROUP   specify group for File daemon
1740   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1741   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1742                           base install directory, [default=/usr/local/pgsql]
1743   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1744                           directory, default is to search through a number of
1745                           common places for the MySQL files.
1746   --with-embedded-mysql[=DIR]
1747                           Include MySQL support. DIR is the MySQL base install
1748                           directory, default is to search through a number of
1749                           common places for the MySQL files.
1750   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1751                           install directory, default is to search through a
1752                           number of common places for the Ingres files.
1753   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1754                           install directory, default is to search through a
1755                           number of common places for the SQLite3 files.
1756   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1757                           directory, default is to search through a number of
1758                           common places for the DBI files.
1759   --with-dbi-driver[=DRIVER]
1760                           Suport for DBI driver. DRIVER is the one DBI driver
1761                           like Mysql, Postgresql, others. Default is to not
1762                           configure any driver.
1763   --with-x                use the X Window System
1764   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1765
1766 Some influential environment variables:
1767   CC          C compiler command
1768   CFLAGS      C compiler flags
1769   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1770               nonstandard directory <lib dir>
1771   LIBS        libraries to pass to the linker, e.g. -l<library>
1772   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1773               you have headers in a nonstandard directory <include dir>
1774   CXX         C++ compiler command
1775   CXXFLAGS    C++ compiler flags
1776   CPP         C preprocessor
1777   WXCONFIG    wx-config command. On some systems, you must set it to
1778               wx-config-2.6 to use wxWidgets 2.6.
1779   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1780   CXXCPP      C++ preprocessor
1781   XMKMF       Path to xmkmf, Makefile generator for X Window System
1782
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1785
1786 _ACEOF
1787 ac_status=$?
1788 fi
1789
1790 if test "$ac_init_help" = "recursive"; then
1791   # If there are subdirs, report their specific --help.
1792   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1793     test -d "$ac_dir" || continue
1794     ac_builddir=.
1795
1796 case "$ac_dir" in
1797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 *)
1799   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1800   # A ".." for each directory in $ac_dir_suffix.
1801   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1802   case $ac_top_builddir_sub in
1803   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1805   esac ;;
1806 esac
1807 ac_abs_top_builddir=$ac_pwd
1808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1809 # for backward compatibility:
1810 ac_top_builddir=$ac_top_build_prefix
1811
1812 case $srcdir in
1813   .)  # We are building in place.
1814     ac_srcdir=.
1815     ac_top_srcdir=$ac_top_builddir_sub
1816     ac_abs_top_srcdir=$ac_pwd ;;
1817   [\\/]* | ?:[\\/]* )  # Absolute name.
1818     ac_srcdir=$srcdir$ac_dir_suffix;
1819     ac_top_srcdir=$srcdir
1820     ac_abs_top_srcdir=$srcdir ;;
1821   *) # Relative name.
1822     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1823     ac_top_srcdir=$ac_top_build_prefix$srcdir
1824     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1825 esac
1826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1827
1828     cd "$ac_dir" || { ac_status=$?; continue; }
1829     # Check for guested configure.
1830     if test -f "$ac_srcdir/configure.gnu"; then
1831       echo &&
1832       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1833     elif test -f "$ac_srcdir/configure"; then
1834       echo &&
1835       $SHELL "$ac_srcdir/configure" --help=recursive
1836     else
1837       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1838     fi || ac_status=$?
1839     cd "$ac_pwd" || { ac_status=$?; break; }
1840   done
1841 fi
1842
1843 test -n "$ac_init_help" && exit $ac_status
1844 if $ac_init_version; then
1845   cat <<\_ACEOF
1846 configure
1847 generated by GNU Autoconf 2.61
1848
1849 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1850 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1851 This configure script is free software; the Free Software Foundation
1852 gives unlimited permission to copy, distribute and modify it.
1853 _ACEOF
1854   exit
1855 fi
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1859
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.61.  Invocation command line was
1862
1863   $ $0 $@
1864
1865 _ACEOF
1866 exec 5>>config.log
1867 {
1868 cat <<_ASUNAME
1869 ## --------- ##
1870 ## Platform. ##
1871 ## --------- ##
1872
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1881
1882 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1883 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1886 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1887 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1888 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1889
1890 _ASUNAME
1891
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   echo "PATH: $as_dir"
1898 done
1899 IFS=$as_save_IFS
1900
1901 } >&5
1902
1903 cat >&5 <<_ACEOF
1904
1905
1906 ## ----------- ##
1907 ## Core tests. ##
1908 ## ----------- ##
1909
1910 _ACEOF
1911
1912
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_configure_args=
1919 ac_configure_args0=
1920 ac_configure_args1=
1921 ac_must_keep_next=false
1922 for ac_pass in 1 2
1923 do
1924   for ac_arg
1925   do
1926     case $ac_arg in
1927     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929     | -silent | --silent | --silen | --sile | --sil)
1930       continue ;;
1931     *\'*)
1932       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933     esac
1934     case $ac_pass in
1935     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1936     2)
1937       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1938       if test $ac_must_keep_next = true; then
1939         ac_must_keep_next=false # Got value, back to normal.
1940       else
1941         case $ac_arg in
1942           *=* | --config-cache | -C | -disable-* | --disable-* \
1943           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945           | -with-* | --with-* | -without-* | --without-* | --x)
1946             case "$ac_configure_args0 " in
1947               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948             esac
1949             ;;
1950           -* ) ac_must_keep_next=true ;;
1951         esac
1952       fi
1953       ac_configure_args="$ac_configure_args '$ac_arg'"
1954       ;;
1955     esac
1956   done
1957 done
1958 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1959 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1960
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log.  We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967   # Save into config.log some information that might help in debugging.
1968   {
1969     echo
1970
1971     cat <<\_ASBOX
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1975 _ASBOX
1976     echo
1977     # The following way of writing the cache mishandles newlines in values,
1978 (
1979   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980     eval ac_val=\$$ac_var
1981     case $ac_val in #(
1982     *${as_nl}*)
1983       case $ac_var in #(
1984       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1985 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1986       esac
1987       case $ac_var in #(
1988       _ | IFS | as_nl) ;; #(
1989       *) $as_unset $ac_var ;;
1990       esac ;;
1991     esac
1992   done
1993   (set) 2>&1 |
1994     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995     *${as_nl}ac_space=\ *)
1996       sed -n \
1997         "s/'\''/'\''\\\\'\'''\''/g;
1998           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999       ;; #(
2000     *)
2001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002       ;;
2003     esac |
2004     sort
2005 )
2006     echo
2007
2008     cat <<\_ASBOX
2009 ## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##
2012 _ASBOX
2013     echo
2014     for ac_var in $ac_subst_vars
2015     do
2016       eval ac_val=\$$ac_var
2017       case $ac_val in
2018       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019       esac
2020       echo "$ac_var='\''$ac_val'\''"
2021     done | sort
2022     echo
2023
2024     if test -n "$ac_subst_files"; then
2025       cat <<\_ASBOX
2026 ## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##
2029 _ASBOX
2030       echo
2031       for ac_var in $ac_subst_files
2032       do
2033         eval ac_val=\$$ac_var
2034         case $ac_val in
2035         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036         esac
2037         echo "$ac_var='\''$ac_val'\''"
2038       done | sort
2039       echo
2040     fi
2041
2042     if test -s confdefs.h; then
2043       cat <<\_ASBOX
2044 ## ----------- ##
2045 ## confdefs.h. ##
2046 ## ----------- ##
2047 _ASBOX
2048       echo
2049       cat confdefs.h
2050       echo
2051     fi
2052     test "$ac_signal" != 0 &&
2053       echo "$as_me: caught signal $ac_signal"
2054     echo "$as_me: exit $exit_status"
2055   } >&5
2056   rm -f core *.core core.conftest.* &&
2057     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058     exit $exit_status
2059 ' 0
2060 for ac_signal in 1 2 13 15; do
2061   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2062 done
2063 ac_signal=0
2064
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2083
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2087 _ACEOF
2088
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 _ACEOF
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer explicitly selected file to automatically selected ones.
2097 if test -n "$CONFIG_SITE"; then
2098   set x "$CONFIG_SITE"
2099 elif test "x$prefix" != xNONE; then
2100   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2101 else
2102   set x "$ac_default_prefix/share/config.site" \
2103         "$ac_default_prefix/etc/config.site"
2104 fi
2105 shift
2106 for ac_site_file
2107 do
2108   if test -r "$ac_site_file"; then
2109     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2110 echo "$as_me: loading site script $ac_site_file" >&6;}
2111     sed 's/^/| /' "$ac_site_file" >&5
2112     . "$ac_site_file"
2113   fi
2114 done
2115
2116 if test -r "$cache_file"; then
2117   # Some versions of bash will fail to source /dev/null (special
2118   # files actually), so we avoid doing that.
2119   if test -f "$cache_file"; then
2120     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2121 echo "$as_me: loading cache $cache_file" >&6;}
2122     case $cache_file in
2123       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124       *)                      . "./$cache_file";;
2125     esac
2126   fi
2127 else
2128   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2129 echo "$as_me: creating cache $cache_file" >&6;}
2130   >$cache_file
2131 fi
2132
2133 # Check that the precious variables saved in the cache have kept the same
2134 # value.
2135 ac_cache_corrupted=false
2136 for ac_var in $ac_precious_vars; do
2137   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2138   eval ac_new_set=\$ac_env_${ac_var}_set
2139   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2140   eval ac_new_val=\$ac_env_${ac_var}_value
2141   case $ac_old_set,$ac_new_set in
2142     set,)
2143       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145       ac_cache_corrupted=: ;;
2146     ,set)
2147       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149       ac_cache_corrupted=: ;;
2150     ,);;
2151     *)
2152       if test "x$ac_old_val" != "x$ac_new_val"; then
2153         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2156 echo "$as_me:   former value:  $ac_old_val" >&2;}
2157         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2158 echo "$as_me:   current value: $ac_new_val" >&2;}
2159         ac_cache_corrupted=:
2160       fi;;
2161   esac
2162   # Pass precious variables to config.status.
2163   if test "$ac_new_set" = set; then
2164     case $ac_new_val in
2165     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2166     *) ac_arg=$ac_var=$ac_new_val ;;
2167     esac
2168     case " $ac_configure_args " in
2169       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2170       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2171     esac
2172   fi
2173 done
2174 if $ac_cache_corrupted; then
2175   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2176 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2178 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205 BUILD_DIR=`pwd`
2206 cd ..
2207 TOP_DIR=`pwd`
2208 cd ${BUILD_DIR}
2209
2210
2211 ac_aux_dir=
2212 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2213   if test -f "$ac_dir/install-sh"; then
2214     ac_aux_dir=$ac_dir
2215     ac_install_sh="$ac_aux_dir/install-sh -c"
2216     break
2217   elif test -f "$ac_dir/install.sh"; then
2218     ac_aux_dir=$ac_dir
2219     ac_install_sh="$ac_aux_dir/install.sh -c"
2220     break
2221   elif test -f "$ac_dir/shtool"; then
2222     ac_aux_dir=$ac_dir
2223     ac_install_sh="$ac_aux_dir/shtool install -c"
2224     break
2225   fi
2226 done
2227 if test -z "$ac_aux_dir"; then
2228   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2229 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2230    { (exit 1); exit 1; }; }
2231 fi
2232
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2240
2241
2242 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2243
2244
2245 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2246 WIN32MAINDIR=${BUILD_DIR}
2247 WIN32TOPDIR=${TOP_DIR}
2248
2249
2250
2251
2252 for ac_prog in true
2253 do
2254   # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   case $TRUEPRG in
2262   [\\/]* | ?:[\\/]*)
2263   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2264   ;;
2265   *)
2266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269   IFS=$as_save_IFS
2270   test -z "$as_dir" && as_dir=.
2271   for ac_exec_ext in '' $ac_executable_extensions; do
2272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275     break 2
2276   fi
2277 done
2278 done
2279 IFS=$as_save_IFS
2280
2281   ;;
2282 esac
2283 fi
2284 TRUEPRG=$ac_cv_path_TRUEPRG
2285 if test -n "$TRUEPRG"; then
2286   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2287 echo "${ECHO_T}$TRUEPRG" >&6; }
2288 else
2289   { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2291 fi
2292
2293
2294   test -n "$TRUEPRG" && break
2295 done
2296 test -n "$TRUEPRG" || TRUEPRG=":"
2297
2298 for ac_prog in false
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   case $FALSEPRG in
2308   [\\/]* | ?:[\\/]*)
2309   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2310   ;;
2311   *)
2312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327   ;;
2328 esac
2329 fi
2330 FALSEPRG=$ac_cv_path_FALSEPRG
2331 if test -n "$FALSEPRG"; then
2332   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2333 echo "${ECHO_T}$FALSEPRG" >&6; }
2334 else
2335   { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2337 fi
2338
2339
2340   test -n "$FALSEPRG" && break
2341 done
2342 test -n "$FALSEPRG" || FALSEPRG=":"
2343
2344
2345
2346 post_host=
2347 if test "x$BACULA" != x; then
2348    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2349 fi
2350 BACULA=${BACULA:-Bacula}
2351 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2352 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2353 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2354 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2355
2356 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2357 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2358 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2359
2360 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2361 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2362 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2363
2364
2365 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2366
2367 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2368
2369
2370 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2371
2372 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2373
2374
2375 echo "configuring for ${BACULA} $VERSION ($DATE)"
2376
2377
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384 if test -n "$ac_tool_prefix"; then
2385   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$CC"; then
2393   ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414   { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2416 else
2417   { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2419 fi
2420
2421
2422 fi
2423 if test -z "$ac_cv_prog_CC"; then
2424   ac_ct_CC=$CC
2425   # Extract the first word of "gcc", so it can be a program name with args.
2426 set dummy gcc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   if test -n "$ac_ct_CC"; then
2433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440   for ac_exec_ext in '' $ac_executable_extensions; do
2441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442     ac_cv_prog_ac_ct_CC="gcc"
2443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6; }
2456 else
2457   { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2459 fi
2460
2461   if test "x$ac_ct_CC" = x; then
2462     CC=""
2463   else
2464     case $cross_compiling:$ac_tool_warned in
2465 yes:)
2466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2467 whose name does not start with the host triplet.  If you think this
2468 configuration is useful to you, please write to autoconf@gnu.org." >&5
2469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet.  If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2472 ac_tool_warned=yes ;;
2473 esac
2474     CC=$ac_ct_CC
2475   fi
2476 else
2477   CC="$ac_cv_prog_CC"
2478 fi
2479
2480 if test -z "$CC"; then
2481           if test -n "$ac_tool_prefix"; then
2482     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$CC"; then
2490   ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_CC="${ac_tool_prefix}cc"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514   { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2516 fi
2517
2518
2519   fi
2520 fi
2521 if test -z "$CC"; then
2522   # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$CC"; then
2530   ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532   ac_prog_rejected=no
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541        ac_prog_rejected=yes
2542        continue
2543      fi
2544     ac_cv_prog_CC="cc"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 if test $ac_prog_rejected = yes; then
2553   # We found a bogon in the path, so make sure we never use it.
2554   set dummy $ac_cv_prog_CC
2555   shift
2556   if test $# != 0; then
2557     # We chose a different compiler from the bogus one.
2558     # However, it has the same basename, so the bogon will be chosen
2559     # first if we set CC to just the basename; use the full file name.
2560     shift
2561     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2562   fi
2563 fi
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568   { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2570 else
2571   { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2573 fi
2574
2575
2576 fi
2577 if test -z "$CC"; then
2578   if test -n "$ac_tool_prefix"; then
2579   for ac_prog in cl.exe
2580   do
2581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$CC"; then
2589   ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610   { echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618     test -n "$CC" && break
2619   done
2620 fi
2621 if test -z "$CC"; then
2622   ac_ct_CC=$CC
2623   for ac_prog in cl.exe
2624 do
2625   # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   if test -n "$ac_ct_CC"; then
2633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640   for ac_exec_ext in '' $ac_executable_extensions; do
2641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642     ac_cv_prog_ac_ct_CC="$ac_prog"
2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653 if test -n "$ac_ct_CC"; then
2654   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655 echo "${ECHO_T}$ac_ct_CC" >&6; }
2656 else
2657   { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2659 fi
2660
2661
2662   test -n "$ac_ct_CC" && break
2663 done
2664
2665   if test "x$ac_ct_CC" = x; then
2666     CC=""
2667   else
2668     case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet.  If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet.  If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676 ac_tool_warned=yes ;;
2677 esac
2678     CC=$ac_ct_CC
2679   fi
2680 fi
2681
2682 fi
2683
2684
2685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&2;}
2689    { (exit 1); exit 1; }; }
2690
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (ac_try="$ac_compiler --version >&5"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compiler --version >&5") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compiler -v >&5") 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }
2714 { (ac_try="$ac_compiler -V >&5"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compiler -V >&5") 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }
2724
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731
2732 int
2733 main ()
2734 {
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 ac_clean_files_save=$ac_clean_files
2741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2742 # Try to create an executable without -o first, disregard a.out.
2743 # It will help us diagnose broken compilers, and finding out an intuition
2744 # of exeext.
2745 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2748 #
2749 # List of possible output files, starting from the most likely.
2750 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2751 # only as a last resort.  b.out is created by i960 compilers.
2752 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2753 #
2754 # The IRIX 6 linker writes into existing files which may not be
2755 # executable, retaining their permissions.  Remove them first so a
2756 # subsequent execution test works.
2757 ac_rmfiles=
2758 for ac_file in $ac_files
2759 do
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2762     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763   esac
2764 done
2765 rm -f $ac_rmfiles
2766
2767 if { (ac_try="$ac_link_default"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_link_default") 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; then
2777   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2781 # Autoconf.
2782 for ac_file in $ac_files ''
2783 do
2784   test -f "$ac_file" || continue
2785   case $ac_file in
2786     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2787         ;;
2788     [ab].out )
2789         # We found the default executable, but exeext='' is most
2790         # certainly right.
2791         break;;
2792     *.* )
2793         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794         then :; else
2795            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796         fi
2797         # We set ac_cv_exeext here because the later test for it is not
2798         # safe: cross compilers may not add the suffix if given an `-o'
2799         # argument, so we may need to know it at that point already.
2800         # Even if this section looks crufty: it has the advantage of
2801         # actually working.
2802         break;;
2803     * )
2804         break;;
2805   esac
2806 done
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
2809 else
2810   ac_file=''
2811 fi
2812
2813 { echo "$as_me:$LINENO: result: $ac_file" >&5
2814 echo "${ECHO_T}$ac_file" >&6; }
2815 if test -z "$ac_file"; then
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823    { (exit 77); exit 77; }; }
2824 fi
2825
2826 ac_exeext=$ac_cv_exeext
2827
2828 # Check that the compiler produces executables we can run.  If not, either
2829 # the compiler is broken, or we cross compile.
2830 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2833 # If not cross compiling, check that we can run a simple program.
2834 if test "$cross_compiling" != yes; then
2835   if { ac_try='./$ac_file'
2836   { (case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841   (eval "$ac_try") 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; }; then
2845     cross_compiling=no
2846   else
2847     if test "$cross_compiling" = maybe; then
2848         cross_compiling=yes
2849     else
2850         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&2;}
2856    { (exit 1); exit 1; }; }
2857     fi
2858   fi
2859 fi
2860 { echo "$as_me:$LINENO: result: yes" >&5
2861 echo "${ECHO_T}yes" >&6; }
2862
2863 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2864 ac_clean_files=$ac_clean_files_save
2865 # Check that the compiler produces executables we can run.  If not, either
2866 # the compiler is broken, or we cross compile.
2867 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2868 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2869 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2870 echo "${ECHO_T}$cross_compiling" >&6; }
2871
2872 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2873 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2874 if { (ac_try="$ac_link"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880   (eval "$ac_link") 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; then
2884   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2885 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2886 # work properly (i.e., refer to `conftest.exe'), while it won't with
2887 # `rm'.
2888 for ac_file in conftest.exe conftest conftest.*; do
2889   test -f "$ac_file" || continue
2890   case $ac_file in
2891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2892     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2893           break;;
2894     * ) break;;
2895   esac
2896 done
2897 else
2898   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&2;}
2902    { (exit 1); exit 1; }; }
2903 fi
2904
2905 rm -f conftest$ac_cv_exeext
2906 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2907 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2908
2909 rm -f conftest.$ac_ext
2910 EXEEXT=$ac_cv_exeext
2911 ac_exeext=$EXEEXT
2912 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2914 if test "${ac_cv_objext+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.o conftest.obj
2933 if { (ac_try="$ac_compile"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_compile") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; then
2943   for ac_file in conftest.o conftest.obj conftest.*; do
2944   test -f "$ac_file" || continue;
2945   case $ac_file in
2946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2947     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2948        break;;
2949   esac
2950 done
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2956 See \`config.log' for more details." >&5
2957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log' for more details." >&2;}
2959    { (exit 1); exit 1; }; }
2960 fi
2961
2962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2963 fi
2964 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2965 echo "${ECHO_T}$ac_cv_objext" >&6; }
2966 OBJEXT=$ac_cv_objext
2967 ac_objext=$OBJEXT
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983 #ifndef __GNUC__
2984        choke me
2985 #endif
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } && {
3005          test -z "$ac_c_werror_flag" ||
3006          test ! -s conftest.err
3007        } && test -s conftest.$ac_objext; then
3008   ac_compiler_gnu=yes
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013         ac_compiler_gnu=no
3014 fi
3015
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3018
3019 fi
3020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3022 GCC=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CFLAGS=${CFLAGS+set}
3024 ac_save_CFLAGS=$CFLAGS
3025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cc_g+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   ac_save_c_werror_flag=$ac_c_werror_flag
3031    ac_c_werror_flag=yes
3032    ac_cv_prog_cc_g=no
3033    CFLAGS="-g"
3034    cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040
3041 int
3042 main ()
3043 {
3044
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_compile") 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } && {
3063          test -z "$ac_c_werror_flag" ||
3064          test ! -s conftest.err
3065        } && test -s conftest.$ac_objext; then
3066   ac_cv_prog_cc_g=yes
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071         CFLAGS=""
3072       cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_compile") 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } && {
3101          test -z "$ac_c_werror_flag" ||
3102          test ! -s conftest.err
3103        } && test -s conftest.$ac_objext; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         ac_c_werror_flag=$ac_save_c_werror_flag
3110          CFLAGS="-g"
3111          cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_compile") 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } && {
3140          test -z "$ac_c_werror_flag" ||
3141          test ! -s conftest.err
3142        } && test -s conftest.$ac_objext; then
3143   ac_cv_prog_cc_g=yes
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148
3149 fi
3150
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158    ac_c_werror_flag=$ac_save_c_werror_flag
3159 fi
3160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3162 if test "$ac_test_CFLAGS" = set; then
3163   CFLAGS=$ac_save_CFLAGS
3164 elif test $ac_cv_prog_cc_g = yes; then
3165   if test "$GCC" = yes; then
3166     CFLAGS="-g -O2"
3167   else
3168     CFLAGS="-g"
3169   fi
3170 else
3171   if test "$GCC" = yes; then
3172     CFLAGS="-O2"
3173   else
3174     CFLAGS=
3175   fi
3176 fi
3177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3179 if test "${ac_cv_prog_cc_c89+set}" = set; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   ac_cv_prog_cc_c89=no
3183 ac_save_CC=$CC
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <stdarg.h>
3191 #include <stdio.h>
3192 #include <sys/types.h>
3193 #include <sys/stat.h>
3194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3195 struct buf { int x; };
3196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197 static char *e (p, i)
3198      char **p;
3199      int i;
3200 {
3201   return p[i];
3202 }
3203 static char *f (char * (*g) (char **, int), char **p, ...)
3204 {
3205   char *s;
3206   va_list v;
3207   va_start (v,p);
3208   s = g (p, va_arg (v,int));
3209   va_end (v);
3210   return s;
3211 }
3212
3213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3214    function prototypes and stuff, but not '\xHH' hex character constants.
3215    These don't provoke an error unfortunately, instead are silently treated
3216    as 'x'.  The following induces an error, until -std is added to get
3217    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3218    array size at least.  It's necessary to write '\x00'==0 to get something
3219    that's true only with -std.  */
3220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3221
3222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223    inside strings and character constants.  */
3224 #define FOO(x) 'x'
3225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3226
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231 int argc;
3232 char **argv;
3233 int
3234 main ()
3235 {
3236 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 do
3244   CC="$ac_save_CC $ac_arg"
3245   rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_compile") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } && {
3259          test -z "$ac_c_werror_flag" ||
3260          test ! -s conftest.err
3261        } && test -s conftest.$ac_objext; then
3262   ac_cv_prog_cc_c89=$ac_arg
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext
3271   test "x$ac_cv_prog_cc_c89" != "xno" && break
3272 done
3273 rm -f conftest.$ac_ext
3274 CC=$ac_save_CC
3275
3276 fi
3277 # AC_CACHE_VAL
3278 case "x$ac_cv_prog_cc_c89" in
3279   x)
3280     { echo "$as_me:$LINENO: result: none needed" >&5
3281 echo "${ECHO_T}none needed" >&6; } ;;
3282   xno)
3283     { echo "$as_me:$LINENO: result: unsupported" >&5
3284 echo "${ECHO_T}unsupported" >&6; } ;;
3285   *)
3286     CC="$CC $ac_cv_prog_cc_c89"
3287     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3289 esac
3290
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298 ac_ext=cpp
3299 ac_cpp='$CXXCPP $CPPFLAGS'
3300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303 if test -z "$CXX"; then
3304   if test -n "$CCC"; then
3305     CXX=$CCC
3306   else
3307     if test -n "$ac_tool_prefix"; then
3308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3309   do
3310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_CXX+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   if test -n "$CXX"; then
3318   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 CXX=$ac_cv_prog_CXX
3338 if test -n "$CXX"; then
3339   { echo "$as_me:$LINENO: result: $CXX" >&5
3340 echo "${ECHO_T}$CXX" >&6; }
3341 else
3342   { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3344 fi
3345
3346
3347     test -n "$CXX" && break
3348   done
3349 fi
3350 if test -z "$CXX"; then
3351   ac_ct_CXX=$CXX
3352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3353 do
3354   # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   if test -n "$ac_ct_CXX"; then
3362   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367   IFS=$as_save_IFS
3368   test -z "$as_dir" && as_dir=.
3369   for ac_exec_ext in '' $ac_executable_extensions; do
3370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371     ac_cv_prog_ac_ct_CXX="$ac_prog"
3372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374   fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3382 if test -n "$ac_ct_CXX"; then
3383   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3385 else
3386   { echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6; }
3388 fi
3389
3390
3391   test -n "$ac_ct_CXX" && break
3392 done
3393
3394   if test "x$ac_ct_CXX" = x; then
3395     CXX="g++"
3396   else
3397     case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3400 whose name does not start with the host triplet.  If you think this
3401 configuration is useful to you, please write to autoconf@gnu.org." >&5
3402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3403 whose name does not start with the host triplet.  If you think this
3404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407     CXX=$ac_ct_CXX
3408   fi
3409 fi
3410
3411   fi
3412 fi
3413 # Provide some information about the compiler.
3414 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3415 ac_compiler=`set X $ac_compile; echo $2`
3416 { (ac_try="$ac_compiler --version >&5"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_compiler --version >&5") 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }
3426 { (ac_try="$ac_compiler -v >&5"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_compiler -v >&5") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }
3436 { (ac_try="$ac_compiler -V >&5"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442   (eval "$ac_compiler -V >&5") 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }
3446
3447 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3449 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463        choke me
3464 #endif
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_compile") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } && {
3484          test -z "$ac_cxx_werror_flag" ||
3485          test ! -s conftest.err
3486        } && test -s conftest.$ac_objext; then
3487   ac_compiler_gnu=yes
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492         ac_compiler_gnu=no
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497
3498 fi
3499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3501 GXX=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_test_CXXFLAGS=${CXXFLAGS+set}
3503 ac_save_CXXFLAGS=$CXXFLAGS
3504 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3505 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_cxx_g+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3510    ac_cxx_werror_flag=yes
3511    ac_cv_prog_cxx_g=no
3512    CXXFLAGS="-g"
3513    cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535   (eval "$ac_compile") 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } && {
3542          test -z "$ac_cxx_werror_flag" ||
3543          test ! -s conftest.err
3544        } && test -s conftest.$ac_objext; then
3545   ac_cv_prog_cxx_g=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550         CXXFLAGS=""
3551       cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573   (eval "$ac_compile") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && {
3580          test -z "$ac_cxx_werror_flag" ||
3581          test ! -s conftest.err
3582        } && test -s conftest.$ac_objext; then
3583   :
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3589          CXXFLAGS="-g"
3590          cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_compile") 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } && {
3619          test -z "$ac_cxx_werror_flag" ||
3620          test ! -s conftest.err
3621        } && test -s conftest.$ac_objext; then
3622   ac_cv_prog_cxx_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3641 if test "$ac_test_CXXFLAGS" = set; then
3642   CXXFLAGS=$ac_save_CXXFLAGS
3643 elif test $ac_cv_prog_cxx_g = yes; then
3644   if test "$GXX" = yes; then
3645     CXXFLAGS="-g -O2"
3646   else
3647     CXXFLAGS="-g"
3648   fi
3649 else
3650   if test "$GXX" = yes; then
3651     CXXFLAGS="-O2"
3652   else
3653     CXXFLAGS=
3654   fi
3655 fi
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662 if test "x$CC" != xcc; then
3663   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3664 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3665 else
3666   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3667 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3668 fi
3669 set dummy $CC; ac_cc=`echo $2 |
3670                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3671 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 # Make sure it works both with $CC and with simple cc.
3690 # We do the test twice because some compilers refuse to overwrite an
3691 # existing .o file with -o, though they will create one.
3692 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3693 rm -f conftest2.*
3694 if { (case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_try") 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_try") 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); };
3712 then
3713   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3714   if test "x$CC" != xcc; then
3715     # Test first that cc exists at all.
3716     if { ac_try='cc -c conftest.$ac_ext >&5'
3717   { (case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722   (eval "$ac_try") 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3727       rm -f conftest2.*
3728       if { (case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733   (eval "$ac_try") 2>&5
3734   ac_status=$?
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } &&
3737          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739   *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742   (eval "$ac_try") 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); };
3746       then
3747         # cc works too.
3748         :
3749       else
3750         # cc exists but doesn't like -o.
3751         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3752       fi
3753     fi
3754   fi
3755 else
3756   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3757 fi
3758 rm -f core conftest*
3759
3760 fi
3761 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3762   { echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6; }
3764 else
3765   { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3767
3768 cat >>confdefs.h <<\_ACEOF
3769 #define NO_MINUS_C_MINUS_O 1
3770 _ACEOF
3771
3772 fi
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3780 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783   CPP=
3784 fi
3785 if test -z "$CPP"; then
3786   if test "${ac_cv_prog_CPP+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789       # Double quotes because CPP needs to be expanded
3790     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791     do
3792       ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3794 do
3795   # Use a header file that comes with gcc, so configuring glibc
3796   # with a fresh cross-compiler works.
3797   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798   # <limits.h> exists even on freestanding compilers.
3799   # On the NeXT, cc -E runs the code through the compiler's parser,
3800   # not just through cpp. "Syntax error" is here to catch this case.
3801   cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807 #ifdef __STDC__
3808 # include <limits.h>
3809 #else
3810 # include <assert.h>
3811 #endif
3812                      Syntax error
3813 _ACEOF
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } >/dev/null && {
3827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3828          test ! -s conftest.err
3829        }; then
3830   :
3831 else
3832   echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835   # Broken: fails on valid input.
3836 continue
3837 fi
3838
3839 rm -f conftest.err conftest.$ac_ext
3840
3841   # OK, works on sane cases.  Now check whether nonexistent headers
3842   # can be detected and how.
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 #include <ac_nonexistent.h>
3850 _ACEOF
3851 if { (ac_try="$ac_cpp conftest.$ac_ext"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } >/dev/null && {
3864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3865          test ! -s conftest.err
3866        }; then
3867   # Broken: success on invalid input.
3868 continue
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873   # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3876 fi
3877
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 done
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3884   break
3885 fi
3886
3887     done
3888     ac_cv_prog_CPP=$CPP
3889
3890 fi
3891   CPP=$ac_cv_prog_CPP
3892 else
3893   ac_cv_prog_CPP=$CPP
3894 fi
3895 { echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6; }
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3899 do
3900   # Use a header file that comes with gcc, so configuring glibc
3901   # with a fresh cross-compiler works.
3902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903   # <limits.h> exists even on freestanding compilers.
3904   # On the NeXT, cc -E runs the code through the compiler's parser,
3905   # not just through cpp. "Syntax error" is here to catch this case.
3906   cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912 #ifdef __STDC__
3913 # include <limits.h>
3914 #else
3915 # include <assert.h>
3916 #endif
3917                      Syntax error
3918 _ACEOF
3919 if { (ac_try="$ac_cpp conftest.$ac_ext"
3920 case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } >/dev/null && {
3932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933          test ! -s conftest.err
3934        }; then
3935   :
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940   # Broken: fails on valid input.
3941 continue
3942 fi
3943
3944 rm -f conftest.err conftest.$ac_ext
3945
3946   # OK, works on sane cases.  Now check whether nonexistent headers
3947   # can be detected and how.
3948   cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <ac_nonexistent.h>
3955 _ACEOF
3956 if { (ac_try="$ac_cpp conftest.$ac_ext"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } >/dev/null && {
3969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3970          test ! -s conftest.err
3971        }; then
3972   # Broken: success on invalid input.
3973 continue
3974 else
3975   echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978   # Passes both tests.
3979 ac_preproc_ok=:
3980 break
3981 fi
3982
3983 rm -f conftest.err conftest.$ac_ext
3984
3985 done
3986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987 rm -f conftest.err conftest.$ac_ext
3988 if $ac_preproc_ok; then
3989   :
3990 else
3991   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3992 See \`config.log' for more details." >&5
3993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&2;}
3995    { (exit 1); exit 1; }; }
3996 fi
3997
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004
4005 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4006 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4007 if test "${ac_cv_path_GREP+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   # Extract the first word of "grep ggrep" to use in msg output
4011 if test -z "$GREP"; then
4012 set dummy grep ggrep; ac_prog_name=$2
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   ac_path_GREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   for ac_prog in grep ggrep; do
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027     # Check for GNU ac_path_GREP and select it if it is found.
4028   # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4030 *GNU*)
4031   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4032 *)
4033   ac_count=0
4034   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035   while :
4036   do
4037     cat "conftest.in" "conftest.in" >"conftest.tmp"
4038     mv "conftest.tmp" "conftest.in"
4039     cp "conftest.in" "conftest.nl"
4040     echo 'GREP' >> "conftest.nl"
4041     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043     ac_count=`expr $ac_count + 1`
4044     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045       # Best one so far, save it but keep looking for a better one
4046       ac_cv_path_GREP="$ac_path_GREP"
4047       ac_path_GREP_max=$ac_count
4048     fi
4049     # 10*(2^10) chars as input seems more than enough
4050     test $ac_count -gt 10 && break
4051   done
4052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055
4056     $ac_path_GREP_found && break 3
4057   done
4058 done
4059
4060 done
4061 IFS=$as_save_IFS
4062
4063
4064 fi
4065
4066 GREP="$ac_cv_path_GREP"
4067 if test -z "$GREP"; then
4068   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070    { (exit 1); exit 1; }; }
4071 fi
4072
4073 else
4074   ac_cv_path_GREP=$GREP
4075 fi
4076
4077
4078 fi
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4081  GREP="$ac_cv_path_GREP"
4082
4083
4084 { echo "$as_me:$LINENO: checking for egrep" >&5
4085 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4086 if test "${ac_cv_path_EGREP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4090    then ac_cv_path_EGREP="$GREP -E"
4091    else
4092      # Extract the first word of "egrep" to use in msg output
4093 if test -z "$EGREP"; then
4094 set dummy egrep; ac_prog_name=$2
4095 if test "${ac_cv_path_EGREP+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_path_EGREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_prog in egrep; do
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4108     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4109     # Check for GNU ac_path_EGREP and select it if it is found.
4110   # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4112 *GNU*)
4113   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4114 *)
4115   ac_count=0
4116   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117   while :
4118   do
4119     cat "conftest.in" "conftest.in" >"conftest.tmp"
4120     mv "conftest.tmp" "conftest.in"
4121     cp "conftest.in" "conftest.nl"
4122     echo 'EGREP' >> "conftest.nl"
4123     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125     ac_count=`expr $ac_count + 1`
4126     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127       # Best one so far, save it but keep looking for a better one
4128       ac_cv_path_EGREP="$ac_path_EGREP"
4129       ac_path_EGREP_max=$ac_count
4130     fi
4131     # 10*(2^10) chars as input seems more than enough
4132     test $ac_count -gt 10 && break
4133   done
4134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137
4138     $ac_path_EGREP_found && break 3
4139   done
4140 done
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145
4146 fi
4147
4148 EGREP="$ac_cv_path_EGREP"
4149 if test -z "$EGREP"; then
4150   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152    { (exit 1); exit 1; }; }
4153 fi
4154
4155 else
4156   ac_cv_path_EGREP=$EGREP
4157 fi
4158
4159
4160    fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4163 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4164  EGREP="$ac_cv_path_EGREP"
4165
4166
4167 if test $ac_cv_c_compiler_gnu = yes; then
4168     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4169 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173     ac_pattern="Autoconf.*'x'"
4174   cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <sgtty.h>
4181 Autoconf TIOCGETP
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4185   ac_cv_prog_gcc_traditional=yes
4186 else
4187   ac_cv_prog_gcc_traditional=no
4188 fi
4189 rm -f conftest*
4190
4191
4192   if test $ac_cv_prog_gcc_traditional = no; then
4193     cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <termio.h>
4200 Autoconf TCGETA
4201 _ACEOF
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4204   ac_cv_prog_gcc_traditional=yes
4205 fi
4206 rm -f conftest*
4207
4208   fi
4209 fi
4210 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4211 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4212   if test $ac_cv_prog_gcc_traditional = yes; then
4213     CC="$CC -traditional"
4214   fi
4215 fi
4216
4217 BASECC=`basename $CC`
4218 have_gcc=no
4219 if test "x$BASECC" = xgcc; then
4220    cat >>confdefs.h <<\_ACEOF
4221 #define HAVE_GCC 1
4222 _ACEOF
4223
4224    have_gcc=yes
4225 fi
4226 # Extract the first word of "$CXX", so it can be a program name with args.
4227 set dummy $CXX; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_CXX+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   case $CXX in
4234   [\\/]* | ?:[\\/]*)
4235   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4236   ;;
4237   *)
4238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243   for ac_exec_ext in '' $ac_executable_extensions; do
4244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4254   ;;
4255 esac
4256 fi
4257 CXX=$ac_cv_path_CXX
4258 if test -n "$CXX"; then
4259   { echo "$as_me:$LINENO: result: $CXX" >&5
4260 echo "${ECHO_T}$CXX" >&6; }
4261 else
4262   { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4264 fi
4265
4266
4267 if test ! -e $CXX; then
4268    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4269 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4270    { (exit 1); exit 1; }; }
4271 fi
4272
4273 # Find a good install program.  We prefer a C program (faster),
4274 # so one script is as good as another.  But avoid the broken or
4275 # incompatible versions:
4276 # SysV /etc/install, /usr/sbin/install
4277 # SunOS /usr/etc/install
4278 # IRIX /sbin/install
4279 # AIX /bin/install
4280 # AmigaOS /C/install, which installs bootblocks on floppy discs
4281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4284 # OS/2's system install, which has a completely different semantic
4285 # ./install, which can be erroneously created by make from ./install.sh.
4286 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4288 if test -z "$INSTALL"; then
4289 if test "${ac_cv_path_install+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297   # Account for people who put trailing slashes in PATH elements.
4298 case $as_dir/ in
4299   ./ | .// | /cC/* | \
4300   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4301   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4302   /usr/ucb/* ) ;;
4303   *)
4304     # OSF1 and SCO ODT 3.0 have their own names for install.
4305     # Don't use installbsd from OSF since it installs stuff as root
4306     # by default.
4307     for ac_prog in ginstall scoinst install; do
4308       for ac_exec_ext in '' $ac_executable_extensions; do
4309         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4310           if test $ac_prog = install &&
4311             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4312             # AIX install.  It has an incompatible calling convention.
4313             :
4314           elif test $ac_prog = install &&
4315             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4316             # program-specific install script used by HP pwplus--don't use.
4317             :
4318           else
4319             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4320             break 3
4321           fi
4322         fi
4323       done
4324     done
4325     ;;
4326 esac
4327 done
4328 IFS=$as_save_IFS
4329
4330
4331 fi
4332   if test "${ac_cv_path_install+set}" = set; then
4333     INSTALL=$ac_cv_path_install
4334   else
4335     # As a last resort, use the slow shell script.  Don't cache a
4336     # value for INSTALL within a source directory, because that will
4337     # break other packages using the cache if that directory is
4338     # removed, or if the value is a relative name.
4339     INSTALL=$ac_install_sh
4340   fi
4341 fi
4342 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6; }
4344
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4348
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4350
4351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4352
4353 # Extract the first word of "mv", so it can be a program name with args.
4354 set dummy mv; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_MV+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   case $MV in
4361   [\\/]* | ?:[\\/]*)
4362   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4363   ;;
4364   *)
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4381   ;;
4382 esac
4383 fi
4384 MV=$ac_cv_path_MV
4385 if test -n "$MV"; then
4386   { echo "$as_me:$LINENO: result: $MV" >&5
4387 echo "${ECHO_T}$MV" >&6; }
4388 else
4389   { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4391 fi
4392
4393
4394 # Extract the first word of "rm", so it can be a program name with args.
4395 set dummy rm; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_REMOVE+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   case $REMOVE in
4402   [\\/]* | ?:[\\/]*)
4403   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4404   ;;
4405   *)
4406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4422   ;;
4423 esac
4424 fi
4425 REMOVE=$ac_cv_path_REMOVE
4426 if test -n "$REMOVE"; then
4427   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4428 echo "${ECHO_T}$REMOVE" >&6; }
4429 else
4430   { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4432 fi
4433
4434
4435 # Extract the first word of "cp", so it can be a program name with args.
4436 set dummy cp; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_path_CP+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   case $CP in
4443   [\\/]* | ?:[\\/]*)
4444   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4445   ;;
4446   *)
4447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452   for ac_exec_ext in '' $ac_executable_extensions; do
4453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4463   ;;
4464 esac
4465 fi
4466 CP=$ac_cv_path_CP
4467 if test -n "$CP"; then
4468   { echo "$as_me:$LINENO: result: $CP" >&5
4469 echo "${ECHO_T}$CP" >&6; }
4470 else
4471   { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4473 fi
4474
4475
4476 # Extract the first word of "sed", so it can be a program name with args.
4477 set dummy sed; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_path_SED+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   case $SED in
4484   [\\/]* | ?:[\\/]*)
4485   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4486   ;;
4487   *)
4488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4504   ;;
4505 esac
4506 fi
4507 SED=$ac_cv_path_SED
4508 if test -n "$SED"; then
4509   { echo "$as_me:$LINENO: result: $SED" >&5
4510 echo "${ECHO_T}$SED" >&6; }
4511 else
4512   { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4515
4516
4517 # Extract the first word of "echo", so it can be a program name with args.
4518 set dummy echo; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_ECHO+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   case $ECHO in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4545   ;;
4546 esac
4547 fi
4548 ECHO=$ac_cv_path_ECHO
4549 if test -n "$ECHO"; then
4550   { echo "$as_me:$LINENO: result: $ECHO" >&5
4551 echo "${ECHO_T}$ECHO" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558 # Extract the first word of "cmp", so it can be a program name with args.
4559 set dummy cmp; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_CMP+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   case $CMP in
4566   [\\/]* | ?:[\\/]*)
4567   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4568   ;;
4569   *)
4570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_exec_ext in '' $ac_executable_extensions; do
4576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4586   ;;
4587 esac
4588 fi
4589 CMP=$ac_cv_path_CMP
4590 if test -n "$CMP"; then
4591   { echo "$as_me:$LINENO: result: $CMP" >&5
4592 echo "${ECHO_T}$CMP" >&6; }
4593 else
4594   { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4597
4598
4599 # Extract the first word of "tbl", so it can be a program name with args.
4600 set dummy tbl; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_path_TBL+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   case $TBL in
4607   [\\/]* | ?:[\\/]*)
4608   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4609   ;;
4610   *)
4611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4627   ;;
4628 esac
4629 fi
4630 TBL=$ac_cv_path_TBL
4631 if test -n "$TBL"; then
4632   { echo "$as_me:$LINENO: result: $TBL" >&5
4633 echo "${ECHO_T}$TBL" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640 # Extract the first word of "ar", so it can be a program name with args.
4641 set dummy ar; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_AR+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   case $AR in
4648   [\\/]* | ?:[\\/]*)
4649   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4650   ;;
4651   *)
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4668   ;;
4669 esac
4670 fi
4671 AR=$ac_cv_path_AR
4672 if test -n "$AR"; then
4673   { echo "$as_me:$LINENO: result: $AR" >&5
4674 echo "${ECHO_T}$AR" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681 # Extract the first word of "openssl", so it can be a program name with args.
4682 set dummy openssl; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_path_OPENSSL+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   case $OPENSSL in
4689   [\\/]* | ?:[\\/]*)
4690   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4691   ;;
4692   *)
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4709   ;;
4710 esac
4711 fi
4712 OPENSSL=$ac_cv_path_OPENSSL
4713 if test -n "$OPENSSL"; then
4714   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4715 echo "${ECHO_T}$OPENSSL" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722 # Extract the first word of "mtx", so it can be a program name with args.
4723 set dummy mtx; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_MTX+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   case $MTX in
4730   [\\/]* | ?:[\\/]*)
4731   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4732   ;;
4733   *)
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739   for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4750   ;;
4751 esac
4752 fi
4753 MTX=$ac_cv_path_MTX
4754 if test -n "$MTX"; then
4755   { echo "$as_me:$LINENO: result: $MTX" >&5
4756 echo "${ECHO_T}$MTX" >&6; }
4757 else
4758   { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4760 fi
4761
4762
4763 # Extract the first word of "dd", so it can be a program name with args.
4764 set dummy dd; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_path_DD+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   case $DD in
4771   [\\/]* | ?:[\\/]*)
4772   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4773   ;;
4774   *)
4775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780   for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4791   ;;
4792 esac
4793 fi
4794 DD=$ac_cv_path_DD
4795 if test -n "$DD"; then
4796   { echo "$as_me:$LINENO: result: $DD" >&5
4797 echo "${ECHO_T}$DD" >&6; }
4798 else
4799   { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803
4804 # Extract the first word of "mkisofs", so it can be a program name with args.
4805 set dummy mkisofs; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_MKISOFS+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   case $MKISOFS in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4832   ;;
4833 esac
4834 fi
4835 MKISOFS=$ac_cv_path_MKISOFS
4836 if test -n "$MKISOFS"; then
4837   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4838 echo "${ECHO_T}$MKISOFS" >&6; }
4839 else
4840   { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4842 fi
4843
4844
4845 # Extract the first word of "python", so it can be a program name with args.
4846 set dummy python; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_path_PYTHON+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   case $PYTHON in
4853   [\\/]* | ?:[\\/]*)
4854   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4855   ;;
4856   *)
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4873   ;;
4874 esac
4875 fi
4876 PYTHON=$ac_cv_path_PYTHON
4877 if test -n "$PYTHON"; then
4878   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4879 echo "${ECHO_T}$PYTHON" >&6; }
4880 else
4881   { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885
4886 # Extract the first word of "growisofs", so it can be a program name with args.
4887 set dummy growisofs; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   case $GROWISOFS in
4894   [\\/]* | ?:[\\/]*)
4895   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4896   ;;
4897   *)
4898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903   for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4914   ;;
4915 esac
4916 fi
4917 GROWISOFS=$ac_cv_path_GROWISOFS
4918 if test -n "$GROWISOFS"; then
4919   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4920 echo "${ECHO_T}$GROWISOFS" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4928 set dummy dvd+rw-mediainfo; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   case $DVDRWMEDIAINFO in
4935   [\\/]* | ?:[\\/]*)
4936   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4937   ;;
4938   *)
4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4955   ;;
4956 esac
4957 fi
4958 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4959 if test -n "$DVDRWMEDIAINFO"; then
4960   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4961 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4962 else
4963   { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4965 fi
4966
4967
4968 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4969 set dummy dvd+rw-format; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   case $DVDRWFORMAT in
4976   [\\/]* | ?:[\\/]*)
4977   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4978   ;;
4979   *)
4980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4996   ;;
4997 esac
4998 fi
4999 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5000 if test -n "$DVDRWFORMAT"; then
5001   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5002 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5003 else
5004   { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5006 fi
5007
5008
5009 # Extract the first word of "pkg-config", so it can be a program name with args.
5010 set dummy pkg-config; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case $PKGCONFIG in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5037   ;;
5038 esac
5039 fi
5040 PKGCONFIG=$ac_cv_path_PKGCONFIG
5041 if test -n "$PKGCONFIG"; then
5042   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5043 echo "${ECHO_T}$PKGCONFIG" >&6; }
5044 else
5045   { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5047 fi
5048
5049
5050 # Extract the first word of "qmake", so it can be a program name with args.
5051 set dummy qmake; ac_word=$2
5052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054 if test "${ac_cv_path_QMAKE+set}" = set; then
5055   echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057   case $QMAKE in
5058   [\\/]* | ?:[\\/]*)
5059   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5060   ;;
5061   *)
5062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067   for ac_exec_ext in '' $ac_executable_extensions; do
5068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5078   ;;
5079 esac
5080 fi
5081 QMAKE=$ac_cv_path_QMAKE
5082 if test -n "$QMAKE"; then
5083   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5084 echo "${ECHO_T}$QMAKE" >&6; }
5085 else
5086   { echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6; }
5088 fi
5089
5090
5091 # Extract the first word of "gmake", so it can be a program name with args.
5092 set dummy gmake; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_path_GMAKE+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   case $GMAKE in
5099   [\\/]* | ?:[\\/]*)
5100   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5101   ;;
5102   *)
5103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5119   ;;
5120 esac
5121 fi
5122 GMAKE=$ac_cv_path_GMAKE
5123 if test -n "$GMAKE"; then
5124   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5125 echo "${ECHO_T}$GMAKE" >&6; }
5126 else
5127   { echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6; }
5129 fi
5130
5131
5132
5133 if test "x$WXCONFIG" = x; then
5134    WXCONFIG=wx-config
5135 fi
5136 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5137 set dummy ${WXCONFIG}; ac_word=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   case $WXCONFIG in
5144   [\\/]* | ?:[\\/]*)
5145   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5146   ;;
5147   *)
5148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5164   ;;
5165 esac
5166 fi
5167 WXCONFIG=$ac_cv_path_WXCONFIG
5168 if test -n "$WXCONFIG"; then
5169   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5170 echo "${ECHO_T}$WXCONFIG" >&6; }
5171 else
5172   { echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6; }
5174 fi
5175
5176
5177
5178 # Extract the first word of "cdrecord", so it can be a program name with args.
5179 set dummy cdrecord; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_CDRECORD+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $CDRECORD in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5206   ;;
5207 esac
5208 fi
5209 CDRECORD=$ac_cv_path_CDRECORD
5210 if test -n "$CDRECORD"; then
5211   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5212 echo "${ECHO_T}$CDRECORD" >&6; }
5213 else
5214   { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5216 fi
5217
5218
5219 # Extract the first word of "pidof", so it can be a program name with args.
5220 set dummy pidof; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_PIDOF+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   case $PIDOF in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5247   ;;
5248 esac
5249 fi
5250 PIDOF=$ac_cv_path_PIDOF
5251 if test -n "$PIDOF"; then
5252   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5253 echo "${ECHO_T}$PIDOF" >&6; }
5254 else
5255   { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5257 fi
5258
5259
5260 for ac_prog in gawk mawk nawk awk
5261 do
5262   # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5266 if test "${ac_cv_prog_AWK+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   if test -n "$AWK"; then
5270   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277   for ac_exec_ext in '' $ac_executable_extensions; do
5278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279     ac_cv_prog_AWK="$ac_prog"
5280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 AWK=$ac_cv_prog_AWK
5290 if test -n "$AWK"; then
5291   { echo "$as_me:$LINENO: result: $AWK" >&5
5292 echo "${ECHO_T}$AWK" >&6; }
5293 else
5294   { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5296 fi
5297
5298
5299   test -n "$AWK" && break
5300 done
5301
5302 # Some AWK programs fail, so test it and warn the user
5303 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5304       { if ((prog == $2) || (("(" prog ")") == $2) ||
5305       (("" prog "") == $2) ||
5306       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5307 else
5308   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5309    The regex engine of $AWK is too broken to be used you
5310    might want to install GNU AWK.
5311    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5312 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5313    The regex engine of $AWK is too broken to be used you
5314    might want to install GNU AWK.
5315    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5316    { (exit 1); exit 1; }; }
5317 fi
5318 THE_AWK=$AWK
5319 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5320 set dummy $THE_AWK; ac_word=$2
5321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5323 if test "${ac_cv_path_AWK+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   case $AWK in
5327   [\\/]* | ?:[\\/]*)
5328   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5329   ;;
5330   *)
5331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336   for ac_exec_ext in '' $ac_executable_extensions; do
5337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343 done
5344 IFS=$as_save_IFS
5345
5346   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5347   ;;
5348 esac
5349 fi
5350 AWK=$ac_cv_path_AWK
5351 if test -n "$AWK"; then
5352   { echo "$as_me:$LINENO: result: $AWK" >&5
5353 echo "${ECHO_T}$AWK" >&6; }
5354 else
5355   { echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6; }
5357 fi
5358
5359
5360
5361
5362 test -n "$ARFLAG" || ARFLAGS="cr"
5363
5364
5365 MAKE_SHELL=/bin/sh
5366
5367
5368
5369
5370
5371
5372
5373 use_libtool=yes
5374 # Check whether --enable-libtool was given.
5375 if test "${enable_libtool+set}" = set; then
5376   enableval=$enable_libtool;
5377        if test x$enableval = xno; then
5378           use_libtool=no
5379        fi
5380
5381
5382 fi
5383
5384 case `pwd` in
5385   *\ * | *\     *)
5386     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5387 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5388 esac
5389
5390
5391
5392 macro_version='2.2.6'
5393 macro_revision='1.3012'
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 ltmain="$ac_aux_dir/ltmain.sh"
5408
5409 # Make sure we can run config.sub.
5410 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5411   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5412 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5413    { (exit 1); exit 1; }; }
5414
5415 { echo "$as_me:$LINENO: checking build system type" >&5
5416 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5417 if test "${ac_cv_build+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   ac_build_alias=$build_alias
5421 test "x$ac_build_alias" = x &&
5422   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5423 test "x$ac_build_alias" = x &&
5424   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5426    { (exit 1); exit 1; }; }
5427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5428   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5429 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5430    { (exit 1); exit 1; }; }
5431
5432 fi
5433 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5434 echo "${ECHO_T}$ac_cv_build" >&6; }
5435 case $ac_cv_build in
5436 *-*-*) ;;
5437 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5438 echo "$as_me: error: invalid value of canonical build" >&2;}
5439    { (exit 1); exit 1; }; };;
5440 esac
5441 build=$ac_cv_build
5442 ac_save_IFS=$IFS; IFS='-'
5443 set x $ac_cv_build
5444 shift
5445 build_cpu=$1
5446 build_vendor=$2
5447 shift; shift
5448 # Remember, the first character of IFS is used to create $*,
5449 # except with old shells:
5450 build_os=$*
5451 IFS=$ac_save_IFS
5452 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5453
5454
5455 { echo "$as_me:$LINENO: checking host system type" >&5
5456 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5457 if test "${ac_cv_host+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   if test "x$host_alias" = x; then
5461   ac_cv_host=$ac_cv_build
5462 else
5463   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5464     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5465 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5466    { (exit 1); exit 1; }; }
5467 fi
5468
5469 fi
5470 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5471 echo "${ECHO_T}$ac_cv_host" >&6; }
5472 case $ac_cv_host in
5473 *-*-*) ;;
5474 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5475 echo "$as_me: error: invalid value of canonical host" >&2;}
5476    { (exit 1); exit 1; }; };;
5477 esac
5478 host=$ac_cv_host
5479 ac_save_IFS=$IFS; IFS='-'
5480 set x $ac_cv_host
5481 shift
5482 host_cpu=$1
5483 host_vendor=$2
5484 shift; shift
5485 # Remember, the first character of IFS is used to create $*,
5486 # except with old shells:
5487 host_os=$*
5488 IFS=$ac_save_IFS
5489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5490
5491
5492 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5493 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5494 if test "${ac_cv_path_SED+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5498      for ac_i in 1 2 3 4 5 6 7; do
5499        ac_script="$ac_script$as_nl$ac_script"
5500      done
5501      echo "$ac_script" | sed 99q >conftest.sed
5502      $as_unset ac_script || ac_script=
5503      # Extract the first word of "sed gsed" to use in msg output
5504 if test -z "$SED"; then
5505 set dummy sed gsed; ac_prog_name=$2
5506 if test "${ac_cv_path_SED+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   ac_path_SED_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_prog in sed gsed; do
5517   for ac_exec_ext in '' $ac_executable_extensions; do
5518     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5519     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520     # Check for GNU ac_path_SED and select it if it is found.
5521   # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in
5523 *GNU*)
5524   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5525 *)
5526   ac_count=0
5527   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5528   while :
5529   do
5530     cat "conftest.in" "conftest.in" >"conftest.tmp"
5531     mv "conftest.tmp" "conftest.in"
5532     cp "conftest.in" "conftest.nl"
5533     echo '' >> "conftest.nl"
5534     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536     ac_count=`expr $ac_count + 1`
5537     if test $ac_count -gt ${ac_path_SED_max-0}; then
5538       # Best one so far, save it but keep looking for a better one
5539       ac_cv_path_SED="$ac_path_SED"
5540       ac_path_SED_max=$ac_count
5541     fi
5542     # 10*(2^10) chars as input seems more than enough
5543     test $ac_count -gt 10 && break
5544   done
5545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 esac
5547
5548
5549     $ac_path_SED_found && break 3
5550   done
5551 done
5552
5553 done
5554 IFS=$as_save_IFS
5555
5556
5557 fi
5558
5559 SED="$ac_cv_path_SED"
5560 if test -z "$SED"; then
5561   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5562 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5563    { (exit 1); exit 1; }; }
5564 fi
5565
5566 else
5567   ac_cv_path_SED=$SED
5568 fi
5569
5570 fi
5571 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5572 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5573  SED="$ac_cv_path_SED"
5574   rm -f conftest.sed
5575
5576 test -z "$SED" && SED=sed
5577 Xsed="$SED -e 1s/^X//"
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589 { echo "$as_me:$LINENO: checking for fgrep" >&5
5590 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595    then ac_cv_path_FGREP="$GREP -F"
5596    else
5597      # Extract the first word of "fgrep" to use in msg output
5598 if test -z "$FGREP"; then
5599 set dummy fgrep; ac_prog_name=$2
5600 if test "${ac_cv_path_FGREP+set}" = set; then
5601   echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603   ac_path_FGREP_found=false
5604 # Loop through the user's path and test for each of PROGNAME-LIST
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610   for ac_prog in fgrep; do
5611   for ac_exec_ext in '' $ac_executable_extensions; do
5612     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5613     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5614     # Check for GNU ac_path_FGREP and select it if it is found.
5615   # Check for GNU $ac_path_FGREP
5616 case `"$ac_path_FGREP" --version 2>&1` in
5617 *GNU*)
5618   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5619 *)
5620   ac_count=0
5621   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5622   while :
5623   do
5624     cat "conftest.in" "conftest.in" >"conftest.tmp"
5625     mv "conftest.tmp" "conftest.in"
5626     cp "conftest.in" "conftest.nl"
5627     echo 'FGREP' >> "conftest.nl"
5628     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630     ac_count=`expr $ac_count + 1`
5631     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5632       # Best one so far, save it but keep looking for a better one
5633       ac_cv_path_FGREP="$ac_path_FGREP"
5634       ac_path_FGREP_max=$ac_count
5635     fi
5636     # 10*(2^10) chars as input seems more than enough
5637     test $ac_count -gt 10 && break
5638   done
5639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5640 esac
5641
5642
5643     $ac_path_FGREP_found && break 3
5644   done
5645 done
5646
5647 done
5648 IFS=$as_save_IFS
5649
5650
5651 fi
5652
5653 FGREP="$ac_cv_path_FGREP"
5654 if test -z "$FGREP"; then
5655   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5656 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5657    { (exit 1); exit 1; }; }
5658 fi
5659
5660 else
5661   ac_cv_path_FGREP=$FGREP
5662 fi
5663
5664
5665    fi
5666 fi
5667 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5668 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5669  FGREP="$ac_cv_path_FGREP"
5670
5671
5672 test -z "$GREP" && GREP=grep
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 # Check whether --with-gnu-ld was given.
5693 if test "${with_gnu_ld+set}" = set; then
5694   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5695 else
5696   with_gnu_ld=no
5697 fi
5698
5699 ac_prog=ld
5700 if test "$GCC" = yes; then
5701   # Check if gcc -print-prog-name=ld gives a path.
5702   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5703 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5704   case $host in
5705   *-*-mingw*)
5706     # gcc leaves a trailing carriage return which upsets mingw
5707     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5708   *)
5709     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5710   esac
5711   case $ac_prog in
5712     # Accept absolute paths.
5713     [\\/]* | ?:[\\/]*)
5714       re_direlt='/[^/][^/]*/\.\./'
5715       # Canonicalize the pathname of ld
5716       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5719       done
5720       test -z "$LD" && LD="$ac_prog"
5721       ;;
5722   "")
5723     # If it fails, then pretend we aren't using GCC.
5724     ac_prog=ld
5725     ;;
5726   *)
5727     # If it is relative, then search for the first ld in PATH.
5728     with_gnu_ld=unknown
5729     ;;
5730   esac
5731 elif test "$with_gnu_ld" = yes; then
5732   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5734 else
5735   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5737 fi
5738 if test "${lt_cv_path_LD+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   if test -z "$LD"; then
5742   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5743   for ac_dir in $PATH; do
5744     IFS="$lt_save_ifs"
5745     test -z "$ac_dir" && ac_dir=.
5746     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5747       lt_cv_path_LD="$ac_dir/$ac_prog"
5748       # Check to see if the program is GNU ld.  I'd rather use --version,
5749       # but apparently some variants of GNU ld only accept -v.
5750       # Break only if it was the GNU/non-GNU ld that we prefer.
5751       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5752       *GNU* | *'with BFD'*)
5753         test "$with_gnu_ld" != no && break
5754         ;;
5755       *)
5756         test "$with_gnu_ld" != yes && break
5757         ;;
5758       esac
5759     fi
5760   done
5761   IFS="$lt_save_ifs"
5762 else
5763   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5764 fi
5765 fi
5766
5767 LD="$lt_cv_path_LD"
5768 if test -n "$LD"; then
5769   { echo "$as_me:$LINENO: result: $LD" >&5
5770 echo "${ECHO_T}$LD" >&6; }
5771 else
5772   { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5774 fi
5775 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5776 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5777    { (exit 1); exit 1; }; }
5778 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5779 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5780 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786   lt_cv_prog_gnu_ld=yes
5787   ;;
5788 *)
5789   lt_cv_prog_gnu_ld=no
5790   ;;
5791 esac
5792 fi
5793 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5794 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5795 with_gnu_ld=$lt_cv_prog_gnu_ld
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5806 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5807 if test "${lt_cv_path_NM+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if test -n "$NM"; then
5811   # Let the user override the test.
5812   lt_cv_path_NM="$NM"
5813 else
5814   lt_nm_to_check="${ac_tool_prefix}nm"
5815   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5816     lt_nm_to_check="$lt_nm_to_check nm"
5817   fi
5818   for lt_tmp_nm in $lt_nm_to_check; do
5819     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5820     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5821       IFS="$lt_save_ifs"
5822       test -z "$ac_dir" && ac_dir=.
5823       tmp_nm="$ac_dir/$lt_tmp_nm"
5824       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5825         # Check to see if the nm accepts a BSD-compat flag.
5826         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5827         #   nm: unknown option "B" ignored
5828         # Tru64's nm complains that /dev/null is an invalid object file
5829         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5830         */dev/null* | *'Invalid file or object type'*)
5831           lt_cv_path_NM="$tmp_nm -B"
5832           break
5833           ;;
5834         *)
5835           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5836           */dev/null*)
5837             lt_cv_path_NM="$tmp_nm -p"
5838             break
5839             ;;
5840           *)
5841             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5842             continue # so that we can try to find one that supports BSD flags
5843             ;;
5844           esac
5845           ;;
5846         esac
5847       fi
5848     done
5849     IFS="$lt_save_ifs"
5850   done
5851   : ${lt_cv_path_NM=no}
5852 fi
5853 fi
5854 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5855 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5856 if test "$lt_cv_path_NM" != "no"; then
5857   NM="$lt_cv_path_NM"
5858 else
5859   # Didn't find any BSD compatible name lister, look for dumpbin.
5860   if test -n "$ac_tool_prefix"; then
5861   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5862   do
5863     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -n "$DUMPBIN"; then
5871   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 DUMPBIN=$ac_cv_prog_DUMPBIN
5891 if test -n "$DUMPBIN"; then
5892   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5893 echo "${ECHO_T}$DUMPBIN" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900     test -n "$DUMPBIN" && break
5901   done
5902 fi
5903 if test -z "$DUMPBIN"; then
5904   ac_ct_DUMPBIN=$DUMPBIN
5905   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5906 do
5907   # Extract the first word of "$ac_prog", so it can be a program name with args.
5908 set dummy $ac_prog; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   if test -n "$ac_ct_DUMPBIN"; then
5915   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5935 if test -n "$ac_ct_DUMPBIN"; then
5936   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5937 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5938 else
5939   { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5941 fi
5942
5943
5944   test -n "$ac_ct_DUMPBIN" && break
5945 done
5946
5947   if test "x$ac_ct_DUMPBIN" = x; then
5948     DUMPBIN=":"
5949   else
5950     case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5953 whose name does not start with the host triplet.  If you think this
5954 configuration is useful to you, please write to autoconf@gnu.org." >&5
5955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5956 whose name does not start with the host triplet.  If you think this
5957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5958 ac_tool_warned=yes ;;
5959 esac
5960     DUMPBIN=$ac_ct_DUMPBIN
5961   fi
5962 fi
5963
5964
5965   if test "$DUMPBIN" != ":"; then
5966     NM="$DUMPBIN"
5967   fi
5968 fi
5969 test -z "$NM" && NM=nm
5970
5971
5972
5973
5974
5975
5976 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5977 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5978 if test "${lt_cv_nm_interface+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   lt_cv_nm_interface="BSD nm"
5982   echo "int some_variable = 0;" > conftest.$ac_ext
5983   (eval echo "\"\$as_me:5983: $ac_compile\"" >&5)
5984   (eval "$ac_compile" 2>conftest.err)
5985   cat conftest.err >&5
5986   (eval echo "\"\$as_me:5986: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5987   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5988   cat conftest.err >&5
5989   (eval echo "\"\$as_me:5989: output\"" >&5)
5990   cat conftest.out >&5
5991   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5992     lt_cv_nm_interface="MS dumpbin"
5993   fi
5994   rm -f conftest*
5995 fi
5996 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5997 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5998
5999 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6000 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6001 LN_S=$as_ln_s
6002 if test "$LN_S" = "ln -s"; then
6003   { echo "$as_me:$LINENO: result: yes" >&5
6004 echo "${ECHO_T}yes" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6007 echo "${ECHO_T}no, using $LN_S" >&6; }
6008 fi
6009
6010 # find the maximum length of command line arguments
6011 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6012 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6013 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016     i=0
6017   teststring="ABCD"
6018
6019   case $build_os in
6020   msdosdjgpp*)
6021     # On DJGPP, this test can blow up pretty badly due to problems in libc
6022     # (any single argument exceeding 2000 bytes causes a buffer overrun
6023     # during glob expansion).  Even if it were fixed, the result of this
6024     # check would be larger than it should be.
6025     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6026     ;;
6027
6028   gnu*)
6029     # Under GNU Hurd, this test is not required because there is
6030     # no limit to the length of command line arguments.
6031     # Libtool will interpret -1 as no limit whatsoever
6032     lt_cv_sys_max_cmd_len=-1;
6033     ;;
6034
6035   cygwin* | mingw* | cegcc*)
6036     # On Win9x/ME, this test blows up -- it succeeds, but takes
6037     # about 5 minutes as the teststring grows exponentially.
6038     # Worse, since 9x/ME are not pre-emptively multitasking,
6039     # you end up with a "frozen" computer, even though with patience
6040     # the test eventually succeeds (with a max line length of 256k).
6041     # Instead, let's just punt: use the minimum linelength reported by
6042     # all of the supported platforms: 8192 (on NT/2K/XP).
6043     lt_cv_sys_max_cmd_len=8192;
6044     ;;
6045
6046   amigaos*)
6047     # On AmigaOS with pdksh, this test takes hours, literally.
6048     # So we just punt and use a minimum line length of 8192.
6049     lt_cv_sys_max_cmd_len=8192;
6050     ;;
6051
6052   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6053     # This has been around since 386BSD, at least.  Likely further.
6054     if test -x /sbin/sysctl; then
6055       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6056     elif test -x /usr/sbin/sysctl; then
6057       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6058     else
6059       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6060     fi
6061     # And add a safety zone
6062     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6063     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6064     ;;
6065
6066   interix*)
6067     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6068     lt_cv_sys_max_cmd_len=196608
6069     ;;
6070
6071   osf*)
6072     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6073     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6074     # nice to cause kernel panics so lets avoid the loop below.
6075     # First set a reasonable default.
6076     lt_cv_sys_max_cmd_len=16384
6077     #
6078     if test -x /sbin/sysconfig; then
6079       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6080         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6081       esac
6082     fi
6083     ;;
6084   sco3.2v5*)
6085     lt_cv_sys_max_cmd_len=102400
6086     ;;
6087   sysv5* | sco5v6* | sysv4.2uw2*)
6088     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6089     if test -n "$kargmax"; then
6090       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6091     else
6092       lt_cv_sys_max_cmd_len=32768
6093     fi
6094     ;;
6095   *)
6096     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6097     if test -n "$lt_cv_sys_max_cmd_len"; then
6098       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6099       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6100     else
6101       # Make teststring a little bigger before we do anything with it.
6102       # a 1K string should be a reasonable start.
6103       for i in 1 2 3 4 5 6 7 8 ; do
6104         teststring=$teststring$teststring
6105       done
6106       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6107       # If test is not a shell built-in, we'll probably end up computing a
6108       # maximum length that is only half of the actual maximum length, but
6109       # we can't tell.
6110       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6111                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6112               test $i != 17 # 1/2 MB should be enough
6113       do
6114         i=`expr $i + 1`
6115         teststring=$teststring$teststring
6116       done
6117       # Only check the string length outside the loop.
6118       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6119       teststring=
6120       # Add a significant safety factor because C++ compilers can tack on
6121       # massive amounts of additional arguments before passing them to the
6122       # linker.  It appears as though 1/2 is a usable value.
6123       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6124     fi
6125     ;;
6126   esac
6127
6128 fi
6129
6130 if test -n $lt_cv_sys_max_cmd_len ; then
6131   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6132 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6133 else
6134   { echo "$as_me:$LINENO: result: none" >&5
6135 echo "${ECHO_T}none" >&6; }
6136 fi
6137 max_cmd_len=$lt_cv_sys_max_cmd_len
6138
6139
6140
6141
6142
6143
6144 : ${CP="cp -f"}
6145 : ${MV="mv -f"}
6146 : ${RM="rm -f"}
6147
6148 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6149 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6150 # Try some XSI features
6151 xsi_shell=no
6152 ( _lt_dummy="a/b/c"
6153   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6154       = c,a/b,, \
6155     && eval 'test $(( 1 + 1 )) -eq 2 \
6156     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6157   && xsi_shell=yes
6158 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6159 echo "${ECHO_T}$xsi_shell" >&6; }
6160
6161
6162 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6163 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6164 lt_shell_append=no
6165 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6166     >/dev/null 2>&1 \
6167   && lt_shell_append=yes
6168 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6169 echo "${ECHO_T}$lt_shell_append" >&6; }
6170
6171
6172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6173   lt_unset=unset
6174 else
6175   lt_unset=false
6176 fi
6177
6178
6179
6180
6181
6182 # test EBCDIC or ASCII
6183 case `echo X|tr X '\101'` in
6184  A) # ASCII based system
6185     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6186   lt_SP2NL='tr \040 \012'
6187   lt_NL2SP='tr \015\012 \040\040'
6188   ;;
6189  *) # EBCDIC based system
6190   lt_SP2NL='tr \100 \n'
6191   lt_NL2SP='tr \r\n \100\100'
6192   ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6204 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6205 if test "${lt_cv_ld_reload_flag+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   lt_cv_ld_reload_flag='-r'
6209 fi
6210 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6211 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6212 reload_flag=$lt_cv_ld_reload_flag
6213 case $reload_flag in
6214 "" | " "*) ;;
6215 *) reload_flag=" $reload_flag" ;;
6216 esac
6217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6218 case $host_os in
6219   darwin*)
6220     if test "$GCC" = yes; then
6221       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6222     else
6223       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6224     fi
6225     ;;
6226 esac
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test -n "$ac_tool_prefix"; then
6237   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   if test -n "$OBJDUMP"; then
6245   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252   for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 OBJDUMP=$ac_cv_prog_OBJDUMP
6265 if test -n "$OBJDUMP"; then
6266   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6267 echo "${ECHO_T}$OBJDUMP" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_OBJDUMP"; then
6276   ac_ct_OBJDUMP=$OBJDUMP
6277   # Extract the first word of "objdump", so it can be a program name with args.
6278 set dummy objdump; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   if test -n "$ac_ct_OBJDUMP"; then
6285   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6305 if test -n "$ac_ct_OBJDUMP"; then
6306   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6307 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6308 else
6309   { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313   if test "x$ac_ct_OBJDUMP" = x; then
6314     OBJDUMP="false"
6315   else
6316     case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6319 whose name does not start with the host triplet.  If you think this
6320 configuration is useful to you, please write to autoconf@gnu.org." >&5
6321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet.  If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326     OBJDUMP=$ac_ct_OBJDUMP
6327   fi
6328 else
6329   OBJDUMP="$ac_cv_prog_OBJDUMP"
6330 fi
6331
6332 test -z "$OBJDUMP" && OBJDUMP=objdump
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6343 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6344 if test "${lt_cv_deplibs_check_method+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   lt_cv_file_magic_cmd='$MAGIC_CMD'
6348 lt_cv_file_magic_test_file=
6349 lt_cv_deplibs_check_method='unknown'
6350 # Need to set the preceding variable on all platforms that support
6351 # interlibrary dependencies.
6352 # 'none' -- dependencies not supported.
6353 # `unknown' -- same as none, but documents that we really don't know.
6354 # 'pass_all' -- all dependencies passed with no checks.
6355 # 'test_compile' -- check by making test program.
6356 # 'file_magic [[regex]]' -- check by looking for files in library path
6357 # which responds to the $file_magic_cmd with a given extended regex.
6358 # If you have `file' or equivalent on your system and you're not sure
6359 # whether `pass_all' will *always* work, you probably want this one.
6360
6361 case $host_os in
6362 aix[4-9]*)
6363   lt_cv_deplibs_check_method=pass_all
6364   ;;
6365
6366 beos*)
6367   lt_cv_deplibs_check_method=pass_all
6368   ;;
6369
6370 bsdi[45]*)
6371   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372   lt_cv_file_magic_cmd='/usr/bin/file -L'
6373   lt_cv_file_magic_test_file=/shlib/libc.so
6374   ;;
6375
6376 cygwin*)
6377   # func_win32_libid is a shell function defined in ltmain.sh
6378   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379   lt_cv_file_magic_cmd='func_win32_libid'
6380   ;;
6381
6382 mingw* | pw32*)
6383   # Base MSYS/MinGW do not provide the 'file' command needed by
6384   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385   # unless we find 'file', for example because we are cross-compiling.
6386   if ( file / ) >/dev/null 2>&1; then
6387     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388     lt_cv_file_magic_cmd='func_win32_libid'
6389   else
6390     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6391     lt_cv_file_magic_cmd='$OBJDUMP -f'
6392   fi
6393   ;;
6394
6395 cegcc)
6396   # use the weaker test based on 'objdump'. See mingw*.
6397   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398   lt_cv_file_magic_cmd='$OBJDUMP -f'
6399   ;;
6400
6401 darwin* | rhapsody*)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404
6405 freebsd* | dragonfly*)
6406   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407     case $host_cpu in
6408     i*86 )
6409       # Not sure whether the presence of OpenBSD here was a mistake.
6410       # Let's accept both of them until this is cleared up.
6411       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412       lt_cv_file_magic_cmd=/usr/bin/file
6413       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6414       ;;
6415     esac
6416   else
6417     lt_cv_deplibs_check_method=pass_all
6418   fi
6419   ;;
6420
6421 gnu*)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 hpux10.20* | hpux11*)
6426   lt_cv_file_magic_cmd=/usr/bin/file
6427   case $host_cpu in
6428   ia64*)
6429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6430     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6431     ;;
6432   hppa*64*)
6433     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]'
6434     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6435     ;;
6436   *)
6437     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6438     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6439     ;;
6440   esac
6441   ;;
6442
6443 interix[3-9]*)
6444   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6445   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6446   ;;
6447
6448 irix5* | irix6* | nonstopux*)
6449   case $LD in
6450   *-32|*"-32 ") libmagic=32-bit;;
6451   *-n32|*"-n32 ") libmagic=N32;;
6452   *-64|*"-64 ") libmagic=64-bit;;
6453   *) libmagic=never-match;;
6454   esac
6455   lt_cv_deplibs_check_method=pass_all
6456   ;;
6457
6458 # This must be Linux ELF.
6459 linux* | k*bsd*-gnu)
6460   lt_cv_deplibs_check_method=pass_all
6461   ;;
6462
6463 netbsd*)
6464   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6465     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6466   else
6467     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6468   fi
6469   ;;
6470
6471 newos6*)
6472   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6473   lt_cv_file_magic_cmd=/usr/bin/file
6474   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6475   ;;
6476
6477 *nto* | *qnx*)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 openbsd*)
6482   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6484   else
6485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6486   fi
6487   ;;
6488
6489 osf3* | osf4* | osf5*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 rdos*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496
6497 solaris*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 sysv4 | sysv4.3*)
6506   case $host_vendor in
6507   motorola)
6508     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]'
6509     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6510     ;;
6511   ncr)
6512     lt_cv_deplibs_check_method=pass_all
6513     ;;
6514   sequent)
6515     lt_cv_file_magic_cmd='/bin/file'
6516     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6517     ;;
6518   sni)
6519     lt_cv_file_magic_cmd='/bin/file'
6520     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6521     lt_cv_file_magic_test_file=/lib/libc.so
6522     ;;
6523   siemens)
6524     lt_cv_deplibs_check_method=pass_all
6525     ;;
6526   pc)
6527     lt_cv_deplibs_check_method=pass_all
6528     ;;
6529   esac
6530   ;;
6531
6532 tpf*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535 esac
6536
6537 fi
6538 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6539 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6540 file_magic_cmd=$lt_cv_file_magic_cmd
6541 deplibs_check_method=$lt_cv_deplibs_check_method
6542 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 if test -n "$ac_tool_prefix"; then
6556   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}ar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_prog_AR+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   if test -n "$AR"; then
6564   ac_cv_prog_AR="$AR" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569   IFS=$as_save_IFS
6570   test -z "$as_dir" && as_dir=.
6571   for ac_exec_ext in '' $ac_executable_extensions; do
6572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573     ac_cv_prog_AR="${ac_tool_prefix}ar"
6574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575     break 2
6576   fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 AR=$ac_cv_prog_AR
6584 if test -n "$AR"; then
6585   { echo "$as_me:$LINENO: result: $AR" >&5
6586 echo "${ECHO_T}$AR" >&6; }
6587 else
6588   { echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6; }
6590 fi
6591
6592
6593 fi
6594 if test -z "$ac_cv_prog_AR"; then
6595   ac_ct_AR=$AR
6596   # Extract the first word of "ar", so it can be a program name with args.
6597 set dummy ar; ac_word=$2
6598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603   if test -n "$ac_ct_AR"; then
6604   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_prog_ac_ct_AR="ar"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624 if test -n "$ac_ct_AR"; then
6625   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6626 echo "${ECHO_T}$ac_ct_AR" >&6; }
6627 else
6628   { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6630 fi
6631
6632   if test "x$ac_ct_AR" = x; then
6633     AR="false"
6634   else
6635     case $cross_compiling:$ac_tool_warned in
6636 yes:)
6637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet.  If you think this
6639 configuration is useful to you, please write to autoconf@gnu.org." >&5
6640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet.  If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643 ac_tool_warned=yes ;;
6644 esac
6645     AR=$ac_ct_AR
6646   fi
6647 else
6648   AR="$ac_cv_prog_AR"
6649 fi
6650
6651 test -z "$AR" && AR=ar
6652 test -z "$AR_FLAGS" && AR_FLAGS=cru
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 if test -n "$ac_tool_prefix"; then
6665   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}strip; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_STRIP+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   if test -n "$STRIP"; then
6673   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 STRIP=$ac_cv_prog_STRIP
6693 if test -n "$STRIP"; then
6694   { echo "$as_me:$LINENO: result: $STRIP" >&5
6695 echo "${ECHO_T}$STRIP" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701
6702 fi
6703 if test -z "$ac_cv_prog_STRIP"; then
6704   ac_ct_STRIP=$STRIP
6705   # Extract the first word of "strip", so it can be a program name with args.
6706 set dummy strip; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   if test -n "$ac_ct_STRIP"; then
6713   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720   for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_prog_ac_ct_STRIP="strip"
6723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733 if test -n "$ac_ct_STRIP"; then
6734   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6735 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6736 else
6737   { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6739 fi
6740
6741   if test "x$ac_ct_STRIP" = x; then
6742     STRIP=":"
6743   else
6744     case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet.  If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&5
6749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet.  If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754     STRIP=$ac_ct_STRIP
6755   fi
6756 else
6757   STRIP="$ac_cv_prog_STRIP"
6758 fi
6759
6760 test -z "$STRIP" && STRIP=:
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_prog_RANLIB+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   if test -n "$RANLIB"; then
6776   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783   for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 RANLIB=$ac_cv_prog_RANLIB
6796 if test -n "$RANLIB"; then
6797   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6798 echo "${ECHO_T}$RANLIB" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_RANLIB"; then
6807   ac_ct_RANLIB=$RANLIB
6808   # Extract the first word of "ranlib", so it can be a program name with args.
6809 set dummy ranlib; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   if test -n "$ac_ct_RANLIB"; then
6816   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_ac_ct_RANLIB="ranlib"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836 if test -n "$ac_ct_RANLIB"; then
6837   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6838 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_RANLIB" = x; then
6845     RANLIB=":"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6850 whose name does not start with the host triplet.  If you think this
6851 configuration is useful to you, please write to autoconf@gnu.org." >&5
6852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet.  If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857     RANLIB=$ac_ct_RANLIB
6858   fi
6859 else
6860   RANLIB="$ac_cv_prog_RANLIB"
6861 fi
6862
6863 test -z "$RANLIB" && RANLIB=:
6864
6865
6866
6867
6868
6869
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6874
6875 if test -n "$RANLIB"; then
6876   case $host_os in
6877   openbsd*)
6878     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879     ;;
6880   *)
6881     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882     ;;
6883   esac
6884   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885 fi
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920 # If no C compiler was specified, use CC.
6921 LTCC=${LTCC-"$CC"}
6922
6923 # If no C compiler flags were specified, use CFLAGS.
6924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6925
6926 # Allow CC to be a program name with arguments.
6927 compiler=$CC
6928
6929
6930 # Check for command to grab the raw symbol name followed by C symbol from nm.
6931 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936
6937 # These are sane defaults that work on at least a few old systems.
6938 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6939
6940 # Character class describing NM global symbol codes.
6941 symcode='[BCDEGRST]'
6942
6943 # Regexp to match symbols that can be accessed directly from C.
6944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6945
6946 # Define system-specific variables.
6947 case $host_os in
6948 aix*)
6949   symcode='[BCDT]'
6950   ;;
6951 cygwin* | mingw* | pw32* | cegcc*)
6952   symcode='[ABCDGISTW]'
6953   ;;
6954 hpux*)
6955   if test "$host_cpu" = ia64; then
6956     symcode='[ABCDEGRST]'
6957   fi
6958   ;;
6959 irix* | nonstopux*)
6960   symcode='[BCDEGRST]'
6961   ;;
6962 osf*)
6963   symcode='[BCDEGQRST]'
6964   ;;
6965 solaris*)
6966   symcode='[BDRT]'
6967   ;;
6968 sco3.2v5*)
6969   symcode='[DT]'
6970   ;;
6971 sysv4.2uw2*)
6972   symcode='[DT]'
6973   ;;
6974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6975   symcode='[ABDT]'
6976   ;;
6977 sysv4)
6978   symcode='[DFNSTU]'
6979   ;;
6980 esac
6981
6982 # If we're using GNU nm, then use its standard symbol codes.
6983 case `$NM -V 2>&1` in
6984 *GNU* | *'with BFD'*)
6985   symcode='[ABCDGIRSTW]' ;;
6986 esac
6987
6988 # Transform an extracted symbol line into a proper C declaration.
6989 # Some systems (esp. on ia64) link data and code symbols differently,
6990 # so use this general approach.
6991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6992
6993 # Transform an extracted symbol line into symbol name and symbol address
6994 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6995 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'"
6996
6997 # Handle CRLF in mingw tool chain
6998 opt_cr=
6999 case $build_os in
7000 mingw*)
7001   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7002   ;;
7003 esac
7004
7005 # Try without a prefix underscore, then with it.
7006 for ac_symprfx in "" "_"; do
7007
7008   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7009   symxfrm="\\1 $ac_symprfx\\2 \\2"
7010
7011   # Write the raw and C identifiers.
7012   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7013     # Fake it for dumpbin and say T for any non-static function
7014     # and D for any global variable.
7015     # Also find C++ and __fastcall symbols from MSVC++,
7016     # which start with @ or ?.
7017     lt_cv_sys_global_symbol_pipe="$AWK '"\
7018 "     {last_section=section; section=\$ 3};"\
7019 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7020 "     \$ 0!~/External *\|/{next};"\
7021 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022 "     {if(hide[section]) next};"\
7023 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7024 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7025 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7026 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7027 "     ' prfx=^$ac_symprfx"
7028   else
7029     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7030   fi
7031
7032   # Check to see that the pipe works correctly.
7033   pipe_works=no
7034
7035   rm -f conftest*
7036   cat > conftest.$ac_ext <<_LT_EOF
7037 #ifdef __cplusplus
7038 extern "C" {
7039 #endif
7040 char nm_test_var;
7041 void nm_test_func(void);
7042 void nm_test_func(void){}
7043 #ifdef __cplusplus
7044 }
7045 #endif
7046 int main(){nm_test_var='a';nm_test_func();return(0);}
7047 _LT_EOF
7048
7049   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050   (eval $ac_compile) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; then
7054     # Now try to grab the symbols.
7055     nlist=conftest.nm
7056     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7057   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } && test -s "$nlist"; then
7061       # Try sorting and uniquifying the output.
7062       if sort "$nlist" | uniq > "$nlist"T; then
7063         mv -f "$nlist"T "$nlist"
7064       else
7065         rm -f "$nlist"T
7066       fi
7067
7068       # Make sure that we snagged all the symbols we need.
7069       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7070         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7071           cat <<_LT_EOF > conftest.$ac_ext
7072 #ifdef __cplusplus
7073 extern "C" {
7074 #endif
7075
7076 _LT_EOF
7077           # Now generate the symbol file.
7078           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7079
7080           cat <<_LT_EOF >> conftest.$ac_ext
7081
7082 /* The mapping between symbol names and symbols.  */
7083 const struct {
7084   const char *name;
7085   void       *address;
7086 }
7087 lt__PROGRAM__LTX_preloaded_symbols[] =
7088 {
7089   { "@PROGRAM@", (void *) 0 },
7090 _LT_EOF
7091           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7092           cat <<\_LT_EOF >> conftest.$ac_ext
7093   {0, (void *) 0}
7094 };
7095
7096 /* This works around a problem in FreeBSD linker */
7097 #ifdef FREEBSD_WORKAROUND
7098 static const void *lt_preloaded_setup() {
7099   return lt__PROGRAM__LTX_preloaded_symbols;
7100 }
7101 #endif
7102
7103 #ifdef __cplusplus
7104 }
7105 #endif
7106 _LT_EOF
7107           # Now try linking the two files.
7108           mv conftest.$ac_objext conftstm.$ac_objext
7109           lt_save_LIBS="$LIBS"
7110           lt_save_CFLAGS="$CFLAGS"
7111           LIBS="conftstm.$ac_objext"
7112           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7113           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114   (eval $ac_link) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7118             pipe_works=yes
7119           fi
7120           LIBS="$lt_save_LIBS"
7121           CFLAGS="$lt_save_CFLAGS"
7122         else
7123           echo "cannot find nm_test_func in $nlist" >&5
7124         fi
7125       else
7126         echo "cannot find nm_test_var in $nlist" >&5
7127       fi
7128     else
7129       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7130     fi
7131   else
7132     echo "$progname: failed program was:" >&5
7133     cat conftest.$ac_ext >&5
7134   fi
7135   rm -rf conftest* conftst*
7136
7137   # Do not use the global_symbol_pipe unless it works.
7138   if test "$pipe_works" = yes; then
7139     break
7140   else
7141     lt_cv_sys_global_symbol_pipe=
7142   fi
7143 done
7144
7145 fi
7146
7147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7148   lt_cv_sys_global_symbol_to_cdecl=
7149 fi
7150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7151   { echo "$as_me:$LINENO: result: failed" >&5
7152 echo "${ECHO_T}failed" >&6; }
7153 else
7154   { echo "$as_me:$LINENO: result: ok" >&5
7155 echo "${ECHO_T}ok" >&6; }
7156 fi
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 # Check whether --enable-libtool-lock was given.
7180 if test "${enable_libtool_lock+set}" = set; then
7181   enableval=$enable_libtool_lock;
7182 fi
7183
7184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7185
7186 # Some flags need to be propagated to the compiler or linker for good
7187 # libtool support.
7188 case $host in
7189 ia64-*-hpux*)
7190   # Find out which ABI we are using.
7191   echo 'int i;' > conftest.$ac_ext
7192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193   (eval $ac_compile) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; then
7197     case `/usr/bin/file conftest.$ac_objext` in
7198       *ELF-32*)
7199         HPUX_IA64_MODE="32"
7200         ;;
7201       *ELF-64*)
7202         HPUX_IA64_MODE="64"
7203         ;;
7204     esac
7205   fi
7206   rm -rf conftest*
7207   ;;
7208 *-*-irix6*)
7209   # Find out which ABI we are using.
7210   echo '#line 7210 "configure"' > conftest.$ac_ext
7211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212   (eval $ac_compile) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; then
7216     if test "$lt_cv_prog_gnu_ld" = yes; then
7217       case `/usr/bin/file conftest.$ac_objext` in
7218         *32-bit*)
7219           LD="${LD-ld} -melf32bsmip"
7220           ;;
7221         *N32*)
7222           LD="${LD-ld} -melf32bmipn32"
7223           ;;
7224         *64-bit*)
7225           LD="${LD-ld} -melf64bmip"
7226         ;;
7227       esac
7228     else
7229       case `/usr/bin/file conftest.$ac_objext` in
7230         *32-bit*)
7231           LD="${LD-ld} -32"
7232           ;;
7233         *N32*)
7234           LD="${LD-ld} -n32"
7235           ;;
7236         *64-bit*)
7237           LD="${LD-ld} -64"
7238           ;;
7239       esac
7240     fi
7241   fi
7242   rm -rf conftest*
7243   ;;
7244
7245 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7246 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7247   # Find out which ABI we are using.
7248   echo 'int i;' > conftest.$ac_ext
7249   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250   (eval $ac_compile) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; then
7254     case `/usr/bin/file conftest.o` in
7255       *32-bit*)
7256         case $host in
7257           x86_64-*kfreebsd*-gnu)
7258             LD="${LD-ld} -m elf_i386_fbsd"
7259             ;;
7260           x86_64-*linux*)
7261             LD="${LD-ld} -m elf_i386"
7262             ;;
7263           ppc64-*linux*|powerpc64-*linux*)
7264             LD="${LD-ld} -m elf32ppclinux"
7265             ;;
7266           s390x-*linux*)
7267             LD="${LD-ld} -m elf_s390"
7268             ;;
7269           sparc64-*linux*)
7270             LD="${LD-ld} -m elf32_sparc"
7271             ;;
7272         esac
7273         ;;
7274       *64-bit*)
7275         case $host in
7276           x86_64-*kfreebsd*-gnu)
7277             LD="${LD-ld} -m elf_x86_64_fbsd"
7278             ;;
7279           x86_64-*linux*)
7280             LD="${LD-ld} -m elf_x86_64"
7281             ;;
7282           ppc*-*linux*|powerpc*-*linux*)
7283             LD="${LD-ld} -m elf64ppc"
7284             ;;
7285           s390*-*linux*|s390*-*tpf*)
7286             LD="${LD-ld} -m elf64_s390"
7287             ;;
7288           sparc*-*linux*)
7289             LD="${LD-ld} -m elf64_sparc"
7290             ;;
7291         esac
7292         ;;
7293     esac
7294   fi
7295   rm -rf conftest*
7296   ;;
7297
7298 *-*-sco3.2v5*)
7299   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7300   SAVE_CFLAGS="$CFLAGS"
7301   CFLAGS="$CFLAGS -belf"
7302   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7303 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7304 if test "${lt_cv_cc_needs_belf+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
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      cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319
7320 int
7321 main ()
7322 {
7323
7324   ;
7325   return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (ac_try="$ac_link"
7330 case "(($ac_try" in
7331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332   *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335   (eval "$ac_link") 2>conftest.er1
7336   ac_status=$?
7337   grep -v '^ *+' conftest.er1 >conftest.err
7338   rm -f conftest.er1
7339   cat conftest.err >&5
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } && {
7342          test -z "$ac_c_werror_flag" ||
7343          test ! -s conftest.err
7344        } && test -s conftest$ac_exeext &&
7345        $as_test_x conftest$ac_exeext; then
7346   lt_cv_cc_needs_belf=yes
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351         lt_cv_cc_needs_belf=no
7352 fi
7353
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355       conftest$ac_exeext conftest.$ac_ext
7356      ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7364 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7365   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367     CFLAGS="$SAVE_CFLAGS"
7368   fi
7369   ;;
7370 sparc*-*solaris*)
7371   # Find out which ABI we are using.
7372   echo 'int i;' > conftest.$ac_ext
7373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; then
7378     case `/usr/bin/file conftest.o` in
7379     *64-bit*)
7380       case $lt_cv_prog_gnu_ld in
7381       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382       *)
7383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384           LD="${LD-ld} -64"
7385         fi
7386         ;;
7387       esac
7388       ;;
7389     esac
7390   fi
7391   rm -rf conftest*
7392   ;;
7393 esac
7394
7395 need_locks="$enable_libtool_lock"
7396
7397
7398   case $host_os in
7399     rhapsody* | darwin*)
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   if test -n "$DSYMUTIL"; then
7409   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7431 echo "${ECHO_T}$DSYMUTIL" >&6; }
7432 else
7433   { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440   ac_ct_DSYMUTIL=$DSYMUTIL
7441   # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   if test -n "$ac_ct_DSYMUTIL"; then
7449   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456   for ac_exec_ext in '' $ac_executable_extensions; do
7457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7471 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7472 else
7473   { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_DSYMUTIL" = x; then
7478     DSYMUTIL=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7483 whose name does not start with the host triplet.  If you think this
7484 configuration is useful to you, please write to autoconf@gnu.org." >&5
7485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7486 whose name does not start with the host triplet.  If you think this
7487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7488 ac_tool_warned=yes ;;
7489 esac
7490     DSYMUTIL=$ac_ct_DSYMUTIL
7491   fi
7492 else
7493   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7494 fi
7495
7496     if test -n "$ac_tool_prefix"; then
7497   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   if test -n "$NMEDIT"; then
7505   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522 fi
7523 fi
7524 NMEDIT=$ac_cv_prog_NMEDIT
7525 if test -n "$NMEDIT"; then
7526   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7527 echo "${ECHO_T}$NMEDIT" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534 fi
7535 if test -z "$ac_cv_prog_NMEDIT"; then
7536   ac_ct_NMEDIT=$NMEDIT
7537   # Extract the first word of "nmedit", so it can be a program name with args.
7538 set dummy nmedit; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   if test -n "$ac_ct_NMEDIT"; then
7545   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552   for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7565 if test -n "$ac_ct_NMEDIT"; then
7566   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7567 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573   if test "x$ac_ct_NMEDIT" = x; then
7574     NMEDIT=":"
7575   else
7576     case $cross_compiling:$ac_tool_warned in
7577 yes:)
7578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7579 whose name does not start with the host triplet.  If you think this
7580 configuration is useful to you, please write to autoconf@gnu.org." >&5
7581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7582 whose name does not start with the host triplet.  If you think this
7583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586     NMEDIT=$ac_ct_NMEDIT
7587   fi
7588 else
7589   NMEDIT="$ac_cv_prog_NMEDIT"
7590 fi
7591
7592     if test -n "$ac_tool_prefix"; then
7593   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_prog_LIPO+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   if test -n "$LIPO"; then
7601   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 LIPO=$ac_cv_prog_LIPO
7621 if test -n "$LIPO"; then
7622   { echo "$as_me:$LINENO: result: $LIPO" >&5
7623 echo "${ECHO_T}$LIPO" >&6; }
7624 else
7625   { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7627 fi
7628
7629
7630 fi
7631 if test -z "$ac_cv_prog_LIPO"; then
7632   ac_ct_LIPO=$LIPO
7633   # Extract the first word of "lipo", so it can be a program name with args.
7634 set dummy lipo; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   if test -n "$ac_ct_LIPO"; then
7641   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648   for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_ac_ct_LIPO="lipo"
7651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7661 if test -n "$ac_ct_LIPO"; then
7662   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7663 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669   if test "x$ac_ct_LIPO" = x; then
7670     LIPO=":"
7671   else
7672     case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7675 whose name does not start with the host triplet.  If you think this
7676 configuration is useful to you, please write to autoconf@gnu.org." >&5
7677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7678 whose name does not start with the host triplet.  If you think this
7679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     LIPO=$ac_ct_LIPO
7683   fi
7684 else
7685   LIPO="$ac_cv_prog_LIPO"
7686 fi
7687
7688     if test -n "$ac_tool_prefix"; then
7689   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}otool; ac_word=$2
7691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7693 if test "${ac_cv_prog_OTOOL+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   if test -n "$OTOOL"; then
7697   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704   for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 OTOOL=$ac_cv_prog_OTOOL
7717 if test -n "$OTOOL"; then
7718   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7719 echo "${ECHO_T}$OTOOL" >&6; }
7720 else
7721   { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7723 fi
7724
7725
7726 fi
7727 if test -z "$ac_cv_prog_OTOOL"; then
7728   ac_ct_OTOOL=$OTOOL
7729   # Extract the first word of "otool", so it can be a program name with args.
7730 set dummy otool; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   if test -n "$ac_ct_OTOOL"; then
7737   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744   for ac_exec_ext in '' $ac_executable_extensions; do
7745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746     ac_cv_prog_ac_ct_OTOOL="otool"
7747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7757 if test -n "$ac_ct_OTOOL"; then
7758   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7759 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7760 else
7761   { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7763 fi
7764
7765   if test "x$ac_ct_OTOOL" = x; then
7766     OTOOL=":"
7767   else
7768     case $cross_compiling:$ac_tool_warned in
7769 yes:)
7770 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7771 whose name does not start with the host triplet.  If you think this
7772 configuration is useful to you, please write to autoconf@gnu.org." >&5
7773 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7774 whose name does not start with the host triplet.  If you think this
7775 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7776 ac_tool_warned=yes ;;
7777 esac
7778     OTOOL=$ac_ct_OTOOL
7779   fi
7780 else
7781   OTOOL="$ac_cv_prog_OTOOL"
7782 fi
7783
7784     if test -n "$ac_tool_prefix"; then
7785   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   if test -n "$OTOOL64"; then
7793   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800   for ac_exec_ext in '' $ac_executable_extensions; do
7801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 fi
7811 fi
7812 OTOOL64=$ac_cv_prog_OTOOL64
7813 if test -n "$OTOOL64"; then
7814   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7815 echo "${ECHO_T}$OTOOL64" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 fi
7823 if test -z "$ac_cv_prog_OTOOL64"; then
7824   ac_ct_OTOOL64=$OTOOL64
7825   # Extract the first word of "otool64", so it can be a program name with args.
7826 set dummy otool64; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   if test -n "$ac_ct_OTOOL64"; then
7833   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840   for ac_exec_ext in '' $ac_executable_extensions; do
7841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842     ac_cv_prog_ac_ct_OTOOL64="otool64"
7843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7853 if test -n "$ac_ct_OTOOL64"; then
7854   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7855 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7856 else
7857   { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7859 fi
7860
7861   if test "x$ac_ct_OTOOL64" = x; then
7862     OTOOL64=":"
7863   else
7864     case $cross_compiling:$ac_tool_warned in
7865 yes:)
7866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7867 whose name does not start with the host triplet.  If you think this
7868 configuration is useful to you, please write to autoconf@gnu.org." >&5
7869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7870 whose name does not start with the host triplet.  If you think this
7871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874     OTOOL64=$ac_ct_OTOOL64
7875   fi
7876 else
7877   OTOOL64="$ac_cv_prog_OTOOL64"
7878 fi
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7907 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7908 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   lt_cv_apple_cc_single_mod=no
7912       if test -z "${LT_MULTI_MODULE}"; then
7913         # By default we will add the -single_module flag. You can override
7914         # by either setting the environment variable LT_MULTI_MODULE
7915         # non-empty at configure time, or by adding -multi_module to the
7916         # link flags.
7917         rm -rf libconftest.dylib*
7918         echo "int foo(void){return 1;}" > conftest.c
7919         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7920 -dynamiclib -Wl,-single_module conftest.c" >&5
7921         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7922           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7923         _lt_result=$?
7924         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7925           lt_cv_apple_cc_single_mod=yes
7926         else
7927           cat conftest.err >&5
7928         fi
7929         rm -rf libconftest.dylib*
7930         rm -f conftest.*
7931       fi
7932 fi
7933 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7934 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7935     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7936 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7937 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   lt_cv_ld_exported_symbols_list=no
7941       save_LDFLAGS=$LDFLAGS
7942       echo "_main" > conftest.sym
7943       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7944       cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950
7951 int
7952 main ()
7953 {
7954
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7961 case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_link") 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } && {
7973          test -z "$ac_c_werror_flag" ||
7974          test ! -s conftest.err
7975        } && test -s conftest$ac_exeext &&
7976        $as_test_x conftest$ac_exeext; then
7977   lt_cv_ld_exported_symbols_list=yes
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982         lt_cv_ld_exported_symbols_list=no
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986       conftest$ac_exeext conftest.$ac_ext
7987         LDFLAGS="$save_LDFLAGS"
7988
7989 fi
7990 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7991 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7992     case $host_os in
7993     rhapsody* | darwin1.[012])
7994       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7995     darwin1.*)
7996       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7997     darwin*) # darwin 5.x on
7998       # if running on 10.5 or later, the deployment target defaults
7999       # to the OS version, if on x86, and 10.4, the deployment
8000       # target defaults to 10.4. Don't you love it?
8001       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8002         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8003           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8004         10.[012]*)
8005           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8006         10.*)
8007           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008       esac
8009     ;;
8010   esac
8011     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8012       _lt_dar_single_mod='$single_module'
8013     fi
8014     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8015       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8016     else
8017       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8018     fi
8019     if test "$DSYMUTIL" != ":"; then
8020       _lt_dsymutil='~$DSYMUTIL $lib || :'
8021     else
8022       _lt_dsymutil=
8023     fi
8024     ;;
8025   esac
8026
8027 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8029 if test "${ac_cv_header_stdc+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h.  */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h.  */
8038 #include <stdlib.h>
8039 #include <stdarg.h>
8040 #include <string.h>
8041 #include <float.h>
8042
8043 int
8044 main ()
8045 {
8046
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (ac_try="$ac_compile"
8053 case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058   (eval "$ac_compile") 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } && {
8065          test -z "$ac_c_werror_flag" ||
8066          test ! -s conftest.err
8067        } && test -s conftest.$ac_objext; then
8068   ac_cv_header_stdc=yes
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073         ac_cv_header_stdc=no
8074 fi
8075
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077
8078 if test $ac_cv_header_stdc = yes; then
8079   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 #include <string.h>
8087
8088 _ACEOF
8089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8090   $EGREP "memchr" >/dev/null 2>&1; then
8091   :
8092 else
8093   ac_cv_header_stdc=no
8094 fi
8095 rm -f conftest*
8096
8097 fi
8098
8099 if test $ac_cv_header_stdc = yes; then
8100   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 #include <stdlib.h>
8108
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111   $EGREP "free" >/dev/null 2>&1; then
8112   :
8113 else
8114   ac_cv_header_stdc=no
8115 fi
8116 rm -f conftest*
8117
8118 fi
8119
8120 if test $ac_cv_header_stdc = yes; then
8121   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8122   if test "$cross_compiling" = yes; then
8123   :
8124 else
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <ctype.h>
8132 #include <stdlib.h>
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8136 #else
8137 # define ISLOWER(c) \
8138                    (('a' <= (c) && (c) <= 'i') \
8139                      || ('j' <= (c) && (c) <= 'r') \
8140                      || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142 #endif
8143
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145 int
8146 main ()
8147 {
8148   int i;
8149   for (i = 0; i < 256; i++)
8150     if (XOR (islower (i), ISLOWER (i))
8151         || toupper (i) != TOUPPER (i))
8152       return 2;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_link") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8167   { (case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_try") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; }; then
8176   :
8177 else
8178   echo "$as_me: program exited with status $ac_status" >&5
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ( exit $ac_status )
8183 ac_cv_header_stdc=no
8184 fi
8185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8186 fi
8187
8188
8189 fi
8190 fi
8191 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8192 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8193 if test $ac_cv_header_stdc = yes; then
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define STDC_HEADERS 1
8197 _ACEOF
8198
8199 fi
8200
8201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8212                   inttypes.h stdint.h unistd.h
8213 do
8214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226 $ac_includes_default
8227
8228 #include <$ac_header>
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8232 case "(($ac_try" in
8233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234   *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237   (eval "$ac_compile") 2>conftest.er1
8238   ac_status=$?
8239   grep -v '^ *+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } && {
8244          test -z "$ac_c_werror_flag" ||
8245          test ! -s conftest.err
8246        } && test -s conftest.$ac_objext; then
8247   eval "$as_ac_Header=yes"
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252         eval "$as_ac_Header=no"
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 ac_res=`eval echo '${'$as_ac_Header'}'`
8258                { echo "$as_me:$LINENO: result: $ac_res" >&5
8259 echo "${ECHO_T}$ac_res" >&6; }
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261   cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8264
8265 fi
8266
8267 done
8268
8269
8270
8271 for ac_header in dlfcn.h
8272 do
8273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285 $ac_includes_default
8286
8287 #include <$ac_header>
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_compile") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && {
8303          test -z "$ac_c_werror_flag" ||
8304          test ! -s conftest.err
8305        } && test -s conftest.$ac_objext; then
8306   eval "$as_ac_Header=yes"
8307 else
8308   echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311         eval "$as_ac_Header=no"
8312 fi
8313
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 ac_res=`eval echo '${'$as_ac_Header'}'`
8317                { echo "$as_me:$LINENO: result: $ac_res" >&5
8318 echo "${ECHO_T}$ac_res" >&6; }
8319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8320   cat >>confdefs.h <<_ACEOF
8321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8322 _ACEOF
8323
8324 fi
8325
8326 done
8327
8328
8329
8330 ac_ext=cpp
8331 ac_cpp='$CXXCPP $CPPFLAGS'
8332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8335 if test -z "$CXX"; then
8336   if test -n "$CCC"; then
8337     CXX=$CCC
8338   else
8339     if test -n "$ac_tool_prefix"; then
8340   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8341   do
8342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8346 if test "${ac_cv_prog_CXX+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   if test -n "$CXX"; then
8350   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355   IFS=$as_save_IFS
8356   test -z "$as_dir" && as_dir=.
8357   for ac_exec_ext in '' $ac_executable_extensions; do
8358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361     break 2
8362   fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 CXX=$ac_cv_prog_CXX
8370 if test -n "$CXX"; then
8371   { echo "$as_me:$LINENO: result: $CXX" >&5
8372 echo "${ECHO_T}$CXX" >&6; }
8373 else
8374   { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8376 fi
8377
8378
8379     test -n "$CXX" && break
8380   done
8381 fi
8382 if test -z "$CXX"; then
8383   ac_ct_CXX=$CXX
8384   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8385 do
8386   # Extract the first word of "$ac_prog", so it can be a program name with args.
8387 set dummy $ac_prog; ac_word=$2
8388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393   if test -n "$ac_ct_CXX"; then
8394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401   for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_ac_ct_CXX="$ac_prog"
8404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8414 if test -n "$ac_ct_CXX"; then
8415   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8416 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8417 else
8418   { echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6; }
8420 fi
8421
8422
8423   test -n "$ac_ct_CXX" && break
8424 done
8425
8426   if test "x$ac_ct_CXX" = x; then
8427     CXX="g++"
8428   else
8429     case $cross_compiling:$ac_tool_warned in
8430 yes:)
8431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8432 whose name does not start with the host triplet.  If you think this
8433 configuration is useful to you, please write to autoconf@gnu.org." >&5
8434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8435 whose name does not start with the host triplet.  If you think this
8436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8437 ac_tool_warned=yes ;;
8438 esac
8439     CXX=$ac_ct_CXX
8440   fi
8441 fi
8442
8443   fi
8444 fi
8445 # Provide some information about the compiler.
8446 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8447 ac_compiler=`set X $ac_compile; echo $2`
8448 { (ac_try="$ac_compiler --version >&5"
8449 case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_compiler --version >&5") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }
8458 { (ac_try="$ac_compiler -v >&5"
8459 case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_compiler -v >&5") 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }
8468 { (ac_try="$ac_compiler -V >&5"
8469 case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_compiler -V >&5") 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }
8478
8479 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8480 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8481 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 int
8492 main ()
8493 {
8494 #ifndef __GNUC__
8495        choke me
8496 #endif
8497
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8504 case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_compile") 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && {
8516          test -z "$ac_cxx_werror_flag" ||
8517          test ! -s conftest.err
8518        } && test -s conftest.$ac_objext; then
8519   ac_compiler_gnu=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524         ac_compiler_gnu=no
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8529
8530 fi
8531 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8532 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8533 GXX=`test $ac_compiler_gnu = yes && echo yes`
8534 ac_test_CXXFLAGS=${CXXFLAGS+set}
8535 ac_save_CXXFLAGS=$CXXFLAGS
8536 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8537 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8538 if test "${ac_cv_prog_cxx_g+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8542    ac_cxx_werror_flag=yes
8543    ac_cv_prog_cxx_g=no
8544    CXXFLAGS="-g"
8545    cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551
8552 int
8553 main ()
8554 {
8555
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8562 case "(($ac_try" in
8563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564   *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567   (eval "$ac_compile") 2>conftest.er1
8568   ac_status=$?
8569   grep -v '^ *+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } && {
8574          test -z "$ac_cxx_werror_flag" ||
8575          test ! -s conftest.err
8576        } && test -s conftest.$ac_objext; then
8577   ac_cv_prog_cxx_g=yes
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582         CXXFLAGS=""
8583       cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589
8590 int
8591 main ()
8592 {
8593
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_compile") 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } && {
8612          test -z "$ac_cxx_werror_flag" ||
8613          test ! -s conftest.err
8614        } && test -s conftest.$ac_objext; then
8615   :
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8621          CXXFLAGS="-g"
8622          cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628
8629 int
8630 main ()
8631 {
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_compile") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_cxx_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest.$ac_objext; then
8654   ac_cv_prog_cxx_g=yes
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659
8660 fi
8661
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8670 fi
8671 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8673 if test "$ac_test_CXXFLAGS" = set; then
8674   CXXFLAGS=$ac_save_CXXFLAGS
8675 elif test $ac_cv_prog_cxx_g = yes; then
8676   if test "$GXX" = yes; then
8677     CXXFLAGS="-g -O2"
8678   else
8679     CXXFLAGS="-g"
8680   fi
8681 else
8682   if test "$GXX" = yes; then
8683     CXXFLAGS="-O2"
8684   else
8685     CXXFLAGS=
8686   fi
8687 fi
8688 ac_ext=c
8689 ac_cpp='$CPP $CPPFLAGS'
8690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8695     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8696     (test "X$CXX" != "Xg++"))) ; then
8697   ac_ext=cpp
8698 ac_cpp='$CXXCPP $CPPFLAGS'
8699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8702 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8703 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8704 if test -z "$CXXCPP"; then
8705   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708       # Double quotes because CXXCPP needs to be expanded
8709     for CXXCPP in "$CXX -E" "/lib/cpp"
8710     do
8711       ac_preproc_ok=false
8712 for ac_cxx_preproc_warn_flag in '' yes
8713 do
8714   # Use a header file that comes with gcc, so configuring glibc
8715   # with a fresh cross-compiler works.
8716   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717   # <limits.h> exists even on freestanding compilers.
8718   # On the NeXT, cc -E runs the code through the compiler's parser,
8719   # not just through cpp. "Syntax error" is here to catch this case.
8720   cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h.  */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h.  */
8726 #ifdef __STDC__
8727 # include <limits.h>
8728 #else
8729 # include <assert.h>
8730 #endif
8731                      Syntax error
8732 _ACEOF
8733 if { (ac_try="$ac_cpp conftest.$ac_ext"
8734 case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } >/dev/null && {
8746          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8747          test ! -s conftest.err
8748        }; then
8749   :
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754   # Broken: fails on valid input.
8755 continue
8756 fi
8757
8758 rm -f conftest.err conftest.$ac_ext
8759
8760   # OK, works on sane cases.  Now check whether nonexistent headers
8761   # can be detected and how.
8762   cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 #include <ac_nonexistent.h>
8769 _ACEOF
8770 if { (ac_try="$ac_cpp conftest.$ac_ext"
8771 case "(($ac_try" in
8772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773   *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8777   ac_status=$?
8778   grep -v '^ *+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null && {
8783          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8784          test ! -s conftest.err
8785        }; then
8786   # Broken: success on invalid input.
8787 continue
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792   # Passes both tests.
8793 ac_preproc_ok=:
8794 break
8795 fi
8796
8797 rm -f conftest.err conftest.$ac_ext
8798
8799 done
8800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8801 rm -f conftest.err conftest.$ac_ext
8802 if $ac_preproc_ok; then
8803   break
8804 fi
8805
8806     done
8807     ac_cv_prog_CXXCPP=$CXXCPP
8808
8809 fi
8810   CXXCPP=$ac_cv_prog_CXXCPP
8811 else
8812   ac_cv_prog_CXXCPP=$CXXCPP
8813 fi
8814 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8815 echo "${ECHO_T}$CXXCPP" >&6; }
8816 ac_preproc_ok=false
8817 for ac_cxx_preproc_warn_flag in '' yes
8818 do
8819   # Use a header file that comes with gcc, so configuring glibc
8820   # with a fresh cross-compiler works.
8821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822   # <limits.h> exists even on freestanding compilers.
8823   # On the NeXT, cc -E runs the code through the compiler's parser,
8824   # not just through cpp. "Syntax error" is here to catch this case.
8825   cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 #ifdef __STDC__
8832 # include <limits.h>
8833 #else
8834 # include <assert.h>
8835 #endif
8836                      Syntax error
8837 _ACEOF
8838 if { (ac_try="$ac_cpp conftest.$ac_ext"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } >/dev/null && {
8851          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8852          test ! -s conftest.err
8853        }; then
8854   :
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859   # Broken: fails on valid input.
8860 continue
8861 fi
8862
8863 rm -f conftest.err conftest.$ac_ext
8864
8865   # OK, works on sane cases.  Now check whether nonexistent headers
8866   # can be detected and how.
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <ac_nonexistent.h>
8874 _ACEOF
8875 if { (ac_try="$ac_cpp conftest.$ac_ext"
8876 case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } >/dev/null && {
8888          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8889          test ! -s conftest.err
8890        }; then
8891   # Broken: success on invalid input.
8892 continue
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897   # Passes both tests.
8898 ac_preproc_ok=:
8899 break
8900 fi
8901
8902 rm -f conftest.err conftest.$ac_ext
8903
8904 done
8905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8906 rm -f conftest.err conftest.$ac_ext
8907 if $ac_preproc_ok; then
8908   :
8909 else
8910   _lt_caught_CXX_error=yes
8911 fi
8912
8913 ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 else
8920   _lt_caught_CXX_error=yes
8921 fi
8922
8923
8924
8925
8926
8927 # Set options
8928 # Check whether --enable-shared was given.
8929 if test "${enable_shared+set}" = set; then
8930   enableval=$enable_shared; p=${PACKAGE-default}
8931     case $enableval in
8932     yes) enable_shared=yes ;;
8933     no) enable_shared=no ;;
8934     *)
8935       enable_shared=no
8936       # Look at the argument we got.  We use all the common list separators.
8937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8938       for pkg in $enableval; do
8939         IFS="$lt_save_ifs"
8940         if test "X$pkg" = "X$p"; then
8941           enable_shared=yes
8942         fi
8943       done
8944       IFS="$lt_save_ifs"
8945       ;;
8946     esac
8947 else
8948   enable_shared=yes
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957 # Check whether --enable-static was given.
8958 if test "${enable_static+set}" = set; then
8959   enableval=$enable_static; p=${PACKAGE-default}
8960     case $enableval in
8961     yes) enable_static=yes ;;
8962     no) enable_static=no ;;
8963     *)
8964      enable_static=no
8965       # Look at the argument we got.  We use all the common list separators.
8966       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8967       for pkg in $enableval; do
8968         IFS="$lt_save_ifs"
8969         if test "X$pkg" = "X$p"; then
8970           enable_static=yes
8971         fi
8972       done
8973       IFS="$lt_save_ifs"
8974       ;;
8975     esac
8976 else
8977   enable_static=no
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989         enable_dlopen=no
8990
8991
8992   enable_win32_dll=no
8993
8994
8995
8996
8997
8998 # Check whether --with-pic was given.
8999 if test "${with_pic+set}" = set; then
9000   withval=$with_pic; pic_mode="$withval"
9001 else
9002   pic_mode=default
9003 fi
9004
9005
9006 test -z "$pic_mode" && pic_mode=default
9007
9008
9009
9010
9011
9012
9013
9014   # Check whether --enable-fast-install was given.
9015 if test "${enable_fast_install+set}" = set; then
9016   enableval=$enable_fast_install; p=${PACKAGE-default}
9017     case $enableval in
9018     yes) enable_fast_install=yes ;;
9019     no) enable_fast_install=no ;;
9020     *)
9021       enable_fast_install=no
9022       # Look at the argument we got.  We use all the common list separators.
9023       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9024       for pkg in $enableval; do
9025         IFS="$lt_save_ifs"
9026         if test "X$pkg" = "X$p"; then
9027           enable_fast_install=yes
9028         fi
9029       done
9030       IFS="$lt_save_ifs"
9031       ;;
9032     esac
9033 else
9034   enable_fast_install=yes
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 # This can be used to rebuild libtool when needed
9048 LIBTOOL_DEPS="$ltmain"
9049
9050 # Always use our own libtool.
9051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077 test -z "$LN_S" && LN_S="ln -s"
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 if test -n "${ZSH_VERSION+set}" ; then
9093    setopt NO_GLOB_SUBST
9094 fi
9095
9096 { echo "$as_me:$LINENO: checking for objdir" >&5
9097 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9098 if test "${lt_cv_objdir+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   rm -f .libs 2>/dev/null
9102 mkdir .libs 2>/dev/null
9103 if test -d .libs; then
9104   lt_cv_objdir=.libs
9105 else
9106   # MS-DOS does not allow filenames that begin with a dot.
9107   lt_cv_objdir=_libs
9108 fi
9109 rmdir .libs 2>/dev/null
9110 fi
9111 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9112 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9113 objdir=$lt_cv_objdir
9114
9115
9116
9117
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define LT_OBJDIR "$lt_cv_objdir/"
9121 _ACEOF
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139 case $host_os in
9140 aix3*)
9141   # AIX sometimes has problems with the GCC collect2 program.  For some
9142   # reason, if we set the COLLECT_NAMES environment variable, the problems
9143   # vanish in a puff of smoke.
9144   if test "X${COLLECT_NAMES+set}" != Xset; then
9145     COLLECT_NAMES=
9146     export COLLECT_NAMES
9147   fi
9148   ;;
9149 esac
9150
9151 # Sed substitution that helps us do robust quoting.  It backslashifies
9152 # metacharacters that are still active within double-quoted strings.
9153 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9154
9155 # Same as above, but do not quote variable references.
9156 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9157
9158 # Sed substitution to delay expansion of an escaped shell variable in a
9159 # double_quote_subst'ed string.
9160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9161
9162 # Sed substitution to delay expansion of an escaped single quote.
9163 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9164
9165 # Sed substitution to avoid accidental globbing in evaled expressions
9166 no_glob_subst='s/\*/\\\*/g'
9167
9168 # Global variables:
9169 ofile=libtool
9170 can_build_shared=yes
9171
9172 # All known linkers require a `.a' archive for static linking (except MSVC,
9173 # which needs '.lib').
9174 libext=a
9175
9176 with_gnu_ld="$lt_cv_prog_gnu_ld"
9177
9178 old_CC="$CC"
9179 old_CFLAGS="$CFLAGS"
9180
9181 # Set sane defaults for various variables
9182 test -z "$CC" && CC=cc
9183 test -z "$LTCC" && LTCC=$CC
9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9185 test -z "$LD" && LD=ld
9186 test -z "$ac_objext" && ac_objext=o
9187
9188 for cc_temp in $compiler""; do
9189   case $cc_temp in
9190     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9191     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9192     \-*) ;;
9193     *) break;;
9194   esac
9195 done
9196 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9197
9198
9199 # Only perform the check for file, if the check method requires it
9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9201 case $deplibs_check_method in
9202 file_magic*)
9203   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9204     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9205 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9206 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   case $MAGIC_CMD in
9210 [\\/*] |  ?:[\\/]*)
9211   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9212   ;;
9213 *)
9214   lt_save_MAGIC_CMD="$MAGIC_CMD"
9215   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9216   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9217   for ac_dir in $ac_dummy; do
9218     IFS="$lt_save_ifs"
9219     test -z "$ac_dir" && ac_dir=.
9220     if test -f $ac_dir/${ac_tool_prefix}file; then
9221       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9222       if test -n "$file_magic_test_file"; then
9223         case $deplibs_check_method in
9224         "file_magic "*)
9225           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9226           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9228             $EGREP "$file_magic_regex" > /dev/null; then
9229             :
9230           else
9231             cat <<_LT_EOF 1>&2
9232
9233 *** Warning: the command libtool uses to detect shared libraries,
9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
9235 *** The result is that libtool may fail to recognize shared libraries
9236 *** as such.  This will affect the creation of libtool libraries that
9237 *** depend on shared libraries, but programs linked with such libtool
9238 *** libraries will work regardless of this problem.  Nevertheless, you
9239 *** may want to report the problem to your system manager and/or to
9240 *** bug-libtool@gnu.org
9241
9242 _LT_EOF
9243           fi ;;
9244         esac
9245       fi
9246       break
9247     fi
9248   done
9249   IFS="$lt_save_ifs"
9250   MAGIC_CMD="$lt_save_MAGIC_CMD"
9251   ;;
9252 esac
9253 fi
9254
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9256 if test -n "$MAGIC_CMD"; then
9257   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9258 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9259 else
9260   { echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6; }
9262 fi
9263
9264
9265
9266
9267
9268 if test -z "$lt_cv_path_MAGIC_CMD"; then
9269   if test -n "$ac_tool_prefix"; then
9270     { echo "$as_me:$LINENO: checking for file" >&5
9271 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9272 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   case $MAGIC_CMD in
9276 [\\/*] |  ?:[\\/]*)
9277   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9278   ;;
9279 *)
9280   lt_save_MAGIC_CMD="$MAGIC_CMD"
9281   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9282   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9283   for ac_dir in $ac_dummy; do
9284     IFS="$lt_save_ifs"
9285     test -z "$ac_dir" && ac_dir=.
9286     if test -f $ac_dir/file; then
9287       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9288       if test -n "$file_magic_test_file"; then
9289         case $deplibs_check_method in
9290         "file_magic "*)
9291           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9292           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9294             $EGREP "$file_magic_regex" > /dev/null; then
9295             :
9296           else
9297             cat <<_LT_EOF 1>&2
9298
9299 *** Warning: the command libtool uses to detect shared libraries,
9300 *** $file_magic_cmd, produces output that libtool cannot recognize.
9301 *** The result is that libtool may fail to recognize shared libraries
9302 *** as such.  This will affect the creation of libtool libraries that
9303 *** depend on shared libraries, but programs linked with such libtool
9304 *** libraries will work regardless of this problem.  Nevertheless, you
9305 *** may want to report the problem to your system manager and/or to
9306 *** bug-libtool@gnu.org
9307
9308 _LT_EOF
9309           fi ;;
9310         esac
9311       fi
9312       break
9313     fi
9314   done
9315   IFS="$lt_save_ifs"
9316   MAGIC_CMD="$lt_save_MAGIC_CMD"
9317   ;;
9318 esac
9319 fi
9320
9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9322 if test -n "$MAGIC_CMD"; then
9323   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9324 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9325 else
9326   { echo "$as_me:$LINENO: result: no" >&5
9327 echo "${ECHO_T}no" >&6; }
9328 fi
9329
9330
9331   else
9332     MAGIC_CMD=:
9333   fi
9334 fi
9335
9336   fi
9337   ;;
9338 esac
9339
9340 # Use C for the default configuration in the libtool script
9341
9342 lt_save_CC="$CC"
9343 ac_ext=c
9344 ac_cpp='$CPP $CPPFLAGS'
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9348
9349
9350 # Source file extension for C test sources.
9351 ac_ext=c
9352
9353 # Object file extension for compiled C test sources.
9354 objext=o
9355 objext=$objext
9356
9357 # Code to be used in simple compile tests
9358 lt_simple_compile_test_code="int some_variable = 0;"
9359
9360 # Code to be used in simple link tests
9361 lt_simple_link_test_code='int main(){return(0);}'
9362
9363
9364
9365
9366
9367
9368
9369 # If no C compiler was specified, use CC.
9370 LTCC=${LTCC-"$CC"}
9371
9372 # If no C compiler flags were specified, use CFLAGS.
9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9374
9375 # Allow CC to be a program name with arguments.
9376 compiler=$CC
9377
9378 # Save the default compiler, since it gets overwritten when the other
9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9380 compiler_DEFAULT=$CC
9381
9382 # save warnings/boilerplate of simple test code
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9386 _lt_compiler_boilerplate=`cat conftest.err`
9387 $RM conftest*
9388
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_linker_boilerplate=`cat conftest.err`
9393 $RM -r conftest*
9394
9395
9396 ## CAVEAT EMPTOR:
9397 ## There is no encapsulation within the following macros, do not change
9398 ## the running order or otherwise move them around unless you know exactly
9399 ## what you are doing...
9400 if test -n "$compiler"; then
9401
9402 lt_prog_compiler_no_builtin_flag=
9403
9404 if test "$GCC" = yes; then
9405   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9406
9407   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   lt_cv_prog_compiler_rtti_exceptions=no
9413    ac_outfile=conftest.$ac_objext
9414    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415    lt_compiler_flag="-fno-rtti -fno-exceptions"
9416    # Insert the option either (1) after the last *FLAGS variable, or
9417    # (2) before a word containing "conftest.", or (3) at the end.
9418    # Note that $ac_compile itself does not contain backslashes and begins
9419    # with a dollar sign (not a hyphen), so the echo should work correctly.
9420    # The option is referenced via a variable to avoid confusing sed.
9421    lt_compile=`echo "$ac_compile" | $SED \
9422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424    -e 's:$: $lt_compiler_flag:'`
9425    (eval echo "\"\$as_me:9425: $lt_compile\"" >&5)
9426    (eval "$lt_compile" 2>conftest.err)
9427    ac_status=$?
9428    cat conftest.err >&5
9429    echo "$as_me:9429: \$? = $ac_status" >&5
9430    if (exit $ac_status) && test -s "$ac_outfile"; then
9431      # The compiler can only warn and ignore the option if not recognized
9432      # So say no if there are warnings other than the usual output.
9433      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9436        lt_cv_prog_compiler_rtti_exceptions=yes
9437      fi
9438    fi
9439    $RM conftest*
9440
9441 fi
9442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9444
9445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9446     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9447 else
9448     :
9449 fi
9450
9451 fi
9452
9453
9454
9455
9456
9457
9458   lt_prog_compiler_wl=
9459 lt_prog_compiler_pic=
9460 lt_prog_compiler_static=
9461
9462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9464
9465   if test "$GCC" = yes; then
9466     lt_prog_compiler_wl='-Wl,'
9467     lt_prog_compiler_static='-static'
9468
9469     case $host_os in
9470       aix*)
9471       # All AIX code is PIC.
9472       if test "$host_cpu" = ia64; then
9473         # AIX 5 now supports IA64 processor
9474         lt_prog_compiler_static='-Bstatic'
9475       fi
9476       ;;
9477
9478     amigaos*)
9479       case $host_cpu in
9480       powerpc)
9481             # see comment about AmigaOS4 .so support
9482             lt_prog_compiler_pic='-fPIC'
9483         ;;
9484       m68k)
9485             # FIXME: we need at least 68020 code to build shared libraries, but
9486             # adding the `-m68020' flag to GCC prevents building anything better,
9487             # like `-m68040'.
9488             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9489         ;;
9490       esac
9491       ;;
9492
9493     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9494       # PIC is the default for these OSes.
9495       ;;
9496
9497     mingw* | cygwin* | pw32* | os2* | cegcc*)
9498       # This hack is so that the source file can tell whether it is being
9499       # built for inclusion in a dll (and should export symbols for example).
9500       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9501       # (--disable-auto-import) libraries
9502       lt_prog_compiler_pic='-DDLL_EXPORT'
9503       ;;
9504
9505     darwin* | rhapsody*)
9506       # PIC is the default on this platform
9507       # Common symbols not allowed in MH_DYLIB files
9508       lt_prog_compiler_pic='-fno-common'
9509       ;;
9510
9511     hpux*)
9512       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9513       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9514       # sets the default TLS model and affects inlining.
9515       case $host_cpu in
9516       hppa*64*)
9517         # +Z the default
9518         ;;
9519       *)
9520         lt_prog_compiler_pic='-fPIC'
9521         ;;
9522       esac
9523       ;;
9524
9525     interix[3-9]*)
9526       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9527       # Instead, we relocate shared libraries at runtime.
9528       ;;
9529
9530     msdosdjgpp*)
9531       # Just because we use GCC doesn't mean we suddenly get shared libraries
9532       # on systems that don't support them.
9533       lt_prog_compiler_can_build_shared=no
9534       enable_shared=no
9535       ;;
9536
9537     *nto* | *qnx*)
9538       # QNX uses GNU C++, but need to define -shared option too, otherwise
9539       # it will coredump.
9540       lt_prog_compiler_pic='-fPIC -shared'
9541       ;;
9542
9543     sysv4*MP*)
9544       if test -d /usr/nec; then
9545         lt_prog_compiler_pic=-Kconform_pic
9546       fi
9547       ;;
9548
9549     *)
9550       lt_prog_compiler_pic='-fPIC'
9551       ;;
9552     esac
9553   else
9554     # PORTME Check for flag to pass linker flags through the system compiler.
9555     case $host_os in
9556     aix*)
9557       lt_prog_compiler_wl='-Wl,'
9558       if test "$host_cpu" = ia64; then
9559         # AIX 5 now supports IA64 processor
9560         lt_prog_compiler_static='-Bstatic'
9561       else
9562         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9563       fi
9564       ;;
9565
9566     mingw* | cygwin* | pw32* | os2* | cegcc*)
9567       # This hack is so that the source file can tell whether it is being
9568       # built for inclusion in a dll (and should export symbols for example).
9569       lt_prog_compiler_pic='-DDLL_EXPORT'
9570       ;;
9571
9572     hpux9* | hpux10* | hpux11*)
9573       lt_prog_compiler_wl='-Wl,'
9574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9575       # not for PA HP-UX.
9576       case $host_cpu in
9577       hppa*64*|ia64*)
9578         # +Z the default
9579         ;;
9580       *)
9581         lt_prog_compiler_pic='+Z'
9582         ;;
9583       esac
9584       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9585       lt_prog_compiler_static='${wl}-a ${wl}archive'
9586       ;;
9587
9588     irix5* | irix6* | nonstopux*)
9589       lt_prog_compiler_wl='-Wl,'
9590       # PIC (with -KPIC) is the default.
9591       lt_prog_compiler_static='-non_shared'
9592       ;;
9593
9594     linux* | k*bsd*-gnu)
9595       case $cc_basename in
9596       # old Intel for x86_64 which still supported -KPIC.
9597       ecc*)
9598         lt_prog_compiler_wl='-Wl,'
9599         lt_prog_compiler_pic='-KPIC'
9600         lt_prog_compiler_static='-static'
9601         ;;
9602       # icc used to be incompatible with GCC.
9603       # ICC 10 doesn't accept -KPIC any more.
9604       icc* | ifort*)
9605         lt_prog_compiler_wl='-Wl,'
9606         lt_prog_compiler_pic='-fPIC'
9607         lt_prog_compiler_static='-static'
9608         ;;
9609       # Lahey Fortran 8.1.
9610       lf95*)
9611         lt_prog_compiler_wl='-Wl,'
9612         lt_prog_compiler_pic='--shared'
9613         lt_prog_compiler_static='--static'
9614         ;;
9615       pgcc* | pgf77* | pgf90* | pgf95*)
9616         # Portland Group compilers (*not* the Pentium gcc compiler,
9617         # which looks to be a dead project)
9618         lt_prog_compiler_wl='-Wl,'
9619         lt_prog_compiler_pic='-fpic'
9620         lt_prog_compiler_static='-Bstatic'
9621         ;;
9622       ccc*)
9623         lt_prog_compiler_wl='-Wl,'
9624         # All Alpha code is PIC.
9625         lt_prog_compiler_static='-non_shared'
9626         ;;
9627       xl*)
9628         # IBM XL C 8.0/Fortran 10.1 on PPC
9629         lt_prog_compiler_wl='-Wl,'
9630         lt_prog_compiler_pic='-qpic'
9631         lt_prog_compiler_static='-qstaticlink'
9632         ;;
9633       *)
9634         case `$CC -V 2>&1 | sed 5q` in
9635         *Sun\ C*)
9636           # Sun C 5.9
9637           lt_prog_compiler_pic='-KPIC'
9638           lt_prog_compiler_static='-Bstatic'
9639           lt_prog_compiler_wl='-Wl,'
9640           ;;
9641         *Sun\ F*)
9642           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9643           lt_prog_compiler_pic='-KPIC'
9644           lt_prog_compiler_static='-Bstatic'
9645           lt_prog_compiler_wl=''
9646           ;;
9647         esac
9648         ;;
9649       esac
9650       ;;
9651
9652     newsos6)
9653       lt_prog_compiler_pic='-KPIC'
9654       lt_prog_compiler_static='-Bstatic'
9655       ;;
9656
9657     *nto* | *qnx*)
9658       # QNX uses GNU C++, but need to define -shared option too, otherwise
9659       # it will coredump.
9660       lt_prog_compiler_pic='-fPIC -shared'
9661       ;;
9662
9663     osf3* | osf4* | osf5*)
9664       lt_prog_compiler_wl='-Wl,'
9665       # All OSF/1 code is PIC.
9666       lt_prog_compiler_static='-non_shared'
9667       ;;
9668
9669     rdos*)
9670       lt_prog_compiler_static='-non_shared'
9671       ;;
9672
9673     solaris*)
9674       lt_prog_compiler_pic='-KPIC'
9675       lt_prog_compiler_static='-Bstatic'
9676       case $cc_basename in
9677       f77* | f90* | f95*)
9678         lt_prog_compiler_wl='-Qoption ld ';;
9679       *)
9680         lt_prog_compiler_wl='-Wl,';;
9681       esac
9682       ;;
9683
9684     sunos4*)
9685       lt_prog_compiler_wl='-Qoption ld '
9686       lt_prog_compiler_pic='-PIC'
9687       lt_prog_compiler_static='-Bstatic'
9688       ;;
9689
9690     sysv4 | sysv4.2uw2* | sysv4.3*)
9691       lt_prog_compiler_wl='-Wl,'
9692       lt_prog_compiler_pic='-KPIC'
9693       lt_prog_compiler_static='-Bstatic'
9694       ;;
9695
9696     sysv4*MP*)
9697       if test -d /usr/nec ;then
9698         lt_prog_compiler_pic='-Kconform_pic'
9699         lt_prog_compiler_static='-Bstatic'
9700       fi
9701       ;;
9702
9703     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9704       lt_prog_compiler_wl='-Wl,'
9705       lt_prog_compiler_pic='-KPIC'
9706       lt_prog_compiler_static='-Bstatic'
9707       ;;
9708
9709     unicos*)
9710       lt_prog_compiler_wl='-Wl,'
9711       lt_prog_compiler_can_build_shared=no
9712       ;;
9713
9714     uts4*)
9715       lt_prog_compiler_pic='-pic'
9716       lt_prog_compiler_static='-Bstatic'
9717       ;;
9718
9719     *)
9720       lt_prog_compiler_can_build_shared=no
9721       ;;
9722     esac
9723   fi
9724
9725 case $host_os in
9726   # For platforms which do not support PIC, -DPIC is meaningless:
9727   *djgpp*)
9728     lt_prog_compiler_pic=
9729     ;;
9730   *)
9731     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9732     ;;
9733 esac
9734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9735 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9736
9737
9738
9739
9740
9741
9742 #
9743 # Check to make sure the PIC flag actually works.
9744 #
9745 if test -n "$lt_prog_compiler_pic"; then
9746   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9748 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   lt_cv_prog_compiler_pic_works=no
9752    ac_outfile=conftest.$ac_objext
9753    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9755    # Insert the option either (1) after the last *FLAGS variable, or
9756    # (2) before a word containing "conftest.", or (3) at the end.
9757    # Note that $ac_compile itself does not contain backslashes and begins
9758    # with a dollar sign (not a hyphen), so the echo should work correctly.
9759    # The option is referenced via a variable to avoid confusing sed.
9760    lt_compile=`echo "$ac_compile" | $SED \
9761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763    -e 's:$: $lt_compiler_flag:'`
9764    (eval echo "\"\$as_me:9764: $lt_compile\"" >&5)
9765    (eval "$lt_compile" 2>conftest.err)
9766    ac_status=$?
9767    cat conftest.err >&5
9768    echo "$as_me:9768: \$? = $ac_status" >&5
9769    if (exit $ac_status) && test -s "$ac_outfile"; then
9770      # The compiler can only warn and ignore the option if not recognized
9771      # So say no if there are warnings other than the usual output.
9772      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9775        lt_cv_prog_compiler_pic_works=yes
9776      fi
9777    fi
9778    $RM conftest*
9779
9780 fi
9781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9782 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9783
9784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9785     case $lt_prog_compiler_pic in
9786      "" | " "*) ;;
9787      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9788      esac
9789 else
9790     lt_prog_compiler_pic=
9791      lt_prog_compiler_can_build_shared=no
9792 fi
9793
9794 fi
9795
9796
9797
9798
9799
9800
9801 #
9802 # Check to make sure the static flag actually works.
9803 #
9804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9805 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9806 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9807 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   lt_cv_prog_compiler_static_works=no
9811    save_LDFLAGS="$LDFLAGS"
9812    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9813    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9815      # The linker can only warn and ignore the option if not recognized
9816      # So say no if there are warnings
9817      if test -s conftest.err; then
9818        # Append any errors to the config.log.
9819        cat conftest.err 1>&5
9820        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822        if diff conftest.exp conftest.er2 >/dev/null; then
9823          lt_cv_prog_compiler_static_works=yes
9824        fi
9825      else
9826        lt_cv_prog_compiler_static_works=yes
9827      fi
9828    fi
9829    $RM -r conftest*
9830    LDFLAGS="$save_LDFLAGS"
9831
9832 fi
9833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9834 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9835
9836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9837     :
9838 else
9839     lt_prog_compiler_static=
9840 fi
9841
9842
9843
9844
9845
9846
9847
9848   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9850 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   lt_cv_prog_compiler_c_o=no
9854    $RM -r conftest 2>/dev/null
9855    mkdir conftest
9856    cd conftest
9857    mkdir out
9858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859
9860    lt_compiler_flag="-o out/conftest2.$ac_objext"
9861    # Insert the option either (1) after the last *FLAGS variable, or
9862    # (2) before a word containing "conftest.", or (3) at the end.
9863    # Note that $ac_compile itself does not contain backslashes and begins
9864    # with a dollar sign (not a hyphen), so the echo should work correctly.
9865    lt_compile=`echo "$ac_compile" | $SED \
9866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868    -e 's:$: $lt_compiler_flag:'`
9869    (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870    (eval "$lt_compile" 2>out/conftest.err)
9871    ac_status=$?
9872    cat out/conftest.err >&5
9873    echo "$as_me:9873: \$? = $ac_status" >&5
9874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9875    then
9876      # The compiler can only warn and ignore the option if not recognized
9877      # So say no if there are warnings
9878      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9879      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9880      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9881        lt_cv_prog_compiler_c_o=yes
9882      fi
9883    fi
9884    chmod u+w . 2>&5
9885    $RM conftest*
9886    # SGI C++ compiler will create directory out/ii_files/ for
9887    # template instantiation
9888    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9889    $RM out/* && rmdir out
9890    cd ..
9891    $RM -r conftest
9892    $RM conftest*
9893
9894 fi
9895 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9896 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9897
9898
9899
9900
9901
9902
9903   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   lt_cv_prog_compiler_c_o=no
9909    $RM -r conftest 2>/dev/null
9910    mkdir conftest
9911    cd conftest
9912    mkdir out
9913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9914
9915    lt_compiler_flag="-o out/conftest2.$ac_objext"
9916    # Insert the option either (1) after the last *FLAGS variable, or
9917    # (2) before a word containing "conftest.", or (3) at the end.
9918    # Note that $ac_compile itself does not contain backslashes and begins
9919    # with a dollar sign (not a hyphen), so the echo should work correctly.
9920    lt_compile=`echo "$ac_compile" | $SED \
9921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9923    -e 's:$: $lt_compiler_flag:'`
9924    (eval echo "\"\$as_me:9924: $lt_compile\"" >&5)
9925    (eval "$lt_compile" 2>out/conftest.err)
9926    ac_status=$?
9927    cat out/conftest.err >&5
9928    echo "$as_me:9928: \$? = $ac_status" >&5
9929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9930    then
9931      # The compiler can only warn and ignore the option if not recognized
9932      # So say no if there are warnings
9933      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9936        lt_cv_prog_compiler_c_o=yes
9937      fi
9938    fi
9939    chmod u+w . 2>&5
9940    $RM conftest*
9941    # SGI C++ compiler will create directory out/ii_files/ for
9942    # template instantiation
9943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9944    $RM out/* && rmdir out
9945    cd ..
9946    $RM -r conftest
9947    $RM conftest*
9948
9949 fi
9950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9952
9953
9954
9955
9956 hard_links="nottested"
9957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9958   # do not overwrite the value of need_locks provided by the user
9959   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9961   hard_links=yes
9962   $RM conftest*
9963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9964   touch conftest.a
9965   ln conftest.a conftest.b 2>&5 || hard_links=no
9966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9967   { echo "$as_me:$LINENO: result: $hard_links" >&5
9968 echo "${ECHO_T}$hard_links" >&6; }
9969   if test "$hard_links" = no; then
9970     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9972     need_locks=warn
9973   fi
9974 else
9975   need_locks=no
9976 fi
9977
9978
9979
9980
9981
9982
9983   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9984 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9985
9986   runpath_var=
9987   allow_undefined_flag=
9988   always_export_symbols=no
9989   archive_cmds=
9990   archive_expsym_cmds=
9991   compiler_needs_object=no
9992   enable_shared_with_static_runtimes=no
9993   export_dynamic_flag_spec=
9994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9995   hardcode_automatic=no
9996   hardcode_direct=no
9997   hardcode_direct_absolute=no
9998   hardcode_libdir_flag_spec=
9999   hardcode_libdir_flag_spec_ld=
10000   hardcode_libdir_separator=
10001   hardcode_minus_L=no
10002   hardcode_shlibpath_var=unsupported
10003   inherit_rpath=no
10004   link_all_deplibs=unknown
10005   module_cmds=
10006   module_expsym_cmds=
10007   old_archive_from_new_cmds=
10008   old_archive_from_expsyms_cmds=
10009   thread_safe_flag_spec=
10010   whole_archive_flag_spec=
10011   # include_expsyms should be a list of space-separated symbols to be *always*
10012   # included in the symbol list
10013   include_expsyms=
10014   # exclude_expsyms can be an extended regexp of symbols to exclude
10015   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10016   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10017   # as well as any symbol that contains `d'.
10018   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10019   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10020   # platforms (ab)use it in PIC code, but their linkers get confused if
10021   # the symbol is explicitly referenced.  Since portable code cannot
10022   # rely on this symbol name, it's probably fine to never include it in
10023   # preloaded symbol tables.
10024   # Exclude shared library initialization/finalization symbols.
10025   extract_expsyms_cmds=
10026
10027   case $host_os in
10028   cygwin* | mingw* | pw32* | cegcc*)
10029     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10030     # When not using gcc, we currently assume that we are using
10031     # Microsoft Visual C++.
10032     if test "$GCC" != yes; then
10033       with_gnu_ld=no
10034     fi
10035     ;;
10036   interix*)
10037     # we just hope/assume this is gcc and not c89 (= MSVC++)
10038     with_gnu_ld=yes
10039     ;;
10040   openbsd*)
10041     with_gnu_ld=no
10042     ;;
10043   esac
10044
10045   ld_shlibs=yes
10046   if test "$with_gnu_ld" = yes; then
10047     # If archive_cmds runs LD, not CC, wlarc should be empty
10048     wlarc='${wl}'
10049
10050     # Set some defaults for GNU ld with shared library support. These
10051     # are reset later if shared libraries are not supported. Putting them
10052     # here allows them to be overridden if necessary.
10053     runpath_var=LD_RUN_PATH
10054     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055     export_dynamic_flag_spec='${wl}--export-dynamic'
10056     # ancient GNU ld didn't support --whole-archive et. al.
10057     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10058       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10059     else
10060       whole_archive_flag_spec=
10061     fi
10062     supports_anon_versioning=no
10063     case `$LD -v 2>&1` in
10064       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10065       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10066       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10067       *\ 2.11.*) ;; # other 2.11 versions
10068       *) supports_anon_versioning=yes ;;
10069     esac
10070
10071     # See if GNU ld supports shared libraries.
10072     case $host_os in
10073     aix[3-9]*)
10074       # On AIX/PPC, the GNU linker is very broken
10075       if test "$host_cpu" != ia64; then
10076         ld_shlibs=no
10077         cat <<_LT_EOF 1>&2
10078
10079 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10080 *** to be unable to reliably create shared libraries on AIX.
10081 *** Therefore, libtool is disabling shared libraries support.  If you
10082 *** really care for shared libraries, you may want to modify your PATH
10083 *** so that a non-GNU linker is found, and then restart.
10084
10085 _LT_EOF
10086       fi
10087       ;;
10088
10089     amigaos*)
10090       case $host_cpu in
10091       powerpc)
10092             # see comment about AmigaOS4 .so support
10093             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094             archive_expsym_cmds=''
10095         ;;
10096       m68k)
10097             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)'
10098             hardcode_libdir_flag_spec='-L$libdir'
10099             hardcode_minus_L=yes
10100         ;;
10101       esac
10102       ;;
10103
10104     beos*)
10105       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10106         allow_undefined_flag=unsupported
10107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10108         # support --undefined.  This deserves some investigation.  FIXME
10109         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110       else
10111         ld_shlibs=no
10112       fi
10113       ;;
10114
10115     cygwin* | mingw* | pw32* | cegcc*)
10116       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10117       # as there is no search path for DLLs.
10118       hardcode_libdir_flag_spec='-L$libdir'
10119       allow_undefined_flag=unsupported
10120       always_export_symbols=no
10121       enable_shared_with_static_runtimes=yes
10122       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10123
10124       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10126         # If the export-symbols file already is a .def file (1st line
10127         # is EXPORTS), use it as is; otherwise, prepend...
10128         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10129           cp $export_symbols $output_objdir/$soname.def;
10130         else
10131           echo EXPORTS > $output_objdir/$soname.def;
10132           cat $export_symbols >> $output_objdir/$soname.def;
10133         fi~
10134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135       else
10136         ld_shlibs=no
10137       fi
10138       ;;
10139
10140     interix[3-9]*)
10141       hardcode_direct=no
10142       hardcode_shlibpath_var=no
10143       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10144       export_dynamic_flag_spec='${wl}-E'
10145       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10146       # Instead, shared libraries are loaded at an image base (0x10000000 by
10147       # default) and relocated if they conflict, which is a slow very memory
10148       # consuming and fragmenting process.  To avoid this, we pick a random,
10149       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10150       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10151       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10152       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'
10153       ;;
10154
10155     gnu* | linux* | tpf* | k*bsd*-gnu)
10156       tmp_diet=no
10157       if test "$host_os" = linux-dietlibc; then
10158         case $cc_basename in
10159           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10160         esac
10161       fi
10162       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10163          && test "$tmp_diet" = no
10164       then
10165         tmp_addflag=
10166         tmp_sharedflag='-shared'
10167         case $cc_basename,$host_cpu in
10168         pgcc*)                          # Portland Group C compiler
10169           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'
10170           tmp_addflag=' $pic_flag'
10171           ;;
10172         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10173           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'
10174           tmp_addflag=' $pic_flag -Mnomain' ;;
10175         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10176           tmp_addflag=' -i_dynamic' ;;
10177         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10178           tmp_addflag=' -i_dynamic -nofor_main' ;;
10179         ifc* | ifort*)                  # Intel Fortran compiler
10180           tmp_addflag=' -nofor_main' ;;
10181         lf95*)                          # Lahey Fortran 8.1
10182           whole_archive_flag_spec=
10183           tmp_sharedflag='--shared' ;;
10184         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10185           tmp_sharedflag='-qmkshrobj'
10186           tmp_addflag= ;;
10187         esac
10188         case `$CC -V 2>&1 | sed 5q` in
10189         *Sun\ C*)                       # Sun C 5.9
10190           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'
10191           compiler_needs_object=yes
10192           tmp_sharedflag='-G' ;;
10193         *Sun\ F*)                       # Sun Fortran 8.3
10194           tmp_sharedflag='-G' ;;
10195         esac
10196         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197
10198         if test "x$supports_anon_versioning" = xyes; then
10199           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10200             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10201             echo "local: *; };" >> $output_objdir/$libname.ver~
10202             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10203         fi
10204
10205         case $cc_basename in
10206         xlf*)
10207           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10208           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10209           hardcode_libdir_flag_spec=
10210           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10211           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10212           if test "x$supports_anon_versioning" = xyes; then
10213             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215               echo "local: *; };" >> $output_objdir/$libname.ver~
10216               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10217           fi
10218           ;;
10219         esac
10220       else
10221         ld_shlibs=no
10222       fi
10223       ;;
10224
10225     netbsd*)
10226       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10227         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10228         wlarc=
10229       else
10230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10232       fi
10233       ;;
10234
10235     solaris*)
10236       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10237         ld_shlibs=no
10238         cat <<_LT_EOF 1>&2
10239
10240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10241 *** create shared libraries on Solaris systems.  Therefore, libtool
10242 *** is disabling shared libraries support.  We urge you to upgrade GNU
10243 *** binutils to release 2.9.1 or newer.  Another option is to modify
10244 *** your PATH or compiler configuration so that the native linker is
10245 *** used, and then restart.
10246
10247 _LT_EOF
10248       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10251       else
10252         ld_shlibs=no
10253       fi
10254       ;;
10255
10256     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10257       case `$LD -v 2>&1` in
10258         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10259         ld_shlibs=no
10260         cat <<_LT_EOF 1>&2
10261
10262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10263 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10264 *** is disabling shared libraries support.  We urge you to upgrade GNU
10265 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10266 *** your PATH or compiler configuration so that the native linker is
10267 *** used, and then restart.
10268
10269 _LT_EOF
10270         ;;
10271         *)
10272           # For security reasons, it is highly recommended that you always
10273           # use absolute paths for naming shared libraries, and exclude the
10274           # DT_RUNPATH tag from executables and libraries.  But doing so
10275           # requires that you compile everything twice, which is a pain.
10276           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10277             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10280           else
10281             ld_shlibs=no
10282           fi
10283         ;;
10284       esac
10285       ;;
10286
10287     sunos4*)
10288       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289       wlarc=
10290       hardcode_direct=yes
10291       hardcode_shlibpath_var=no
10292       ;;
10293
10294     *)
10295       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10296         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10298       else
10299         ld_shlibs=no
10300       fi
10301       ;;
10302     esac
10303
10304     if test "$ld_shlibs" = no; then
10305       runpath_var=
10306       hardcode_libdir_flag_spec=
10307       export_dynamic_flag_spec=
10308       whole_archive_flag_spec=
10309     fi
10310   else
10311     # PORTME fill in a description of your system's linker (not GNU ld)
10312     case $host_os in
10313     aix3*)
10314       allow_undefined_flag=unsupported
10315       always_export_symbols=yes
10316       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'
10317       # Note: this linker hardcodes the directories in LIBPATH if there
10318       # are no directories specified by -L.
10319       hardcode_minus_L=yes
10320       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10321         # Neither direct hardcoding nor static linking is supported with a
10322         # broken collect2.
10323         hardcode_direct=unsupported
10324       fi
10325       ;;
10326
10327     aix[4-9]*)
10328       if test "$host_cpu" = ia64; then
10329         # On IA64, the linker does run time linking by default, so we don't
10330         # have to do anything special.
10331         aix_use_runtimelinking=no
10332         exp_sym_flag='-Bexport'
10333         no_entry_flag=""
10334       else
10335         # If we're using GNU nm, then we don't want the "-C" option.
10336         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10337         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10338           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'
10339         else
10340           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'
10341         fi
10342         aix_use_runtimelinking=no
10343
10344         # Test if we are trying to use run time linking or normal
10345         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10346         # need to do runtime linking.
10347         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10348           for ld_flag in $LDFLAGS; do
10349           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10350             aix_use_runtimelinking=yes
10351             break
10352           fi
10353           done
10354           ;;
10355         esac
10356
10357         exp_sym_flag='-bexport'
10358         no_entry_flag='-bnoentry'
10359       fi
10360
10361       # When large executables or shared objects are built, AIX ld can
10362       # have problems creating the table of contents.  If linking a library
10363       # or program results in "error TOC overflow" add -mminimal-toc to
10364       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10365       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10366
10367       archive_cmds=''
10368       hardcode_direct=yes
10369       hardcode_direct_absolute=yes
10370       hardcode_libdir_separator=':'
10371       link_all_deplibs=yes
10372       file_list_spec='${wl}-f,'
10373
10374       if test "$GCC" = yes; then
10375         case $host_os in aix4.[012]|aix4.[012].*)
10376         # We only want to do this on AIX 4.2 and lower, the check
10377         # below for broken collect2 doesn't work under 4.3+
10378           collect2name=`${CC} -print-prog-name=collect2`
10379           if test -f "$collect2name" &&
10380            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10381           then
10382           # We have reworked collect2
10383           :
10384           else
10385           # We have old collect2
10386           hardcode_direct=unsupported
10387           # It fails to find uninstalled libraries when the uninstalled
10388           # path is not listed in the libpath.  Setting hardcode_minus_L
10389           # to unsupported forces relinking
10390           hardcode_minus_L=yes
10391           hardcode_libdir_flag_spec='-L$libdir'
10392           hardcode_libdir_separator=
10393           fi
10394           ;;
10395         esac
10396         shared_flag='-shared'
10397         if test "$aix_use_runtimelinking" = yes; then
10398           shared_flag="$shared_flag "'${wl}-G'
10399         fi
10400       else
10401         # not using gcc
10402         if test "$host_cpu" = ia64; then
10403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10404         # chokes on -Wl,-G. The following line is correct:
10405           shared_flag='-G'
10406         else
10407           if test "$aix_use_runtimelinking" = yes; then
10408             shared_flag='${wl}-G'
10409           else
10410             shared_flag='${wl}-bM:SRE'
10411           fi
10412         fi
10413       fi
10414
10415       export_dynamic_flag_spec='${wl}-bexpall'
10416       # It seems that -bexpall does not export symbols beginning with
10417       # underscore (_), so it is better to generate a list of symbols to export.
10418       always_export_symbols=yes
10419       if test "$aix_use_runtimelinking" = yes; then
10420         # Warning - without using the other runtime loading flags (-brtl),
10421         # -berok will link without error, but may produce a broken library.
10422         allow_undefined_flag='-berok'
10423         # Determine the default libpath from the value encoded in an
10424         # empty executable.
10425         cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431
10432 int
10433 main ()
10434 {
10435
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_link") 2>conftest.er1
10448   ac_status=$?
10449   grep -v '^ *+' conftest.er1 >conftest.err
10450   rm -f conftest.er1
10451   cat conftest.err >&5
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && {
10454          test -z "$ac_c_werror_flag" ||
10455          test ! -s conftest.err
10456        } && test -s conftest$ac_exeext &&
10457        $as_test_x conftest$ac_exeext; then
10458
10459 lt_aix_libpath_sed='
10460     /Import File Strings/,/^$/ {
10461         /^0/ {
10462             s/^0  *\(.*\)$/\1/
10463             p
10464         }
10465     }'
10466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10467 # Check for a 64-bit object if we didn't find anything.
10468 if test -z "$aix_libpath"; then
10469   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10470 fi
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475
10476 fi
10477
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479       conftest$ac_exeext conftest.$ac_ext
10480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10481
10482         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10483         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"
10484       else
10485         if test "$host_cpu" = ia64; then
10486           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10487           allow_undefined_flag="-z nodefs"
10488           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"
10489         else
10490          # Determine the default libpath from the value encoded in an
10491          # empty executable.
10492          cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h.  */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h.  */
10498
10499 int
10500 main ()
10501 {
10502
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511   *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514   (eval "$ac_link") 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } && {
10521          test -z "$ac_c_werror_flag" ||
10522          test ! -s conftest.err
10523        } && test -s conftest$ac_exeext &&
10524        $as_test_x conftest$ac_exeext; then
10525
10526 lt_aix_libpath_sed='
10527     /Import File Strings/,/^$/ {
10528         /^0/ {
10529             s/^0  *\(.*\)$/\1/
10530             p
10531         }
10532     }'
10533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534 # Check for a 64-bit object if we didn't find anything.
10535 if test -z "$aix_libpath"; then
10536   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 fi
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542
10543 fi
10544
10545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10546       conftest$ac_exeext conftest.$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10548
10549          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10550           # Warning - without using the other run time loading flags,
10551           # -berok will link without error, but may produce a broken library.
10552           no_undefined_flag=' ${wl}-bernotok'
10553           allow_undefined_flag=' ${wl}-berok'
10554           # Exported symbols can be pulled into shared objects from archives
10555           whole_archive_flag_spec='$convenience'
10556           archive_cmds_need_lc=yes
10557           # This is similar to how AIX traditionally builds its shared libraries.
10558           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'
10559         fi
10560       fi
10561       ;;
10562
10563     amigaos*)
10564       case $host_cpu in
10565       powerpc)
10566             # see comment about AmigaOS4 .so support
10567             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10568             archive_expsym_cmds=''
10569         ;;
10570       m68k)
10571             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)'
10572             hardcode_libdir_flag_spec='-L$libdir'
10573             hardcode_minus_L=yes
10574         ;;
10575       esac
10576       ;;
10577
10578     bsdi[45]*)
10579       export_dynamic_flag_spec=-rdynamic
10580       ;;
10581
10582     cygwin* | mingw* | pw32* | cegcc*)
10583       # When not using gcc, we currently assume that we are using
10584       # Microsoft Visual C++.
10585       # hardcode_libdir_flag_spec is actually meaningless, as there is
10586       # no search path for DLLs.
10587       hardcode_libdir_flag_spec=' '
10588       allow_undefined_flag=unsupported
10589       # Tell ltmain to make .lib files, not .a files.
10590       libext=lib
10591       # Tell ltmain to make .dll files, not .so files.
10592       shrext_cmds=".dll"
10593       # FIXME: Setting linknames here is a bad hack.
10594       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10595       # The linker will automatically build a .lib file if we build a DLL.
10596       old_archive_from_new_cmds='true'
10597       # FIXME: Should let the user specify the lib program.
10598       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10599       fix_srcfile_path='`cygpath -w "$srcfile"`'
10600       enable_shared_with_static_runtimes=yes
10601       ;;
10602
10603     darwin* | rhapsody*)
10604
10605
10606   archive_cmds_need_lc=no
10607   hardcode_direct=no
10608   hardcode_automatic=yes
10609   hardcode_shlibpath_var=unsupported
10610   whole_archive_flag_spec=''
10611   link_all_deplibs=yes
10612   allow_undefined_flag="$_lt_dar_allow_undefined"
10613   case $cc_basename in
10614      ifort*) _lt_dar_can_shared=yes ;;
10615      *) _lt_dar_can_shared=$GCC ;;
10616   esac
10617   if test "$_lt_dar_can_shared" = "yes"; then
10618     output_verbose_link_cmd=echo
10619     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10620     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10621     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}"
10622     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}"
10623
10624   else
10625   ld_shlibs=no
10626   fi
10627
10628       ;;
10629
10630     dgux*)
10631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632       hardcode_libdir_flag_spec='-L$libdir'
10633       hardcode_shlibpath_var=no
10634       ;;
10635
10636     freebsd1*)
10637       ld_shlibs=no
10638       ;;
10639
10640     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10641     # support.  Future versions do this automatically, but an explicit c++rt0.o
10642     # does not break anything, and helps significantly (at the cost of a little
10643     # extra space).
10644     freebsd2.2*)
10645       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10646       hardcode_libdir_flag_spec='-R$libdir'
10647       hardcode_direct=yes
10648       hardcode_shlibpath_var=no
10649       ;;
10650
10651     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10652     freebsd2*)
10653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10654       hardcode_direct=yes
10655       hardcode_minus_L=yes
10656       hardcode_shlibpath_var=no
10657       ;;
10658
10659     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10660     freebsd* | dragonfly*)
10661       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10662       hardcode_libdir_flag_spec='-R$libdir'
10663       hardcode_direct=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     hpux9*)
10668       if test "$GCC" = yes; then
10669         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'
10670       else
10671         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'
10672       fi
10673       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10674       hardcode_libdir_separator=:
10675       hardcode_direct=yes
10676
10677       # hardcode_minus_L: Not really in the search PATH,
10678       # but as the default location of the library.
10679       hardcode_minus_L=yes
10680       export_dynamic_flag_spec='${wl}-E'
10681       ;;
10682
10683     hpux10*)
10684       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10685         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10686       else
10687         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10688       fi
10689       if test "$with_gnu_ld" = no; then
10690         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10691         hardcode_libdir_flag_spec_ld='+b $libdir'
10692         hardcode_libdir_separator=:
10693         hardcode_direct=yes
10694         hardcode_direct_absolute=yes
10695         export_dynamic_flag_spec='${wl}-E'
10696         # hardcode_minus_L: Not really in the search PATH,
10697         # but as the default location of the library.
10698         hardcode_minus_L=yes
10699       fi
10700       ;;
10701
10702     hpux11*)
10703       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10704         case $host_cpu in
10705         hppa*64*)
10706           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10707           ;;
10708         ia64*)
10709           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10710           ;;
10711         *)
10712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10713           ;;
10714         esac
10715       else
10716         case $host_cpu in
10717         hppa*64*)
10718           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10719           ;;
10720         ia64*)
10721           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         *)
10724           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         esac
10727       fi
10728       if test "$with_gnu_ld" = no; then
10729         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10730         hardcode_libdir_separator=:
10731
10732         case $host_cpu in
10733         hppa*64*|ia64*)
10734           hardcode_direct=no
10735           hardcode_shlibpath_var=no
10736           ;;
10737         *)
10738           hardcode_direct=yes
10739           hardcode_direct_absolute=yes
10740           export_dynamic_flag_spec='${wl}-E'
10741
10742           # hardcode_minus_L: Not really in the search PATH,
10743           # but as the default location of the library.
10744           hardcode_minus_L=yes
10745           ;;
10746         esac
10747       fi
10748       ;;
10749
10750     irix5* | irix6* | nonstopux*)
10751       if test "$GCC" = yes; then
10752         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'
10753         # Try to use the -exported_symbol ld option, if it does not
10754         # work, assume that -exports_file does not work either and
10755         # implicitly export all symbols.
10756         save_LDFLAGS="$LDFLAGS"
10757         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10758         cat >conftest.$ac_ext <<_ACEOF
10759 int foo(void) {}
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_link") 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } && {
10775          test -z "$ac_c_werror_flag" ||
10776          test ! -s conftest.err
10777        } && test -s conftest$ac_exeext &&
10778        $as_test_x conftest$ac_exeext; then
10779   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'
10780
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785
10786 fi
10787
10788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10789       conftest$ac_exeext conftest.$ac_ext
10790         LDFLAGS="$save_LDFLAGS"
10791       else
10792         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'
10793         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'
10794       fi
10795       archive_cmds_need_lc='no'
10796       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797       hardcode_libdir_separator=:
10798       inherit_rpath=yes
10799       link_all_deplibs=yes
10800       ;;
10801
10802     netbsd*)
10803       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10804         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10805       else
10806         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10807       fi
10808       hardcode_libdir_flag_spec='-R$libdir'
10809       hardcode_direct=yes
10810       hardcode_shlibpath_var=no
10811       ;;
10812
10813     newsos6)
10814       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815       hardcode_direct=yes
10816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817       hardcode_libdir_separator=:
10818       hardcode_shlibpath_var=no
10819       ;;
10820
10821     *nto* | *qnx*)
10822       ;;
10823
10824     openbsd*)
10825       if test -f /usr/libexec/ld.so; then
10826         hardcode_direct=yes
10827         hardcode_shlibpath_var=no
10828         hardcode_direct_absolute=yes
10829         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10830           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10831           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10832           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10833           export_dynamic_flag_spec='${wl}-E'
10834         else
10835           case $host_os in
10836            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10837              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10838              hardcode_libdir_flag_spec='-R$libdir'
10839              ;;
10840            *)
10841              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10843              ;;
10844           esac
10845         fi
10846       else
10847         ld_shlibs=no
10848       fi
10849       ;;
10850
10851     os2*)
10852       hardcode_libdir_flag_spec='-L$libdir'
10853       hardcode_minus_L=yes
10854       allow_undefined_flag=unsupported
10855       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'
10856       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10857       ;;
10858
10859     osf3*)
10860       if test "$GCC" = yes; then
10861         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10862         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'
10863       else
10864         allow_undefined_flag=' -expect_unresolved \*'
10865         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'
10866       fi
10867       archive_cmds_need_lc='no'
10868       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10869       hardcode_libdir_separator=:
10870       ;;
10871
10872     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10873       if test "$GCC" = yes; then
10874         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10875         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'
10876         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877       else
10878         allow_undefined_flag=' -expect_unresolved \*'
10879         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'
10880         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~
10881         $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'
10882
10883         # Both c and cxx compiler support -rpath directly
10884         hardcode_libdir_flag_spec='-rpath $libdir'
10885       fi
10886       archive_cmds_need_lc='no'
10887       hardcode_libdir_separator=:
10888       ;;
10889
10890     solaris*)
10891       no_undefined_flag=' -z defs'
10892       if test "$GCC" = yes; then
10893         wlarc='${wl}'
10894         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10895         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10896           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10897       else
10898         case `$CC -V 2>&1` in
10899         *"Compilers 5.0"*)
10900           wlarc=''
10901           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10903           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10904           ;;
10905         *)
10906           wlarc='${wl}'
10907           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10908           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10910           ;;
10911         esac
10912       fi
10913       hardcode_libdir_flag_spec='-R$libdir'
10914       hardcode_shlibpath_var=no
10915       case $host_os in
10916       solaris2.[0-5] | solaris2.[0-5].*) ;;
10917       *)
10918         # The compiler driver will combine and reorder linker options,
10919         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10920         # but is careful enough not to reorder.
10921         # Supported since Solaris 2.6 (maybe 2.5.1?)
10922         if test "$GCC" = yes; then
10923           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10924         else
10925           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10926         fi
10927         ;;
10928       esac
10929       link_all_deplibs=yes
10930       ;;
10931
10932     sunos4*)
10933       if test "x$host_vendor" = xsequent; then
10934         # Use $CC to link under sequent, because it throws in some extra .o
10935         # files that make .init and .fini sections work.
10936         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10937       else
10938         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10939       fi
10940       hardcode_libdir_flag_spec='-L$libdir'
10941       hardcode_direct=yes
10942       hardcode_minus_L=yes
10943       hardcode_shlibpath_var=no
10944       ;;
10945
10946     sysv4)
10947       case $host_vendor in
10948         sni)
10949           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10950           hardcode_direct=yes # is this really true???
10951         ;;
10952         siemens)
10953           ## LD is ld it makes a PLAMLIB
10954           ## CC just makes a GrossModule.
10955           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10956           reload_cmds='$CC -r -o $output$reload_objs'
10957           hardcode_direct=no
10958         ;;
10959         motorola)
10960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10962         ;;
10963       esac
10964       runpath_var='LD_RUN_PATH'
10965       hardcode_shlibpath_var=no
10966       ;;
10967
10968     sysv4.3*)
10969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970       hardcode_shlibpath_var=no
10971       export_dynamic_flag_spec='-Bexport'
10972       ;;
10973
10974     sysv4*MP*)
10975       if test -d /usr/nec; then
10976         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977         hardcode_shlibpath_var=no
10978         runpath_var=LD_RUN_PATH
10979         hardcode_runpath_var=yes
10980         ld_shlibs=yes
10981       fi
10982       ;;
10983
10984     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10985       no_undefined_flag='${wl}-z,text'
10986       archive_cmds_need_lc=no
10987       hardcode_shlibpath_var=no
10988       runpath_var='LD_RUN_PATH'
10989
10990       if test "$GCC" = yes; then
10991         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10992         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993       else
10994         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996       fi
10997       ;;
10998
10999     sysv5* | sco3.2v5* | sco5v6*)
11000       # Note: We can NOT use -z defs as we might desire, because we do not
11001       # link with -lc, and that would cause any symbols used from libc to
11002       # always be unresolved, which means just about no library would
11003       # ever link correctly.  If we're not using GNU ld we use -z text
11004       # though, which does catch some bad symbols but isn't as heavy-handed
11005       # as -z defs.
11006       no_undefined_flag='${wl}-z,text'
11007       allow_undefined_flag='${wl}-z,nodefs'
11008       archive_cmds_need_lc=no
11009       hardcode_shlibpath_var=no
11010       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11011       hardcode_libdir_separator=':'
11012       link_all_deplibs=yes
11013       export_dynamic_flag_spec='${wl}-Bexport'
11014       runpath_var='LD_RUN_PATH'
11015
11016       if test "$GCC" = yes; then
11017         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019       else
11020         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022       fi
11023       ;;
11024
11025     uts4*)
11026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027       hardcode_libdir_flag_spec='-L$libdir'
11028       hardcode_shlibpath_var=no
11029       ;;
11030
11031     *)
11032       ld_shlibs=no
11033       ;;
11034     esac
11035
11036     if test x$host_vendor = xsni; then
11037       case $host in
11038       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11039         export_dynamic_flag_spec='${wl}-Blargedynsym'
11040         ;;
11041       esac
11042     fi
11043   fi
11044
11045 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11046 echo "${ECHO_T}$ld_shlibs" >&6; }
11047 test "$ld_shlibs" = no && can_build_shared=no
11048
11049 with_gnu_ld=$with_gnu_ld
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 #
11066 # Do we need to explicitly link libc?
11067 #
11068 case "x$archive_cmds_need_lc" in
11069 x|xyes)
11070   # Assume -lc should be added
11071   archive_cmds_need_lc=yes
11072
11073   if test "$enable_shared" = yes && test "$GCC" = yes; then
11074     case $archive_cmds in
11075     *'~'*)
11076       # FIXME: we may have to deal with multi-command sequences.
11077       ;;
11078     '$CC '*)
11079       # Test whether the compiler implicitly links with -lc since on some
11080       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11081       # to ld, don't add -lc before -lgcc.
11082       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11083 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11084       $RM conftest*
11085       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11086
11087       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11088   (eval $ac_compile) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } 2>conftest.err; then
11092         soname=conftest
11093         lib=conftest
11094         libobjs=conftest.$ac_objext
11095         deplibs=
11096         wl=$lt_prog_compiler_wl
11097         pic_flag=$lt_prog_compiler_pic
11098         compiler_flags=-v
11099         linker_flags=-v
11100         verstring=
11101         output_objdir=.
11102         libname=conftest
11103         lt_save_allow_undefined_flag=$allow_undefined_flag
11104         allow_undefined_flag=
11105         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11106   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }
11110         then
11111           archive_cmds_need_lc=no
11112         else
11113           archive_cmds_need_lc=yes
11114         fi
11115         allow_undefined_flag=$lt_save_allow_undefined_flag
11116       else
11117         cat conftest.err 1>&5
11118       fi
11119       $RM conftest*
11120       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11121 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11122       ;;
11123     esac
11124   fi
11125   ;;
11126 esac
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
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11285 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11286
11287 if test "$GCC" = yes; then
11288   case $host_os in
11289     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11290     *) lt_awk_arg="/^libraries:/" ;;
11291   esac
11292   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11293   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11294     # if the path contains ";" then we assume it to be the separator
11295     # otherwise default to the standard path separator (i.e. ":") - it is
11296     # assumed that no part of a normal pathname contains ";" but that should
11297     # okay in the real world where ";" in dirpaths is itself problematic.
11298     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11299   else
11300     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11301   fi
11302   # Ok, now we have the path, separated by spaces, we can step through it
11303   # and add multilib dir if necessary.
11304   lt_tmp_lt_search_path_spec=
11305   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11306   for lt_sys_path in $lt_search_path_spec; do
11307     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11308       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11309     else
11310       test -d "$lt_sys_path" && \
11311         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11312     fi
11313   done
11314   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11315 BEGIN {RS=" "; FS="/|\n";} {
11316   lt_foo="";
11317   lt_count=0;
11318   for (lt_i = NF; lt_i > 0; lt_i--) {
11319     if ($lt_i != "" && $lt_i != ".") {
11320       if ($lt_i == "..") {
11321         lt_count++;
11322       } else {
11323         if (lt_count == 0) {
11324           lt_foo="/" $lt_i lt_foo;
11325         } else {
11326           lt_count--;
11327         }
11328       }
11329     }
11330   }
11331   if (lt_foo != "") { lt_freq[lt_foo]++; }
11332   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11333 }'`
11334   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11335 else
11336   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11337 fi
11338 library_names_spec=
11339 libname_spec='lib$name'
11340 soname_spec=
11341 shrext_cmds=".so"
11342 postinstall_cmds=
11343 postuninstall_cmds=
11344 finish_cmds=
11345 finish_eval=
11346 shlibpath_var=
11347 shlibpath_overrides_runpath=unknown
11348 version_type=none
11349 dynamic_linker="$host_os ld.so"
11350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11351 need_lib_prefix=unknown
11352 hardcode_into_libs=no
11353
11354 # when you set need_version to no, make sure it does not cause -set_version
11355 # flags to be left without arguments
11356 need_version=unknown
11357
11358 case $host_os in
11359 aix3*)
11360   version_type=linux
11361   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11362   shlibpath_var=LIBPATH
11363
11364   # AIX 3 has no versioning support, so we append a major version to the name.
11365   soname_spec='${libname}${release}${shared_ext}$major'
11366   ;;
11367
11368 aix[4-9]*)
11369   version_type=linux
11370   need_lib_prefix=no
11371   need_version=no
11372   hardcode_into_libs=yes
11373   if test "$host_cpu" = ia64; then
11374     # AIX 5 supports IA64
11375     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11376     shlibpath_var=LD_LIBRARY_PATH
11377   else
11378     # With GCC up to 2.95.x, collect2 would create an import file
11379     # for dependence libraries.  The import file would start with
11380     # the line `#! .'.  This would cause the generated library to
11381     # depend on `.', always an invalid library.  This was fixed in
11382     # development snapshots of GCC prior to 3.0.
11383     case $host_os in
11384       aix4 | aix4.[01] | aix4.[01].*)
11385       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11386            echo ' yes '
11387            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11388         :
11389       else
11390         can_build_shared=no
11391       fi
11392       ;;
11393     esac
11394     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11395     # soname into executable. Probably we can add versioning support to
11396     # collect2, so additional links can be useful in future.
11397     if test "$aix_use_runtimelinking" = yes; then
11398       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11399       # instead of lib<name>.a to let people know that these are not
11400       # typical AIX shared libraries.
11401       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402     else
11403       # We preserve .a as extension for shared libraries through AIX4.2
11404       # and later when we are not doing run time linking.
11405       library_names_spec='${libname}${release}.a $libname.a'
11406       soname_spec='${libname}${release}${shared_ext}$major'
11407     fi
11408     shlibpath_var=LIBPATH
11409   fi
11410   ;;
11411
11412 amigaos*)
11413   case $host_cpu in
11414   powerpc)
11415     # Since July 2007 AmigaOS4 officially supports .so libraries.
11416     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418     ;;
11419   m68k)
11420     library_names_spec='$libname.ixlibrary $libname.a'
11421     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11422     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'
11423     ;;
11424   esac
11425   ;;
11426
11427 beos*)
11428   library_names_spec='${libname}${shared_ext}'
11429   dynamic_linker="$host_os ld.so"
11430   shlibpath_var=LIBRARY_PATH
11431   ;;
11432
11433 bsdi[45]*)
11434   version_type=linux
11435   need_version=no
11436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437   soname_spec='${libname}${release}${shared_ext}$major'
11438   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11441   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11442   # the default ld.so.conf also contains /usr/contrib/lib and
11443   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11444   # libtool to hard-code these into programs
11445   ;;
11446
11447 cygwin* | mingw* | pw32* | cegcc*)
11448   version_type=windows
11449   shrext_cmds=".dll"
11450   need_version=no
11451   need_lib_prefix=no
11452
11453   case $GCC,$host_os in
11454   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11455     library_names_spec='$libname.dll.a'
11456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11457     postinstall_cmds='base_file=`basename \${file}`~
11458       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11459       dldir=$destdir/`dirname \$dlpath`~
11460       test -d \$dldir || mkdir -p \$dldir~
11461       $install_prog $dir/$dlname \$dldir/$dlname~
11462       chmod a+x \$dldir/$dlname~
11463       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11464         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11465       fi'
11466     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11467       dlpath=$dir/\$dldll~
11468        $RM \$dlpath'
11469     shlibpath_overrides_runpath=yes
11470
11471     case $host_os in
11472     cygwin*)
11473       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11474       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11475       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11476       ;;
11477     mingw* | cegcc*)
11478       # MinGW DLLs use traditional 'lib' prefix
11479       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11480       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11481       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11482         # It is most probably a Windows format PATH printed by
11483         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11484         # path with ; separators, and with drive letters. We can handle the
11485         # drive letters (cygwin fileutils understands them), so leave them,
11486         # especially as we might pass files found there to a mingw objdump,
11487         # which wouldn't understand a cygwinified path. Ahh.
11488         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11489       else
11490         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11491       fi
11492       ;;
11493     pw32*)
11494       # pw32 DLLs use 'pw' prefix rather than 'lib'
11495       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496       ;;
11497     esac
11498     ;;
11499
11500   *)
11501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11502     ;;
11503   esac
11504   dynamic_linker='Win32 ld.exe'
11505   # FIXME: first we should search . and the directory the executable is in
11506   shlibpath_var=PATH
11507   ;;
11508
11509 darwin* | rhapsody*)
11510   dynamic_linker="$host_os dyld"
11511   version_type=darwin
11512   need_lib_prefix=no
11513   need_version=no
11514   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11515   soname_spec='${libname}${release}${major}$shared_ext'
11516   shlibpath_overrides_runpath=yes
11517   shlibpath_var=DYLD_LIBRARY_PATH
11518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11519
11520   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11521   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11522   ;;
11523
11524 dgux*)
11525   version_type=linux
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   ;;
11532
11533 freebsd1*)
11534   dynamic_linker=no
11535   ;;
11536
11537 freebsd* | dragonfly*)
11538   # DragonFly does not have aout.  When/if they implement a new
11539   # versioning mechanism, adjust this.
11540   if test -x /usr/bin/objformat; then
11541     objformat=`/usr/bin/objformat`
11542   else
11543     case $host_os in
11544     freebsd[123]*) objformat=aout ;;
11545     *) objformat=elf ;;
11546     esac
11547   fi
11548   version_type=freebsd-$objformat
11549   case $version_type in
11550     freebsd-elf*)
11551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11552       need_version=no
11553       need_lib_prefix=no
11554       ;;
11555     freebsd-*)
11556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11557       need_version=yes
11558       ;;
11559   esac
11560   shlibpath_var=LD_LIBRARY_PATH
11561   case $host_os in
11562   freebsd2*)
11563     shlibpath_overrides_runpath=yes
11564     ;;
11565   freebsd3.[01]* | freebsdelf3.[01]*)
11566     shlibpath_overrides_runpath=yes
11567     hardcode_into_libs=yes
11568     ;;
11569   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11570   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11571     shlibpath_overrides_runpath=no
11572     hardcode_into_libs=yes
11573     ;;
11574   *) # from 4.6 on, and DragonFly
11575     shlibpath_overrides_runpath=yes
11576     hardcode_into_libs=yes
11577     ;;
11578   esac
11579   ;;
11580
11581 gnu*)
11582   version_type=linux
11583   need_lib_prefix=no
11584   need_version=no
11585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11586   soname_spec='${libname}${release}${shared_ext}$major'
11587   shlibpath_var=LD_LIBRARY_PATH
11588   hardcode_into_libs=yes
11589   ;;
11590
11591 hpux9* | hpux10* | hpux11*)
11592   # Give a soname corresponding to the major version so that dld.sl refuses to
11593   # link against other versions.
11594   version_type=sunos
11595   need_lib_prefix=no
11596   need_version=no
11597   case $host_cpu in
11598   ia64*)
11599     shrext_cmds='.so'
11600     hardcode_into_libs=yes
11601     dynamic_linker="$host_os dld.so"
11602     shlibpath_var=LD_LIBRARY_PATH
11603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605     soname_spec='${libname}${release}${shared_ext}$major'
11606     if test "X$HPUX_IA64_MODE" = X32; then
11607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11608     else
11609       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11610     fi
11611     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11612     ;;
11613   hppa*64*)
11614     shrext_cmds='.sl'
11615     hardcode_into_libs=yes
11616     dynamic_linker="$host_os dld.sl"
11617     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11618     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620     soname_spec='${libname}${release}${shared_ext}$major'
11621     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623     ;;
11624   *)
11625     shrext_cmds='.sl'
11626     dynamic_linker="$host_os dld.sl"
11627     shlibpath_var=SHLIB_PATH
11628     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630     soname_spec='${libname}${release}${shared_ext}$major'
11631     ;;
11632   esac
11633   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11634   postinstall_cmds='chmod 555 $lib'
11635   ;;
11636
11637 interix[3-9]*)
11638   version_type=linux
11639   need_lib_prefix=no
11640   need_version=no
11641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   shlibpath_overrides_runpath=no
11646   hardcode_into_libs=yes
11647   ;;
11648
11649 irix5* | irix6* | nonstopux*)
11650   case $host_os in
11651     nonstopux*) version_type=nonstopux ;;
11652     *)
11653         if test "$lt_cv_prog_gnu_ld" = yes; then
11654                 version_type=linux
11655         else
11656                 version_type=irix
11657         fi ;;
11658   esac
11659   need_lib_prefix=no
11660   need_version=no
11661   soname_spec='${libname}${release}${shared_ext}$major'
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11663   case $host_os in
11664   irix5* | nonstopux*)
11665     libsuff= shlibsuff=
11666     ;;
11667   *)
11668     case $LD in # libtool.m4 will add one of these switches to LD
11669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670       libsuff= shlibsuff= libmagic=32-bit;;
11671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672       libsuff=32 shlibsuff=N32 libmagic=N32;;
11673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675     *) libsuff= shlibsuff= libmagic=never-match;;
11676     esac
11677     ;;
11678   esac
11679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680   shlibpath_overrides_runpath=no
11681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11683   hardcode_into_libs=yes
11684   ;;
11685
11686 # No shared lib support for Linux oldld, aout, or coff.
11687 linux*oldld* | linux*aout* | linux*coff*)
11688   dynamic_linker=no
11689   ;;
11690
11691 # This must be Linux ELF.
11692 linux* | k*bsd*-gnu)
11693   version_type=linux
11694   need_lib_prefix=no
11695   need_version=no
11696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697   soname_spec='${libname}${release}${shared_ext}$major'
11698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11699   shlibpath_var=LD_LIBRARY_PATH
11700   shlibpath_overrides_runpath=no
11701   # Some binutils ld are patched to set DT_RUNPATH
11702   save_LDFLAGS=$LDFLAGS
11703   save_libdir=$libdir
11704   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11705        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11706   cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712
11713 int
11714 main ()
11715 {
11716
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_link") 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } && {
11735          test -z "$ac_c_werror_flag" ||
11736          test ! -s conftest.err
11737        } && test -s conftest$ac_exeext &&
11738        $as_test_x conftest$ac_exeext; then
11739   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11740   shlibpath_overrides_runpath=yes
11741 fi
11742
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751       conftest$ac_exeext conftest.$ac_ext
11752   LDFLAGS=$save_LDFLAGS
11753   libdir=$save_libdir
11754
11755   # This implies no fast_install, which is unacceptable.
11756   # Some rework will be needed to allow for fast_install
11757   # before this can be enabled.
11758   hardcode_into_libs=yes
11759
11760   # Append ld.so.conf contents to the search path
11761   if test -f /etc/ld.so.conf; then
11762     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' ' '`
11763     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11764   fi
11765
11766   # We used to test for /lib/ld.so.1 and disable shared libraries on
11767   # powerpc, because MkLinux only supported shared libraries with the
11768   # GNU dynamic linker.  Since this was broken with cross compilers,
11769   # most powerpc-linux boxes support dynamic linking these days and
11770   # people can always --disable-shared, the test was removed, and we
11771   # assume the GNU/Linux dynamic linker is in use.
11772   dynamic_linker='GNU/Linux ld.so'
11773   ;;
11774
11775 netbsd*)
11776   version_type=sunos
11777   need_lib_prefix=no
11778   need_version=no
11779   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11781     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11782     dynamic_linker='NetBSD (a.out) ld.so'
11783   else
11784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11785     soname_spec='${libname}${release}${shared_ext}$major'
11786     dynamic_linker='NetBSD ld.elf_so'
11787   fi
11788   shlibpath_var=LD_LIBRARY_PATH
11789   shlibpath_overrides_runpath=yes
11790   hardcode_into_libs=yes
11791   ;;
11792
11793 newsos6)
11794   version_type=linux
11795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=yes
11798   ;;
11799
11800 *nto* | *qnx*)
11801   version_type=qnx
11802   need_lib_prefix=no
11803   need_version=no
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805   soname_spec='${libname}${release}${shared_ext}$major'
11806   shlibpath_var=LD_LIBRARY_PATH
11807   shlibpath_overrides_runpath=no
11808   hardcode_into_libs=yes
11809   dynamic_linker='ldqnx.so'
11810   ;;
11811
11812 openbsd*)
11813   version_type=sunos
11814   sys_lib_dlsearch_path_spec="/usr/lib"
11815   need_lib_prefix=no
11816   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11817   case $host_os in
11818     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11819     *)                          need_version=no  ;;
11820   esac
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11822   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11825     case $host_os in
11826       openbsd2.[89] | openbsd2.[89].*)
11827         shlibpath_overrides_runpath=no
11828         ;;
11829       *)
11830         shlibpath_overrides_runpath=yes
11831         ;;
11832       esac
11833   else
11834     shlibpath_overrides_runpath=yes
11835   fi
11836   ;;
11837
11838 os2*)
11839   libname_spec='$name'
11840   shrext_cmds=".dll"
11841   need_lib_prefix=no
11842   library_names_spec='$libname${shared_ext} $libname.a'
11843   dynamic_linker='OS/2 ld.exe'
11844   shlibpath_var=LIBPATH
11845   ;;
11846
11847 osf3* | osf4* | osf5*)
11848   version_type=osf
11849   need_lib_prefix=no
11850   need_version=no
11851   soname_spec='${libname}${release}${shared_ext}$major'
11852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11855   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11856   ;;
11857
11858 rdos*)
11859   dynamic_linker=no
11860   ;;
11861
11862 solaris*)
11863   version_type=linux
11864   need_lib_prefix=no
11865   need_version=no
11866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867   soname_spec='${libname}${release}${shared_ext}$major'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   shlibpath_overrides_runpath=yes
11870   hardcode_into_libs=yes
11871   # ldd complains unless libraries are executable
11872   postinstall_cmds='chmod +x $lib'
11873   ;;
11874
11875 sunos4*)
11876   version_type=sunos
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11878   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=yes
11881   if test "$with_gnu_ld" = yes; then
11882     need_lib_prefix=no
11883   fi
11884   need_version=yes
11885   ;;
11886
11887 sysv4 | sysv4.3*)
11888   version_type=linux
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   case $host_vendor in
11893     sni)
11894       shlibpath_overrides_runpath=no
11895       need_lib_prefix=no
11896       runpath_var=LD_RUN_PATH
11897       ;;
11898     siemens)
11899       need_lib_prefix=no
11900       ;;
11901     motorola)
11902       need_lib_prefix=no
11903       need_version=no
11904       shlibpath_overrides_runpath=no
11905       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11906       ;;
11907   esac
11908   ;;
11909
11910 sysv4*MP*)
11911   if test -d /usr/nec ;then
11912     version_type=linux
11913     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11914     soname_spec='$libname${shared_ext}.$major'
11915     shlibpath_var=LD_LIBRARY_PATH
11916   fi
11917   ;;
11918
11919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11920   version_type=freebsd-elf
11921   need_lib_prefix=no
11922   need_version=no
11923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11924   soname_spec='${libname}${release}${shared_ext}$major'
11925   shlibpath_var=LD_LIBRARY_PATH
11926   shlibpath_overrides_runpath=yes
11927   hardcode_into_libs=yes
11928   if test "$with_gnu_ld" = yes; then
11929     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11930   else
11931     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11932     case $host_os in
11933       sco3.2v5*)
11934         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11935         ;;
11936     esac
11937   fi
11938   sys_lib_dlsearch_path_spec='/usr/lib'
11939   ;;
11940
11941 tpf*)
11942   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11943   version_type=linux
11944   need_lib_prefix=no
11945   need_version=no
11946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947   shlibpath_var=LD_LIBRARY_PATH
11948   shlibpath_overrides_runpath=no
11949   hardcode_into_libs=yes
11950   ;;
11951
11952 uts4*)
11953   version_type=linux
11954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955   soname_spec='${libname}${release}${shared_ext}$major'
11956   shlibpath_var=LD_LIBRARY_PATH
11957   ;;
11958
11959 *)
11960   dynamic_linker=no
11961   ;;
11962 esac
11963 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11964 echo "${ECHO_T}$dynamic_linker" >&6; }
11965 test "$dynamic_linker" = no && can_build_shared=no
11966
11967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11968 if test "$GCC" = yes; then
11969   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11970 fi
11971
11972 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11973   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11974 fi
11975 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11976   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11977 fi
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
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12067 hardcode_action=
12068 if test -n "$hardcode_libdir_flag_spec" ||
12069    test -n "$runpath_var" ||
12070    test "X$hardcode_automatic" = "Xyes" ; then
12071
12072   # We can hardcode non-existent directories.
12073   if test "$hardcode_direct" != no &&
12074      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12075      # have to relink, otherwise we might link with an installed library
12076      # when we should be linking with a yet-to-be-installed one
12077      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12078      test "$hardcode_minus_L" != no; then
12079     # Linking always hardcodes the temporary library directory.
12080     hardcode_action=relink
12081   else
12082     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12083     hardcode_action=immediate
12084   fi
12085 else
12086   # We cannot hardcode anything, or else we can only hardcode existing
12087   # directories.
12088   hardcode_action=unsupported
12089 fi
12090 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12091 echo "${ECHO_T}$hardcode_action" >&6; }
12092
12093 if test "$hardcode_action" = relink ||
12094    test "$inherit_rpath" = yes; then
12095   # Fast installation is not supported
12096   enable_fast_install=no
12097 elif test "$shlibpath_overrides_runpath" = yes ||
12098      test "$enable_shared" = no; then
12099   # Fast installation is not necessary
12100   enable_fast_install=needless
12101 fi
12102
12103
12104
12105
12106
12107
12108   if test "x$enable_dlopen" != xyes; then
12109   enable_dlopen=unknown
12110   enable_dlopen_self=unknown
12111   enable_dlopen_self_static=unknown
12112 else
12113   lt_cv_dlopen=no
12114   lt_cv_dlopen_libs=
12115
12116   case $host_os in
12117   beos*)
12118     lt_cv_dlopen="load_add_on"
12119     lt_cv_dlopen_libs=
12120     lt_cv_dlopen_self=yes
12121     ;;
12122
12123   mingw* | pw32* | cegcc*)
12124     lt_cv_dlopen="LoadLibrary"
12125     lt_cv_dlopen_libs=
12126     ;;
12127
12128   cygwin*)
12129     lt_cv_dlopen="dlopen"
12130     lt_cv_dlopen_libs=
12131     ;;
12132
12133   darwin*)
12134   # if libdl is installed we need to link against it
12135     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12136 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12137 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-ldl  $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150    Use char because int might match the return type of a GCC
12151    builtin and then its argument prototype would still apply.  */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char dlopen ();
12156 int
12157 main ()
12158 {
12159 return dlopen ();
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest$ac_exeext &&
12181        $as_test_x conftest$ac_exeext; then
12182   ac_cv_lib_dl_dlopen=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         ac_cv_lib_dl_dlopen=no
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191       conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12193 fi
12194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12195 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12196 if test $ac_cv_lib_dl_dlopen = yes; then
12197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12198 else
12199
12200     lt_cv_dlopen="dyld"
12201     lt_cv_dlopen_libs=
12202     lt_cv_dlopen_self=yes
12203
12204 fi
12205
12206     ;;
12207
12208   *)
12209     { echo "$as_me:$LINENO: checking for shl_load" >&5
12210 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12211 if test "${ac_cv_func_shl_load+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h.  */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h.  */
12220 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12222 #define shl_load innocuous_shl_load
12223
12224 /* System header to define __stub macros and hopefully few prototypes,
12225     which can conflict with char shl_load (); below.
12226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227     <limits.h> exists even on freestanding compilers.  */
12228
12229 #ifdef __STDC__
12230 # include <limits.h>
12231 #else
12232 # include <assert.h>
12233 #endif
12234
12235 #undef shl_load
12236
12237 /* Override any GCC internal prototype to avoid an error.
12238    Use char because int might match the return type of a GCC
12239    builtin and then its argument prototype would still apply.  */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char shl_load ();
12244 /* The GNU C library defines this for functions which it implements
12245     to always fail with ENOSYS.  Some functions are actually named
12246     something starting with __ and the normal name is an alias.  */
12247 #if defined __stub_shl_load || defined __stub___shl_load
12248 choke me
12249 #endif
12250
12251 int
12252 main ()
12253 {
12254 return shl_load ();
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_link") 2>conftest.er1
12267   ac_status=$?
12268   grep -v '^ *+' conftest.er1 >conftest.err
12269   rm -f conftest.er1
12270   cat conftest.err >&5
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } && {
12273          test -z "$ac_c_werror_flag" ||
12274          test ! -s conftest.err
12275        } && test -s conftest$ac_exeext &&
12276        $as_test_x conftest$ac_exeext; then
12277   ac_cv_func_shl_load=yes
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282         ac_cv_func_shl_load=no
12283 fi
12284
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286       conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12289 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12290 if test $ac_cv_func_shl_load = yes; then
12291   lt_cv_dlopen="shl_load"
12292 else
12293   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12294 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12295 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-ldld  $LIBS"
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306
12307 /* Override any GCC internal prototype to avoid an error.
12308    Use char because int might match the return type of a GCC
12309    builtin and then its argument prototype would still apply.  */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char shl_load ();
12314 int
12315 main ()
12316 {
12317 return shl_load ();
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_link") 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } && {
12336          test -z "$ac_c_werror_flag" ||
12337          test ! -s conftest.err
12338        } && test -s conftest$ac_exeext &&
12339        $as_test_x conftest$ac_exeext; then
12340   ac_cv_lib_dld_shl_load=yes
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345         ac_cv_lib_dld_shl_load=no
12346 fi
12347
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349       conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12354 if test $ac_cv_lib_dld_shl_load = yes; then
12355   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12356 else
12357   { echo "$as_me:$LINENO: checking for dlopen" >&5
12358 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12359 if test "${ac_cv_func_dlopen+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12370 #define dlopen innocuous_dlopen
12371
12372 /* System header to define __stub macros and hopefully few prototypes,
12373     which can conflict with char dlopen (); below.
12374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375     <limits.h> exists even on freestanding compilers.  */
12376
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12382
12383 #undef dlopen
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386    Use char because int might match the return type of a GCC
12387    builtin and then its argument prototype would still apply.  */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char dlopen ();
12392 /* The GNU C library defines this for functions which it implements
12393     to always fail with ENOSYS.  Some functions are actually named
12394     something starting with __ and the normal name is an alias.  */
12395 #if defined __stub_dlopen || defined __stub___dlopen
12396 choke me
12397 #endif
12398
12399 int
12400 main ()
12401 {
12402 return dlopen ();
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_link") 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } && {
12421          test -z "$ac_c_werror_flag" ||
12422          test ! -s conftest.err
12423        } && test -s conftest$ac_exeext &&
12424        $as_test_x conftest$ac_exeext; then
12425   ac_cv_func_dlopen=yes
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12429
12430         ac_cv_func_dlopen=no
12431 fi
12432
12433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12434       conftest$ac_exeext conftest.$ac_ext
12435 fi
12436 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12437 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12438 if test $ac_cv_func_dlopen = yes; then
12439   lt_cv_dlopen="dlopen"
12440 else
12441   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-ldl  $LIBS"
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454
12455 /* Override any GCC internal prototype to avoid an error.
12456    Use char because int might match the return type of a GCC
12457    builtin and then its argument prototype would still apply.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 char dlopen ();
12462 int
12463 main ()
12464 {
12465 return dlopen ();
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (ac_try="$ac_link"
12472 case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_link") 2>conftest.er1
12478   ac_status=$?
12479   grep -v '^ *+' conftest.er1 >conftest.err
12480   rm -f conftest.er1
12481   cat conftest.err >&5
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } && {
12484          test -z "$ac_c_werror_flag" ||
12485          test ! -s conftest.err
12486        } && test -s conftest$ac_exeext &&
12487        $as_test_x conftest$ac_exeext; then
12488   ac_cv_lib_dl_dlopen=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493         ac_cv_lib_dl_dlopen=no
12494 fi
12495
12496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12497       conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12499 fi
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12502 if test $ac_cv_lib_dl_dlopen = yes; then
12503   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12504 else
12505   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12506 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12507 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lsvld  $LIBS"
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520    Use char because int might match the return type of a GCC
12521    builtin and then its argument prototype would still apply.  */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char dlopen ();
12526 int
12527 main ()
12528 {
12529 return dlopen ();
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_link") 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } && {
12548          test -z "$ac_c_werror_flag" ||
12549          test ! -s conftest.err
12550        } && test -s conftest$ac_exeext &&
12551        $as_test_x conftest$ac_exeext; then
12552   ac_cv_lib_svld_dlopen=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557         ac_cv_lib_svld_dlopen=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561       conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12565 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12566 if test $ac_cv_lib_svld_dlopen = yes; then
12567   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12568 else
12569   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12570 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12571 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   ac_check_lib_save_LIBS=$LIBS
12575 LIBS="-ldld  $LIBS"
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584    Use char because int might match the return type of a GCC
12585    builtin and then its argument prototype would still apply.  */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char dld_link ();
12590 int
12591 main ()
12592 {
12593 return dld_link ();
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_link") 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } && {
12612          test -z "$ac_c_werror_flag" ||
12613          test ! -s conftest.err
12614        } && test -s conftest$ac_exeext &&
12615        $as_test_x conftest$ac_exeext; then
12616   ac_cv_lib_dld_dld_link=yes
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621         ac_cv_lib_dld_dld_link=no
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625       conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12627 fi
12628 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12629 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12630 if test $ac_cv_lib_dld_dld_link = yes; then
12631   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12632 fi
12633
12634
12635 fi
12636
12637
12638 fi
12639
12640
12641 fi
12642
12643
12644 fi
12645
12646
12647 fi
12648
12649     ;;
12650   esac
12651
12652   if test "x$lt_cv_dlopen" != xno; then
12653     enable_dlopen=yes
12654   else
12655     enable_dlopen=no
12656   fi
12657
12658   case $lt_cv_dlopen in
12659   dlopen)
12660     save_CPPFLAGS="$CPPFLAGS"
12661     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12662
12663     save_LDFLAGS="$LDFLAGS"
12664     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12665
12666     save_LIBS="$LIBS"
12667     LIBS="$lt_cv_dlopen_libs $LIBS"
12668
12669     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12670 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12671 if test "${lt_cv_dlopen_self+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674           if test "$cross_compiling" = yes; then :
12675   lt_cv_dlopen_self=cross
12676 else
12677   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12678   lt_status=$lt_dlunknown
12679   cat > conftest.$ac_ext <<_LT_EOF
12680 #line 12680 "configure"
12681 #include "confdefs.h"
12682
12683 #if HAVE_DLFCN_H
12684 #include <dlfcn.h>
12685 #endif
12686
12687 #include <stdio.h>
12688
12689 #ifdef RTLD_GLOBAL
12690 #  define LT_DLGLOBAL           RTLD_GLOBAL
12691 #else
12692 #  ifdef DL_GLOBAL
12693 #    define LT_DLGLOBAL         DL_GLOBAL
12694 #  else
12695 #    define LT_DLGLOBAL         0
12696 #  endif
12697 #endif
12698
12699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12700    find out it does not work in some platform. */
12701 #ifndef LT_DLLAZY_OR_NOW
12702 #  ifdef RTLD_LAZY
12703 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12704 #  else
12705 #    ifdef DL_LAZY
12706 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12707 #    else
12708 #      ifdef RTLD_NOW
12709 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12710 #      else
12711 #        ifdef DL_NOW
12712 #          define LT_DLLAZY_OR_NOW      DL_NOW
12713 #        else
12714 #          define LT_DLLAZY_OR_NOW      0
12715 #        endif
12716 #      endif
12717 #    endif
12718 #  endif
12719 #endif
12720
12721 void fnord() { int i=42;}
12722 int main ()
12723 {
12724   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12725   int status = $lt_dlunknown;
12726
12727   if (self)
12728     {
12729       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12730       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12731       /* dlclose (self); */
12732     }
12733   else
12734     puts (dlerror ());
12735
12736   return status;
12737 }
12738 _LT_EOF
12739   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740   (eval $ac_link) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12744     (./conftest; exit; ) >&5 2>/dev/null
12745     lt_status=$?
12746     case x$lt_status in
12747       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12748       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12749       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12750     esac
12751   else :
12752     # compilation failed
12753     lt_cv_dlopen_self=no
12754   fi
12755 fi
12756 rm -fr conftest*
12757
12758
12759 fi
12760 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12761 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12762
12763     if test "x$lt_cv_dlopen_self" = xyes; then
12764       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12765       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12766 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12767 if test "${lt_cv_dlopen_self_static+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770           if test "$cross_compiling" = yes; then :
12771   lt_cv_dlopen_self_static=cross
12772 else
12773   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12774   lt_status=$lt_dlunknown
12775   cat > conftest.$ac_ext <<_LT_EOF
12776 #line 12776 "configure"
12777 #include "confdefs.h"
12778
12779 #if HAVE_DLFCN_H
12780 #include <dlfcn.h>
12781 #endif
12782
12783 #include <stdio.h>
12784
12785 #ifdef RTLD_GLOBAL
12786 #  define LT_DLGLOBAL           RTLD_GLOBAL
12787 #else
12788 #  ifdef DL_GLOBAL
12789 #    define LT_DLGLOBAL         DL_GLOBAL
12790 #  else
12791 #    define LT_DLGLOBAL         0
12792 #  endif
12793 #endif
12794
12795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12796    find out it does not work in some platform. */
12797 #ifndef LT_DLLAZY_OR_NOW
12798 #  ifdef RTLD_LAZY
12799 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12800 #  else
12801 #    ifdef DL_LAZY
12802 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12803 #    else
12804 #      ifdef RTLD_NOW
12805 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12806 #      else
12807 #        ifdef DL_NOW
12808 #          define LT_DLLAZY_OR_NOW      DL_NOW
12809 #        else
12810 #          define LT_DLLAZY_OR_NOW      0
12811 #        endif
12812 #      endif
12813 #    endif
12814 #  endif
12815 #endif
12816
12817 void fnord() { int i=42;}
12818 int main ()
12819 {
12820   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12821   int status = $lt_dlunknown;
12822
12823   if (self)
12824     {
12825       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12826       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12827       /* dlclose (self); */
12828     }
12829   else
12830     puts (dlerror ());
12831
12832   return status;
12833 }
12834 _LT_EOF
12835   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12836   (eval $ac_link) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12840     (./conftest; exit; ) >&5 2>/dev/null
12841     lt_status=$?
12842     case x$lt_status in
12843       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12844       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12845       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12846     esac
12847   else :
12848     # compilation failed
12849     lt_cv_dlopen_self_static=no
12850   fi
12851 fi
12852 rm -fr conftest*
12853
12854
12855 fi
12856 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12857 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12858     fi
12859
12860     CPPFLAGS="$save_CPPFLAGS"
12861     LDFLAGS="$save_LDFLAGS"
12862     LIBS="$save_LIBS"
12863     ;;
12864   esac
12865
12866   case $lt_cv_dlopen_self in
12867   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12868   *) enable_dlopen_self=unknown ;;
12869   esac
12870
12871   case $lt_cv_dlopen_self_static in
12872   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12873   *) enable_dlopen_self_static=unknown ;;
12874   esac
12875 fi
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893 striplib=
12894 old_striplib=
12895 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12896 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12897 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12898   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12899   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12900   { echo "$as_me:$LINENO: result: yes" >&5
12901 echo "${ECHO_T}yes" >&6; }
12902 else
12903 # FIXME - insert some real tests, host_os isn't really good enough
12904   case $host_os in
12905   darwin*)
12906     if test -n "$STRIP" ; then
12907       striplib="$STRIP -x"
12908       old_striplib="$STRIP -S"
12909       { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12911     else
12912       { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12914     fi
12915     ;;
12916   *)
12917     { echo "$as_me:$LINENO: result: no" >&5
12918 echo "${ECHO_T}no" >&6; }
12919     ;;
12920   esac
12921 fi
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934   # Report which library types will actually be built
12935   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12936 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12937   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12938 echo "${ECHO_T}$can_build_shared" >&6; }
12939
12940   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12941 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12942   test "$can_build_shared" = "no" && enable_shared=no
12943
12944   # On AIX, shared libraries and static libraries use the same namespace, and
12945   # are all built from PIC.
12946   case $host_os in
12947   aix3*)
12948     test "$enable_shared" = yes && enable_static=no
12949     if test -n "$RANLIB"; then
12950       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12951       postinstall_cmds='$RANLIB $lib'
12952     fi
12953     ;;
12954
12955   aix[4-9]*)
12956     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12957       test "$enable_shared" = yes && enable_static=no
12958     fi
12959     ;;
12960   esac
12961   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12962 echo "${ECHO_T}$enable_shared" >&6; }
12963
12964   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12965 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12966   # Make sure either enable_shared or enable_static is yes.
12967   test "$enable_shared" = yes || enable_static=yes
12968   { echo "$as_me:$LINENO: result: $enable_static" >&5
12969 echo "${ECHO_T}$enable_static" >&6; }
12970
12971
12972
12973
12974 fi
12975 ac_ext=c
12976 ac_cpp='$CPP $CPPFLAGS'
12977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12980
12981 CC="$lt_save_CC"
12982
12983
12984 ac_ext=cpp
12985 ac_cpp='$CXXCPP $CPPFLAGS'
12986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12989
12990 archive_cmds_need_lc_CXX=no
12991 allow_undefined_flag_CXX=
12992 always_export_symbols_CXX=no
12993 archive_expsym_cmds_CXX=
12994 compiler_needs_object_CXX=no
12995 export_dynamic_flag_spec_CXX=
12996 hardcode_direct_CXX=no
12997 hardcode_direct_absolute_CXX=no
12998 hardcode_libdir_flag_spec_CXX=
12999 hardcode_libdir_flag_spec_ld_CXX=
13000 hardcode_libdir_separator_CXX=
13001 hardcode_minus_L_CXX=no
13002 hardcode_shlibpath_var_CXX=unsupported
13003 hardcode_automatic_CXX=no
13004 inherit_rpath_CXX=no
13005 module_cmds_CXX=
13006 module_expsym_cmds_CXX=
13007 link_all_deplibs_CXX=unknown
13008 old_archive_cmds_CXX=$old_archive_cmds
13009 no_undefined_flag_CXX=
13010 whole_archive_flag_spec_CXX=
13011 enable_shared_with_static_runtimes_CXX=no
13012
13013 # Source file extension for C++ test sources.
13014 ac_ext=cpp
13015
13016 # Object file extension for compiled C++ test sources.
13017 objext=o
13018 objext_CXX=$objext
13019
13020 # No sense in running all these tests if we already determined that
13021 # the CXX compiler isn't working.  Some variables (like enable_shared)
13022 # are currently assumed to apply to all compilers on this platform,
13023 # and will be corrupted by setting them based on a non-working compiler.
13024 if test "$_lt_caught_CXX_error" != yes; then
13025   # Code to be used in simple compile tests
13026   lt_simple_compile_test_code="int some_variable = 0;"
13027
13028   # Code to be used in simple link tests
13029   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13030
13031   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13032
13033
13034
13035
13036
13037
13038 # If no C compiler was specified, use CC.
13039 LTCC=${LTCC-"$CC"}
13040
13041 # If no C compiler flags were specified, use CFLAGS.
13042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13043
13044 # Allow CC to be a program name with arguments.
13045 compiler=$CC
13046
13047
13048   # save warnings/boilerplate of simple test code
13049   ac_outfile=conftest.$ac_objext
13050 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13051 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13052 _lt_compiler_boilerplate=`cat conftest.err`
13053 $RM conftest*
13054
13055   ac_outfile=conftest.$ac_objext
13056 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13057 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13058 _lt_linker_boilerplate=`cat conftest.err`
13059 $RM -r conftest*
13060
13061
13062   # Allow CC to be a program name with arguments.
13063   lt_save_CC=$CC
13064   lt_save_LD=$LD
13065   lt_save_GCC=$GCC
13066   GCC=$GXX
13067   lt_save_with_gnu_ld=$with_gnu_ld
13068   lt_save_path_LD=$lt_cv_path_LD
13069   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13070     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13071   else
13072     $as_unset lt_cv_prog_gnu_ld
13073   fi
13074   if test -n "${lt_cv_path_LDCXX+set}"; then
13075     lt_cv_path_LD=$lt_cv_path_LDCXX
13076   else
13077     $as_unset lt_cv_path_LD
13078   fi
13079   test -z "${LDCXX+set}" || LD=$LDCXX
13080   CC=${CXX-"c++"}
13081   compiler=$CC
13082   compiler_CXX=$CC
13083   for cc_temp in $compiler""; do
13084   case $cc_temp in
13085     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13086     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13087     \-*) ;;
13088     *) break;;
13089   esac
13090 done
13091 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13092
13093
13094   if test -n "$compiler"; then
13095     # We don't want -fno-exception when compiling C++ code, so set the
13096     # no_builtin_flag separately
13097     if test "$GXX" = yes; then
13098       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13099     else
13100       lt_prog_compiler_no_builtin_flag_CXX=
13101     fi
13102
13103     if test "$GXX" = yes; then
13104       # Set up default GNU C++ configuration
13105
13106
13107
13108 # Check whether --with-gnu-ld was given.
13109 if test "${with_gnu_ld+set}" = set; then
13110   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13111 else
13112   with_gnu_ld=no
13113 fi
13114
13115 ac_prog=ld
13116 if test "$GCC" = yes; then
13117   # Check if gcc -print-prog-name=ld gives a path.
13118   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13120   case $host in
13121   *-*-mingw*)
13122     # gcc leaves a trailing carriage return which upsets mingw
13123     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13124   *)
13125     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13126   esac
13127   case $ac_prog in
13128     # Accept absolute paths.
13129     [\\/]* | ?:[\\/]*)
13130       re_direlt='/[^/][^/]*/\.\./'
13131       # Canonicalize the pathname of ld
13132       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13133       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13134         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13135       done
13136       test -z "$LD" && LD="$ac_prog"
13137       ;;
13138   "")
13139     # If it fails, then pretend we aren't using GCC.
13140     ac_prog=ld
13141     ;;
13142   *)
13143     # If it is relative, then search for the first ld in PATH.
13144     with_gnu_ld=unknown
13145     ;;
13146   esac
13147 elif test "$with_gnu_ld" = yes; then
13148   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13150 else
13151   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13153 fi
13154 if test "${lt_cv_path_LD+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   if test -z "$LD"; then
13158   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13159   for ac_dir in $PATH; do
13160     IFS="$lt_save_ifs"
13161     test -z "$ac_dir" && ac_dir=.
13162     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13163       lt_cv_path_LD="$ac_dir/$ac_prog"
13164       # Check to see if the program is GNU ld.  I'd rather use --version,
13165       # but apparently some variants of GNU ld only accept -v.
13166       # Break only if it was the GNU/non-GNU ld that we prefer.
13167       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13168       *GNU* | *'with BFD'*)
13169         test "$with_gnu_ld" != no && break
13170         ;;
13171       *)
13172         test "$with_gnu_ld" != yes && break
13173         ;;
13174       esac
13175     fi
13176   done
13177   IFS="$lt_save_ifs"
13178 else
13179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13180 fi
13181 fi
13182
13183 LD="$lt_cv_path_LD"
13184 if test -n "$LD"; then
13185   { echo "$as_me:$LINENO: result: $LD" >&5
13186 echo "${ECHO_T}$LD" >&6; }
13187 else
13188   { echo "$as_me:$LINENO: result: no" >&5
13189 echo "${ECHO_T}no" >&6; }
13190 fi
13191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13193    { (exit 1); exit 1; }; }
13194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13200 case `$LD -v 2>&1 </dev/null` in
13201 *GNU* | *'with BFD'*)
13202   lt_cv_prog_gnu_ld=yes
13203   ;;
13204 *)
13205   lt_cv_prog_gnu_ld=no
13206   ;;
13207 esac
13208 fi
13209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13211 with_gnu_ld=$lt_cv_prog_gnu_ld
13212
13213
13214
13215
13216
13217
13218
13219       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13220       # archiving commands below assume that GNU ld is being used.
13221       if test "$with_gnu_ld" = yes; then
13222         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223         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'
13224
13225         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13226         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13227
13228         # If archive_cmds runs LD, not CC, wlarc should be empty
13229         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13230         #     investigate it a little bit more. (MM)
13231         wlarc='${wl}'
13232
13233         # ancient GNU ld didn't support --whole-archive et. al.
13234         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13235           $GREP 'no-whole-archive' > /dev/null; then
13236           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13237         else
13238           whole_archive_flag_spec_CXX=
13239         fi
13240       else
13241         with_gnu_ld=no
13242         wlarc=
13243
13244         # A generic and very simple default shared library creation
13245         # command for GNU C++ for the case where it uses the native
13246         # linker, instead of GNU ld.  If possible, this setting should
13247         # overridden to take advantage of the native linker features on
13248         # the platform it is being used on.
13249         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13250       fi
13251
13252       # Commands to make compiler produce verbose output that lists
13253       # what "hidden" libraries, object files and flags are used when
13254       # linking a shared library.
13255       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13256
13257     else
13258       GXX=no
13259       with_gnu_ld=no
13260       wlarc=
13261     fi
13262
13263     # PORTME: fill in a description of your system's C++ link characteristics
13264     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13266     ld_shlibs_CXX=yes
13267     case $host_os in
13268       aix3*)
13269         # FIXME: insert proper C++ library support
13270         ld_shlibs_CXX=no
13271         ;;
13272       aix[4-9]*)
13273         if test "$host_cpu" = ia64; then
13274           # On IA64, the linker does run time linking by default, so we don't
13275           # have to do anything special.
13276           aix_use_runtimelinking=no
13277           exp_sym_flag='-Bexport'
13278           no_entry_flag=""
13279         else
13280           aix_use_runtimelinking=no
13281
13282           # Test if we are trying to use run time linking or normal
13283           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13284           # need to do runtime linking.
13285           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13286             for ld_flag in $LDFLAGS; do
13287               case $ld_flag in
13288               *-brtl*)
13289                 aix_use_runtimelinking=yes
13290                 break
13291                 ;;
13292               esac
13293             done
13294             ;;
13295           esac
13296
13297           exp_sym_flag='-bexport'
13298           no_entry_flag='-bnoentry'
13299         fi
13300
13301         # When large executables or shared objects are built, AIX ld can
13302         # have problems creating the table of contents.  If linking a library
13303         # or program results in "error TOC overflow" add -mminimal-toc to
13304         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13305         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13306
13307         archive_cmds_CXX=''
13308         hardcode_direct_CXX=yes
13309         hardcode_direct_absolute_CXX=yes
13310         hardcode_libdir_separator_CXX=':'
13311         link_all_deplibs_CXX=yes
13312         file_list_spec_CXX='${wl}-f,'
13313
13314         if test "$GXX" = yes; then
13315           case $host_os in aix4.[012]|aix4.[012].*)
13316           # We only want to do this on AIX 4.2 and lower, the check
13317           # below for broken collect2 doesn't work under 4.3+
13318           collect2name=`${CC} -print-prog-name=collect2`
13319           if test -f "$collect2name" &&
13320              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13321           then
13322             # We have reworked collect2
13323             :
13324           else
13325             # We have old collect2
13326             hardcode_direct_CXX=unsupported
13327             # It fails to find uninstalled libraries when the uninstalled
13328             # path is not listed in the libpath.  Setting hardcode_minus_L
13329             # to unsupported forces relinking
13330             hardcode_minus_L_CXX=yes
13331             hardcode_libdir_flag_spec_CXX='-L$libdir'
13332             hardcode_libdir_separator_CXX=
13333           fi
13334           esac
13335           shared_flag='-shared'
13336           if test "$aix_use_runtimelinking" = yes; then
13337             shared_flag="$shared_flag "'${wl}-G'
13338           fi
13339         else
13340           # not using gcc
13341           if test "$host_cpu" = ia64; then
13342           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13343           # chokes on -Wl,-G. The following line is correct:
13344           shared_flag='-G'
13345           else
13346             if test "$aix_use_runtimelinking" = yes; then
13347               shared_flag='${wl}-G'
13348             else
13349               shared_flag='${wl}-bM:SRE'
13350             fi
13351           fi
13352         fi
13353
13354         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13355         # It seems that -bexpall does not export symbols beginning with
13356         # underscore (_), so it is better to generate a list of symbols to
13357         # export.
13358         always_export_symbols_CXX=yes
13359         if test "$aix_use_runtimelinking" = yes; then
13360           # Warning - without using the other runtime loading flags (-brtl),
13361           # -berok will link without error, but may produce a broken library.
13362           allow_undefined_flag_CXX='-berok'
13363           # Determine the default libpath from the value encoded in an empty
13364           # executable.
13365           cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371
13372 int
13373 main ()
13374 {
13375
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_link") 2>conftest.er1
13388   ac_status=$?
13389   grep -v '^ *+' conftest.er1 >conftest.err
13390   rm -f conftest.er1
13391   cat conftest.err >&5
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } && {
13394          test -z "$ac_cxx_werror_flag" ||
13395          test ! -s conftest.err
13396        } && test -s conftest$ac_exeext &&
13397        $as_test_x conftest$ac_exeext; then
13398
13399 lt_aix_libpath_sed='
13400     /Import File Strings/,/^$/ {
13401         /^0/ {
13402             s/^0  *\(.*\)$/\1/
13403             p
13404         }
13405     }'
13406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407 # Check for a 64-bit object if we didn't find anything.
13408 if test -z "$aix_libpath"; then
13409   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 fi
13411 else
13412   echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415
13416 fi
13417
13418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13419       conftest$ac_exeext conftest.$ac_ext
13420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13421
13422           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13423
13424           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"
13425         else
13426           if test "$host_cpu" = ia64; then
13427             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13428             allow_undefined_flag_CXX="-z nodefs"
13429             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"
13430           else
13431             # Determine the default libpath from the value encoded in an
13432             # empty executable.
13433             cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439
13440 int
13441 main ()
13442 {
13443
13444   ;
13445   return 0;
13446 }
13447 _ACEOF
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (ac_try="$ac_link"
13450 case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455   (eval "$ac_link") 2>conftest.er1
13456   ac_status=$?
13457   grep -v '^ *+' conftest.er1 >conftest.err
13458   rm -f conftest.er1
13459   cat conftest.err >&5
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } && {
13462          test -z "$ac_cxx_werror_flag" ||
13463          test ! -s conftest.err
13464        } && test -s conftest$ac_exeext &&
13465        $as_test_x conftest$ac_exeext; then
13466
13467 lt_aix_libpath_sed='
13468     /Import File Strings/,/^$/ {
13469         /^0/ {
13470             s/^0  *\(.*\)$/\1/
13471             p
13472         }
13473     }'
13474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13475 # Check for a 64-bit object if we didn't find anything.
13476 if test -z "$aix_libpath"; then
13477   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13478 fi
13479 else
13480   echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483
13484 fi
13485
13486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13487       conftest$ac_exeext conftest.$ac_ext
13488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13489
13490             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13491             # Warning - without using the other run time loading flags,
13492             # -berok will link without error, but may produce a broken library.
13493             no_undefined_flag_CXX=' ${wl}-bernotok'
13494             allow_undefined_flag_CXX=' ${wl}-berok'
13495             # Exported symbols can be pulled into shared objects from archives
13496             whole_archive_flag_spec_CXX='$convenience'
13497             archive_cmds_need_lc_CXX=yes
13498             # This is similar to how AIX traditionally builds its shared
13499             # libraries.
13500             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'
13501           fi
13502         fi
13503         ;;
13504
13505       beos*)
13506         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13507           allow_undefined_flag_CXX=unsupported
13508           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13509           # support --undefined.  This deserves some investigation.  FIXME
13510           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511         else
13512           ld_shlibs_CXX=no
13513         fi
13514         ;;
13515
13516       chorus*)
13517         case $cc_basename in
13518           *)
13519           # FIXME: insert proper C++ library support
13520           ld_shlibs_CXX=no
13521           ;;
13522         esac
13523         ;;
13524
13525       cygwin* | mingw* | pw32* | cegcc*)
13526         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13527         # as there is no search path for DLLs.
13528         hardcode_libdir_flag_spec_CXX='-L$libdir'
13529         allow_undefined_flag_CXX=unsupported
13530         always_export_symbols_CXX=no
13531         enable_shared_with_static_runtimes_CXX=yes
13532
13533         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13534           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'
13535           # If the export-symbols file already is a .def file (1st line
13536           # is EXPORTS), use it as is; otherwise, prepend...
13537           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13538             cp $export_symbols $output_objdir/$soname.def;
13539           else
13540             echo EXPORTS > $output_objdir/$soname.def;
13541             cat $export_symbols >> $output_objdir/$soname.def;
13542           fi~
13543           $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'
13544         else
13545           ld_shlibs_CXX=no
13546         fi
13547         ;;
13548       darwin* | rhapsody*)
13549
13550
13551   archive_cmds_need_lc_CXX=no
13552   hardcode_direct_CXX=no
13553   hardcode_automatic_CXX=yes
13554   hardcode_shlibpath_var_CXX=unsupported
13555   whole_archive_flag_spec_CXX=''
13556   link_all_deplibs_CXX=yes
13557   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13558   case $cc_basename in
13559      ifort*) _lt_dar_can_shared=yes ;;
13560      *) _lt_dar_can_shared=$GCC ;;
13561   esac
13562   if test "$_lt_dar_can_shared" = "yes"; then
13563     output_verbose_link_cmd=echo
13564     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}"
13565     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13566     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}"
13567     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}"
13568        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13569       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}"
13570       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}"
13571     fi
13572
13573   else
13574   ld_shlibs_CXX=no
13575   fi
13576
13577         ;;
13578
13579       dgux*)
13580         case $cc_basename in
13581           ec++*)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585           ghcx*)
13586             # Green Hills C++ Compiler
13587             # FIXME: insert proper C++ library support
13588             ld_shlibs_CXX=no
13589             ;;
13590           *)
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594         esac
13595         ;;
13596
13597       freebsd[12]*)
13598         # C++ shared libraries reported to be fairly broken before
13599         # switch to ELF
13600         ld_shlibs_CXX=no
13601         ;;
13602
13603       freebsd-elf*)
13604         archive_cmds_need_lc_CXX=no
13605         ;;
13606
13607       freebsd* | dragonfly*)
13608         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13609         # conventions
13610         ld_shlibs_CXX=yes
13611         ;;
13612
13613       gnu*)
13614         ;;
13615
13616       hpux9*)
13617         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13618         hardcode_libdir_separator_CXX=:
13619         export_dynamic_flag_spec_CXX='${wl}-E'
13620         hardcode_direct_CXX=yes
13621         hardcode_minus_L_CXX=yes # Not in the search PATH,
13622                                              # but as the default
13623                                              # location of the library.
13624
13625         case $cc_basename in
13626           CC*)
13627             # FIXME: insert proper C++ library support
13628             ld_shlibs_CXX=no
13629             ;;
13630           aCC*)
13631             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'
13632             # Commands to make compiler produce verbose output that lists
13633             # what "hidden" libraries, object files and flags are used when
13634             # linking a shared library.
13635             #
13636             # There doesn't appear to be a way to prevent this compiler from
13637             # explicitly linking system object files so we need to strip them
13638             # from the output so that they don't get included in the library
13639             # dependencies.
13640             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'
13641             ;;
13642           *)
13643             if test "$GXX" = yes; then
13644               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'
13645             else
13646               # FIXME: insert proper C++ library support
13647               ld_shlibs_CXX=no
13648             fi
13649             ;;
13650         esac
13651         ;;
13652
13653       hpux10*|hpux11*)
13654         if test $with_gnu_ld = no; then
13655           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13656           hardcode_libdir_separator_CXX=:
13657
13658           case $host_cpu in
13659             hppa*64*|ia64*)
13660               ;;
13661             *)
13662               export_dynamic_flag_spec_CXX='${wl}-E'
13663               ;;
13664           esac
13665         fi
13666         case $host_cpu in
13667           hppa*64*|ia64*)
13668             hardcode_direct_CXX=no
13669             hardcode_shlibpath_var_CXX=no
13670             ;;
13671           *)
13672             hardcode_direct_CXX=yes
13673             hardcode_direct_absolute_CXX=yes
13674             hardcode_minus_L_CXX=yes # Not in the search PATH,
13675                                                  # but as the default
13676                                                  # location of the library.
13677             ;;
13678         esac
13679
13680         case $cc_basename in
13681           CC*)
13682             # FIXME: insert proper C++ library support
13683             ld_shlibs_CXX=no
13684             ;;
13685           aCC*)
13686             case $host_cpu in
13687               hppa*64*)
13688                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13689                 ;;
13690               ia64*)
13691                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692                 ;;
13693               *)
13694                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13695                 ;;
13696             esac
13697             # Commands to make compiler produce verbose output that lists
13698             # what "hidden" libraries, object files and flags are used when
13699             # linking a shared library.
13700             #
13701             # There doesn't appear to be a way to prevent this compiler from
13702             # explicitly linking system object files so we need to strip them
13703             # from the output so that they don't get included in the library
13704             # dependencies.
13705             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'
13706             ;;
13707           *)
13708             if test "$GXX" = yes; then
13709               if test $with_gnu_ld = no; then
13710                 case $host_cpu in
13711                   hppa*64*)
13712                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713                     ;;
13714                   ia64*)
13715                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13716                     ;;
13717                   *)
13718                     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'
13719                     ;;
13720                 esac
13721               fi
13722             else
13723               # FIXME: insert proper C++ library support
13724               ld_shlibs_CXX=no
13725             fi
13726             ;;
13727         esac
13728         ;;
13729
13730       interix[3-9]*)
13731         hardcode_direct_CXX=no
13732         hardcode_shlibpath_var_CXX=no
13733         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13734         export_dynamic_flag_spec_CXX='${wl}-E'
13735         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13736         # Instead, shared libraries are loaded at an image base (0x10000000 by
13737         # default) and relocated if they conflict, which is a slow very memory
13738         # consuming and fragmenting process.  To avoid this, we pick a random,
13739         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13740         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13741         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'
13742         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'
13743         ;;
13744       irix5* | irix6*)
13745         case $cc_basename in
13746           CC*)
13747             # SGI C++
13748             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'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13752             # necessary to make sure instantiated templates are included
13753             # in the archive.
13754             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13755             ;;
13756           *)
13757             if test "$GXX" = yes; then
13758               if test "$with_gnu_ld" = no; then
13759                 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'
13760               else
13761                 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'
13762               fi
13763             fi
13764             link_all_deplibs_CXX=yes
13765             ;;
13766         esac
13767         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13768         hardcode_libdir_separator_CXX=:
13769         inherit_rpath_CXX=yes
13770         ;;
13771
13772       linux* | k*bsd*-gnu)
13773         case $cc_basename in
13774           KCC*)
13775             # Kuck and Associates, Inc. (KAI) C++ Compiler
13776
13777             # KCC will only create a shared library if the output file
13778             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13779             # to its proper name (with version) after linking.
13780             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'
13781             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'
13782             # Commands to make compiler produce verbose output that lists
13783             # what "hidden" libraries, object files and flags are used when
13784             # linking a shared library.
13785             #
13786             # There doesn't appear to be a way to prevent this compiler from
13787             # explicitly linking system object files so we need to strip them
13788             # from the output so that they don't get included in the library
13789             # dependencies.
13790             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'
13791
13792             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13793             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13794
13795             # Archives containing C++ object files must be created using
13796             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13797             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13798             ;;
13799           icpc* | ecpc* )
13800             # Intel C++
13801             with_gnu_ld=yes
13802             # version 8.0 and above of icpc choke on multiply defined symbols
13803             # if we add $predep_objects and $postdep_objects, however 7.1 and
13804             # earlier do not add the objects themselves.
13805             case `$CC -V 2>&1` in
13806               *"Version 7."*)
13807                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13808                 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'
13809                 ;;
13810               *)  # Version 8.0 or newer
13811                 tmp_idyn=
13812                 case $host_cpu in
13813                   ia64*) tmp_idyn=' -i_dynamic';;
13814                 esac
13815                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816                 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'
13817                 ;;
13818             esac
13819             archive_cmds_need_lc_CXX=no
13820             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13821             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13823             ;;
13824           pgCC* | pgcpp*)
13825             # Portland Group C++ compiler
13826             case `$CC -V` in
13827             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13828               prelink_cmds_CXX='tpldir=Template.dir~
13829                 rm -rf $tpldir~
13830                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13831                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13832               old_archive_cmds_CXX='tpldir=Template.dir~
13833                 rm -rf $tpldir~
13834                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13835                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13836                 $RANLIB $oldlib'
13837               archive_cmds_CXX='tpldir=Template.dir~
13838                 rm -rf $tpldir~
13839                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13840                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13841               archive_expsym_cmds_CXX='tpldir=Template.dir~
13842                 rm -rf $tpldir~
13843                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13844                 $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'
13845               ;;
13846             *) # Version 6 will use weak symbols
13847               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13848               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'
13849               ;;
13850             esac
13851
13852             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13853             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13854             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'
13855             ;;
13856           cxx*)
13857             # Compaq C++
13858             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859             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'
13860
13861             runpath_var=LD_RUN_PATH
13862             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13863             hardcode_libdir_separator_CXX=:
13864
13865             # Commands to make compiler produce verbose output that lists
13866             # what "hidden" libraries, object files and flags are used when
13867             # linking a shared library.
13868             #
13869             # There doesn't appear to be a way to prevent this compiler from
13870             # explicitly linking system object files so we need to strip them
13871             # from the output so that they don't get included in the library
13872             # dependencies.
13873             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'
13874             ;;
13875           xl*)
13876             # IBM XL 8.0 on PPC, with GNU ld
13877             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13878             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13879             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880             if test "x$supports_anon_versioning" = xyes; then
13881               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13882                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13883                 echo "local: *; };" >> $output_objdir/$libname.ver~
13884                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13885             fi
13886             ;;
13887           *)
13888             case `$CC -V 2>&1 | sed 5q` in
13889             *Sun\ C*)
13890               # Sun C++ 5.9
13891               no_undefined_flag_CXX=' -zdefs'
13892               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13893               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'
13894               hardcode_libdir_flag_spec_CXX='-R$libdir'
13895               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'
13896               compiler_needs_object_CXX=yes
13897
13898               # Not sure whether something based on
13899               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13900               # would be better.
13901               output_verbose_link_cmd='echo'
13902
13903               # Archives containing C++ object files must be created using
13904               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13905               # necessary to make sure instantiated templates are included
13906               # in the archive.
13907               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13908               ;;
13909             esac
13910             ;;
13911         esac
13912         ;;
13913
13914       lynxos*)
13915         # FIXME: insert proper C++ library support
13916         ld_shlibs_CXX=no
13917         ;;
13918
13919       m88k*)
13920         # FIXME: insert proper C++ library support
13921         ld_shlibs_CXX=no
13922         ;;
13923
13924       mvs*)
13925         case $cc_basename in
13926           cxx*)
13927             # FIXME: insert proper C++ library support
13928             ld_shlibs_CXX=no
13929             ;;
13930           *)
13931             # FIXME: insert proper C++ library support
13932             ld_shlibs_CXX=no
13933             ;;
13934         esac
13935         ;;
13936
13937       netbsd*)
13938         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13939           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13940           wlarc=
13941           hardcode_libdir_flag_spec_CXX='-R$libdir'
13942           hardcode_direct_CXX=yes
13943           hardcode_shlibpath_var_CXX=no
13944         fi
13945         # Workaround some broken pre-1.5 toolchains
13946         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13947         ;;
13948
13949       *nto* | *qnx*)
13950         ld_shlibs_CXX=yes
13951         ;;
13952
13953       openbsd2*)
13954         # C++ shared libraries are fairly broken
13955         ld_shlibs_CXX=no
13956         ;;
13957
13958       openbsd*)
13959         if test -f /usr/libexec/ld.so; then
13960           hardcode_direct_CXX=yes
13961           hardcode_shlibpath_var_CXX=no
13962           hardcode_direct_absolute_CXX=yes
13963           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13964           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13965           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13966             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13967             export_dynamic_flag_spec_CXX='${wl}-E'
13968             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13969           fi
13970           output_verbose_link_cmd=echo
13971         else
13972           ld_shlibs_CXX=no
13973         fi
13974         ;;
13975
13976       osf3* | osf4* | osf5*)
13977         case $cc_basename in
13978           KCC*)
13979             # Kuck and Associates, Inc. (KAI) C++ Compiler
13980
13981             # KCC will only create a shared library if the output file
13982             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13983             # to its proper name (with version) after linking.
13984             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'
13985
13986             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13987             hardcode_libdir_separator_CXX=:
13988
13989             # Archives containing C++ object files must be created using
13990             # the KAI C++ compiler.
13991             case $host in
13992               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13993               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13994             esac
13995             ;;
13996           RCC*)
13997             # Rational C++ 2.4.1
13998             # FIXME: insert proper C++ library support
13999             ld_shlibs_CXX=no
14000             ;;
14001           cxx*)
14002             case $host in
14003               osf3*)
14004                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14005                 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'
14006                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14007                 ;;
14008               *)
14009                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14010                 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'
14011                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14012                   echo "-hidden">> $lib.exp~
14013                   $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~
14014                   $RM $lib.exp'
14015                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14016                 ;;
14017             esac
14018
14019             hardcode_libdir_separator_CXX=:
14020
14021             # Commands to make compiler produce verbose output that lists
14022             # what "hidden" libraries, object files and flags are used when
14023             # linking a shared library.
14024             #
14025             # There doesn't appear to be a way to prevent this compiler from
14026             # explicitly linking system object files so we need to strip them
14027             # from the output so that they don't get included in the library
14028             # dependencies.
14029             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'
14030             ;;
14031           *)
14032             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14033               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14034               case $host in
14035                 osf3*)
14036                   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'
14037                   ;;
14038                 *)
14039                   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'
14040                   ;;
14041               esac
14042
14043               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14044               hardcode_libdir_separator_CXX=:
14045
14046               # Commands to make compiler produce verbose output that lists
14047               # what "hidden" libraries, object files and flags are used when
14048               # linking a shared library.
14049               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14050
14051             else
14052               # FIXME: insert proper C++ library support
14053               ld_shlibs_CXX=no
14054             fi
14055             ;;
14056         esac
14057         ;;
14058
14059       psos*)
14060         # FIXME: insert proper C++ library support
14061         ld_shlibs_CXX=no
14062         ;;
14063
14064       sunos4*)
14065         case $cc_basename in
14066           CC*)
14067             # Sun C++ 4.x
14068             # FIXME: insert proper C++ library support
14069             ld_shlibs_CXX=no
14070             ;;
14071           lcc*)
14072             # Lucid
14073             # FIXME: insert proper C++ library support
14074             ld_shlibs_CXX=no
14075             ;;
14076           *)
14077             # FIXME: insert proper C++ library support
14078             ld_shlibs_CXX=no
14079             ;;
14080         esac
14081         ;;
14082
14083       solaris*)
14084         case $cc_basename in
14085           CC*)
14086             # Sun C++ 4.2, 5.x and Centerline C++
14087             archive_cmds_need_lc_CXX=yes
14088             no_undefined_flag_CXX=' -zdefs'
14089             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14090             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14091               $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'
14092
14093             hardcode_libdir_flag_spec_CXX='-R$libdir'
14094             hardcode_shlibpath_var_CXX=no
14095             case $host_os in
14096               solaris2.[0-5] | solaris2.[0-5].*) ;;
14097               *)
14098                 # The compiler driver will combine and reorder linker options,
14099                 # but understands `-z linker_flag'.
14100                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14101                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14102                 ;;
14103             esac
14104             link_all_deplibs_CXX=yes
14105
14106             output_verbose_link_cmd='echo'
14107
14108             # Archives containing C++ object files must be created using
14109             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14110             # necessary to make sure instantiated templates are included
14111             # in the archive.
14112             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14113             ;;
14114           gcx*)
14115             # Green Hills C++ Compiler
14116             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14117
14118             # The C++ compiler must be used to create the archive.
14119             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14120             ;;
14121           *)
14122             # GNU C++ compiler with Solaris linker
14123             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14124               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14125               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14126                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14127                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14128                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14129
14130                 # Commands to make compiler produce verbose output that lists
14131                 # what "hidden" libraries, object files and flags are used when
14132                 # linking a shared library.
14133                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14134               else
14135                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14136                 # platform.
14137                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14140
14141                 # Commands to make compiler produce verbose output that lists
14142                 # what "hidden" libraries, object files and flags are used when
14143                 # linking a shared library.
14144                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14145               fi
14146
14147               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14148               case $host_os in
14149                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14150                 *)
14151                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14152                   ;;
14153               esac
14154             fi
14155             ;;
14156         esac
14157         ;;
14158
14159     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14160       no_undefined_flag_CXX='${wl}-z,text'
14161       archive_cmds_need_lc_CXX=no
14162       hardcode_shlibpath_var_CXX=no
14163       runpath_var='LD_RUN_PATH'
14164
14165       case $cc_basename in
14166         CC*)
14167           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14169           ;;
14170         *)
14171           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14173           ;;
14174       esac
14175       ;;
14176
14177       sysv5* | sco3.2v5* | sco5v6*)
14178         # Note: We can NOT use -z defs as we might desire, because we do not
14179         # link with -lc, and that would cause any symbols used from libc to
14180         # always be unresolved, which means just about no library would
14181         # ever link correctly.  If we're not using GNU ld we use -z text
14182         # though, which does catch some bad symbols but isn't as heavy-handed
14183         # as -z defs.
14184         no_undefined_flag_CXX='${wl}-z,text'
14185         allow_undefined_flag_CXX='${wl}-z,nodefs'
14186         archive_cmds_need_lc_CXX=no
14187         hardcode_shlibpath_var_CXX=no
14188         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14189         hardcode_libdir_separator_CXX=':'
14190         link_all_deplibs_CXX=yes
14191         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14192         runpath_var='LD_RUN_PATH'
14193
14194         case $cc_basename in
14195           CC*)
14196             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14197             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14198             ;;
14199           *)
14200             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14201             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14202             ;;
14203         esac
14204       ;;
14205
14206       tandem*)
14207         case $cc_basename in
14208           NCC*)
14209             # NonStop-UX NCC 3.20
14210             # FIXME: insert proper C++ library support
14211             ld_shlibs_CXX=no
14212             ;;
14213           *)
14214             # FIXME: insert proper C++ library support
14215             ld_shlibs_CXX=no
14216             ;;
14217         esac
14218         ;;
14219
14220       vxworks*)
14221         # FIXME: insert proper C++ library support
14222         ld_shlibs_CXX=no
14223         ;;
14224
14225       *)
14226         # FIXME: insert proper C++ library support
14227         ld_shlibs_CXX=no
14228         ;;
14229     esac
14230
14231     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14232 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14233     test "$ld_shlibs_CXX" = no && can_build_shared=no
14234
14235     GCC_CXX="$GXX"
14236     LD_CXX="$LD"
14237
14238     ## CAVEAT EMPTOR:
14239     ## There is no encapsulation within the following macros, do not change
14240     ## the running order or otherwise move them around unless you know exactly
14241     ## what you are doing...
14242     # Dependencies to place before and after the object being linked:
14243 predep_objects_CXX=
14244 postdep_objects_CXX=
14245 predeps_CXX=
14246 postdeps_CXX=
14247 compiler_lib_search_path_CXX=
14248
14249 cat > conftest.$ac_ext <<_LT_EOF
14250 class Foo
14251 {
14252 public:
14253   Foo (void) { a = 0; }
14254 private:
14255   int a;
14256 };
14257 _LT_EOF
14258
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260   (eval $ac_compile) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; then
14264   # Parse the compiler output and extract the necessary
14265   # objects, libraries and library flags.
14266
14267   # Sentinel used to keep track of whether or not we are before
14268   # the conftest object file.
14269   pre_test_object_deps_done=no
14270
14271   for p in `eval "$output_verbose_link_cmd"`; do
14272     case $p in
14273
14274     -L* | -R* | -l*)
14275        # Some compilers place space between "-{L,R}" and the path.
14276        # Remove the space.
14277        if test $p = "-L" ||
14278           test $p = "-R"; then
14279          prev=$p
14280          continue
14281        else
14282          prev=
14283        fi
14284
14285        if test "$pre_test_object_deps_done" = no; then
14286          case $p in
14287          -L* | -R*)
14288            # Internal compiler library paths should come after those
14289            # provided the user.  The postdeps already come after the
14290            # user supplied libs so there is no need to process them.
14291            if test -z "$compiler_lib_search_path_CXX"; then
14292              compiler_lib_search_path_CXX="${prev}${p}"
14293            else
14294              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14295            fi
14296            ;;
14297          # The "-l" case would never come before the object being
14298          # linked, so don't bother handling this case.
14299          esac
14300        else
14301          if test -z "$postdeps_CXX"; then
14302            postdeps_CXX="${prev}${p}"
14303          else
14304            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14305          fi
14306        fi
14307        ;;
14308
14309     *.$objext)
14310        # This assumes that the test object file only shows up
14311        # once in the compiler output.
14312        if test "$p" = "conftest.$objext"; then
14313          pre_test_object_deps_done=yes
14314          continue
14315        fi
14316
14317        if test "$pre_test_object_deps_done" = no; then
14318          if test -z "$predep_objects_CXX"; then
14319            predep_objects_CXX="$p"
14320          else
14321            predep_objects_CXX="$predep_objects_CXX $p"
14322          fi
14323        else
14324          if test -z "$postdep_objects_CXX"; then
14325            postdep_objects_CXX="$p"
14326          else
14327            postdep_objects_CXX="$postdep_objects_CXX $p"
14328          fi
14329        fi
14330        ;;
14331
14332     *) ;; # Ignore the rest.
14333
14334     esac
14335   done
14336
14337   # Clean up.
14338   rm -f a.out a.exe
14339 else
14340   echo "libtool.m4: error: problem compiling CXX test program"
14341 fi
14342
14343 $RM -f confest.$objext
14344
14345 # PORTME: override above test on systems where it is broken
14346 case $host_os in
14347 interix[3-9]*)
14348   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14349   # hack all around it, let's just trust "g++" to DTRT.
14350   predep_objects_CXX=
14351   postdep_objects_CXX=
14352   postdeps_CXX=
14353   ;;
14354
14355 linux*)
14356   case `$CC -V 2>&1 | sed 5q` in
14357   *Sun\ C*)
14358     # Sun C++ 5.9
14359
14360     # The more standards-conforming stlport4 library is
14361     # incompatible with the Cstd library. Avoid specifying
14362     # it if it's in CXXFLAGS. Ignore libCrun as
14363     # -library=stlport4 depends on it.
14364     case " $CXX $CXXFLAGS " in
14365     *" -library=stlport4 "*)
14366       solaris_use_stlport4=yes
14367       ;;
14368     esac
14369
14370     if test "$solaris_use_stlport4" != yes; then
14371       postdeps_CXX='-library=Cstd -library=Crun'
14372     fi
14373     ;;
14374   esac
14375   ;;
14376
14377 solaris*)
14378   case $cc_basename in
14379   CC*)
14380     # The more standards-conforming stlport4 library is
14381     # incompatible with the Cstd library. Avoid specifying
14382     # it if it's in CXXFLAGS. Ignore libCrun as
14383     # -library=stlport4 depends on it.
14384     case " $CXX $CXXFLAGS " in
14385     *" -library=stlport4 "*)
14386       solaris_use_stlport4=yes
14387       ;;
14388     esac
14389
14390     # Adding this requires a known-good setup of shared libraries for
14391     # Sun compiler versions before 5.6, else PIC objects from an old
14392     # archive will be linked into the output, leading to subtle bugs.
14393     if test "$solaris_use_stlport4" != yes; then
14394       postdeps_CXX='-library=Cstd -library=Crun'
14395     fi
14396     ;;
14397   esac
14398   ;;
14399 esac
14400
14401
14402 case " $postdeps_CXX " in
14403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14404 esac
14405  compiler_lib_search_dirs_CXX=
14406 if test -n "${compiler_lib_search_path_CXX}"; then
14407  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14408 fi
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440     lt_prog_compiler_wl_CXX=
14441 lt_prog_compiler_pic_CXX=
14442 lt_prog_compiler_static_CXX=
14443
14444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14446
14447   # C++ specific cases for pic, static, wl, etc.
14448   if test "$GXX" = yes; then
14449     lt_prog_compiler_wl_CXX='-Wl,'
14450     lt_prog_compiler_static_CXX='-static'
14451
14452     case $host_os in
14453     aix*)
14454       # All AIX code is PIC.
14455       if test "$host_cpu" = ia64; then
14456         # AIX 5 now supports IA64 processor
14457         lt_prog_compiler_static_CXX='-Bstatic'
14458       fi
14459       ;;
14460
14461     amigaos*)
14462       case $host_cpu in
14463       powerpc)
14464             # see comment about AmigaOS4 .so support
14465             lt_prog_compiler_pic_CXX='-fPIC'
14466         ;;
14467       m68k)
14468             # FIXME: we need at least 68020 code to build shared libraries, but
14469             # adding the `-m68020' flag to GCC prevents building anything better,
14470             # like `-m68040'.
14471             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14472         ;;
14473       esac
14474       ;;
14475
14476     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14477       # PIC is the default for these OSes.
14478       ;;
14479     mingw* | cygwin* | os2* | pw32* | cegcc*)
14480       # This hack is so that the source file can tell whether it is being
14481       # built for inclusion in a dll (and should export symbols for example).
14482       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14483       # (--disable-auto-import) libraries
14484       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14485       ;;
14486     darwin* | rhapsody*)
14487       # PIC is the default on this platform
14488       # Common symbols not allowed in MH_DYLIB files
14489       lt_prog_compiler_pic_CXX='-fno-common'
14490       ;;
14491     *djgpp*)
14492       # DJGPP does not support shared libraries at all
14493       lt_prog_compiler_pic_CXX=
14494       ;;
14495     interix[3-9]*)
14496       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14497       # Instead, we relocate shared libraries at runtime.
14498       ;;
14499     sysv4*MP*)
14500       if test -d /usr/nec; then
14501         lt_prog_compiler_pic_CXX=-Kconform_pic
14502       fi
14503       ;;
14504     hpux*)
14505       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14506       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14507       # sets the default TLS model and affects inlining.
14508       case $host_cpu in
14509       hppa*64*)
14510         ;;
14511       *)
14512         lt_prog_compiler_pic_CXX='-fPIC'
14513         ;;
14514       esac
14515       ;;
14516     *qnx* | *nto*)
14517       # QNX uses GNU C++, but need to define -shared option too, otherwise
14518       # it will coredump.
14519       lt_prog_compiler_pic_CXX='-fPIC -shared'
14520       ;;
14521     *)
14522       lt_prog_compiler_pic_CXX='-fPIC'
14523       ;;
14524     esac
14525   else
14526     case $host_os in
14527       aix[4-9]*)
14528         # All AIX code is PIC.
14529         if test "$host_cpu" = ia64; then
14530           # AIX 5 now supports IA64 processor
14531           lt_prog_compiler_static_CXX='-Bstatic'
14532         else
14533           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14534         fi
14535         ;;
14536       chorus*)
14537         case $cc_basename in
14538         cxch68*)
14539           # Green Hills C++ Compiler
14540           # _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"
14541           ;;
14542         esac
14543         ;;
14544       dgux*)
14545         case $cc_basename in
14546           ec++*)
14547             lt_prog_compiler_pic_CXX='-KPIC'
14548             ;;
14549           ghcx*)
14550             # Green Hills C++ Compiler
14551             lt_prog_compiler_pic_CXX='-pic'
14552             ;;
14553           *)
14554             ;;
14555         esac
14556         ;;
14557       freebsd* | dragonfly*)
14558         # FreeBSD uses GNU C++
14559         ;;
14560       hpux9* | hpux10* | hpux11*)
14561         case $cc_basename in
14562           CC*)
14563             lt_prog_compiler_wl_CXX='-Wl,'
14564             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14565             if test "$host_cpu" != ia64; then
14566               lt_prog_compiler_pic_CXX='+Z'
14567             fi
14568             ;;
14569           aCC*)
14570             lt_prog_compiler_wl_CXX='-Wl,'
14571             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14572             case $host_cpu in
14573             hppa*64*|ia64*)
14574               # +Z the default
14575               ;;
14576             *)
14577               lt_prog_compiler_pic_CXX='+Z'
14578               ;;
14579             esac
14580             ;;
14581           *)
14582             ;;
14583         esac
14584         ;;
14585       interix*)
14586         # This is c89, which is MS Visual C++ (no shared libs)
14587         # Anyone wants to do a port?
14588         ;;
14589       irix5* | irix6* | nonstopux*)
14590         case $cc_basename in
14591           CC*)
14592             lt_prog_compiler_wl_CXX='-Wl,'
14593             lt_prog_compiler_static_CXX='-non_shared'
14594             # CC pic flag -KPIC is the default.
14595             ;;
14596           *)
14597             ;;
14598         esac
14599         ;;
14600       linux* | k*bsd*-gnu)
14601         case $cc_basename in
14602           KCC*)
14603             # KAI C++ Compiler
14604             lt_prog_compiler_wl_CXX='--backend -Wl,'
14605             lt_prog_compiler_pic_CXX='-fPIC'
14606             ;;
14607           ecpc* )
14608             # old Intel C++ for x86_64 which still supported -KPIC.
14609             lt_prog_compiler_wl_CXX='-Wl,'
14610             lt_prog_compiler_pic_CXX='-KPIC'
14611             lt_prog_compiler_static_CXX='-static'
14612             ;;
14613           icpc* )
14614             # Intel C++, used to be incompatible with GCC.
14615             # ICC 10 doesn't accept -KPIC any more.
14616             lt_prog_compiler_wl_CXX='-Wl,'
14617             lt_prog_compiler_pic_CXX='-fPIC'
14618             lt_prog_compiler_static_CXX='-static'
14619             ;;
14620           pgCC* | pgcpp*)
14621             # Portland Group C++ compiler
14622             lt_prog_compiler_wl_CXX='-Wl,'
14623             lt_prog_compiler_pic_CXX='-fpic'
14624             lt_prog_compiler_static_CXX='-Bstatic'
14625             ;;
14626           cxx*)
14627             # Compaq C++
14628             # Make sure the PIC flag is empty.  It appears that all Alpha
14629             # Linux and Compaq Tru64 Unix objects are PIC.
14630             lt_prog_compiler_pic_CXX=
14631             lt_prog_compiler_static_CXX='-non_shared'
14632             ;;
14633           xlc* | xlC*)
14634             # IBM XL 8.0 on PPC
14635             lt_prog_compiler_wl_CXX='-Wl,'
14636             lt_prog_compiler_pic_CXX='-qpic'
14637             lt_prog_compiler_static_CXX='-qstaticlink'
14638             ;;
14639           *)
14640             case `$CC -V 2>&1 | sed 5q` in
14641             *Sun\ C*)
14642               # Sun C++ 5.9
14643               lt_prog_compiler_pic_CXX='-KPIC'
14644               lt_prog_compiler_static_CXX='-Bstatic'
14645               lt_prog_compiler_wl_CXX='-Qoption ld '
14646               ;;
14647             esac
14648             ;;
14649         esac
14650         ;;
14651       lynxos*)
14652         ;;
14653       m88k*)
14654         ;;
14655       mvs*)
14656         case $cc_basename in
14657           cxx*)
14658             lt_prog_compiler_pic_CXX='-W c,exportall'
14659             ;;
14660           *)
14661             ;;
14662         esac
14663         ;;
14664       netbsd*)
14665         ;;
14666       *qnx* | *nto*)
14667         # QNX uses GNU C++, but need to define -shared option too, otherwise
14668         # it will coredump.
14669         lt_prog_compiler_pic_CXX='-fPIC -shared'
14670         ;;
14671       osf3* | osf4* | osf5*)
14672         case $cc_basename in
14673           KCC*)
14674             lt_prog_compiler_wl_CXX='--backend -Wl,'
14675             ;;
14676           RCC*)
14677             # Rational C++ 2.4.1
14678             lt_prog_compiler_pic_CXX='-pic'
14679             ;;
14680           cxx*)
14681             # Digital/Compaq C++
14682             lt_prog_compiler_wl_CXX='-Wl,'
14683             # Make sure the PIC flag is empty.  It appears that all Alpha
14684             # Linux and Compaq Tru64 Unix objects are PIC.
14685             lt_prog_compiler_pic_CXX=
14686             lt_prog_compiler_static_CXX='-non_shared'
14687             ;;
14688           *)
14689             ;;
14690         esac
14691         ;;
14692       psos*)
14693         ;;
14694       solaris*)
14695         case $cc_basename in
14696           CC*)
14697             # Sun C++ 4.2, 5.x and Centerline C++
14698             lt_prog_compiler_pic_CXX='-KPIC'
14699             lt_prog_compiler_static_CXX='-Bstatic'
14700             lt_prog_compiler_wl_CXX='-Qoption ld '
14701             ;;
14702           gcx*)
14703             # Green Hills C++ Compiler
14704             lt_prog_compiler_pic_CXX='-PIC'
14705             ;;
14706           *)
14707             ;;
14708         esac
14709         ;;
14710       sunos4*)
14711         case $cc_basename in
14712           CC*)
14713             # Sun C++ 4.x
14714             lt_prog_compiler_pic_CXX='-pic'
14715             lt_prog_compiler_static_CXX='-Bstatic'
14716             ;;
14717           lcc*)
14718             # Lucid
14719             lt_prog_compiler_pic_CXX='-pic'
14720             ;;
14721           *)
14722             ;;
14723         esac
14724         ;;
14725       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14726         case $cc_basename in
14727           CC*)
14728             lt_prog_compiler_wl_CXX='-Wl,'
14729             lt_prog_compiler_pic_CXX='-KPIC'
14730             lt_prog_compiler_static_CXX='-Bstatic'
14731             ;;
14732         esac
14733         ;;
14734       tandem*)
14735         case $cc_basename in
14736           NCC*)
14737             # NonStop-UX NCC 3.20
14738             lt_prog_compiler_pic_CXX='-KPIC'
14739             ;;
14740           *)
14741             ;;
14742         esac
14743         ;;
14744       vxworks*)
14745         ;;
14746       *)
14747         lt_prog_compiler_can_build_shared_CXX=no
14748         ;;
14749     esac
14750   fi
14751
14752 case $host_os in
14753   # For platforms which do not support PIC, -DPIC is meaningless:
14754   *djgpp*)
14755     lt_prog_compiler_pic_CXX=
14756     ;;
14757   *)
14758     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14759     ;;
14760 esac
14761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14763
14764
14765
14766 #
14767 # Check to make sure the PIC flag actually works.
14768 #
14769 if test -n "$lt_prog_compiler_pic_CXX"; then
14770   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14771 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14772 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775   lt_cv_prog_compiler_pic_works_CXX=no
14776    ac_outfile=conftest.$ac_objext
14777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14779    # Insert the option either (1) after the last *FLAGS variable, or
14780    # (2) before a word containing "conftest.", or (3) at the end.
14781    # Note that $ac_compile itself does not contain backslashes and begins
14782    # with a dollar sign (not a hyphen), so the echo should work correctly.
14783    # The option is referenced via a variable to avoid confusing sed.
14784    lt_compile=`echo "$ac_compile" | $SED \
14785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787    -e 's:$: $lt_compiler_flag:'`
14788    (eval echo "\"\$as_me:14788: $lt_compile\"" >&5)
14789    (eval "$lt_compile" 2>conftest.err)
14790    ac_status=$?
14791    cat conftest.err >&5
14792    echo "$as_me:14792: \$? = $ac_status" >&5
14793    if (exit $ac_status) && test -s "$ac_outfile"; then
14794      # The compiler can only warn and ignore the option if not recognized
14795      # So say no if there are warnings other than the usual output.
14796      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799        lt_cv_prog_compiler_pic_works_CXX=yes
14800      fi
14801    fi
14802    $RM conftest*
14803
14804 fi
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14809     case $lt_prog_compiler_pic_CXX in
14810      "" | " "*) ;;
14811      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14812      esac
14813 else
14814     lt_prog_compiler_pic_CXX=
14815      lt_prog_compiler_can_build_shared_CXX=no
14816 fi
14817
14818 fi
14819
14820
14821
14822 #
14823 # Check to make sure the static flag actually works.
14824 #
14825 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14826 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14827 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14828 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14829   echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831   lt_cv_prog_compiler_static_works_CXX=no
14832    save_LDFLAGS="$LDFLAGS"
14833    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14834    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14835    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14836      # The linker can only warn and ignore the option if not recognized
14837      # So say no if there are warnings
14838      if test -s conftest.err; then
14839        # Append any errors to the config.log.
14840        cat conftest.err 1>&5
14841        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14842        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843        if diff conftest.exp conftest.er2 >/dev/null; then
14844          lt_cv_prog_compiler_static_works_CXX=yes
14845        fi
14846      else
14847        lt_cv_prog_compiler_static_works_CXX=yes
14848      fi
14849    fi
14850    $RM -r conftest*
14851    LDFLAGS="$save_LDFLAGS"
14852
14853 fi
14854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14855 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14856
14857 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14858     :
14859 else
14860     lt_prog_compiler_static_CXX=
14861 fi
14862
14863
14864
14865
14866     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   lt_cv_prog_compiler_c_o_CXX=no
14872    $RM -r conftest 2>/dev/null
14873    mkdir conftest
14874    cd conftest
14875    mkdir out
14876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14877
14878    lt_compiler_flag="-o out/conftest2.$ac_objext"
14879    # Insert the option either (1) after the last *FLAGS variable, or
14880    # (2) before a word containing "conftest.", or (3) at the end.
14881    # Note that $ac_compile itself does not contain backslashes and begins
14882    # with a dollar sign (not a hyphen), so the echo should work correctly.
14883    lt_compile=`echo "$ac_compile" | $SED \
14884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14886    -e 's:$: $lt_compiler_flag:'`
14887    (eval echo "\"\$as_me:14887: $lt_compile\"" >&5)
14888    (eval "$lt_compile" 2>out/conftest.err)
14889    ac_status=$?
14890    cat out/conftest.err >&5
14891    echo "$as_me:14891: \$? = $ac_status" >&5
14892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14893    then
14894      # The compiler can only warn and ignore the option if not recognized
14895      # So say no if there are warnings
14896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14899        lt_cv_prog_compiler_c_o_CXX=yes
14900      fi
14901    fi
14902    chmod u+w . 2>&5
14903    $RM conftest*
14904    # SGI C++ compiler will create directory out/ii_files/ for
14905    # template instantiation
14906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14907    $RM out/* && rmdir out
14908    cd ..
14909    $RM -r conftest
14910    $RM conftest*
14911
14912 fi
14913 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14915
14916
14917
14918     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14920 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   lt_cv_prog_compiler_c_o_CXX=no
14924    $RM -r conftest 2>/dev/null
14925    mkdir conftest
14926    cd conftest
14927    mkdir out
14928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14929
14930    lt_compiler_flag="-o out/conftest2.$ac_objext"
14931    # Insert the option either (1) after the last *FLAGS variable, or
14932    # (2) before a word containing "conftest.", or (3) at the end.
14933    # Note that $ac_compile itself does not contain backslashes and begins
14934    # with a dollar sign (not a hyphen), so the echo should work correctly.
14935    lt_compile=`echo "$ac_compile" | $SED \
14936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14938    -e 's:$: $lt_compiler_flag:'`
14939    (eval echo "\"\$as_me:14939: $lt_compile\"" >&5)
14940    (eval "$lt_compile" 2>out/conftest.err)
14941    ac_status=$?
14942    cat out/conftest.err >&5
14943    echo "$as_me:14943: \$? = $ac_status" >&5
14944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14945    then
14946      # The compiler can only warn and ignore the option if not recognized
14947      # So say no if there are warnings
14948      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14951        lt_cv_prog_compiler_c_o_CXX=yes
14952      fi
14953    fi
14954    chmod u+w . 2>&5
14955    $RM conftest*
14956    # SGI C++ compiler will create directory out/ii_files/ for
14957    # template instantiation
14958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14959    $RM out/* && rmdir out
14960    cd ..
14961    $RM -r conftest
14962    $RM conftest*
14963
14964 fi
14965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14967
14968
14969
14970
14971 hard_links="nottested"
14972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14973   # do not overwrite the value of need_locks provided by the user
14974   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14976   hard_links=yes
14977   $RM conftest*
14978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14979   touch conftest.a
14980   ln conftest.a conftest.b 2>&5 || hard_links=no
14981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14982   { echo "$as_me:$LINENO: result: $hard_links" >&5
14983 echo "${ECHO_T}$hard_links" >&6; }
14984   if test "$hard_links" = no; then
14985     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14987     need_locks=warn
14988   fi
14989 else
14990   need_locks=no
14991 fi
14992
14993
14994
14995     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14997
14998   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14999   case $host_os in
15000   aix[4-9]*)
15001     # If we're using GNU nm, then we don't want the "-C" option.
15002     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15003     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15004       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'
15005     else
15006       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'
15007     fi
15008     ;;
15009   pw32*)
15010     export_symbols_cmds_CXX="$ltdll_cmds"
15011   ;;
15012   cygwin* | mingw* | cegcc*)
15013     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'
15014   ;;
15015   *)
15016     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15017   ;;
15018   esac
15019   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15020
15021 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15022 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15023 test "$ld_shlibs_CXX" = no && can_build_shared=no
15024
15025 with_gnu_ld_CXX=$with_gnu_ld
15026
15027
15028
15029
15030
15031
15032 #
15033 # Do we need to explicitly link libc?
15034 #
15035 case "x$archive_cmds_need_lc_CXX" in
15036 x|xyes)
15037   # Assume -lc should be added
15038   archive_cmds_need_lc_CXX=yes
15039
15040   if test "$enable_shared" = yes && test "$GCC" = yes; then
15041     case $archive_cmds_CXX in
15042     *'~'*)
15043       # FIXME: we may have to deal with multi-command sequences.
15044       ;;
15045     '$CC '*)
15046       # Test whether the compiler implicitly links with -lc since on some
15047       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15048       # to ld, don't add -lc before -lgcc.
15049       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15050 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15051       $RM conftest*
15052       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053
15054       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055   (eval $ac_compile) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } 2>conftest.err; then
15059         soname=conftest
15060         lib=conftest
15061         libobjs=conftest.$ac_objext
15062         deplibs=
15063         wl=$lt_prog_compiler_wl_CXX
15064         pic_flag=$lt_prog_compiler_pic_CXX
15065         compiler_flags=-v
15066         linker_flags=-v
15067         verstring=
15068         output_objdir=.
15069         libname=conftest
15070         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15071         allow_undefined_flag_CXX=
15072         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15073   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }
15077         then
15078           archive_cmds_need_lc_CXX=no
15079         else
15080           archive_cmds_need_lc_CXX=yes
15081         fi
15082         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15083       else
15084         cat conftest.err 1>&5
15085       fi
15086       $RM conftest*
15087       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15088 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15089       ;;
15090     esac
15091   fi
15092   ;;
15093 esac
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15160
15161 library_names_spec=
15162 libname_spec='lib$name'
15163 soname_spec=
15164 shrext_cmds=".so"
15165 postinstall_cmds=
15166 postuninstall_cmds=
15167 finish_cmds=
15168 finish_eval=
15169 shlibpath_var=
15170 shlibpath_overrides_runpath=unknown
15171 version_type=none
15172 dynamic_linker="$host_os ld.so"
15173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15174 need_lib_prefix=unknown
15175 hardcode_into_libs=no
15176
15177 # when you set need_version to no, make sure it does not cause -set_version
15178 # flags to be left without arguments
15179 need_version=unknown
15180
15181 case $host_os in
15182 aix3*)
15183   version_type=linux
15184   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15185   shlibpath_var=LIBPATH
15186
15187   # AIX 3 has no versioning support, so we append a major version to the name.
15188   soname_spec='${libname}${release}${shared_ext}$major'
15189   ;;
15190
15191 aix[4-9]*)
15192   version_type=linux
15193   need_lib_prefix=no
15194   need_version=no
15195   hardcode_into_libs=yes
15196   if test "$host_cpu" = ia64; then
15197     # AIX 5 supports IA64
15198     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15199     shlibpath_var=LD_LIBRARY_PATH
15200   else
15201     # With GCC up to 2.95.x, collect2 would create an import file
15202     # for dependence libraries.  The import file would start with
15203     # the line `#! .'.  This would cause the generated library to
15204     # depend on `.', always an invalid library.  This was fixed in
15205     # development snapshots of GCC prior to 3.0.
15206     case $host_os in
15207       aix4 | aix4.[01] | aix4.[01].*)
15208       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15209            echo ' yes '
15210            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15211         :
15212       else
15213         can_build_shared=no
15214       fi
15215       ;;
15216     esac
15217     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15218     # soname into executable. Probably we can add versioning support to
15219     # collect2, so additional links can be useful in future.
15220     if test "$aix_use_runtimelinking" = yes; then
15221       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15222       # instead of lib<name>.a to let people know that these are not
15223       # typical AIX shared libraries.
15224       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225     else
15226       # We preserve .a as extension for shared libraries through AIX4.2
15227       # and later when we are not doing run time linking.
15228       library_names_spec='${libname}${release}.a $libname.a'
15229       soname_spec='${libname}${release}${shared_ext}$major'
15230     fi
15231     shlibpath_var=LIBPATH
15232   fi
15233   ;;
15234
15235 amigaos*)
15236   case $host_cpu in
15237   powerpc)
15238     # Since July 2007 AmigaOS4 officially supports .so libraries.
15239     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241     ;;
15242   m68k)
15243     library_names_spec='$libname.ixlibrary $libname.a'
15244     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15245     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'
15246     ;;
15247   esac
15248   ;;
15249
15250 beos*)
15251   library_names_spec='${libname}${shared_ext}'
15252   dynamic_linker="$host_os ld.so"
15253   shlibpath_var=LIBRARY_PATH
15254   ;;
15255
15256 bsdi[45]*)
15257   version_type=linux
15258   need_version=no
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260   soname_spec='${libname}${release}${shared_ext}$major'
15261   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15262   shlibpath_var=LD_LIBRARY_PATH
15263   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15264   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15265   # the default ld.so.conf also contains /usr/contrib/lib and
15266   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15267   # libtool to hard-code these into programs
15268   ;;
15269
15270 cygwin* | mingw* | pw32* | cegcc*)
15271   version_type=windows
15272   shrext_cmds=".dll"
15273   need_version=no
15274   need_lib_prefix=no
15275
15276   case $GCC,$host_os in
15277   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15278     library_names_spec='$libname.dll.a'
15279     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15280     postinstall_cmds='base_file=`basename \${file}`~
15281       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15282       dldir=$destdir/`dirname \$dlpath`~
15283       test -d \$dldir || mkdir -p \$dldir~
15284       $install_prog $dir/$dlname \$dldir/$dlname~
15285       chmod a+x \$dldir/$dlname~
15286       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15287         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15288       fi'
15289     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15290       dlpath=$dir/\$dldll~
15291        $RM \$dlpath'
15292     shlibpath_overrides_runpath=yes
15293
15294     case $host_os in
15295     cygwin*)
15296       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15297       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15299       ;;
15300     mingw* | cegcc*)
15301       # MinGW DLLs use traditional 'lib' prefix
15302       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15303       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15304       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15305         # It is most probably a Windows format PATH printed by
15306         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15307         # path with ; separators, and with drive letters. We can handle the
15308         # drive letters (cygwin fileutils understands them), so leave them,
15309         # especially as we might pass files found there to a mingw objdump,
15310         # which wouldn't understand a cygwinified path. Ahh.
15311         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15312       else
15313         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15314       fi
15315       ;;
15316     pw32*)
15317       # pw32 DLLs use 'pw' prefix rather than 'lib'
15318       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15319       ;;
15320     esac
15321     ;;
15322
15323   *)
15324     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15325     ;;
15326   esac
15327   dynamic_linker='Win32 ld.exe'
15328   # FIXME: first we should search . and the directory the executable is in
15329   shlibpath_var=PATH
15330   ;;
15331
15332 darwin* | rhapsody*)
15333   dynamic_linker="$host_os dyld"
15334   version_type=darwin
15335   need_lib_prefix=no
15336   need_version=no
15337   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15338   soname_spec='${libname}${release}${major}$shared_ext'
15339   shlibpath_overrides_runpath=yes
15340   shlibpath_var=DYLD_LIBRARY_PATH
15341   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15342
15343   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15344   ;;
15345
15346 dgux*)
15347   version_type=linux
15348   need_lib_prefix=no
15349   need_version=no
15350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15351   soname_spec='${libname}${release}${shared_ext}$major'
15352   shlibpath_var=LD_LIBRARY_PATH
15353   ;;
15354
15355 freebsd1*)
15356   dynamic_linker=no
15357   ;;
15358
15359 freebsd* | dragonfly*)
15360   # DragonFly does not have aout.  When/if they implement a new
15361   # versioning mechanism, adjust this.
15362   if test -x /usr/bin/objformat; then
15363     objformat=`/usr/bin/objformat`
15364   else
15365     case $host_os in
15366     freebsd[123]*) objformat=aout ;;
15367     *) objformat=elf ;;
15368     esac
15369   fi
15370   version_type=freebsd-$objformat
15371   case $version_type in
15372     freebsd-elf*)
15373       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15374       need_version=no
15375       need_lib_prefix=no
15376       ;;
15377     freebsd-*)
15378       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15379       need_version=yes
15380       ;;
15381   esac
15382   shlibpath_var=LD_LIBRARY_PATH
15383   case $host_os in
15384   freebsd2*)
15385     shlibpath_overrides_runpath=yes
15386     ;;
15387   freebsd3.[01]* | freebsdelf3.[01]*)
15388     shlibpath_overrides_runpath=yes
15389     hardcode_into_libs=yes
15390     ;;
15391   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15392   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15393     shlibpath_overrides_runpath=no
15394     hardcode_into_libs=yes
15395     ;;
15396   *) # from 4.6 on, and DragonFly
15397     shlibpath_overrides_runpath=yes
15398     hardcode_into_libs=yes
15399     ;;
15400   esac
15401   ;;
15402
15403 gnu*)
15404   version_type=linux
15405   need_lib_prefix=no
15406   need_version=no
15407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15408   soname_spec='${libname}${release}${shared_ext}$major'
15409   shlibpath_var=LD_LIBRARY_PATH
15410   hardcode_into_libs=yes
15411   ;;
15412
15413 hpux9* | hpux10* | hpux11*)
15414   # Give a soname corresponding to the major version so that dld.sl refuses to
15415   # link against other versions.
15416   version_type=sunos
15417   need_lib_prefix=no
15418   need_version=no
15419   case $host_cpu in
15420   ia64*)
15421     shrext_cmds='.so'
15422     hardcode_into_libs=yes
15423     dynamic_linker="$host_os dld.so"
15424     shlibpath_var=LD_LIBRARY_PATH
15425     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427     soname_spec='${libname}${release}${shared_ext}$major'
15428     if test "X$HPUX_IA64_MODE" = X32; then
15429       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15430     else
15431       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15432     fi
15433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15434     ;;
15435   hppa*64*)
15436     shrext_cmds='.sl'
15437     hardcode_into_libs=yes
15438     dynamic_linker="$host_os dld.sl"
15439     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442     soname_spec='${libname}${release}${shared_ext}$major'
15443     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15444     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445     ;;
15446   *)
15447     shrext_cmds='.sl'
15448     dynamic_linker="$host_os dld.sl"
15449     shlibpath_var=SHLIB_PATH
15450     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452     soname_spec='${libname}${release}${shared_ext}$major'
15453     ;;
15454   esac
15455   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15456   postinstall_cmds='chmod 555 $lib'
15457   ;;
15458
15459 interix[3-9]*)
15460   version_type=linux
15461   need_lib_prefix=no
15462   need_version=no
15463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15464   soname_spec='${libname}${release}${shared_ext}$major'
15465   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15466   shlibpath_var=LD_LIBRARY_PATH
15467   shlibpath_overrides_runpath=no
15468   hardcode_into_libs=yes
15469   ;;
15470
15471 irix5* | irix6* | nonstopux*)
15472   case $host_os in
15473     nonstopux*) version_type=nonstopux ;;
15474     *)
15475         if test "$lt_cv_prog_gnu_ld" = yes; then
15476                 version_type=linux
15477         else
15478                 version_type=irix
15479         fi ;;
15480   esac
15481   need_lib_prefix=no
15482   need_version=no
15483   soname_spec='${libname}${release}${shared_ext}$major'
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15485   case $host_os in
15486   irix5* | nonstopux*)
15487     libsuff= shlibsuff=
15488     ;;
15489   *)
15490     case $LD in # libtool.m4 will add one of these switches to LD
15491     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15492       libsuff= shlibsuff= libmagic=32-bit;;
15493     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15494       libsuff=32 shlibsuff=N32 libmagic=N32;;
15495     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15496       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15497     *) libsuff= shlibsuff= libmagic=never-match;;
15498     esac
15499     ;;
15500   esac
15501   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15502   shlibpath_overrides_runpath=no
15503   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15504   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15505   hardcode_into_libs=yes
15506   ;;
15507
15508 # No shared lib support for Linux oldld, aout, or coff.
15509 linux*oldld* | linux*aout* | linux*coff*)
15510   dynamic_linker=no
15511   ;;
15512
15513 # This must be Linux ELF.
15514 linux* | k*bsd*-gnu)
15515   version_type=linux
15516   need_lib_prefix=no
15517   need_version=no
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519   soname_spec='${libname}${release}${shared_ext}$major'
15520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15521   shlibpath_var=LD_LIBRARY_PATH
15522   shlibpath_overrides_runpath=no
15523   # Some binutils ld are patched to set DT_RUNPATH
15524   save_LDFLAGS=$LDFLAGS
15525   save_libdir=$libdir
15526   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15527        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15528   cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534
15535 int
15536 main ()
15537 {
15538
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (ac_try="$ac_link"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_link") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } && {
15557          test -z "$ac_cxx_werror_flag" ||
15558          test ! -s conftest.err
15559        } && test -s conftest$ac_exeext &&
15560        $as_test_x conftest$ac_exeext; then
15561   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15562   shlibpath_overrides_runpath=yes
15563 fi
15564
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569
15570 fi
15571
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573       conftest$ac_exeext conftest.$ac_ext
15574   LDFLAGS=$save_LDFLAGS
15575   libdir=$save_libdir
15576
15577   # This implies no fast_install, which is unacceptable.
15578   # Some rework will be needed to allow for fast_install
15579   # before this can be enabled.
15580   hardcode_into_libs=yes
15581
15582   # Append ld.so.conf contents to the search path
15583   if test -f /etc/ld.so.conf; then
15584     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' ' '`
15585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15586   fi
15587
15588   # We used to test for /lib/ld.so.1 and disable shared libraries on
15589   # powerpc, because MkLinux only supported shared libraries with the
15590   # GNU dynamic linker.  Since this was broken with cross compilers,
15591   # most powerpc-linux boxes support dynamic linking these days and
15592   # people can always --disable-shared, the test was removed, and we
15593   # assume the GNU/Linux dynamic linker is in use.
15594   dynamic_linker='GNU/Linux ld.so'
15595   ;;
15596
15597 netbsd*)
15598   version_type=sunos
15599   need_lib_prefix=no
15600   need_version=no
15601   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15604     dynamic_linker='NetBSD (a.out) ld.so'
15605   else
15606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15607     soname_spec='${libname}${release}${shared_ext}$major'
15608     dynamic_linker='NetBSD ld.elf_so'
15609   fi
15610   shlibpath_var=LD_LIBRARY_PATH
15611   shlibpath_overrides_runpath=yes
15612   hardcode_into_libs=yes
15613   ;;
15614
15615 newsos6)
15616   version_type=linux
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618   shlibpath_var=LD_LIBRARY_PATH
15619   shlibpath_overrides_runpath=yes
15620   ;;
15621
15622 *nto* | *qnx*)
15623   version_type=qnx
15624   need_lib_prefix=no
15625   need_version=no
15626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627   soname_spec='${libname}${release}${shared_ext}$major'
15628   shlibpath_var=LD_LIBRARY_PATH
15629   shlibpath_overrides_runpath=no
15630   hardcode_into_libs=yes
15631   dynamic_linker='ldqnx.so'
15632   ;;
15633
15634 openbsd*)
15635   version_type=sunos
15636   sys_lib_dlsearch_path_spec="/usr/lib"
15637   need_lib_prefix=no
15638   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15639   case $host_os in
15640     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15641     *)                          need_version=no  ;;
15642   esac
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15644   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15647     case $host_os in
15648       openbsd2.[89] | openbsd2.[89].*)
15649         shlibpath_overrides_runpath=no
15650         ;;
15651       *)
15652         shlibpath_overrides_runpath=yes
15653         ;;
15654       esac
15655   else
15656     shlibpath_overrides_runpath=yes
15657   fi
15658   ;;
15659
15660 os2*)
15661   libname_spec='$name'
15662   shrext_cmds=".dll"
15663   need_lib_prefix=no
15664   library_names_spec='$libname${shared_ext} $libname.a'
15665   dynamic_linker='OS/2 ld.exe'
15666   shlibpath_var=LIBPATH
15667   ;;
15668
15669 osf3* | osf4* | osf5*)
15670   version_type=osf
15671   need_lib_prefix=no
15672   need_version=no
15673   soname_spec='${libname}${release}${shared_ext}$major'
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675   shlibpath_var=LD_LIBRARY_PATH
15676   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15677   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15678   ;;
15679
15680 rdos*)
15681   dynamic_linker=no
15682   ;;
15683
15684 solaris*)
15685   version_type=linux
15686   need_lib_prefix=no
15687   need_version=no
15688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689   soname_spec='${libname}${release}${shared_ext}$major'
15690   shlibpath_var=LD_LIBRARY_PATH
15691   shlibpath_overrides_runpath=yes
15692   hardcode_into_libs=yes
15693   # ldd complains unless libraries are executable
15694   postinstall_cmds='chmod +x $lib'
15695   ;;
15696
15697 sunos4*)
15698   version_type=sunos
15699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15701   shlibpath_var=LD_LIBRARY_PATH
15702   shlibpath_overrides_runpath=yes
15703   if test "$with_gnu_ld" = yes; then
15704     need_lib_prefix=no
15705   fi
15706   need_version=yes
15707   ;;
15708
15709 sysv4 | sysv4.3*)
15710   version_type=linux
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   case $host_vendor in
15715     sni)
15716       shlibpath_overrides_runpath=no
15717       need_lib_prefix=no
15718       runpath_var=LD_RUN_PATH
15719       ;;
15720     siemens)
15721       need_lib_prefix=no
15722       ;;
15723     motorola)
15724       need_lib_prefix=no
15725       need_version=no
15726       shlibpath_overrides_runpath=no
15727       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15728       ;;
15729   esac
15730   ;;
15731
15732 sysv4*MP*)
15733   if test -d /usr/nec ;then
15734     version_type=linux
15735     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15736     soname_spec='$libname${shared_ext}.$major'
15737     shlibpath_var=LD_LIBRARY_PATH
15738   fi
15739   ;;
15740
15741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15742   version_type=freebsd-elf
15743   need_lib_prefix=no
15744   need_version=no
15745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15746   soname_spec='${libname}${release}${shared_ext}$major'
15747   shlibpath_var=LD_LIBRARY_PATH
15748   shlibpath_overrides_runpath=yes
15749   hardcode_into_libs=yes
15750   if test "$with_gnu_ld" = yes; then
15751     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15752   else
15753     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15754     case $host_os in
15755       sco3.2v5*)
15756         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15757         ;;
15758     esac
15759   fi
15760   sys_lib_dlsearch_path_spec='/usr/lib'
15761   ;;
15762
15763 tpf*)
15764   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15765   version_type=linux
15766   need_lib_prefix=no
15767   need_version=no
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=no
15771   hardcode_into_libs=yes
15772   ;;
15773
15774 uts4*)
15775   version_type=linux
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   soname_spec='${libname}${release}${shared_ext}$major'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   ;;
15780
15781 *)
15782   dynamic_linker=no
15783   ;;
15784 esac
15785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15786 echo "${ECHO_T}$dynamic_linker" >&6; }
15787 test "$dynamic_linker" = no && can_build_shared=no
15788
15789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15790 if test "$GCC" = yes; then
15791   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15792 fi
15793
15794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15795   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15796 fi
15797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15798   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15799 fi
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15838 hardcode_action_CXX=
15839 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15840    test -n "$runpath_var_CXX" ||
15841    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15842
15843   # We can hardcode non-existent directories.
15844   if test "$hardcode_direct_CXX" != no &&
15845      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15846      # have to relink, otherwise we might link with an installed library
15847      # when we should be linking with a yet-to-be-installed one
15848      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15849      test "$hardcode_minus_L_CXX" != no; then
15850     # Linking always hardcodes the temporary library directory.
15851     hardcode_action_CXX=relink
15852   else
15853     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15854     hardcode_action_CXX=immediate
15855   fi
15856 else
15857   # We cannot hardcode anything, or else we can only hardcode existing
15858   # directories.
15859   hardcode_action_CXX=unsupported
15860 fi
15861 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15862 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15863
15864 if test "$hardcode_action_CXX" = relink ||
15865    test "$inherit_rpath_CXX" = yes; then
15866   # Fast installation is not supported
15867   enable_fast_install=no
15868 elif test "$shlibpath_overrides_runpath" = yes ||
15869      test "$enable_shared" = no; then
15870   # Fast installation is not necessary
15871   enable_fast_install=needless
15872 fi
15873
15874
15875
15876
15877
15878
15879
15880   fi # test -n "$compiler"
15881
15882   CC=$lt_save_CC
15883   LDCXX=$LD
15884   LD=$lt_save_LD
15885   GCC=$lt_save_GCC
15886   with_gnu_ld=$lt_save_with_gnu_ld
15887   lt_cv_path_LDCXX=$lt_cv_path_LD
15888   lt_cv_path_LD=$lt_save_path_LD
15889   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15890   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15891 fi # test "$_lt_caught_CXX_error" != yes
15892
15893 ac_ext=c
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911         ac_config_commands="$ac_config_commands libtool"
15912
15913
15914
15915
15916 # Only expand once:
15917
15918
15919
15920
15921 if test x$use_libtool != xno; then
15922    DEFAULT_OBJECT_TYPE=".lo"
15923    DEFAULT_ARCHIVE_TYPE=".la"
15924    DEFAULT_SHARED_OBJECT_TYPE=".la"
15925    LIBTOOL="\$(LIBTOOL)"
15926    LIBTOOL_INSTALL_TARGET="libtool-install"
15927    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15928    LIBTOOL_CLEAN_TARGET="libtool-clean"
15929    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15930    FD_PLUGIN_DIR="src/plugins/fd"
15931    have_plugins=yes
15932 else
15933    DEFAULT_OBJECT_TYPE=".o"
15934    DEFAULT_ARCHIVE_TYPE=".a"
15935    DEFAULT_SHARED_OBJECT_TYPE=".so"
15936    LIBTOOL="# \$(LIBTOOL)"
15937    LIBTOOL_INSTALL_TARGET=""
15938    LIBTOOL_UNINSTALL_TARGET=""
15939    LIBTOOL_CLEAN_TARGET=""
15940    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15941    FD_PLUGIN_DIR=""
15942    have_plugins=no
15943 fi
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955 # Check whether --enable-includes was given.
15956 if test "${enable_includes+set}" = set; then
15957   enableval=$enable_includes;
15958        if test x$enableval = xyes; then
15959           install_includes=yes
15960        fi
15961
15962
15963 fi
15964
15965
15966
15967 if test x$use_libtool != xno -a x$install_includes = xyes; then
15968    INCLUDE_INSTALL_TARGET="install-includes"
15969    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15970 else
15971    INCLUDE_INSTALL_TARGET=""
15972    INCLUDE_UNINSTALL_TARGET=""
15973 fi
15974
15975
15976
15977
15978 { echo "$as_me:$LINENO: checking host system type" >&5
15979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15980 if test "${ac_cv_host+set}" = set; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   if test "x$host_alias" = x; then
15984   ac_cv_host=$ac_cv_build
15985 else
15986   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15987     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15989    { (exit 1); exit 1; }; }
15990 fi
15991
15992 fi
15993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15994 echo "${ECHO_T}$ac_cv_host" >&6; }
15995 case $ac_cv_host in
15996 *-*-*) ;;
15997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15998 echo "$as_me: error: invalid value of canonical host" >&2;}
15999    { (exit 1); exit 1; }; };;
16000 esac
16001 host=$ac_cv_host
16002 ac_save_IFS=$IFS; IFS='-'
16003 set x $ac_cv_host
16004 shift
16005 host_cpu=$1
16006 host_vendor=$2
16007 shift; shift
16008 # Remember, the first character of IFS is used to create $*,
16009 # except with old shells:
16010 host_os=$*
16011 IFS=$ac_save_IFS
16012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16013
16014
16015 case $host_os in
16016   *cygwin* ) CYGWIN=yes;;
16017          * ) CYGWIN=no;;
16018 esac
16019
16020 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16021 then
16022
16023
16024 if $TRUEPRG; then
16025   HAVE_SUN_OS_TRUE=
16026   HAVE_SUN_OS_FALSE='#'
16027 else
16028   HAVE_SUN_OS_TRUE='#'
16029   HAVE_SUN_OS_FALSE=
16030 fi
16031         cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_SUN_OS 1
16033 _ACEOF
16034
16035 else
16036
16037
16038 if $FALSEPRG; then
16039   HAVE_SUN_OS_TRUE=
16040   HAVE_SUN_OS_FALSE='#'
16041 else
16042   HAVE_SUN_OS_TRUE='#'
16043   HAVE_SUN_OS_FALSE=
16044 fi
16045 fi
16046
16047 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16048 then
16049
16050
16051 if $TRUEPRG; then
16052   HAVE_OSF1_OS_TRUE=
16053   HAVE_OSF1_OS_FALSE='#'
16054 else
16055   HAVE_OSF1_OS_TRUE='#'
16056   HAVE_OSF1_OS_FALSE=
16057 fi
16058         cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_OSF1_OS 1
16060 _ACEOF
16061
16062 else
16063
16064
16065 if $FALSEPRG; then
16066   HAVE_OSF1_OS_TRUE=
16067   HAVE_OSF1_OS_FALSE='#'
16068 else
16069   HAVE_OSF1_OS_TRUE='#'
16070   HAVE_OSF1_OS_FALSE=
16071 fi
16072 fi
16073
16074 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16075 then
16076
16077
16078 if $TRUEPRG; then
16079   HAVE_AIX_OS_TRUE=
16080   HAVE_AIX_OS_FALSE='#'
16081 else
16082   HAVE_AIX_OS_TRUE='#'
16083   HAVE_AIX_OS_FALSE=
16084 fi
16085         cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_AIX_OS 1
16087 _ACEOF
16088
16089 else
16090
16091
16092 if $FALSEPRG; then
16093   HAVE_AIX_OS_TRUE=
16094   HAVE_AIX_OS_FALSE='#'
16095 else
16096   HAVE_AIX_OS_TRUE='#'
16097   HAVE_AIX_OS_FALSE=
16098 fi
16099 fi
16100
16101 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16102 then
16103
16104
16105 if $TRUEPRG; then
16106   HAVE_HPUX_OS_TRUE=
16107   HAVE_HPUX_OS_FALSE='#'
16108 else
16109   HAVE_HPUX_OS_TRUE='#'
16110   HAVE_HPUX_OS_FALSE=
16111 fi
16112         cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_HPUX_OS 1
16114 _ACEOF
16115
16116 else
16117
16118
16119 if $FALSEPRG; then
16120   HAVE_HPUX_OS_TRUE=
16121   HAVE_HPUX_OS_FALSE='#'
16122 else
16123   HAVE_HPUX_OS_TRUE='#'
16124   HAVE_HPUX_OS_FALSE=
16125 fi
16126 fi
16127
16128 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16129 then
16130
16131
16132 if $TRUEPRG; then
16133   HAVE_LINUX_OS_TRUE=
16134   HAVE_LINUX_OS_FALSE='#'
16135 else
16136   HAVE_LINUX_OS_TRUE='#'
16137   HAVE_LINUX_OS_FALSE=
16138 fi
16139         cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_LINUX_OS 1
16141 _ACEOF
16142
16143 else
16144
16145
16146 if $FALSEPRG; then
16147   HAVE_LINUX_OS_TRUE=
16148   HAVE_LINUX_OS_FALSE='#'
16149 else
16150   HAVE_LINUX_OS_TRUE='#'
16151   HAVE_LINUX_OS_FALSE=
16152 fi
16153 fi
16154
16155 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16156 then
16157
16158
16159 if $TRUEPRG; then
16160   HAVE_FREEBSD_OS_TRUE=
16161   HAVE_FREEBSD_OS_FALSE='#'
16162 else
16163   HAVE_FREEBSD_OS_TRUE='#'
16164   HAVE_FREEBSD_OS_FALSE=
16165 fi
16166         cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_FREEBSD_OS 1
16168 _ACEOF
16169
16170 else
16171
16172
16173 if $FALSEPRG; then
16174   HAVE_FREEBSD_OS_TRUE=
16175   HAVE_FREEBSD_OS_FALSE='#'
16176 else
16177   HAVE_FREEBSD_OS_TRUE='#'
16178   HAVE_FREEBSD_OS_FALSE=
16179 fi
16180 fi
16181
16182 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16183 then
16184
16185
16186 if $TRUEPRG; then
16187   HAVE_NETBSD_OS_TRUE=
16188   HAVE_NETBSD_OS_FALSE='#'
16189 else
16190   HAVE_NETBSD_OS_TRUE='#'
16191   HAVE_NETBSD_OS_FALSE=
16192 fi
16193         cat >>confdefs.h <<\_ACEOF
16194 #define HAVE_NETBSD_OS 1
16195 _ACEOF
16196
16197 else
16198
16199
16200 if $FALSEPRG; then
16201   HAVE_NETBSD_OS_TRUE=
16202   HAVE_NETBSD_OS_FALSE='#'
16203 else
16204   HAVE_NETBSD_OS_TRUE='#'
16205   HAVE_NETBSD_OS_FALSE=
16206 fi
16207 fi
16208
16209 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16210 then
16211
16212
16213 if $TRUEPRG; then
16214   HAVE_OPENBSD_OS_TRUE=
16215   HAVE_OPENBSD_OS_FALSE='#'
16216 else
16217   HAVE_OPENBSD_OS_TRUE='#'
16218   HAVE_OPENBSD_OS_FALSE=
16219 fi
16220         cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_OPENBSD_OS 1
16222 _ACEOF
16223
16224 else
16225
16226
16227 if $FALSEPRG; then
16228   HAVE_OPENBSD_OS_TRUE=
16229   HAVE_OPENBSD_OS_FALSE='#'
16230 else
16231   HAVE_OPENBSD_OS_TRUE='#'
16232   HAVE_OPENBSD_OS_FALSE=
16233 fi
16234 fi
16235
16236 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16237 then
16238
16239
16240 if $TRUEPRG; then
16241   HAVE_BSDI_OS_TRUE=
16242   HAVE_BSDI_OS_FALSE='#'
16243 else
16244   HAVE_BSDI_OS_TRUE='#'
16245   HAVE_BSDI_OS_FALSE=
16246 fi
16247         cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_BSDI_OS 1
16249 _ACEOF
16250
16251 else
16252
16253
16254 if $FALSEPRG; then
16255   HAVE_BSDI_OS_TRUE=
16256   HAVE_BSDI_OS_FALSE='#'
16257 else
16258   HAVE_BSDI_OS_TRUE='#'
16259   HAVE_BSDI_OS_FALSE=
16260 fi
16261 fi
16262
16263 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16264 then
16265
16266
16267 if $TRUEPRG; then
16268   HAVE_SGI_OS_TRUE=
16269   HAVE_SGI_OS_FALSE='#'
16270 else
16271   HAVE_SGI_OS_TRUE='#'
16272   HAVE_SGI_OS_FALSE=
16273 fi
16274         cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_SGI_OS 1
16276 _ACEOF
16277
16278 else
16279
16280
16281 if $FALSEPRG; then
16282   HAVE_SGI_OS_TRUE=
16283   HAVE_SGI_OS_FALSE='#'
16284 else
16285   HAVE_SGI_OS_TRUE='#'
16286   HAVE_SGI_OS_FALSE=
16287 fi
16288 fi
16289
16290 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16291 then
16292
16293
16294 if $TRUEPRG; then
16295   HAVE_IRIX_OS_TRUE=
16296   HAVE_IRIX_OS_FALSE='#'
16297 else
16298   HAVE_IRIX_OS_TRUE='#'
16299   HAVE_IRIX_OS_FALSE=
16300 fi
16301         cat >>confdefs.h <<\_ACEOF
16302 #define HAVE_IRIX_OS 1
16303 _ACEOF
16304
16305 else
16306
16307
16308 if $FALSEPRG; then
16309   HAVE_IRIX_OS_TRUE=
16310   HAVE_IRIX_OS_FALSE='#'
16311 else
16312   HAVE_IRIX_OS_TRUE='#'
16313   HAVE_IRIX_OS_FALSE=
16314 fi
16315 fi
16316
16317 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16318 then
16319
16320
16321 if $TRUEPRG; then
16322   HAVE_DARWIN_OS_TRUE=
16323   HAVE_DARWIN_OS_FALSE='#'
16324 else
16325   HAVE_DARWIN_OS_TRUE='#'
16326   HAVE_DARWIN_OS_FALSE=
16327 fi
16328     cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_DARWIN_OS 1
16330 _ACEOF
16331
16332 else
16333
16334
16335 if $FALSEPRG; then
16336   HAVE_DARWIN_OS_TRUE=
16337   HAVE_DARWIN_OS_FALSE='#'
16338 else
16339   HAVE_DARWIN_OS_TRUE='#'
16340   HAVE_DARWIN_OS_FALSE=
16341 fi
16342 fi
16343
16344
16345 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16346 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16347 if test "x$DISTNAME" != "x"
16348 then
16349         echo "distname set to $DISTNAME"
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16351 then
16352         DISTNAME=alpha
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16354 then
16355         DISTNAME=aix
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16357 then
16358         DISTNAME=hpux
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16360 then
16361         DISTNAME=solaris
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16363 then
16364         DISTNAME=freebsd
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16366 then
16367         DISTNAME=netbsd
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16369 then
16370         DISTNAME=openbsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16372 then
16373         DISTNAME=irix
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16375 then
16376         DISTNAME=bsdi
16377 elif test -f /etc/SuSE-release
16378 then
16379         DISTNAME=suse
16380 elif test -d /etc/SuSEconfig
16381 then
16382         DISTNAME=suse5
16383 elif test -f /etc/mandrake-release
16384 then
16385         DISTNAME=mandrake
16386 elif test -f /etc/whitebox-release
16387 then
16388        DISTNAME=redhat
16389 elif test -f /etc/redhat-release
16390 then
16391         DISTNAME=redhat
16392 elif test -f /etc/gentoo-release
16393 then
16394         DISTNAME=gentoo
16395 elif test -f /etc/debian_version
16396 then
16397         DISTNAME=debian
16398 elif test -f /etc/slackware-version
16399 then
16400         DISTNAME=slackware
16401 elif test x$host_vendor = xapple
16402 then
16403     DISTNAME=osx
16404 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16405 then
16406     DISTNAME=darwin
16407 elif test -f /etc/engarde-version
16408 then
16409         DISTNAME=engarde
16410 elif test -f /etc/arch-release
16411 then
16412         DISTNAME=archlinux
16413 elif test "$CYGWIN" = yes
16414 then
16415         DISTNAME=cygwin
16416         cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_CYGWIN 1
16418 _ACEOF
16419
16420 else
16421         DISTNAME=unknown
16422 fi
16423 { echo "$as_me:$LINENO: result: done" >&5
16424 echo "${ECHO_T}done" >&6; }
16425
16426
16427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16431   echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433   cat >conftest.make <<\_ACEOF
16434 SHELL = /bin/sh
16435 all:
16436         @echo '@@@%%%=$(MAKE)=@@@%%%'
16437 _ACEOF
16438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16440   *@@@%%%=?*=@@@%%%*)
16441     eval ac_cv_prog_make_${ac_make}_set=yes;;
16442   *)
16443     eval ac_cv_prog_make_${ac_make}_set=no;;
16444 esac
16445 rm -f conftest.make
16446 fi
16447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16448   { echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6; }
16450   SET_MAKE=
16451 else
16452   { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16454   SET_MAKE="MAKE=${MAKE-make}"
16455 fi
16456
16457
16458
16459         MKINSTALLDIRS=
16460   if test -n "$ac_aux_dir"; then
16461     case "$ac_aux_dir" in
16462       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16463       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16464     esac
16465   fi
16466   if test -z "$MKINSTALLDIRS"; then
16467     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16468   fi
16469
16470
16471
16472   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16474     # Check whether --enable-nls was given.
16475 if test "${enable_nls+set}" = set; then
16476   enableval=$enable_nls; USE_NLS=$enableval
16477 else
16478   USE_NLS=yes
16479 fi
16480
16481   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16482 echo "${ECHO_T}$USE_NLS" >&6; }
16483
16484
16485
16486
16487
16488
16489 # Prepare PATH_SEPARATOR.
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16492   echo "#! /bin/sh" >conf$$.sh
16493   echo  "exit 0"   >>conf$$.sh
16494   chmod +x conf$$.sh
16495   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16496     PATH_SEPARATOR=';'
16497   else
16498     PATH_SEPARATOR=:
16499   fi
16500   rm -f conf$$.sh
16501 fi
16502
16503 # Find out how to test for executable files. Don't use a zero-byte file,
16504 # as systems may use methods other than mode bits to determine executability.
16505 cat >conf$$.file <<_ASEOF
16506 #! /bin/sh
16507 exit 0
16508 _ASEOF
16509 chmod +x conf$$.file
16510 if test -x conf$$.file >/dev/null 2>&1; then
16511   ac_executable_p="test -x"
16512 else
16513   ac_executable_p="test -f"
16514 fi
16515 rm -f conf$$.file
16516
16517 # Extract the first word of "msgfmt", so it can be a program name with args.
16518 set dummy msgfmt; ac_word=$2
16519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16521 if test "${ac_cv_path_MSGFMT+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   case "$MSGFMT" in
16525   [\\/]* | ?:[\\/]*)
16526     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16527     ;;
16528   *)
16529     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16530     for ac_dir in $PATH; do
16531       IFS="$ac_save_IFS"
16532       test -z "$ac_dir" && ac_dir=.
16533       for ac_exec_ext in '' $ac_executable_extensions; do
16534         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16535           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16536           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16537      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16538             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16539             break 2
16540           fi
16541         fi
16542       done
16543     done
16544     IFS="$ac_save_IFS"
16545   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16546     ;;
16547 esac
16548 fi
16549 MSGFMT="$ac_cv_path_MSGFMT"
16550 if test "$MSGFMT" != ":"; then
16551   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16552 echo "${ECHO_T}$MSGFMT" >&6; }
16553 else
16554   { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16556 fi
16557
16558   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16559 set dummy gmsgfmt; ac_word=$2
16560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16562 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565   case $GMSGFMT in
16566   [\\/]* | ?:[\\/]*)
16567   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16568   ;;
16569   *)
16570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573   IFS=$as_save_IFS
16574   test -z "$as_dir" && as_dir=.
16575   for ac_exec_ext in '' $ac_executable_extensions; do
16576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16577     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16579     break 2
16580   fi
16581 done
16582 done
16583 IFS=$as_save_IFS
16584
16585   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16586   ;;
16587 esac
16588 fi
16589 GMSGFMT=$ac_cv_path_GMSGFMT
16590 if test -n "$GMSGFMT"; then
16591   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16592 echo "${ECHO_T}$GMSGFMT" >&6; }
16593 else
16594   { echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6; }
16596 fi
16597
16598
16599
16600
16601 # Prepare PATH_SEPARATOR.
16602 # The user is always right.
16603 if test "${PATH_SEPARATOR+set}" != set; then
16604   echo "#! /bin/sh" >conf$$.sh
16605   echo  "exit 0"   >>conf$$.sh
16606   chmod +x conf$$.sh
16607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16608     PATH_SEPARATOR=';'
16609   else
16610     PATH_SEPARATOR=:
16611   fi
16612   rm -f conf$$.sh
16613 fi
16614
16615 # Find out how to test for executable files. Don't use a zero-byte file,
16616 # as systems may use methods other than mode bits to determine executability.
16617 cat >conf$$.file <<_ASEOF
16618 #! /bin/sh
16619 exit 0
16620 _ASEOF
16621 chmod +x conf$$.file
16622 if test -x conf$$.file >/dev/null 2>&1; then
16623   ac_executable_p="test -x"
16624 else
16625   ac_executable_p="test -f"
16626 fi
16627 rm -f conf$$.file
16628
16629 # Extract the first word of "xgettext", so it can be a program name with args.
16630 set dummy xgettext; ac_word=$2
16631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16633 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16634   echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636   case "$XGETTEXT" in
16637   [\\/]* | ?:[\\/]*)
16638     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16639     ;;
16640   *)
16641     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16642     for ac_dir in $PATH; do
16643       IFS="$ac_save_IFS"
16644       test -z "$ac_dir" && ac_dir=.
16645       for ac_exec_ext in '' $ac_executable_extensions; do
16646         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16647           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16648           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16649      (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
16650             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16651             break 2
16652           fi
16653         fi
16654       done
16655     done
16656     IFS="$ac_save_IFS"
16657   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16658     ;;
16659 esac
16660 fi
16661 XGETTEXT="$ac_cv_path_XGETTEXT"
16662 if test "$XGETTEXT" != ":"; then
16663   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16664 echo "${ECHO_T}$XGETTEXT" >&6; }
16665 else
16666   { echo "$as_me:$LINENO: result: no" >&5
16667 echo "${ECHO_T}no" >&6; }
16668 fi
16669
16670     rm -f messages.po
16671
16672
16673 # Prepare PATH_SEPARATOR.
16674 # The user is always right.
16675 if test "${PATH_SEPARATOR+set}" != set; then
16676   echo "#! /bin/sh" >conf$$.sh
16677   echo  "exit 0"   >>conf$$.sh
16678   chmod +x conf$$.sh
16679   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16680     PATH_SEPARATOR=';'
16681   else
16682     PATH_SEPARATOR=:
16683   fi
16684   rm -f conf$$.sh
16685 fi
16686
16687 # Find out how to test for executable files. Don't use a zero-byte file,
16688 # as systems may use methods other than mode bits to determine executability.
16689 cat >conf$$.file <<_ASEOF
16690 #! /bin/sh
16691 exit 0
16692 _ASEOF
16693 chmod +x conf$$.file
16694 if test -x conf$$.file >/dev/null 2>&1; then
16695   ac_executable_p="test -x"
16696 else
16697   ac_executable_p="test -f"
16698 fi
16699 rm -f conf$$.file
16700
16701 # Extract the first word of "msgmerge", so it can be a program name with args.
16702 set dummy msgmerge; ac_word=$2
16703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16705 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   case "$MSGMERGE" in
16709   [\\/]* | ?:[\\/]*)
16710     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16711     ;;
16712   *)
16713     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16714     for ac_dir in $PATH; do
16715       IFS="$ac_save_IFS"
16716       test -z "$ac_dir" && ac_dir=.
16717       for ac_exec_ext in '' $ac_executable_extensions; do
16718         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16719           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16720           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16721             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16722             break 2
16723           fi
16724         fi
16725       done
16726     done
16727     IFS="$ac_save_IFS"
16728   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16729     ;;
16730 esac
16731 fi
16732 MSGMERGE="$ac_cv_path_MSGMERGE"
16733 if test "$MSGMERGE" != ":"; then
16734   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16735 echo "${ECHO_T}$MSGMERGE" >&6; }
16736 else
16737   { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16739 fi
16740
16741
16742       if test "$GMSGFMT" != ":"; then
16743             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16744        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16745       : ;
16746     else
16747       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16748       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16749 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16750       GMSGFMT=":"
16751     fi
16752   fi
16753
16754       if test "$XGETTEXT" != ":"; then
16755             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16756        (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
16757       : ;
16758     else
16759       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16760 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16761       XGETTEXT=":"
16762     fi
16763         rm -f messages.po
16764   fi
16765
16766   ac_config_commands="$ac_config_commands default-1"
16767
16768
16769
16770       if test "X$prefix" = "XNONE"; then
16771     acl_final_prefix="$ac_default_prefix"
16772   else
16773     acl_final_prefix="$prefix"
16774   fi
16775   if test "X$exec_prefix" = "XNONE"; then
16776     acl_final_exec_prefix='${prefix}'
16777   else
16778     acl_final_exec_prefix="$exec_prefix"
16779   fi
16780   acl_save_prefix="$prefix"
16781   prefix="$acl_final_prefix"
16782   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16783   prefix="$acl_save_prefix"
16784
16785
16786 # Check whether --with-gnu-ld was given.
16787 if test "${with_gnu_ld+set}" = set; then
16788   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16789 else
16790   with_gnu_ld=no
16791 fi
16792
16793 # Prepare PATH_SEPARATOR.
16794 # The user is always right.
16795 if test "${PATH_SEPARATOR+set}" != set; then
16796   echo "#! /bin/sh" >conf$$.sh
16797   echo  "exit 0"   >>conf$$.sh
16798   chmod +x conf$$.sh
16799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16800     PATH_SEPARATOR=';'
16801   else
16802     PATH_SEPARATOR=:
16803   fi
16804   rm -f conf$$.sh
16805 fi
16806 ac_prog=ld
16807 if test "$GCC" = yes; then
16808   # Check if gcc -print-prog-name=ld gives a path.
16809   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16810 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16811   case $host in
16812   *-*-mingw*)
16813     # gcc leaves a trailing carriage return which upsets mingw
16814     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16815   *)
16816     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16817   esac
16818   case $ac_prog in
16819     # Accept absolute paths.
16820     [\\/]* | [A-Za-z]:[\\/]*)
16821       re_direlt='/[^/][^/]*/\.\./'
16822       # Canonicalize the path of ld
16823       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16824       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16825         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16826       done
16827       test -z "$LD" && LD="$ac_prog"
16828       ;;
16829   "")
16830     # If it fails, then pretend we aren't using GCC.
16831     ac_prog=ld
16832     ;;
16833   *)
16834     # If it is relative, then search for the first ld in PATH.
16835     with_gnu_ld=unknown
16836     ;;
16837   esac
16838 elif test "$with_gnu_ld" = yes; then
16839   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16840 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16841 else
16842   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16843 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16844 fi
16845 if test "${acl_cv_path_LD+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   if test -z "$LD"; then
16849   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16850   for ac_dir in $PATH; do
16851     test -z "$ac_dir" && ac_dir=.
16852     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16853       acl_cv_path_LD="$ac_dir/$ac_prog"
16854       # Check to see if the program is GNU ld.  I'd rather use --version,
16855       # but apparently some GNU ld's only accept -v.
16856       # Break only if it was the GNU/non-GNU ld that we prefer.
16857       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16858       *GNU* | *'with BFD'*)
16859         test "$with_gnu_ld" != no && break ;;
16860       *)
16861         test "$with_gnu_ld" != yes && break ;;
16862       esac
16863     fi
16864   done
16865   IFS="$ac_save_ifs"
16866 else
16867   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16868 fi
16869 fi
16870
16871 LD="$acl_cv_path_LD"
16872 if test -n "$LD"; then
16873   { echo "$as_me:$LINENO: result: $LD" >&5
16874 echo "${ECHO_T}$LD" >&6; }
16875 else
16876   { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16878 fi
16879 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16880 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16881    { (exit 1); exit 1; }; }
16882 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16883 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16884 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16888 case `$LD -v 2>&1 </dev/null` in
16889 *GNU* | *'with BFD'*)
16890   acl_cv_prog_gnu_ld=yes ;;
16891 *)
16892   acl_cv_prog_gnu_ld=no ;;
16893 esac
16894 fi
16895 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16896 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16897 with_gnu_ld=$acl_cv_prog_gnu_ld
16898
16899
16900
16901
16902                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16903 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16904 if test "${acl_cv_rpath+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907
16908     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16909     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16910     . ./conftest.sh
16911     rm -f ./conftest.sh
16912     acl_cv_rpath=done
16913
16914 fi
16915 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16916 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16917   wl="$acl_cv_wl"
16918   libext="$acl_cv_libext"
16919   shlibext="$acl_cv_shlibext"
16920   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16921   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16922   hardcode_direct="$acl_cv_hardcode_direct"
16923   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16924     # Check whether --enable-rpath was given.
16925 if test "${enable_rpath+set}" = set; then
16926   enableval=$enable_rpath; :
16927 else
16928   enable_rpath=yes
16929 fi
16930
16931
16932
16933
16934
16935
16936
16937
16938     use_additional=yes
16939
16940   acl_save_prefix="$prefix"
16941   prefix="$acl_final_prefix"
16942   acl_save_exec_prefix="$exec_prefix"
16943   exec_prefix="$acl_final_exec_prefix"
16944
16945     eval additional_includedir=\"$includedir\"
16946     eval additional_libdir=\"$libdir\"
16947
16948   exec_prefix="$acl_save_exec_prefix"
16949   prefix="$acl_save_prefix"
16950
16951
16952 # Check whether --with-libiconv-prefix was given.
16953 if test "${with_libiconv_prefix+set}" = set; then
16954   withval=$with_libiconv_prefix;
16955     if test "X$withval" = "Xno"; then
16956       use_additional=no
16957     else
16958       if test "X$withval" = "X"; then
16959
16960   acl_save_prefix="$prefix"
16961   prefix="$acl_final_prefix"
16962   acl_save_exec_prefix="$exec_prefix"
16963   exec_prefix="$acl_final_exec_prefix"
16964
16965           eval additional_includedir=\"$includedir\"
16966           eval additional_libdir=\"$libdir\"
16967
16968   exec_prefix="$acl_save_exec_prefix"
16969   prefix="$acl_save_prefix"
16970
16971       else
16972         additional_includedir="$withval/include"
16973         additional_libdir="$withval/lib"
16974       fi
16975     fi
16976
16977 fi
16978
16979       LIBICONV=
16980   LTLIBICONV=
16981   INCICONV=
16982   rpathdirs=
16983   ltrpathdirs=
16984   names_already_handled=
16985   names_next_round='iconv '
16986   while test -n "$names_next_round"; do
16987     names_this_round="$names_next_round"
16988     names_next_round=
16989     for name in $names_this_round; do
16990       already_handled=
16991       for n in $names_already_handled; do
16992         if test "$n" = "$name"; then
16993           already_handled=yes
16994           break
16995         fi
16996       done
16997       if test -z "$already_handled"; then
16998         names_already_handled="$names_already_handled $name"
16999                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17000         eval value=\"\$HAVE_LIB$uppername\"
17001         if test -n "$value"; then
17002           if test "$value" = yes; then
17003             eval value=\"\$LIB$uppername\"
17004             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17005             eval value=\"\$LTLIB$uppername\"
17006             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17007           else
17008                                     :
17009           fi
17010         else
17011                               found_dir=
17012           found_la=
17013           found_so=
17014           found_a=
17015           if test $use_additional = yes; then
17016             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17017               found_dir="$additional_libdir"
17018               found_so="$additional_libdir/lib$name.$shlibext"
17019               if test -f "$additional_libdir/lib$name.la"; then
17020                 found_la="$additional_libdir/lib$name.la"
17021               fi
17022             else
17023               if test -f "$additional_libdir/lib$name.$libext"; then
17024                 found_dir="$additional_libdir"
17025                 found_a="$additional_libdir/lib$name.$libext"
17026                 if test -f "$additional_libdir/lib$name.la"; then
17027                   found_la="$additional_libdir/lib$name.la"
17028                 fi
17029               fi
17030             fi
17031           fi
17032           if test "X$found_dir" = "X"; then
17033             for x in $LDFLAGS $LTLIBICONV; do
17034
17035   acl_save_prefix="$prefix"
17036   prefix="$acl_final_prefix"
17037   acl_save_exec_prefix="$exec_prefix"
17038   exec_prefix="$acl_final_exec_prefix"
17039   eval x=\"$x\"
17040   exec_prefix="$acl_save_exec_prefix"
17041   prefix="$acl_save_prefix"
17042
17043               case "$x" in
17044                 -L*)
17045                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17046                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17047                     found_dir="$dir"
17048                     found_so="$dir/lib$name.$shlibext"
17049                     if test -f "$dir/lib$name.la"; then
17050                       found_la="$dir/lib$name.la"
17051                     fi
17052                   else
17053                     if test -f "$dir/lib$name.$libext"; then
17054                       found_dir="$dir"
17055                       found_a="$dir/lib$name.$libext"
17056                       if test -f "$dir/lib$name.la"; then
17057                         found_la="$dir/lib$name.la"
17058                       fi
17059                     fi
17060                   fi
17061                   ;;
17062               esac
17063               if test "X$found_dir" != "X"; then
17064                 break
17065               fi
17066             done
17067           fi
17068           if test "X$found_dir" != "X"; then
17069                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17070             if test "X$found_so" != "X"; then
17071                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17072                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17073               else
17074                                                                                 haveit=
17075                 for x in $ltrpathdirs; do
17076                   if test "X$x" = "X$found_dir"; then
17077                     haveit=yes
17078                     break
17079                   fi
17080                 done
17081                 if test -z "$haveit"; then
17082                   ltrpathdirs="$ltrpathdirs $found_dir"
17083                 fi
17084                                 if test "$hardcode_direct" = yes; then
17085                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086                 else
17087                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17088                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17089                                                             haveit=
17090                     for x in $rpathdirs; do
17091                       if test "X$x" = "X$found_dir"; then
17092                         haveit=yes
17093                         break
17094                       fi
17095                     done
17096                     if test -z "$haveit"; then
17097                       rpathdirs="$rpathdirs $found_dir"
17098                     fi
17099                   else
17100                                                                                 haveit=
17101                     for x in $LDFLAGS $LIBICONV; do
17102
17103   acl_save_prefix="$prefix"
17104   prefix="$acl_final_prefix"
17105   acl_save_exec_prefix="$exec_prefix"
17106   exec_prefix="$acl_final_exec_prefix"
17107   eval x=\"$x\"
17108   exec_prefix="$acl_save_exec_prefix"
17109   prefix="$acl_save_prefix"
17110
17111                       if test "X$x" = "X-L$found_dir"; then
17112                         haveit=yes
17113                         break
17114                       fi
17115                     done
17116                     if test -z "$haveit"; then
17117                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17118                     fi
17119                     if test "$hardcode_minus_L" != no; then
17120                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17121                     else
17122                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17123                     fi
17124                   fi
17125                 fi
17126               fi
17127             else
17128               if test "X$found_a" != "X"; then
17129                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17130               else
17131                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17132               fi
17133             fi
17134                         additional_includedir=
17135             case "$found_dir" in
17136               */lib | */lib/)
17137                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17138                 additional_includedir="$basedir/include"
17139                 ;;
17140             esac
17141             if test "X$additional_includedir" != "X"; then
17142                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17143                 haveit=
17144                 if test "X$additional_includedir" = "X/usr/local/include"; then
17145                   if test -n "$GCC"; then
17146                     case $host_os in
17147                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17148                     esac
17149                   fi
17150                 fi
17151                 if test -z "$haveit"; then
17152                   for x in $CPPFLAGS $INCICONV; do
17153
17154   acl_save_prefix="$prefix"
17155   prefix="$acl_final_prefix"
17156   acl_save_exec_prefix="$exec_prefix"
17157   exec_prefix="$acl_final_exec_prefix"
17158   eval x=\"$x\"
17159   exec_prefix="$acl_save_exec_prefix"
17160   prefix="$acl_save_prefix"
17161
17162                     if test "X$x" = "X-I$additional_includedir"; then
17163                       haveit=yes
17164                       break
17165                     fi
17166                   done
17167                   if test -z "$haveit"; then
17168                     if test -d "$additional_includedir"; then
17169                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17170                     fi
17171                   fi
17172                 fi
17173               fi
17174             fi
17175                         if test -n "$found_la"; then
17176                                                         save_libdir="$libdir"
17177               case "$found_la" in
17178                 */* | *\\*) . "$found_la" ;;
17179                 *) . "./$found_la" ;;
17180               esac
17181               libdir="$save_libdir"
17182                             for dep in $dependency_libs; do
17183                 case "$dep" in
17184                   -L*)
17185                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17186                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17187                       haveit=
17188                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17189                         if test -n "$GCC"; then
17190                           case $host_os in
17191                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17192                           esac
17193                         fi
17194                       fi
17195                       if test -z "$haveit"; then
17196                         haveit=
17197                         for x in $LDFLAGS $LIBICONV; do
17198
17199   acl_save_prefix="$prefix"
17200   prefix="$acl_final_prefix"
17201   acl_save_exec_prefix="$exec_prefix"
17202   exec_prefix="$acl_final_exec_prefix"
17203   eval x=\"$x\"
17204   exec_prefix="$acl_save_exec_prefix"
17205   prefix="$acl_save_prefix"
17206
17207                           if test "X$x" = "X-L$additional_libdir"; then
17208                             haveit=yes
17209                             break
17210                           fi
17211                         done
17212                         if test -z "$haveit"; then
17213                           if test -d "$additional_libdir"; then
17214                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17215                           fi
17216                         fi
17217                         haveit=
17218                         for x in $LDFLAGS $LTLIBICONV; do
17219
17220   acl_save_prefix="$prefix"
17221   prefix="$acl_final_prefix"
17222   acl_save_exec_prefix="$exec_prefix"
17223   exec_prefix="$acl_final_exec_prefix"
17224   eval x=\"$x\"
17225   exec_prefix="$acl_save_exec_prefix"
17226   prefix="$acl_save_prefix"
17227
17228                           if test "X$x" = "X-L$additional_libdir"; then
17229                             haveit=yes
17230                             break
17231                           fi
17232                         done
17233                         if test -z "$haveit"; then
17234                           if test -d "$additional_libdir"; then
17235                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17236                           fi
17237                         fi
17238                       fi
17239                     fi
17240                     ;;
17241                   -R*)
17242                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17243                     if test "$enable_rpath" != no; then
17244                                                                   haveit=
17245                       for x in $rpathdirs; do
17246                         if test "X$x" = "X$dir"; then
17247                           haveit=yes
17248                           break
17249                         fi
17250                       done
17251                       if test -z "$haveit"; then
17252                         rpathdirs="$rpathdirs $dir"
17253                       fi
17254                                                                   haveit=
17255                       for x in $ltrpathdirs; do
17256                         if test "X$x" = "X$dir"; then
17257                           haveit=yes
17258                           break
17259                         fi
17260                       done
17261                       if test -z "$haveit"; then
17262                         ltrpathdirs="$ltrpathdirs $dir"
17263                       fi
17264                     fi
17265                     ;;
17266                   -l*)
17267                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17268                     ;;
17269                   *.la)
17270                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17271                     ;;
17272                   *)
17273                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17274                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17275                     ;;
17276                 esac
17277               done
17278             fi
17279           else
17280                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17281             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17282           fi
17283         fi
17284       fi
17285     done
17286   done
17287   if test "X$rpathdirs" != "X"; then
17288     if test -n "$hardcode_libdir_separator"; then
17289                         alldirs=
17290       for found_dir in $rpathdirs; do
17291         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17292       done
17293             acl_save_libdir="$libdir"
17294       libdir="$alldirs"
17295       eval flag=\"$hardcode_libdir_flag_spec\"
17296       libdir="$acl_save_libdir"
17297       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17298     else
17299             for found_dir in $rpathdirs; do
17300         acl_save_libdir="$libdir"
17301         libdir="$found_dir"
17302         eval flag=\"$hardcode_libdir_flag_spec\"
17303         libdir="$acl_save_libdir"
17304         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17305       done
17306     fi
17307   fi
17308   if test "X$ltrpathdirs" != "X"; then
17309             for found_dir in $ltrpathdirs; do
17310       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17311     done
17312   fi
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17332 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17333 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336   gt_save_CPPFLAGS="$CPPFLAGS"
17337      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17338      gt_save_LIBS="$LIBS"
17339      LIBS="$LIBS -framework CoreFoundation"
17340      cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <CFPreferences.h>
17347 int
17348 main ()
17349 {
17350 CFPreferencesCopyAppValue(NULL, NULL)
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_link") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } && {
17369          test -z "$ac_c_werror_flag" ||
17370          test ! -s conftest.err
17371        } && test -s conftest$ac_exeext &&
17372        $as_test_x conftest$ac_exeext; then
17373   gt_cv_func_CFPreferencesCopyAppValue=yes
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         gt_cv_func_CFPreferencesCopyAppValue=no
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382       conftest$ac_exeext conftest.$ac_ext
17383      CPPFLAGS="$gt_save_CPPFLAGS"
17384      LIBS="$gt_save_LIBS"
17385 fi
17386 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17387 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17388   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17389
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17392 _ACEOF
17393
17394   fi
17395     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17396 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17397 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   gt_save_CPPFLAGS="$CPPFLAGS"
17401      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17402      gt_save_LIBS="$LIBS"
17403      LIBS="$LIBS -framework CoreFoundation"
17404      cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 #include <CFLocale.h>
17411 int
17412 main ()
17413 {
17414 CFLocaleCopyCurrent();
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423   *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426   (eval "$ac_link") 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } && {
17433          test -z "$ac_c_werror_flag" ||
17434          test ! -s conftest.err
17435        } && test -s conftest$ac_exeext &&
17436        $as_test_x conftest$ac_exeext; then
17437   gt_cv_func_CFLocaleCopyCurrent=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         gt_cv_func_CFLocaleCopyCurrent=no
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446       conftest$ac_exeext conftest.$ac_ext
17447      CPPFLAGS="$gt_save_CPPFLAGS"
17448      LIBS="$gt_save_LIBS"
17449 fi
17450 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17451 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17452   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17453
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CFLOCALECOPYCURRENT 1
17456 _ACEOF
17457
17458   fi
17459   INTL_MACOSX_LIBS=
17460   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17461     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17462   fi
17463
17464
17465
17466
17467   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17468 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17469     # Check whether --enable-nls was given.
17470 if test "${enable_nls+set}" = set; then
17471   enableval=$enable_nls; USE_NLS=$enableval
17472 else
17473   USE_NLS=yes
17474 fi
17475
17476   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17477 echo "${ECHO_T}$USE_NLS" >&6; }
17478
17479
17480
17481
17482   LIBINTL=
17483   LTLIBINTL=
17484   POSUB=
17485
17486     if test "$USE_NLS" = "yes"; then
17487     gt_use_preinstalled_gnugettext=no
17488
17489
17490
17491
17492
17493
17494         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17495 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17496 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17497   echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499   cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 #include <libintl.h>
17506 extern int _nl_msg_cat_cntr;
17507 extern int *_nl_domain_bindings;
17508 int
17509 main ()
17510 {
17511 bindtextdomain ("", "");
17512 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521   *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524   (eval "$ac_link") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } && {
17531          test -z "$ac_c_werror_flag" ||
17532          test ! -s conftest.err
17533        } && test -s conftest$ac_exeext &&
17534        $as_test_x conftest$ac_exeext; then
17535   gt_cv_func_gnugettext1_libc=yes
17536 else
17537   echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540         gt_cv_func_gnugettext1_libc=no
17541 fi
17542
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544       conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17547 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17548
17549         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17550
17551
17552
17553
17554
17555           am_save_CPPFLAGS="$CPPFLAGS"
17556
17557   for element in $INCICONV; do
17558     haveit=
17559     for x in $CPPFLAGS; do
17560
17561   acl_save_prefix="$prefix"
17562   prefix="$acl_final_prefix"
17563   acl_save_exec_prefix="$exec_prefix"
17564   exec_prefix="$acl_final_exec_prefix"
17565   eval x=\"$x\"
17566   exec_prefix="$acl_save_exec_prefix"
17567   prefix="$acl_save_prefix"
17568
17569       if test "X$x" = "X$element"; then
17570         haveit=yes
17571         break
17572       fi
17573     done
17574     if test -z "$haveit"; then
17575       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17576     fi
17577   done
17578
17579
17580   { echo "$as_me:$LINENO: checking for iconv" >&5
17581 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17582 if test "${am_cv_func_iconv+set}" = set; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585
17586     am_cv_func_iconv="no, consider installing GNU libiconv"
17587     am_cv_lib_iconv=no
17588     cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 #include <stdlib.h>
17595 #include <iconv.h>
17596 int
17597 main ()
17598 {
17599 iconv_t cd = iconv_open("","");
17600        iconv(cd,NULL,NULL,NULL,NULL);
17601        iconv_close(cd);
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_link") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest$ac_exeext &&
17623        $as_test_x conftest$ac_exeext; then
17624   am_cv_func_iconv=yes
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633       conftest$ac_exeext conftest.$ac_ext
17634     if test "$am_cv_func_iconv" != yes; then
17635       am_save_LIBS="$LIBS"
17636       LIBS="$LIBS $LIBICONV"
17637       cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 #include <stdlib.h>
17644 #include <iconv.h>
17645 int
17646 main ()
17647 {
17648 iconv_t cd = iconv_open("","");
17649          iconv(cd,NULL,NULL,NULL,NULL);
17650          iconv_close(cd);
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_link") 2>conftest.er1
17663   ac_status=$?
17664   grep -v '^ *+' conftest.er1 >conftest.err
17665   rm -f conftest.er1
17666   cat conftest.err >&5
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); } && {
17669          test -z "$ac_c_werror_flag" ||
17670          test ! -s conftest.err
17671        } && test -s conftest$ac_exeext &&
17672        $as_test_x conftest$ac_exeext; then
17673   am_cv_lib_iconv=yes
17674         am_cv_func_iconv=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679
17680 fi
17681
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683       conftest$ac_exeext conftest.$ac_ext
17684       LIBS="$am_save_LIBS"
17685     fi
17686
17687 fi
17688 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17689 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17690   if test "$am_cv_func_iconv" = yes; then
17691
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_ICONV 1
17694 _ACEOF
17695
17696   fi
17697   if test "$am_cv_lib_iconv" = yes; then
17698     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17699 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17700     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17701 echo "${ECHO_T}$LIBICONV" >&6; }
17702   else
17703             CPPFLAGS="$am_save_CPPFLAGS"
17704     LIBICONV=
17705     LTLIBICONV=
17706   fi
17707
17708
17709
17710
17711
17712
17713     use_additional=yes
17714
17715   acl_save_prefix="$prefix"
17716   prefix="$acl_final_prefix"
17717   acl_save_exec_prefix="$exec_prefix"
17718   exec_prefix="$acl_final_exec_prefix"
17719
17720     eval additional_includedir=\"$includedir\"
17721     eval additional_libdir=\"$libdir\"
17722
17723   exec_prefix="$acl_save_exec_prefix"
17724   prefix="$acl_save_prefix"
17725
17726
17727 # Check whether --with-libintl-prefix was given.
17728 if test "${with_libintl_prefix+set}" = set; then
17729   withval=$with_libintl_prefix;
17730     if test "X$withval" = "Xno"; then
17731       use_additional=no
17732     else
17733       if test "X$withval" = "X"; then
17734
17735   acl_save_prefix="$prefix"
17736   prefix="$acl_final_prefix"
17737   acl_save_exec_prefix="$exec_prefix"
17738   exec_prefix="$acl_final_exec_prefix"
17739
17740           eval additional_includedir=\"$includedir\"
17741           eval additional_libdir=\"$libdir\"
17742
17743   exec_prefix="$acl_save_exec_prefix"
17744   prefix="$acl_save_prefix"
17745
17746       else
17747         additional_includedir="$withval/include"
17748         additional_libdir="$withval/lib"
17749       fi
17750     fi
17751
17752 fi
17753
17754       LIBINTL=
17755   LTLIBINTL=
17756   INCINTL=
17757   rpathdirs=
17758   ltrpathdirs=
17759   names_already_handled=
17760   names_next_round='intl '
17761   while test -n "$names_next_round"; do
17762     names_this_round="$names_next_round"
17763     names_next_round=
17764     for name in $names_this_round; do
17765       already_handled=
17766       for n in $names_already_handled; do
17767         if test "$n" = "$name"; then
17768           already_handled=yes
17769           break
17770         fi
17771       done
17772       if test -z "$already_handled"; then
17773         names_already_handled="$names_already_handled $name"
17774                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17775         eval value=\"\$HAVE_LIB$uppername\"
17776         if test -n "$value"; then
17777           if test "$value" = yes; then
17778             eval value=\"\$LIB$uppername\"
17779             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17780             eval value=\"\$LTLIB$uppername\"
17781             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17782           else
17783                                     :
17784           fi
17785         else
17786                               found_dir=
17787           found_la=
17788           found_so=
17789           found_a=
17790           if test $use_additional = yes; then
17791             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17792               found_dir="$additional_libdir"
17793               found_so="$additional_libdir/lib$name.$shlibext"
17794               if test -f "$additional_libdir/lib$name.la"; then
17795                 found_la="$additional_libdir/lib$name.la"
17796               fi
17797             else
17798               if test -f "$additional_libdir/lib$name.$libext"; then
17799                 found_dir="$additional_libdir"
17800                 found_a="$additional_libdir/lib$name.$libext"
17801                 if test -f "$additional_libdir/lib$name.la"; then
17802                   found_la="$additional_libdir/lib$name.la"
17803                 fi
17804               fi
17805             fi
17806           fi
17807           if test "X$found_dir" = "X"; then
17808             for x in $LDFLAGS $LTLIBINTL; do
17809
17810   acl_save_prefix="$prefix"
17811   prefix="$acl_final_prefix"
17812   acl_save_exec_prefix="$exec_prefix"
17813   exec_prefix="$acl_final_exec_prefix"
17814   eval x=\"$x\"
17815   exec_prefix="$acl_save_exec_prefix"
17816   prefix="$acl_save_prefix"
17817
17818               case "$x" in
17819                 -L*)
17820                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17821                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17822                     found_dir="$dir"
17823                     found_so="$dir/lib$name.$shlibext"
17824                     if test -f "$dir/lib$name.la"; then
17825                       found_la="$dir/lib$name.la"
17826                     fi
17827                   else
17828                     if test -f "$dir/lib$name.$libext"; then
17829                       found_dir="$dir"
17830                       found_a="$dir/lib$name.$libext"
17831                       if test -f "$dir/lib$name.la"; then
17832                         found_la="$dir/lib$name.la"
17833                       fi
17834                     fi
17835                   fi
17836                   ;;
17837               esac
17838               if test "X$found_dir" != "X"; then
17839                 break
17840               fi
17841             done
17842           fi
17843           if test "X$found_dir" != "X"; then
17844                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17845             if test "X$found_so" != "X"; then
17846                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17847                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17848               else
17849                                                                                 haveit=
17850                 for x in $ltrpathdirs; do
17851                   if test "X$x" = "X$found_dir"; then
17852                     haveit=yes
17853                     break
17854                   fi
17855                 done
17856                 if test -z "$haveit"; then
17857                   ltrpathdirs="$ltrpathdirs $found_dir"
17858                 fi
17859                                 if test "$hardcode_direct" = yes; then
17860                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861                 else
17862                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17863                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17864                                                             haveit=
17865                     for x in $rpathdirs; do
17866                       if test "X$x" = "X$found_dir"; then
17867                         haveit=yes
17868                         break
17869                       fi
17870                     done
17871                     if test -z "$haveit"; then
17872                       rpathdirs="$rpathdirs $found_dir"
17873                     fi
17874                   else
17875                                                                                 haveit=
17876                     for x in $LDFLAGS $LIBINTL; do
17877
17878   acl_save_prefix="$prefix"
17879   prefix="$acl_final_prefix"
17880   acl_save_exec_prefix="$exec_prefix"
17881   exec_prefix="$acl_final_exec_prefix"
17882   eval x=\"$x\"
17883   exec_prefix="$acl_save_exec_prefix"
17884   prefix="$acl_save_prefix"
17885
17886                       if test "X$x" = "X-L$found_dir"; then
17887                         haveit=yes
17888                         break
17889                       fi
17890                     done
17891                     if test -z "$haveit"; then
17892                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17893                     fi
17894                     if test "$hardcode_minus_L" != no; then
17895                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17896                     else
17897                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17898                     fi
17899                   fi
17900                 fi
17901               fi
17902             else
17903               if test "X$found_a" != "X"; then
17904                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17905               else
17906                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17907               fi
17908             fi
17909                         additional_includedir=
17910             case "$found_dir" in
17911               */lib | */lib/)
17912                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17913                 additional_includedir="$basedir/include"
17914                 ;;
17915             esac
17916             if test "X$additional_includedir" != "X"; then
17917                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17918                 haveit=
17919                 if test "X$additional_includedir" = "X/usr/local/include"; then
17920                   if test -n "$GCC"; then
17921                     case $host_os in
17922                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17923                     esac
17924                   fi
17925                 fi
17926                 if test -z "$haveit"; then
17927                   for x in $CPPFLAGS $INCINTL; do
17928
17929   acl_save_prefix="$prefix"
17930   prefix="$acl_final_prefix"
17931   acl_save_exec_prefix="$exec_prefix"
17932   exec_prefix="$acl_final_exec_prefix"
17933   eval x=\"$x\"
17934   exec_prefix="$acl_save_exec_prefix"
17935   prefix="$acl_save_prefix"
17936
17937                     if test "X$x" = "X-I$additional_includedir"; then
17938                       haveit=yes
17939                       break
17940                     fi
17941                   done
17942                   if test -z "$haveit"; then
17943                     if test -d "$additional_includedir"; then
17944                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17945                     fi
17946                   fi
17947                 fi
17948               fi
17949             fi
17950                         if test -n "$found_la"; then
17951                                                         save_libdir="$libdir"
17952               case "$found_la" in
17953                 */* | *\\*) . "$found_la" ;;
17954                 *) . "./$found_la" ;;
17955               esac
17956               libdir="$save_libdir"
17957                             for dep in $dependency_libs; do
17958                 case "$dep" in
17959                   -L*)
17960                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17961                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17962                       haveit=
17963                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17964                         if test -n "$GCC"; then
17965                           case $host_os in
17966                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17967                           esac
17968                         fi
17969                       fi
17970                       if test -z "$haveit"; then
17971                         haveit=
17972                         for x in $LDFLAGS $LIBINTL; do
17973
17974   acl_save_prefix="$prefix"
17975   prefix="$acl_final_prefix"
17976   acl_save_exec_prefix="$exec_prefix"
17977   exec_prefix="$acl_final_exec_prefix"
17978   eval x=\"$x\"
17979   exec_prefix="$acl_save_exec_prefix"
17980   prefix="$acl_save_prefix"
17981
17982                           if test "X$x" = "X-L$additional_libdir"; then
17983                             haveit=yes
17984                             break
17985                           fi
17986                         done
17987                         if test -z "$haveit"; then
17988                           if test -d "$additional_libdir"; then
17989                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17990                           fi
17991                         fi
17992                         haveit=
17993                         for x in $LDFLAGS $LTLIBINTL; do
17994
17995   acl_save_prefix="$prefix"
17996   prefix="$acl_final_prefix"
17997   acl_save_exec_prefix="$exec_prefix"
17998   exec_prefix="$acl_final_exec_prefix"
17999   eval x=\"$x\"
18000   exec_prefix="$acl_save_exec_prefix"
18001   prefix="$acl_save_prefix"
18002
18003                           if test "X$x" = "X-L$additional_libdir"; then
18004                             haveit=yes
18005                             break
18006                           fi
18007                         done
18008                         if test -z "$haveit"; then
18009                           if test -d "$additional_libdir"; then
18010                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18011                           fi
18012                         fi
18013                       fi
18014                     fi
18015                     ;;
18016                   -R*)
18017                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18018                     if test "$enable_rpath" != no; then
18019                                                                   haveit=
18020                       for x in $rpathdirs; do
18021                         if test "X$x" = "X$dir"; then
18022                           haveit=yes
18023                           break
18024                         fi
18025                       done
18026                       if test -z "$haveit"; then
18027                         rpathdirs="$rpathdirs $dir"
18028                       fi
18029                                                                   haveit=
18030                       for x in $ltrpathdirs; do
18031                         if test "X$x" = "X$dir"; then
18032                           haveit=yes
18033                           break
18034                         fi
18035                       done
18036                       if test -z "$haveit"; then
18037                         ltrpathdirs="$ltrpathdirs $dir"
18038                       fi
18039                     fi
18040                     ;;
18041                   -l*)
18042                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18043                     ;;
18044                   *.la)
18045                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18046                     ;;
18047                   *)
18048                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18049                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18050                     ;;
18051                 esac
18052               done
18053             fi
18054           else
18055                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18056             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18057           fi
18058         fi
18059       fi
18060     done
18061   done
18062   if test "X$rpathdirs" != "X"; then
18063     if test -n "$hardcode_libdir_separator"; then
18064                         alldirs=
18065       for found_dir in $rpathdirs; do
18066         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18067       done
18068             acl_save_libdir="$libdir"
18069       libdir="$alldirs"
18070       eval flag=\"$hardcode_libdir_flag_spec\"
18071       libdir="$acl_save_libdir"
18072       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18073     else
18074             for found_dir in $rpathdirs; do
18075         acl_save_libdir="$libdir"
18076         libdir="$found_dir"
18077         eval flag=\"$hardcode_libdir_flag_spec\"
18078         libdir="$acl_save_libdir"
18079         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18080       done
18081     fi
18082   fi
18083   if test "X$ltrpathdirs" != "X"; then
18084             for found_dir in $ltrpathdirs; do
18085       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18086     done
18087   fi
18088
18089           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18090 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18091 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   gt_save_CPPFLAGS="$CPPFLAGS"
18095             CPPFLAGS="$CPPFLAGS $INCINTL"
18096             gt_save_LIBS="$LIBS"
18097             LIBS="$LIBS $LIBINTL"
18098                         cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104 #include <libintl.h>
18105 extern int _nl_msg_cat_cntr;
18106 extern
18107 #ifdef __cplusplus
18108 "C"
18109 #endif
18110 const char *_nl_expand_alias (const char *);
18111 int
18112 main ()
18113 {
18114 bindtextdomain ("", "");
18115 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_link") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest$ac_exeext &&
18137        $as_test_x conftest$ac_exeext; then
18138   gt_cv_func_gnugettext1_libintl=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         gt_cv_func_gnugettext1_libintl=no
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147       conftest$ac_exeext conftest.$ac_ext
18148                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18149               LIBS="$LIBS $LIBICONV"
18150               cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 #include <libintl.h>
18157 extern int _nl_msg_cat_cntr;
18158 extern
18159 #ifdef __cplusplus
18160 "C"
18161 #endif
18162 const char *_nl_expand_alias (const char *);
18163 int
18164 main ()
18165 {
18166 bindtextdomain ("", "");
18167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_link") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } && {
18186          test -z "$ac_c_werror_flag" ||
18187          test ! -s conftest.err
18188        } && test -s conftest$ac_exeext &&
18189        $as_test_x conftest$ac_exeext; then
18190   LIBINTL="$LIBINTL $LIBICONV"
18191                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18192                 gt_cv_func_gnugettext1_libintl=yes
18193
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198
18199 fi
18200
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202       conftest$ac_exeext conftest.$ac_ext
18203             fi
18204             CPPFLAGS="$gt_save_CPPFLAGS"
18205             LIBS="$gt_save_LIBS"
18206 fi
18207 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18208 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18209         fi
18210
18211                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18212            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18213                 && test "$PACKAGE" != gettext-runtime \
18214                 && test "$PACKAGE" != gettext-tools; }; then
18215           gt_use_preinstalled_gnugettext=yes
18216         else
18217                     LIBINTL=
18218           LTLIBINTL=
18219           INCINTL=
18220         fi
18221
18222
18223
18224     if test -n "$INTL_MACOSX_LIBS"; then
18225       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18226          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18227                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18228         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18229       fi
18230     fi
18231
18232     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18233        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18234
18235 cat >>confdefs.h <<\_ACEOF
18236 #define ENABLE_NLS 1
18237 _ACEOF
18238
18239     else
18240       USE_NLS=no
18241     fi
18242   fi
18243
18244   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18245 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18246   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18247 echo "${ECHO_T}$USE_NLS" >&6; }
18248   if test "$USE_NLS" = "yes"; then
18249     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18250 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18251     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18252       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18253         gt_source="external libintl"
18254       else
18255         gt_source="libc"
18256       fi
18257     else
18258       gt_source="included intl directory"
18259     fi
18260     { echo "$as_me:$LINENO: result: $gt_source" >&5
18261 echo "${ECHO_T}$gt_source" >&6; }
18262   fi
18263
18264   if test "$USE_NLS" = "yes"; then
18265
18266     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18269 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18270         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18271 echo "${ECHO_T}$LIBINTL" >&6; }
18272
18273   for element in $INCINTL; do
18274     haveit=
18275     for x in $CPPFLAGS; do
18276
18277   acl_save_prefix="$prefix"
18278   prefix="$acl_final_prefix"
18279   acl_save_exec_prefix="$exec_prefix"
18280   exec_prefix="$acl_final_exec_prefix"
18281   eval x=\"$x\"
18282   exec_prefix="$acl_save_exec_prefix"
18283   prefix="$acl_save_prefix"
18284
18285       if test "X$x" = "X$element"; then
18286         haveit=yes
18287         break
18288       fi
18289     done
18290     if test -z "$haveit"; then
18291       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18292     fi
18293   done
18294
18295       fi
18296
18297
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_GETTEXT 1
18300 _ACEOF
18301
18302
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_DCGETTEXT 1
18305 _ACEOF
18306
18307     fi
18308
18309         POSUB=po
18310   fi
18311
18312
18313
18314     INTLLIBS="$LIBINTL"
18315
18316
18317
18318
18319
18320
18321
18322 os_name=`uname -s 2>/dev/null`
18323 if test x${prefix} = xNONE ; then
18324    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325       sysconfdir=/etc/bacula
18326    fi
18327
18328    if test `eval echo ${libdir}` = NONE/lib ; then
18329       case ${os_name} in
18330       Linux)
18331          os_processor=`uname -p 2>/dev/null`
18332          case ${os_processor} in
18333          x86_64)
18334             libdir=/usr/lib64
18335             ;;
18336          *)
18337             libdir=/usr/lib
18338             ;;
18339          esac
18340          ;;
18341       *)
18342          libdir=/usr/lib
18343          ;;
18344       esac
18345    fi
18346
18347    if test `eval echo ${includedir}` = NONE/include ; then
18348       includedir=/usr/include
18349    fi
18350
18351    if test `eval echo ${datarootdir}` = NONE/share ; then
18352       datarootdir=/usr/share
18353    fi
18354    prefix=
18355 fi
18356
18357 if test x${exec_prefix} = xNONE ; then
18358    exec_prefix=${prefix}
18359 fi
18360
18361 sysconfdir=`eval echo ${sysconfdir}`
18362 datarootdir=`eval echo ${datarootdir}`
18363 docdir=`eval echo ${docdir}`
18364 htmldir=`eval echo ${htmldir}`
18365 libdir=`eval echo ${libdir}`
18366 includedir=`eval echo ${includedir}`
18367 localedir=`eval echo ${datarootdir}/locale`
18368 cat >>confdefs.h <<_ACEOF
18369 #define SYSCONFDIR "$sysconfdir"
18370 _ACEOF
18371
18372 cat >>confdefs.h <<_ACEOF
18373 #define LOCALEDIR "$localedir"
18374 _ACEOF
18375
18376
18377 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18378    sbindir=${exec_prefix}/sbin
18379 fi
18380 sbindir=`eval echo ${sbindir}`
18381
18382 if test x$mandir = x'${prefix}/man' ; then
18383    mandir=/usr/share/man
18384 fi
18385
18386 if test x$htmldir = x${docdir} ; then
18387    htmldir=`eval echo ${docdir}bacula/html`
18388 fi
18389
18390 if test x$docdir = x'/usr/share/doc/' ; then
18391    docdir=`eval echo ${docdir}bacula`
18392 fi
18393
18394
18395 for ac_prog in msgfmt
18396 do
18397   # Extract the first word of "$ac_prog", so it can be a program name with args.
18398 set dummy $ac_prog; ac_word=$2
18399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18401 if test "${ac_cv_path_MSGFMT+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   case $MSGFMT in
18405   [\\/]* | ?:[\\/]*)
18406   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18407   ;;
18408   *)
18409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410 for as_dir in $PATH
18411 do
18412   IFS=$as_save_IFS
18413   test -z "$as_dir" && as_dir=.
18414   for ac_exec_ext in '' $ac_executable_extensions; do
18415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18416     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18418     break 2
18419   fi
18420 done
18421 done
18422 IFS=$as_save_IFS
18423
18424   ;;
18425 esac
18426 fi
18427 MSGFMT=$ac_cv_path_MSGFMT
18428 if test -n "$MSGFMT"; then
18429   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18430 echo "${ECHO_T}$MSGFMT" >&6; }
18431 else
18432   { echo "$as_me:$LINENO: result: no" >&5
18433 echo "${ECHO_T}no" >&6; }
18434 fi
18435
18436
18437   test -n "$MSGFMT" && break
18438 done
18439 test -n "$MSGFMT" || MSGFMT="no"
18440
18441 if test "$MSGFMT" = "no"
18442 then
18443    echo 'msgfmt program not found, disabling NLS !'
18444    USE_NLS=no
18445    USE_INCLUDED_LIBINTL=no
18446 #else
18447
18448     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18449 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18450 if test "${ac_cv_gnu_library_2+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459
18460 #include <features.h>
18461 #ifdef __GNU_LIBRARY__
18462  #if (__GLIBC__ >= 2)
18463   Lucky GNU user
18464  #endif
18465 #endif
18466
18467 _ACEOF
18468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18469   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18470   ac_cv_gnu_library_2=yes
18471 else
18472   ac_cv_gnu_library_2=no
18473 fi
18474 rm -f conftest*
18475
18476
18477
18478 fi
18479 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18480 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18481
18482     GLIBC2="$ac_cv_gnu_library_2"
18483
18484
18485 if test -n "$ac_tool_prefix"; then
18486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18490 if test "${ac_cv_prog_RANLIB+set}" = set; then
18491   echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493   if test -n "$RANLIB"; then
18494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18495 else
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18498 do
18499   IFS=$as_save_IFS
18500   test -z "$as_dir" && as_dir=.
18501   for ac_exec_ext in '' $ac_executable_extensions; do
18502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505     break 2
18506   fi
18507 done
18508 done
18509 IFS=$as_save_IFS
18510
18511 fi
18512 fi
18513 RANLIB=$ac_cv_prog_RANLIB
18514 if test -n "$RANLIB"; then
18515   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18516 echo "${ECHO_T}$RANLIB" >&6; }
18517 else
18518   { echo "$as_me:$LINENO: result: no" >&5
18519 echo "${ECHO_T}no" >&6; }
18520 fi
18521
18522
18523 fi
18524 if test -z "$ac_cv_prog_RANLIB"; then
18525   ac_ct_RANLIB=$RANLIB
18526   # Extract the first word of "ranlib", so it can be a program name with args.
18527 set dummy ranlib; ac_word=$2
18528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   if test -n "$ac_ct_RANLIB"; then
18534   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18535 else
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539   IFS=$as_save_IFS
18540   test -z "$as_dir" && as_dir=.
18541   for ac_exec_ext in '' $ac_executable_extensions; do
18542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18543     ac_cv_prog_ac_ct_RANLIB="ranlib"
18544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545     break 2
18546   fi
18547 done
18548 done
18549 IFS=$as_save_IFS
18550
18551 fi
18552 fi
18553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18554 if test -n "$ac_ct_RANLIB"; then
18555   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18556 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18557 else
18558   { echo "$as_me:$LINENO: result: no" >&5
18559 echo "${ECHO_T}no" >&6; }
18560 fi
18561
18562   if test "x$ac_ct_RANLIB" = x; then
18563     RANLIB=":"
18564   else
18565     case $cross_compiling:$ac_tool_warned in
18566 yes:)
18567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18568 whose name does not start with the host triplet.  If you think this
18569 configuration is useful to you, please write to autoconf@gnu.org." >&5
18570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet.  If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18573 ac_tool_warned=yes ;;
18574 esac
18575     RANLIB=$ac_ct_RANLIB
18576   fi
18577 else
18578   RANLIB="$ac_cv_prog_RANLIB"
18579 fi
18580
18581
18582         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18583 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18584 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587   ac_check_lib_save_LIBS=$LIBS
18588 LIBS="-lcposix  $LIBS"
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595
18596 /* Override any GCC internal prototype to avoid an error.
18597    Use char because int might match the return type of a GCC
18598    builtin and then its argument prototype would still apply.  */
18599 #ifdef __cplusplus
18600 extern "C"
18601 #endif
18602 char strerror ();
18603 int
18604 main ()
18605 {
18606 return strerror ();
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_link") 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } && {
18625          test -z "$ac_c_werror_flag" ||
18626          test ! -s conftest.err
18627        } && test -s conftest$ac_exeext &&
18628        $as_test_x conftest$ac_exeext; then
18629   ac_cv_lib_cposix_strerror=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634         ac_cv_lib_cposix_strerror=no
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638       conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18640 fi
18641 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18642 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18643 if test $ac_cv_lib_cposix_strerror = yes; then
18644   LIBS="$LIBS -lcposix"
18645 fi
18646
18647
18648
18649 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18651 if test "${ac_cv_c_const+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660
18661 int
18662 main ()
18663 {
18664 /* FIXME: Include the comments suggested by Paul. */
18665 #ifndef __cplusplus
18666   /* Ultrix mips cc rejects this.  */
18667   typedef int charset[2];
18668   const charset cs;
18669   /* SunOS 4.1.1 cc rejects this.  */
18670   char const *const *pcpcc;
18671   char **ppc;
18672   /* NEC SVR4.0.2 mips cc rejects this.  */
18673   struct point {int x, y;};
18674   static struct point const zero = {0,0};
18675   /* AIX XL C 1.02.0.0 rejects this.
18676      It does not let you subtract one const X* pointer from another in
18677      an arm of an if-expression whose if-part is not a constant
18678      expression */
18679   const char *g = "string";
18680   pcpcc = &g + (g ? g-g : 0);
18681   /* HPUX 7.0 cc rejects these. */
18682   ++pcpcc;
18683   ppc = (char**) pcpcc;
18684   pcpcc = (char const *const *) ppc;
18685   { /* SCO 3.2v4 cc rejects this.  */
18686     char *t;
18687     char const *s = 0 ? (char *) 0 : (char const *) 0;
18688
18689     *t++ = 0;
18690     if (s) return 0;
18691   }
18692   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18693     int x[] = {25, 17};
18694     const int *foo = &x[0];
18695     ++foo;
18696   }
18697   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18698     typedef const int *iptr;
18699     iptr p = 0;
18700     ++p;
18701   }
18702   { /* AIX XL C 1.02.0.0 rejects this saying
18703        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18704     struct s { int j; const int *ap[3]; };
18705     struct s *b; b->j = 5;
18706   }
18707   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18708     const int foo = 10;
18709     if (!foo) return 0;
18710   }
18711   return !cs[0] && !zero.x;
18712 #endif
18713
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_compile") 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } && {
18732          test -z "$ac_c_werror_flag" ||
18733          test ! -s conftest.err
18734        } && test -s conftest.$ac_objext; then
18735   ac_cv_c_const=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_cv_c_const=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 fi
18745 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18746 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18747 if test $ac_cv_c_const = no; then
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define const
18751 _ACEOF
18752
18753 fi
18754
18755
18756   { echo "$as_me:$LINENO: checking for signed" >&5
18757 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18758 if test "${bh_cv_c_signed+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h.  */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h.  */
18767
18768 int
18769 main ()
18770 {
18771 signed char x;
18772   ;
18773   return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext
18777 if { (ac_try="$ac_compile"
18778 case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_compile") 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } && {
18790          test -z "$ac_c_werror_flag" ||
18791          test ! -s conftest.err
18792        } && test -s conftest.$ac_objext; then
18793   bh_cv_c_signed=yes
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798         bh_cv_c_signed=no
18799 fi
18800
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802 fi
18803 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18804 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18805   if test $bh_cv_c_signed = no; then
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define signed
18809 _ACEOF
18810
18811   fi
18812
18813 { echo "$as_me:$LINENO: checking for inline" >&5
18814 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18815 if test "${ac_cv_c_inline+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   ac_cv_c_inline=no
18819 for ac_kw in inline __inline__ __inline; do
18820   cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 #ifndef __cplusplus
18827 typedef int foo_t;
18828 static $ac_kw foo_t static_foo () {return 0; }
18829 $ac_kw foo_t foo () {return 0; }
18830 #endif
18831
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_compile") 2>conftest.er1
18841   ac_status=$?
18842   grep -v '^ *+' conftest.er1 >conftest.err
18843   rm -f conftest.er1
18844   cat conftest.err >&5
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); } && {
18847          test -z "$ac_c_werror_flag" ||
18848          test ! -s conftest.err
18849        } && test -s conftest.$ac_objext; then
18850   ac_cv_c_inline=$ac_kw
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859   test "$ac_cv_c_inline" != no && break
18860 done
18861
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18864 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18865
18866
18867 case $ac_cv_c_inline in
18868   inline | yes) ;;
18869   *)
18870     case $ac_cv_c_inline in
18871       no) ac_val=;;
18872       *) ac_val=$ac_cv_c_inline;;
18873     esac
18874     cat >>confdefs.h <<_ACEOF
18875 #ifndef __cplusplus
18876 #define inline $ac_val
18877 #endif
18878 _ACEOF
18879     ;;
18880 esac
18881
18882 { echo "$as_me:$LINENO: checking for off_t" >&5
18883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18884 if test "${ac_cv_type_off_t+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h.  */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h.  */
18893 $ac_includes_default
18894 typedef off_t ac__type_new_;
18895 int
18896 main ()
18897 {
18898 if ((ac__type_new_ *) 0)
18899   return 0;
18900 if (sizeof (ac__type_new_))
18901   return 0;
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913   (eval "$ac_compile") 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } && {
18920          test -z "$ac_c_werror_flag" ||
18921          test ! -s conftest.err
18922        } && test -s conftest.$ac_objext; then
18923   ac_cv_type_off_t=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         ac_cv_type_off_t=no
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932 fi
18933 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18934 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18935 if test $ac_cv_type_off_t = yes; then
18936   :
18937 else
18938
18939 cat >>confdefs.h <<_ACEOF
18940 #define off_t long int
18941 _ACEOF
18942
18943 fi
18944
18945 { echo "$as_me:$LINENO: checking for size_t" >&5
18946 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_size_t+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 $ac_includes_default
18957 typedef size_t ac__type_new_;
18958 int
18959 main ()
18960 {
18961 if ((ac__type_new_ *) 0)
18962   return 0;
18963 if (sizeof (ac__type_new_))
18964   return 0;
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 rm -f conftest.$ac_objext
18970 if { (ac_try="$ac_compile"
18971 case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_compile") 2>conftest.er1
18977   ac_status=$?
18978   grep -v '^ *+' conftest.er1 >conftest.err
18979   rm -f conftest.er1
18980   cat conftest.err >&5
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } && {
18983          test -z "$ac_c_werror_flag" ||
18984          test ! -s conftest.err
18985        } && test -s conftest.$ac_objext; then
18986   ac_cv_type_size_t=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991         ac_cv_type_size_t=no
18992 fi
18993
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 fi
18996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18998 if test $ac_cv_type_size_t = yes; then
18999   :
19000 else
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define size_t unsigned int
19004 _ACEOF
19005
19006 fi
19007
19008
19009   { echo "$as_me:$LINENO: checking for long long" >&5
19010 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19011 if test "${ac_cv_type_long_long+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 long long ll = 1LL; int i = 63;
19021 int
19022 main ()
19023 {
19024 long long llmax = (long long) -1;
19025      return ll << i | ll >> i | llmax / ll | llmax % ll;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_link") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } && {
19044          test -z "$ac_c_werror_flag" ||
19045          test ! -s conftest.err
19046        } && test -s conftest$ac_exeext &&
19047        $as_test_x conftest$ac_exeext; then
19048   ac_cv_type_long_long=yes
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053         ac_cv_type_long_long=no
19054 fi
19055
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057       conftest$ac_exeext conftest.$ac_ext
19058 fi
19059 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19060 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19061   if test $ac_cv_type_long_long = yes; then
19062
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_LONG_LONG 1
19065 _ACEOF
19066
19067   fi
19068
19069
19070   { echo "$as_me:$LINENO: checking for long double" >&5
19071 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19072 if test "${gt_cv_c_long_double+set}" = set; then
19073   echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075   if test "$GCC" = yes; then
19076        gt_cv_c_long_double=yes
19077      else
19078        cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084
19085          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19086          long double foo = 0.0;
19087          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19088          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19089
19090 int
19091 main ()
19092 {
19093
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_compile") 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } && {
19112          test -z "$ac_c_werror_flag" ||
19113          test ! -s conftest.err
19114        } && test -s conftest.$ac_objext; then
19115   gt_cv_c_long_double=yes
19116 else
19117   echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120         gt_cv_c_long_double=no
19121 fi
19122
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19124      fi
19125 fi
19126 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19127 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19128   if test $gt_cv_c_long_double = yes; then
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_LONG_DOUBLE 1
19132 _ACEOF
19133
19134   fi
19135
19136
19137   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19138 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19139 if test "${gt_cv_c_wchar_t+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148 #include <stddef.h>
19149        wchar_t foo = (wchar_t)'\0';
19150 int
19151 main ()
19152 {
19153
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_compile") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } && {
19172          test -z "$ac_c_werror_flag" ||
19173          test ! -s conftest.err
19174        } && test -s conftest.$ac_objext; then
19175   gt_cv_c_wchar_t=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180         gt_cv_c_wchar_t=no
19181 fi
19182
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 fi
19185 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19186 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19187   if test $gt_cv_c_wchar_t = yes; then
19188
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_WCHAR_T 1
19191 _ACEOF
19192
19193   fi
19194
19195
19196   { echo "$as_me:$LINENO: checking for wint_t" >&5
19197 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19198 if test "${gt_cv_c_wint_t+set}" = set; then
19199   echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201   cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207 #include <wchar.h>
19208        wint_t foo = (wchar_t)'\0';
19209 int
19210 main ()
19211 {
19212
19213   ;
19214   return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext
19218 if { (ac_try="$ac_compile"
19219 case "(($ac_try" in
19220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221   *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224   (eval "$ac_compile") 2>conftest.er1
19225   ac_status=$?
19226   grep -v '^ *+' conftest.er1 >conftest.err
19227   rm -f conftest.er1
19228   cat conftest.err >&5
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } && {
19231          test -z "$ac_c_werror_flag" ||
19232          test ! -s conftest.err
19233        } && test -s conftest.$ac_objext; then
19234   gt_cv_c_wint_t=yes
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239         gt_cv_c_wint_t=no
19240 fi
19241
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243 fi
19244 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19245 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19246   if test $gt_cv_c_wint_t = yes; then
19247
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_WINT_T 1
19250 _ACEOF
19251
19252   fi
19253
19254
19255   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19256 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19257 if test "${gl_cv_header_inttypes_h+set}" = set; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260   cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 #include <sys/types.h>
19267 #include <inttypes.h>
19268 int
19269 main ()
19270 {
19271 uintmax_t i = (uintmax_t) -1;
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_compile") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } && {
19290          test -z "$ac_c_werror_flag" ||
19291          test ! -s conftest.err
19292        } && test -s conftest.$ac_objext; then
19293   gl_cv_header_inttypes_h=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298         gl_cv_header_inttypes_h=no
19299 fi
19300
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 fi
19303 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19304 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19305   if test $gl_cv_header_inttypes_h = yes; then
19306
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19309 _ACEOF
19310
19311   fi
19312
19313
19314   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19315 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19316 if test "${gl_cv_header_stdint_h+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 #include <sys/types.h>
19326 #include <stdint.h>
19327 int
19328 main ()
19329 {
19330 uintmax_t i = (uintmax_t) -1;
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339   *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342   (eval "$ac_compile") 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } && {
19349          test -z "$ac_c_werror_flag" ||
19350          test ! -s conftest.err
19351        } && test -s conftest.$ac_objext; then
19352   gl_cv_header_stdint_h=yes
19353 else
19354   echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357         gl_cv_header_stdint_h=no
19358 fi
19359
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361 fi
19362 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19363 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19364   if test $gl_cv_header_stdint_h = yes; then
19365
19366 cat >>confdefs.h <<_ACEOF
19367 #define HAVE_STDINT_H_WITH_UINTMAX 1
19368 _ACEOF
19369
19370   fi
19371
19372
19373
19374
19375   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19376 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19377 if test "${gt_cv_c_intmax_t+set}" = set; then
19378   echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380   cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386
19387 #include <stddef.h>
19388 #include <stdlib.h>
19389 #if HAVE_STDINT_H_WITH_UINTMAX
19390 #include <stdint.h>
19391 #endif
19392 #if HAVE_INTTYPES_H_WITH_UINTMAX
19393 #include <inttypes.h>
19394 #endif
19395
19396 int
19397 main ()
19398 {
19399 intmax_t x = -1;
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && {
19418          test -z "$ac_c_werror_flag" ||
19419          test ! -s conftest.err
19420        } && test -s conftest.$ac_objext; then
19421   gt_cv_c_intmax_t=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426         gt_cv_c_intmax_t=no
19427 fi
19428
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19432 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19433   if test $gt_cv_c_intmax_t = yes; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_INTMAX_T 1
19437 _ACEOF
19438
19439   fi
19440
19441
19442
19443   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19444 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19445 if test "${gt_cv_func_printf_posix+set}" = set; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448
19449       if test "$cross_compiling" = yes; then
19450
19451         cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457
19458 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19459   notposix
19460 #endif
19461
19462 _ACEOF
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464   $EGREP "notposix" >/dev/null 2>&1; then
19465   gt_cv_func_printf_posix="guessing no"
19466 else
19467   gt_cv_func_printf_posix="guessing yes"
19468 fi
19469 rm -f conftest*
19470
19471
19472 else
19473   cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479
19480 #include <stdio.h>
19481 #include <string.h>
19482 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19483    dollar expansion (possibly an autoconf bug).  */
19484 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19485 static char buf[100];
19486 int main ()
19487 {
19488   sprintf (buf, format, 33, 55);
19489   return (strcmp (buf, "55 33") != 0);
19490 }
19491 _ACEOF
19492 rm -f conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   gt_cv_func_printf_posix=yes
19513 else
19514   echo "$as_me: program exited with status $ac_status" >&5
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ( exit $ac_status )
19519 gt_cv_func_printf_posix=no
19520 fi
19521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19522 fi
19523
19524
19525
19526 fi
19527 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19528 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19529   case $gt_cv_func_printf_posix in
19530     *yes)
19531
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_POSIX_PRINTF 1
19534 _ACEOF
19535
19536       ;;
19537   esac
19538
19539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19540 # for constant arguments.  Useless!
19541 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19542 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19543 if test "${ac_cv_working_alloca_h+set}" = set; then
19544   echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546   cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <alloca.h>
19553 int
19554 main ()
19555 {
19556 char *p = (char *) alloca (2 * sizeof (int));
19557                           if (p) return 0;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_link") 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } && {
19576          test -z "$ac_c_werror_flag" ||
19577          test ! -s conftest.err
19578        } && test -s conftest$ac_exeext &&
19579        $as_test_x conftest$ac_exeext; then
19580   ac_cv_working_alloca_h=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585         ac_cv_working_alloca_h=no
19586 fi
19587
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589       conftest$ac_exeext conftest.$ac_ext
19590 fi
19591 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19592 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19593 if test $ac_cv_working_alloca_h = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA_H 1
19597 _ACEOF
19598
19599 fi
19600
19601 { echo "$as_me:$LINENO: checking for alloca" >&5
19602 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_alloca_works+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #ifdef __GNUC__
19613 # define alloca __builtin_alloca
19614 #else
19615 # ifdef _MSC_VER
19616 #  include <malloc.h>
19617 #  define alloca _alloca
19618 # else
19619 #  ifdef HAVE_ALLOCA_H
19620 #   include <alloca.h>
19621 #  else
19622 #   ifdef _AIX
19623  #pragma alloca
19624 #   else
19625 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19626 char *alloca ();
19627 #    endif
19628 #   endif
19629 #  endif
19630 # endif
19631 #endif
19632
19633 int
19634 main ()
19635 {
19636 char *p = (char *) alloca (1);
19637                                     if (p) return 0;
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_link") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } && {
19656          test -z "$ac_c_werror_flag" ||
19657          test ! -s conftest.err
19658        } && test -s conftest$ac_exeext &&
19659        $as_test_x conftest$ac_exeext; then
19660   ac_cv_func_alloca_works=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_func_alloca_works=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669       conftest$ac_exeext conftest.$ac_ext
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19673
19674 if test $ac_cv_func_alloca_works = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19678 _ACEOF
19679
19680 else
19681   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble.  Some versions do not even contain alloca or
19683 # contain a buggy version.  If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19685
19686 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define C_ALLOCA 1
19690 _ACEOF
19691
19692
19693 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19695 if test "${ac_cv_os_cray+set}" = set; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #if defined CRAY && ! defined CRAY2
19705 webecray
19706 #else
19707 wenotbecray
19708 #endif
19709
19710 _ACEOF
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712   $EGREP "webecray" >/dev/null 2>&1; then
19713   ac_cv_os_cray=yes
19714 else
19715   ac_cv_os_cray=no
19716 fi
19717 rm -f conftest*
19718
19719 fi
19720 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723   for ac_func in _getb67 GETB67 getb67; do
19724     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19738 #define $ac_func innocuous_$ac_func
19739
19740 /* System header to define __stub macros and hopefully few prototypes,
19741     which can conflict with char $ac_func (); below.
19742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743     <limits.h> exists even on freestanding compilers.  */
19744
19745 #ifdef __STDC__
19746 # include <limits.h>
19747 #else
19748 # include <assert.h>
19749 #endif
19750
19751 #undef $ac_func
19752
19753 /* Override any GCC internal prototype to avoid an error.
19754    Use char because int might match the return type of a GCC
19755    builtin and then its argument prototype would still apply.  */
19756 #ifdef __cplusplus
19757 extern "C"
19758 #endif
19759 char $ac_func ();
19760 /* The GNU C library defines this for functions which it implements
19761     to always fail with ENOSYS.  Some functions are actually named
19762     something starting with __ and the normal name is an alias.  */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19764 choke me
19765 #endif
19766
19767 int
19768 main ()
19769 {
19770 return $ac_func ();
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19783   ac_status=$?
19784   grep -v '^ *+' conftest.er1 >conftest.err
19785   rm -f conftest.er1
19786   cat conftest.err >&5
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } && {
19789          test -z "$ac_c_werror_flag" ||
19790          test ! -s conftest.err
19791        } && test -s conftest$ac_exeext &&
19792        $as_test_x conftest$ac_exeext; then
19793   eval "$as_ac_var=yes"
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798         eval "$as_ac_var=no"
19799 fi
19800
19801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19802       conftest$ac_exeext conftest.$ac_ext
19803 fi
19804 ac_res=`eval echo '${'$as_ac_var'}'`
19805                { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 if test `eval echo '${'$as_ac_var'}'` = yes; then
19808
19809 cat >>confdefs.h <<_ACEOF
19810 #define CRAY_STACKSEG_END $ac_func
19811 _ACEOF
19812
19813     break
19814 fi
19815
19816   done
19817 fi
19818
19819 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19821 if test "${ac_cv_c_stack_direction+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   if test "$cross_compiling" = yes; then
19825   ac_cv_c_stack_direction=0
19826 else
19827   cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h.  */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h.  */
19833 $ac_includes_default
19834 int
19835 find_stack_direction ()
19836 {
19837   static char *addr = 0;
19838   auto char dummy;
19839   if (addr == 0)
19840     {
19841       addr = &dummy;
19842       return find_stack_direction ();
19843     }
19844   else
19845     return (&dummy > addr) ? 1 : -1;
19846 }
19847
19848 int
19849 main ()
19850 {
19851   return find_stack_direction () < 0;
19852 }
19853 _ACEOF
19854 rm -f conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_link") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865   { (case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870   (eval "$ac_try") 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_cv_c_stack_direction=1
19875 else
19876   echo "$as_me: program exited with status $ac_status" >&5
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19879
19880 ( exit $ac_status )
19881 ac_cv_c_stack_direction=-1
19882 fi
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19884 fi
19885
19886
19887 fi
19888 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19889 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19890
19891 cat >>confdefs.h <<_ACEOF
19892 #define STACK_DIRECTION $ac_cv_c_stack_direction
19893 _ACEOF
19894
19895
19896 fi
19897
19898
19899
19900 for ac_header in stdlib.h unistd.h
19901 do
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   echo $ECHO_N "(cached) $ECHO_C" >&6
19908 fi
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910                { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19912 else
19913   # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 $ac_includes_default
19923 #include <$ac_header>
19924 _ACEOF
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_compile") 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } && {
19939          test -z "$ac_c_werror_flag" ||
19940          test ! -s conftest.err
19941        } && test -s conftest.$ac_objext; then
19942   ac_header_compiler=yes
19943 else
19944   echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19946
19947         ac_header_compiler=no
19948 fi
19949
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6; }
19953
19954 # Is the header present?
19955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <$ac_header>
19964 _ACEOF
19965 if { (ac_try="$ac_cpp conftest.$ac_ext"
19966 case "(($ac_try" in
19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968   *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19972   ac_status=$?
19973   grep -v '^ *+' conftest.er1 >conftest.err
19974   rm -f conftest.er1
19975   cat conftest.err >&5
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); } >/dev/null && {
19978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19979          test ! -s conftest.err
19980        }; then
19981   ac_header_preproc=yes
19982 else
19983   echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19985
19986   ac_header_preproc=no
19987 fi
19988
19989 rm -f conftest.err conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19991 echo "${ECHO_T}$ac_header_preproc" >&6; }
19992
19993 # So?  What about this header?
19994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19995   yes:no: )
19996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20000     ac_header_preproc=yes
20001     ;;
20002   no:yes:* )
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20015
20016     ;;
20017 esac
20018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20021   echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023   eval "$as_ac_Header=\$ac_header_preproc"
20024 fi
20025 ac_res=`eval echo '${'$as_ac_Header'}'`
20026                { echo "$as_me:$LINENO: result: $ac_res" >&5
20027 echo "${ECHO_T}$ac_res" >&6; }
20028
20029 fi
20030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031   cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20033 _ACEOF
20034
20035 fi
20036
20037 done
20038
20039
20040 for ac_func in getpagesize
20041 do
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20046   echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20056 #define $ac_func innocuous_$ac_func
20057
20058 /* System header to define __stub macros and hopefully few prototypes,
20059     which can conflict with char $ac_func (); below.
20060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061     <limits.h> exists even on freestanding compilers.  */
20062
20063 #ifdef __STDC__
20064 # include <limits.h>
20065 #else
20066 # include <assert.h>
20067 #endif
20068
20069 #undef $ac_func
20070
20071 /* Override any GCC internal prototype to avoid an error.
20072    Use char because int might match the return type of a GCC
20073    builtin and then its argument prototype would still apply.  */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char $ac_func ();
20078 /* The GNU C library defines this for functions which it implements
20079     to always fail with ENOSYS.  Some functions are actually named
20080     something starting with __ and the normal name is an alias.  */
20081 #if defined __stub_$ac_func || defined __stub___$ac_func
20082 choke me
20083 #endif
20084
20085 int
20086 main ()
20087 {
20088 return $ac_func ();
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_link") 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } && {
20107          test -z "$ac_c_werror_flag" ||
20108          test ! -s conftest.err
20109        } && test -s conftest$ac_exeext &&
20110        $as_test_x conftest$ac_exeext; then
20111   eval "$as_ac_var=yes"
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116         eval "$as_ac_var=no"
20117 fi
20118
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120       conftest$ac_exeext conftest.$ac_ext
20121 fi
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123                { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126   cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128 _ACEOF
20129
20130 fi
20131 done
20132
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   if test "$cross_compiling" = yes; then
20139   ac_cv_func_mmap_fixed_mapped=no
20140 else
20141   cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20149 #undef malloc
20150
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152    Here is a matrix of mmap possibilities:
20153         mmap private not fixed
20154         mmap private fixed at somewhere currently unmapped
20155         mmap private fixed at somewhere already mapped
20156         mmap shared not fixed
20157         mmap shared fixed at somewhere currently unmapped
20158         mmap shared fixed at somewhere already mapped
20159    For private mappings, we should verify that changes cannot be read()
20160    back from the file, nor mmap's back from the file at a different
20161    address.  (There have been systems where private was not correctly
20162    implemented like the infamous i386 svr4.0, and systems where the
20163    VM page cache was not coherent with the file system buffer cache
20164    like early versions of FreeBSD and possibly contemporary NetBSD.)
20165    For shared mappings, we should conversely verify that changes get
20166    propagated back to all the places they're supposed to be.
20167
20168    Grep wants private fixed already mapped.
20169    The main things grep needs to know about mmap are:
20170    * does it exist and is it safe to write into the mmap'd area
20171    * how to use it (BSD variants)  */
20172
20173 #include <fcntl.h>
20174 #include <sys/mman.h>
20175
20176 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20177 char *malloc ();
20178 #endif
20179
20180 /* This mess was copied from the GNU getpagesize.h.  */
20181 #ifndef HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h.  */
20183 # ifndef HAVE_SYS_PARAM_H
20184 #  define HAVE_SYS_PARAM_H 1
20185 # endif
20186
20187 # ifdef _SC_PAGESIZE
20188 #  define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 #  ifdef HAVE_SYS_PARAM_H
20191 #   include <sys/param.h>
20192 #   ifdef EXEC_PAGESIZE
20193 #    define getpagesize() EXEC_PAGESIZE
20194 #   else /* no EXEC_PAGESIZE */
20195 #    ifdef NBPG
20196 #     define getpagesize() NBPG * CLSIZE
20197 #     ifndef CLSIZE
20198 #      define CLSIZE 1
20199 #     endif /* no CLSIZE */
20200 #    else /* no NBPG */
20201 #     ifdef NBPC
20202 #      define getpagesize() NBPC
20203 #     else /* no NBPC */
20204 #      ifdef PAGESIZE
20205 #       define getpagesize() PAGESIZE
20206 #      endif /* PAGESIZE */
20207 #     endif /* no NBPC */
20208 #    endif /* no NBPG */
20209 #   endif /* no EXEC_PAGESIZE */
20210 #  else /* no HAVE_SYS_PARAM_H */
20211 #   define getpagesize() 8192   /* punt totally */
20212 #  endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20214
20215 #endif /* no HAVE_GETPAGESIZE */
20216
20217 int
20218 main ()
20219 {
20220   char *data, *data2, *data3;
20221   int i, pagesize;
20222   int fd;
20223
20224   pagesize = getpagesize ();
20225
20226   /* First, make a file with some known garbage in it. */
20227   data = (char *) malloc (pagesize);
20228   if (!data)
20229     return 1;
20230   for (i = 0; i < pagesize; ++i)
20231     *(data + i) = rand ();
20232   umask (0);
20233   fd = creat ("conftest.mmap", 0600);
20234   if (fd < 0)
20235     return 1;
20236   if (write (fd, data, pagesize) != pagesize)
20237     return 1;
20238   close (fd);
20239
20240   /* Next, try to mmap the file at a fixed address which already has
20241      something else allocated at it.  If we can, also make sure that
20242      we see the same garbage.  */
20243   fd = open ("conftest.mmap", O_RDWR);
20244   if (fd < 0)
20245     return 1;
20246   data2 = (char *) malloc (2 * pagesize);
20247   if (!data2)
20248     return 1;
20249   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20252     return 1;
20253   for (i = 0; i < pagesize; ++i)
20254     if (*(data + i) != *(data2 + i))
20255       return 1;
20256
20257   /* Finally, make sure that changes to the mapped area do not
20258      percolate back to the file as seen by read().  (This is a bug on
20259      some variants of i386 svr4.0.)  */
20260   for (i = 0; i < pagesize; ++i)
20261     *(data2 + i) = *(data2 + i) + 1;
20262   data3 = (char *) malloc (pagesize);
20263   if (!data3)
20264     return 1;
20265   if (read (fd, data3, pagesize) != pagesize)
20266     return 1;
20267   for (i = 0; i < pagesize; ++i)
20268     if (*(data + i) != *(data3 + i))
20269       return 1;
20270   close (fd);
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_link") 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285   { (case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_try") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_func_mmap_fixed_mapped=yes
20295 else
20296   echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20302 fi
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20304 fi
20305
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20311
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20314 _ACEOF
20315
20316 fi
20317 rm -f conftest.mmap
20318
20319
20320     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20321 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20322 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331
20332 #include <features.h>
20333 #ifdef __GNU_LIBRARY__
20334  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20335   Lucky GNU user
20336  #endif
20337 #endif
20338
20339 _ACEOF
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20342   ac_cv_gnu_library_2_1=yes
20343 else
20344   ac_cv_gnu_library_2_1=no
20345 fi
20346 rm -f conftest*
20347
20348
20349
20350 fi
20351 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20352 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20353
20354     GLIBC21="$ac_cv_gnu_library_2_1"
20355
20356
20357
20358
20359   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20360 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20361 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364
20365       if test "$cross_compiling" = yes; then
20366
20367           # Guess based on the CPU.
20368           case "$host_cpu" in
20369             alpha* | i3456786 | m68k | s390*)
20370               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20371             *)
20372               gt_cv_int_divbyzero_sigfpe="guessing no";;
20373           esac
20374
20375 else
20376   cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382
20383 #include <stdlib.h>
20384 #include <signal.h>
20385
20386 static void
20387 #ifdef __cplusplus
20388 sigfpe_handler (int sig)
20389 #else
20390 sigfpe_handler (sig) int sig;
20391 #endif
20392 {
20393   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20394   exit (sig != SIGFPE);
20395 }
20396
20397 int x = 1;
20398 int y = 0;
20399 int z;
20400 int nan;
20401
20402 int main ()
20403 {
20404   signal (SIGFPE, sigfpe_handler);
20405 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20406 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20407   signal (SIGTRAP, sigfpe_handler);
20408 #endif
20409 /* Linux/SPARC yields signal SIGILL.  */
20410 #if defined (__sparc__) && defined (__linux__)
20411   signal (SIGILL, sigfpe_handler);
20412 #endif
20413
20414   z = x / y;
20415   nan = y / y;
20416   exit (1);
20417 }
20418
20419 _ACEOF
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_link") 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   gt_cv_int_divbyzero_sigfpe=yes
20441 else
20442   echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ( exit $ac_status )
20447 gt_cv_int_divbyzero_sigfpe=no
20448 fi
20449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20450 fi
20451
20452
20453
20454 fi
20455 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20456 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20457   case "$gt_cv_int_divbyzero_sigfpe" in
20458     *yes) value=1;;
20459     *) value=0;;
20460   esac
20461
20462 cat >>confdefs.h <<_ACEOF
20463 #define INTDIV0_RAISES_SIGFPE $value
20464 _ACEOF
20465
20466
20467
20468   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20469 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20470 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 unsigned long long ull = 1ULL; int i = 63;
20480 int
20481 main ()
20482 {
20483 unsigned long long ullmax = (unsigned long long) -1;
20484      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_link") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest$ac_exeext &&
20506        $as_test_x conftest$ac_exeext; then
20507   ac_cv_type_unsigned_long_long=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_cv_type_unsigned_long_long=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516       conftest$ac_exeext conftest.$ac_ext
20517 fi
20518 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20519 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20520   if test $ac_cv_type_unsigned_long_long = yes; then
20521
20522 cat >>confdefs.h <<\_ACEOF
20523 #define HAVE_UNSIGNED_LONG_LONG 1
20524 _ACEOF
20525
20526   fi
20527
20528
20529
20530
20531   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20532
20533     test $ac_cv_type_unsigned_long_long = yes \
20534       && ac_type='unsigned long long' \
20535       || ac_type='unsigned long'
20536
20537 cat >>confdefs.h <<_ACEOF
20538 #define uintmax_t $ac_type
20539 _ACEOF
20540
20541   else
20542
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_UINTMAX_T 1
20545 _ACEOF
20546
20547   fi
20548
20549
20550   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20551 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20552 if test "${gt_cv_header_inttypes_h+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555
20556     cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 #include <sys/types.h>
20563 #include <inttypes.h>
20564 int
20565 main ()
20566 {
20567
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_compile") 2>conftest.er1
20580   ac_status=$?
20581   grep -v '^ *+' conftest.er1 >conftest.err
20582   rm -f conftest.er1
20583   cat conftest.err >&5
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); } && {
20586          test -z "$ac_c_werror_flag" ||
20587          test ! -s conftest.err
20588        } && test -s conftest.$ac_objext; then
20589   gt_cv_header_inttypes_h=yes
20590 else
20591   echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         gt_cv_header_inttypes_h=no
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598
20599 fi
20600 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20601 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20602   if test $gt_cv_header_inttypes_h = yes; then
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_INTTYPES_H 1
20606 _ACEOF
20607
20608   fi
20609
20610
20611
20612   if test $gt_cv_header_inttypes_h = yes; then
20613     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20614 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20615 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618
20619         cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <inttypes.h>
20626 #ifdef PRId32
20627 char *p = PRId32;
20628 #endif
20629
20630 int
20631 main ()
20632 {
20633
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_compile") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && {
20652          test -z "$ac_c_werror_flag" ||
20653          test ! -s conftest.err
20654        } && test -s conftest.$ac_objext; then
20655   gt_cv_inttypes_pri_broken=no
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660         gt_cv_inttypes_pri_broken=yes
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664
20665 fi
20666 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20667 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20668   fi
20669   if test "$gt_cv_inttypes_pri_broken" = yes; then
20670
20671 cat >>confdefs.h <<_ACEOF
20672 #define PRI_MACROS_BROKEN 1
20673 _ACEOF
20674
20675   fi
20676
20677
20678
20679 for ac_header in stdint.h
20680 do
20681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 fi
20688 ac_res=`eval echo '${'$as_ac_Header'}'`
20689                { echo "$as_me:$LINENO: result: $ac_res" >&5
20690 echo "${ECHO_T}$ac_res" >&6; }
20691 else
20692   # Is the header compilable?
20693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 $ac_includes_default
20702 #include <$ac_header>
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721   ac_header_compiler=yes
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         ac_header_compiler=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20731 echo "${ECHO_T}$ac_header_compiler" >&6; }
20732
20733 # Is the header present?
20734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 #include <$ac_header>
20743 _ACEOF
20744 if { (ac_try="$ac_cpp conftest.$ac_ext"
20745 case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20751   ac_status=$?
20752   grep -v '^ *+' conftest.er1 >conftest.err
20753   rm -f conftest.er1
20754   cat conftest.err >&5
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); } >/dev/null && {
20757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20758          test ! -s conftest.err
20759        }; then
20760   ac_header_preproc=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765   ac_header_preproc=no
20766 fi
20767
20768 rm -f conftest.err conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20770 echo "${ECHO_T}$ac_header_preproc" >&6; }
20771
20772 # So?  What about this header?
20773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20774   yes:no: )
20775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20779     ac_header_preproc=yes
20780     ;;
20781   no:yes:* )
20782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20794
20795     ;;
20796 esac
20797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   eval "$as_ac_Header=\$ac_header_preproc"
20803 fi
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805                { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20807
20808 fi
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810   cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20812 _ACEOF
20813
20814 fi
20815
20816 done
20817
20818     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20819 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20820   result=
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827
20828 #include <limits.h>
20829 #if HAVE_STDINT_H
20830 #include <stdint.h>
20831 #endif
20832 #ifdef SIZE_MAX
20833 Found it
20834 #endif
20835
20836 _ACEOF
20837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20838   $EGREP "Found it" >/dev/null 2>&1; then
20839   result=yes
20840 fi
20841 rm -f conftest*
20842
20843   if test -z "$result"; then
20844                     if test "$cross_compiling" = yes; then
20845   # Depending upon the size, compute the lo and hi bounds.
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <stddef.h>
20853 int
20854 main ()
20855 {
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20857 test_array [0] = 0
20858
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_compile") 2>conftest.er1
20871   ac_status=$?
20872   grep -v '^ *+' conftest.er1 >conftest.err
20873   rm -f conftest.er1
20874   cat conftest.err >&5
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } && {
20877          test -z "$ac_c_werror_flag" ||
20878          test ! -s conftest.err
20879        } && test -s conftest.$ac_objext; then
20880   ac_lo=0 ac_mid=0
20881   while :; do
20882     cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 #include <stddef.h>
20889 int
20890 main ()
20891 {
20892 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20893 test_array [0] = 0
20894
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_compile") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } && {
20913          test -z "$ac_c_werror_flag" ||
20914          test ! -s conftest.err
20915        } && test -s conftest.$ac_objext; then
20916   ac_hi=$ac_mid; break
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921         ac_lo=`expr $ac_mid + 1`
20922                         if test $ac_lo -le $ac_mid; then
20923                           ac_lo= ac_hi=
20924                           break
20925                         fi
20926                         ac_mid=`expr 2 '*' $ac_mid + 1`
20927 fi
20928
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930   done
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include <stddef.h>
20942 int
20943 main ()
20944 {
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20946 test_array [0] = 0
20947
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_compile") 2>conftest.er1
20960   ac_status=$?
20961   grep -v '^ *+' conftest.er1 >conftest.err
20962   rm -f conftest.er1
20963   cat conftest.err >&5
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } && {
20966          test -z "$ac_c_werror_flag" ||
20967          test ! -s conftest.err
20968        } && test -s conftest.$ac_objext; then
20969   ac_hi=-1 ac_mid=-1
20970   while :; do
20971     cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h.  */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h.  */
20977 #include <stddef.h>
20978 int
20979 main ()
20980 {
20981 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20982 test_array [0] = 0
20983
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_compile") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && {
21002          test -z "$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        } && test -s conftest.$ac_objext; then
21005   ac_lo=$ac_mid; break
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010         ac_hi=`expr '(' $ac_mid ')' - 1`
21011                         if test $ac_mid -le $ac_hi; then
21012                           ac_lo= ac_hi=
21013                           break
21014                         fi
21015                         ac_mid=`expr 2 '*' $ac_mid`
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019   done
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024         ac_lo= ac_hi=
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 fi
21029
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 # Binary search between lo and hi bounds.
21032 while test "x$ac_lo" != "x$ac_hi"; do
21033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21034   cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040 #include <stddef.h>
21041 int
21042 main ()
21043 {
21044 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21045 test_array [0] = 0
21046
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_compile") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } && {
21065          test -z "$ac_c_werror_flag" ||
21066          test ! -s conftest.err
21067        } && test -s conftest.$ac_objext; then
21068   ac_hi=$ac_mid
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073         ac_lo=`expr '(' $ac_mid ')' + 1`
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 done
21078 case $ac_lo in
21079 ?*) res_hi=$ac_lo;;
21080 '') result=? ;;
21081 esac
21082 else
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 #include <stddef.h>
21090 static long int longval () { return ~(size_t)0 / 10; }
21091 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21092 #include <stdio.h>
21093 #include <stdlib.h>
21094 int
21095 main ()
21096 {
21097
21098   FILE *f = fopen ("conftest.val", "w");
21099   if (! f)
21100     return 1;
21101   if ((~(size_t)0 / 10) < 0)
21102     {
21103       long int i = longval ();
21104       if (i != (~(size_t)0 / 10))
21105         return 1;
21106       fprintf (f, "%ld\n", i);
21107     }
21108   else
21109     {
21110       unsigned long int i = ulongval ();
21111       if (i != (~(size_t)0 / 10))
21112         return 1;
21113       fprintf (f, "%lu\n", i);
21114     }
21115   return ferror (f) || fclose (f) != 0;
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
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_link") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132   { (case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_try") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   res_hi=`cat conftest.val`
21142 else
21143   echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 ( exit $ac_status )
21148 result=?
21149 fi
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 fi
21152 rm -f conftest.val
21153
21154     if test "$cross_compiling" = yes; then
21155   # Depending upon the size, compute the lo and hi bounds.
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 #include <stddef.h>
21163 int
21164 main ()
21165 {
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21167 test_array [0] = 0
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_compile") 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } && {
21187          test -z "$ac_c_werror_flag" ||
21188          test ! -s conftest.err
21189        } && test -s conftest.$ac_objext; then
21190   ac_lo=0 ac_mid=0
21191   while :; do
21192     cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 #include <stddef.h>
21199 int
21200 main ()
21201 {
21202 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21203 test_array [0] = 0
21204
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_compile") 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } && {
21223          test -z "$ac_c_werror_flag" ||
21224          test ! -s conftest.err
21225        } && test -s conftest.$ac_objext; then
21226   ac_hi=$ac_mid; break
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231         ac_lo=`expr $ac_mid + 1`
21232                         if test $ac_lo -le $ac_mid; then
21233                           ac_lo= ac_hi=
21234                           break
21235                         fi
21236                         ac_mid=`expr 2 '*' $ac_mid + 1`
21237 fi
21238
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240   done
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245         cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 #include <stddef.h>
21252 int
21253 main ()
21254 {
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21256 test_array [0] = 0
21257
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279   ac_hi=-1 ac_mid=-1
21280   while :; do
21281     cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 #include <stddef.h>
21288 int
21289 main ()
21290 {
21291 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21292 test_array [0] = 0
21293
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302   *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305   (eval "$ac_compile") 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } && {
21312          test -z "$ac_c_werror_flag" ||
21313          test ! -s conftest.err
21314        } && test -s conftest.$ac_objext; then
21315   ac_lo=$ac_mid; break
21316 else
21317   echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320         ac_hi=`expr '(' $ac_mid ')' - 1`
21321                         if test $ac_mid -le $ac_hi; then
21322                           ac_lo= ac_hi=
21323                           break
21324                         fi
21325                         ac_mid=`expr 2 '*' $ac_mid`
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329   done
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334         ac_lo= ac_hi=
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 fi
21339
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 # Binary search between lo and hi bounds.
21342 while test "x$ac_lo" != "x$ac_hi"; do
21343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350 #include <stddef.h>
21351 int
21352 main ()
21353 {
21354 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21355 test_array [0] = 0
21356
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_compile") 2>conftest.er1
21369   ac_status=$?
21370   grep -v '^ *+' conftest.er1 >conftest.err
21371   rm -f conftest.er1
21372   cat conftest.err >&5
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && {
21375          test -z "$ac_c_werror_flag" ||
21376          test ! -s conftest.err
21377        } && test -s conftest.$ac_objext; then
21378   ac_hi=$ac_mid
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383         ac_lo=`expr '(' $ac_mid ')' + 1`
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 done
21388 case $ac_lo in
21389 ?*) res_lo=$ac_lo;;
21390 '') result=? ;;
21391 esac
21392 else
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <stddef.h>
21400 static long int longval () { return ~(size_t)0 % 10; }
21401 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21402 #include <stdio.h>
21403 #include <stdlib.h>
21404 int
21405 main ()
21406 {
21407
21408   FILE *f = fopen ("conftest.val", "w");
21409   if (! f)
21410     return 1;
21411   if ((~(size_t)0 % 10) < 0)
21412     {
21413       long int i = longval ();
21414       if (i != (~(size_t)0 % 10))
21415         return 1;
21416       fprintf (f, "%ld\n", i);
21417     }
21418   else
21419     {
21420       unsigned long int i = ulongval ();
21421       if (i != (~(size_t)0 % 10))
21422         return 1;
21423       fprintf (f, "%lu\n", i);
21424     }
21425   return ferror (f) || fclose (f) != 0;
21426
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
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_link") 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442   { (case "(($ac_try" in
21443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444   *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447   (eval "$ac_try") 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }; then
21451   res_lo=`cat conftest.val`
21452 else
21453   echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ( exit $ac_status )
21458 result=?
21459 fi
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21461 fi
21462 rm -f conftest.val
21463
21464     if test "$cross_compiling" = yes; then
21465   # Depending upon the size, compute the lo and hi bounds.
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 #include <stddef.h>
21473 int
21474 main ()
21475 {
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21477 test_array [0] = 0
21478
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487   *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490   (eval "$ac_compile") 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } && {
21497          test -z "$ac_c_werror_flag" ||
21498          test ! -s conftest.err
21499        } && test -s conftest.$ac_objext; then
21500   ac_lo=0 ac_mid=0
21501   while :; do
21502     cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 #include <stddef.h>
21509 int
21510 main ()
21511 {
21512 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21513 test_array [0] = 0
21514
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_compile") 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } && {
21533          test -z "$ac_c_werror_flag" ||
21534          test ! -s conftest.err
21535        } && test -s conftest.$ac_objext; then
21536   ac_hi=$ac_mid; break
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541         ac_lo=`expr $ac_mid + 1`
21542                         if test $ac_lo -le $ac_mid; then
21543                           ac_lo= ac_hi=
21544                           break
21545                         fi
21546                         ac_mid=`expr 2 '*' $ac_mid + 1`
21547 fi
21548
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550   done
21551 else
21552   echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555         cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 #include <stddef.h>
21562 int
21563 main ()
21564 {
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21566 test_array [0] = 0
21567
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_compile") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest.$ac_objext; then
21589   ac_hi=-1 ac_mid=-1
21590   while :; do
21591     cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597 #include <stddef.h>
21598 int
21599 main ()
21600 {
21601 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21602 test_array [0] = 0
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_compile") 2>conftest.er1
21616   ac_status=$?
21617   grep -v '^ *+' conftest.er1 >conftest.err
21618   rm -f conftest.er1
21619   cat conftest.err >&5
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && {
21622          test -z "$ac_c_werror_flag" ||
21623          test ! -s conftest.err
21624        } && test -s conftest.$ac_objext; then
21625   ac_lo=$ac_mid; break
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630         ac_hi=`expr '(' $ac_mid ')' - 1`
21631                         if test $ac_mid -le $ac_hi; then
21632                           ac_lo= ac_hi=
21633                           break
21634                         fi
21635                         ac_mid=`expr 2 '*' $ac_mid`
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639   done
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644         ac_lo= ac_hi=
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 #include <stddef.h>
21661 int
21662 main ()
21663 {
21664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21665 test_array [0] = 0
21666
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675   *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678   (eval "$ac_compile") 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } && {
21685          test -z "$ac_c_werror_flag" ||
21686          test ! -s conftest.err
21687        } && test -s conftest.$ac_objext; then
21688   ac_hi=$ac_mid
21689 else
21690   echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21692
21693         ac_lo=`expr '(' $ac_mid ')' + 1`
21694 fi
21695
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 done
21698 case $ac_lo in
21699 ?*) fits_in_uint=$ac_lo;;
21700 '') result=? ;;
21701 esac
21702 else
21703   cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709 #include <stddef.h>
21710 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21711 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21712 #include <stdio.h>
21713 #include <stdlib.h>
21714 int
21715 main ()
21716 {
21717
21718   FILE *f = fopen ("conftest.val", "w");
21719   if (! f)
21720     return 1;
21721   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21722     {
21723       long int i = longval ();
21724       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21725         return 1;
21726       fprintf (f, "%ld\n", i);
21727     }
21728   else
21729     {
21730       unsigned long int i = ulongval ();
21731       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21732         return 1;
21733       fprintf (f, "%lu\n", i);
21734     }
21735   return ferror (f) || fclose (f) != 0;
21736
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_link") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752   { (case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_try") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   fits_in_uint=`cat conftest.val`
21762 else
21763   echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ( exit $ac_status )
21768 result=?
21769 fi
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21771 fi
21772 rm -f conftest.val
21773
21774     if test "$fits_in_uint" = 1; then
21775                   cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 #include <stddef.h>
21782         extern size_t foo;
21783         extern unsigned long foo;
21784
21785 int
21786 main ()
21787 {
21788
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797   *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800   (eval "$ac_compile") 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } && {
21807          test -z "$ac_c_werror_flag" ||
21808          test ! -s conftest.err
21809        } && test -s conftest.$ac_objext; then
21810   fits_in_uint=0
21811 else
21812   echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815
21816 fi
21817
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819     fi
21820     if test -z "$result"; then
21821       if test "$fits_in_uint" = 1; then
21822         result="$res_hi$res_lo"U
21823       else
21824         result="$res_hi$res_lo"UL
21825       fi
21826     else
21827             result='~(size_t)0'
21828     fi
21829   fi
21830   { echo "$as_me:$LINENO: result: $result" >&5
21831 echo "${ECHO_T}$result" >&6; }
21832   if test "$result" != yes; then
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZE_MAX $result
21836 _ACEOF
21837
21838   fi
21839
21840
21841
21842
21843
21844 for ac_header in stdint.h
21845 do
21846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 fi
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854                { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21856 else
21857   # Is the header compilable?
21858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 $ac_includes_default
21867 #include <$ac_header>
21868 _ACEOF
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_compile") 2>conftest.er1
21877   ac_status=$?
21878   grep -v '^ *+' conftest.er1 >conftest.err
21879   rm -f conftest.er1
21880   cat conftest.err >&5
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); } && {
21883          test -z "$ac_c_werror_flag" ||
21884          test ! -s conftest.err
21885        } && test -s conftest.$ac_objext; then
21886   ac_header_compiler=yes
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891         ac_header_compiler=no
21892 fi
21893
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21896 echo "${ECHO_T}$ac_header_compiler" >&6; }
21897
21898 # Is the header present?
21899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 #include <$ac_header>
21908 _ACEOF
21909 if { (ac_try="$ac_cpp conftest.$ac_ext"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } >/dev/null && {
21922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923          test ! -s conftest.err
21924        }; then
21925   ac_header_preproc=yes
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930   ac_header_preproc=no
21931 fi
21932
21933 rm -f conftest.err conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21935 echo "${ECHO_T}$ac_header_preproc" >&6; }
21936
21937 # So?  What about this header?
21938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21939   yes:no: )
21940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21944     ac_header_preproc=yes
21945     ;;
21946   no:yes:* )
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21959
21960     ;;
21961 esac
21962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   eval "$as_ac_Header=\$ac_header_preproc"
21968 fi
21969 ac_res=`eval echo '${'$as_ac_Header'}'`
21970                { echo "$as_me:$LINENO: result: $ac_res" >&5
21971 echo "${ECHO_T}$ac_res" >&6; }
21972
21973 fi
21974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21975   cat >>confdefs.h <<_ACEOF
21976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 _ACEOF
21978
21979 fi
21980
21981 done
21982
21983
21984
21985
21986
21987
21988
21989
21990   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21991 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21993   echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995   cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 $ac_includes_default
22002 typedef ptrdiff_t ac__type_new_;
22003 int
22004 main ()
22005 {
22006 if ((ac__type_new_ *) 0)
22007   return 0;
22008 if (sizeof (ac__type_new_))
22009   return 0;
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_compile") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } && {
22028          test -z "$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        } && test -s conftest.$ac_objext; then
22031   ac_cv_type_ptrdiff_t=yes
22032 else
22033   echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22035
22036         ac_cv_type_ptrdiff_t=no
22037 fi
22038
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 fi
22041 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22043 if test $ac_cv_type_ptrdiff_t = yes; then
22044   :
22045 else
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define ptrdiff_t long
22049 _ACEOF
22050
22051
22052 fi
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22065 stdlib.h string.h unistd.h sys/param.h
22066 do
22067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 fi
22074 ac_res=`eval echo '${'$as_ac_Header'}'`
22075                { echo "$as_me:$LINENO: result: $ac_res" >&5
22076 echo "${ECHO_T}$ac_res" >&6; }
22077 else
22078   # Is the header compilable?
22079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 $ac_includes_default
22088 #include <$ac_header>
22089 _ACEOF
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094   *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097   (eval "$ac_compile") 2>conftest.er1
22098   ac_status=$?
22099   grep -v '^ *+' conftest.er1 >conftest.err
22100   rm -f conftest.er1
22101   cat conftest.err >&5
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); } && {
22104          test -z "$ac_c_werror_flag" ||
22105          test ! -s conftest.err
22106        } && test -s conftest.$ac_objext; then
22107   ac_header_compiler=yes
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112         ac_header_compiler=no
22113 fi
22114
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22117 echo "${ECHO_T}$ac_header_compiler" >&6; }
22118
22119 # Is the header present?
22120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 #include <$ac_header>
22129 _ACEOF
22130 if { (ac_try="$ac_cpp conftest.$ac_ext"
22131 case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } >/dev/null && {
22143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        }; then
22146   ac_header_preproc=yes
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151   ac_header_preproc=no
22152 fi
22153
22154 rm -f conftest.err conftest.$ac_ext
22155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22156 echo "${ECHO_T}$ac_header_preproc" >&6; }
22157
22158 # So?  What about this header?
22159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22160   yes:no: )
22161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22165     ac_header_preproc=yes
22166     ;;
22167   no:yes:* )
22168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22180
22181     ;;
22182 esac
22183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186   echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188   eval "$as_ac_Header=\$ac_header_preproc"
22189 fi
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191                { echo "$as_me:$LINENO: result: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22193
22194 fi
22195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196   cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22198 _ACEOF
22199
22200 fi
22201
22202 done
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22228 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22229 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22230 __fsetlocking
22231 do
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236   echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238   cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22246 #define $ac_func innocuous_$ac_func
22247
22248 /* System header to define __stub macros and hopefully few prototypes,
22249     which can conflict with char $ac_func (); below.
22250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251     <limits.h> exists even on freestanding compilers.  */
22252
22253 #ifdef __STDC__
22254 # include <limits.h>
22255 #else
22256 # include <assert.h>
22257 #endif
22258
22259 #undef $ac_func
22260
22261 /* Override any GCC internal prototype to avoid an error.
22262    Use char because int might match the return type of a GCC
22263    builtin and then its argument prototype would still apply.  */
22264 #ifdef __cplusplus
22265 extern "C"
22266 #endif
22267 char $ac_func ();
22268 /* The GNU C library defines this for functions which it implements
22269     to always fail with ENOSYS.  Some functions are actually named
22270     something starting with __ and the normal name is an alias.  */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22272 choke me
22273 #endif
22274
22275 int
22276 main ()
22277 {
22278 return $ac_func ();
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_link") 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } && {
22297          test -z "$ac_c_werror_flag" ||
22298          test ! -s conftest.err
22299        } && test -s conftest$ac_exeext &&
22300        $as_test_x conftest$ac_exeext; then
22301   eval "$as_ac_var=yes"
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         eval "$as_ac_var=no"
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310       conftest$ac_exeext conftest.$ac_ext
22311 fi
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313                { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 fi
22321 done
22322
22323
22324
22325   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22326 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22327 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 #include <stdio.h>
22337 int
22338 main ()
22339 {
22340
22341 #ifndef _snprintf
22342   char *p = (char *) _snprintf;
22343 #endif
22344
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_have_decl__snprintf=yes
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         ac_cv_have_decl__snprintf=no
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22377 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22378   if test $ac_cv_have_decl__snprintf = yes; then
22379     gt_value=1
22380   else
22381     gt_value=0
22382   fi
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_DECL__SNPRINTF $gt_value
22386 _ACEOF
22387
22388
22389
22390   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22391 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22392 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include <stdio.h>
22402 int
22403 main ()
22404 {
22405
22406 #ifndef _snwprintf
22407   char *p = (char *) _snwprintf;
22408 #endif
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421   (eval "$ac_compile") 2>conftest.er1
22422   ac_status=$?
22423   grep -v '^ *+' conftest.er1 >conftest.err
22424   rm -f conftest.er1
22425   cat conftest.err >&5
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && {
22428          test -z "$ac_c_werror_flag" ||
22429          test ! -s conftest.err
22430        } && test -s conftest.$ac_objext; then
22431   ac_cv_have_decl__snwprintf=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436         ac_cv_have_decl__snwprintf=no
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22442 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22443   if test $ac_cv_have_decl__snwprintf = yes; then
22444     gt_value=1
22445   else
22446     gt_value=0
22447   fi
22448
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL__SNWPRINTF $gt_value
22451 _ACEOF
22452
22453
22454
22455
22456   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22457 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22458 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <stdio.h>
22468 int
22469 main ()
22470 {
22471
22472 #ifndef feof_unlocked
22473   char *p = (char *) feof_unlocked;
22474 #endif
22475
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484   *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487   (eval "$ac_compile") 2>conftest.er1
22488   ac_status=$?
22489   grep -v '^ *+' conftest.er1 >conftest.err
22490   rm -f conftest.er1
22491   cat conftest.err >&5
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } && {
22494          test -z "$ac_c_werror_flag" ||
22495          test ! -s conftest.err
22496        } && test -s conftest.$ac_objext; then
22497   ac_cv_have_decl_feof_unlocked=yes
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502         ac_cv_have_decl_feof_unlocked=no
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22508 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22509   if test $ac_cv_have_decl_feof_unlocked = yes; then
22510     gt_value=1
22511   else
22512     gt_value=0
22513   fi
22514
22515 cat >>confdefs.h <<_ACEOF
22516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22517 _ACEOF
22518
22519
22520
22521   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22522 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22523 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526   cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532 #include <stdio.h>
22533 int
22534 main ()
22535 {
22536
22537 #ifndef fgets_unlocked
22538   char *p = (char *) fgets_unlocked;
22539 #endif
22540
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } && {
22559          test -z "$ac_c_werror_flag" ||
22560          test ! -s conftest.err
22561        } && test -s conftest.$ac_objext; then
22562   ac_cv_have_decl_fgets_unlocked=yes
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         ac_cv_have_decl_fgets_unlocked=no
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22573 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22574   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22575     gt_value=1
22576   else
22577     gt_value=0
22578   fi
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22582 _ACEOF
22583
22584
22585
22586   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22587 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22588 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597 #include <stdio.h>
22598 int
22599 main ()
22600 {
22601
22602 #ifndef getc_unlocked
22603   char *p = (char *) getc_unlocked;
22604 #endif
22605
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_have_decl_getc_unlocked=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ac_cv_have_decl_getc_unlocked=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22638 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22639   if test $ac_cv_have_decl_getc_unlocked = yes; then
22640     gt_value=1
22641   else
22642     gt_value=0
22643   fi
22644
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22647 _ACEOF
22648
22649
22650
22651   case $gt_cv_func_printf_posix in
22652     *yes) HAVE_POSIX_PRINTF=1 ;;
22653     *) HAVE_POSIX_PRINTF=0 ;;
22654   esac
22655
22656   if test "$ac_cv_func_asprintf" = yes; then
22657     HAVE_ASPRINTF=1
22658   else
22659     HAVE_ASPRINTF=0
22660   fi
22661
22662   if test "$ac_cv_func_snprintf" = yes; then
22663     HAVE_SNPRINTF=1
22664   else
22665     HAVE_SNPRINTF=0
22666   fi
22667
22668   if test "$ac_cv_func_wprintf" = yes; then
22669     HAVE_WPRINTF=1
22670   else
22671     HAVE_WPRINTF=0
22672   fi
22673
22674
22675
22676
22677
22678
22679
22680           am_save_CPPFLAGS="$CPPFLAGS"
22681
22682   for element in $INCICONV; do
22683     haveit=
22684     for x in $CPPFLAGS; do
22685
22686   acl_save_prefix="$prefix"
22687   prefix="$acl_final_prefix"
22688   acl_save_exec_prefix="$exec_prefix"
22689   exec_prefix="$acl_final_exec_prefix"
22690   eval x=\"$x\"
22691   exec_prefix="$acl_save_exec_prefix"
22692   prefix="$acl_save_prefix"
22693
22694       if test "X$x" = "X$element"; then
22695         haveit=yes
22696         break
22697       fi
22698     done
22699     if test -z "$haveit"; then
22700       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22701     fi
22702   done
22703
22704
22705   { echo "$as_me:$LINENO: checking for iconv" >&5
22706 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22707 if test "${am_cv_func_iconv+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710
22711     am_cv_func_iconv="no, consider installing GNU libiconv"
22712     am_cv_lib_iconv=no
22713     cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 #include <stdlib.h>
22720 #include <iconv.h>
22721 int
22722 main ()
22723 {
22724 iconv_t cd = iconv_open("","");
22725        iconv(cd,NULL,NULL,NULL,NULL);
22726        iconv_close(cd);
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738   (eval "$ac_link") 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } && {
22745          test -z "$ac_c_werror_flag" ||
22746          test ! -s conftest.err
22747        } && test -s conftest$ac_exeext &&
22748        $as_test_x conftest$ac_exeext; then
22749   am_cv_func_iconv=yes
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754
22755 fi
22756
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758       conftest$ac_exeext conftest.$ac_ext
22759     if test "$am_cv_func_iconv" != yes; then
22760       am_save_LIBS="$LIBS"
22761       LIBS="$LIBS $LIBICONV"
22762       cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768 #include <stdlib.h>
22769 #include <iconv.h>
22770 int
22771 main ()
22772 {
22773 iconv_t cd = iconv_open("","");
22774          iconv(cd,NULL,NULL,NULL,NULL);
22775          iconv_close(cd);
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787   (eval "$ac_link") 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } && {
22794          test -z "$ac_c_werror_flag" ||
22795          test ! -s conftest.err
22796        } && test -s conftest$ac_exeext &&
22797        $as_test_x conftest$ac_exeext; then
22798   am_cv_lib_iconv=yes
22799         am_cv_func_iconv=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804
22805 fi
22806
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808       conftest$ac_exeext conftest.$ac_ext
22809       LIBS="$am_save_LIBS"
22810     fi
22811
22812 fi
22813 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22814 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22815   if test "$am_cv_func_iconv" = yes; then
22816
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_ICONV 1
22819 _ACEOF
22820
22821   fi
22822   if test "$am_cv_lib_iconv" = yes; then
22823     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22824 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22825     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22826 echo "${ECHO_T}$LIBICONV" >&6; }
22827   else
22828             CPPFLAGS="$am_save_CPPFLAGS"
22829     LIBICONV=
22830     LTLIBICONV=
22831   fi
22832
22833
22834
22835   if test "$am_cv_func_iconv" = yes; then
22836     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22837 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22838     if test "${am_cv_proto_iconv+set}" = set; then
22839   echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841
22842       cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848
22849 #include <stdlib.h>
22850 #include <iconv.h>
22851 extern
22852 #ifdef __cplusplus
22853 "C"
22854 #endif
22855 #if defined(__STDC__) || defined(__cplusplus)
22856 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22857 #else
22858 size_t iconv();
22859 #endif
22860
22861 int
22862 main ()
22863 {
22864
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_compile") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest.$ac_objext; then
22886   am_cv_proto_iconv_arg1=""
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891         am_cv_proto_iconv_arg1="const"
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895       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);"
22896 fi
22897
22898     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22899     { echo "$as_me:$LINENO: result: ${ac_t:-
22900          }$am_cv_proto_iconv" >&5
22901 echo "${ECHO_T}${ac_t:-
22902          }$am_cv_proto_iconv" >&6; }
22903
22904 cat >>confdefs.h <<_ACEOF
22905 #define ICONV_CONST $am_cv_proto_iconv_arg1
22906 _ACEOF
22907
22908   fi
22909
22910
22911   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22912 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22913 if test "${am_cv_langinfo_codeset+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 #include <langinfo.h>
22923 int
22924 main ()
22925 {
22926 char* cs = nl_langinfo(CODESET);
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935   *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938   (eval "$ac_link") 2>conftest.er1
22939   ac_status=$?
22940   grep -v '^ *+' conftest.er1 >conftest.err
22941   rm -f conftest.er1
22942   cat conftest.err >&5
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } && {
22945          test -z "$ac_c_werror_flag" ||
22946          test ! -s conftest.err
22947        } && test -s conftest$ac_exeext &&
22948        $as_test_x conftest$ac_exeext; then
22949   am_cv_langinfo_codeset=yes
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954         am_cv_langinfo_codeset=no
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958       conftest$ac_exeext conftest.$ac_ext
22959
22960 fi
22961 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22963   if test $am_cv_langinfo_codeset = yes; then
22964
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22967 _ACEOF
22968
22969   fi
22970
22971   if test $ac_cv_header_locale_h = yes; then
22972
22973   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22974 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22975 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <locale.h>
22985 int
22986 main ()
22987 {
22988 return LC_MESSAGES
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_link") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } && {
23007          test -z "$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        } && test -s conftest$ac_exeext &&
23010        $as_test_x conftest$ac_exeext; then
23011   gt_cv_val_LC_MESSAGES=yes
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016         gt_cv_val_LC_MESSAGES=no
23017 fi
23018
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020       conftest$ac_exeext conftest.$ac_ext
23021 fi
23022 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23023 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23024   if test $gt_cv_val_LC_MESSAGES = yes; then
23025
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_LC_MESSAGES 1
23028 _ACEOF
23029
23030   fi
23031
23032   fi
23033
23034   if test -n "$INTL_MACOSX_LIBS"; then
23035     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23036   fi
23037
23038                       for ac_prog in bison
23039 do
23040   # Extract the first word of "$ac_prog", so it can be a program name with args.
23041 set dummy $ac_prog; ac_word=$2
23042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23044 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23045   echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047   if test -n "$INTLBISON"; then
23048   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23049 else
23050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051 for as_dir in $PATH
23052 do
23053   IFS=$as_save_IFS
23054   test -z "$as_dir" && as_dir=.
23055   for ac_exec_ext in '' $ac_executable_extensions; do
23056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23057     ac_cv_prog_INTLBISON="$ac_prog"
23058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23059     break 2
23060   fi
23061 done
23062 done
23063 IFS=$as_save_IFS
23064
23065 fi
23066 fi
23067 INTLBISON=$ac_cv_prog_INTLBISON
23068 if test -n "$INTLBISON"; then
23069   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23070 echo "${ECHO_T}$INTLBISON" >&6; }
23071 else
23072   { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23074 fi
23075
23076
23077   test -n "$INTLBISON" && break
23078 done
23079
23080   if test -z "$INTLBISON"; then
23081     ac_verc_fail=yes
23082   else
23083         { echo "$as_me:$LINENO: checking version of bison" >&5
23084 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23085     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23086     case $ac_prog_version in
23087       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23088       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23089          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23090       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23091     esac
23092     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23093 echo "${ECHO_T}$ac_prog_version" >&6; }
23094   fi
23095   if test $ac_verc_fail = yes; then
23096     INTLBISON=:
23097   fi
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23115 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23117   echo $ECHO_N "(cached) $ECHO_C" >&6
23118 else
23119   gt_save_CPPFLAGS="$CPPFLAGS"
23120      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121      gt_save_LIBS="$LIBS"
23122      LIBS="$LIBS -framework CoreFoundation"
23123      cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <CFPreferences.h>
23130 int
23131 main ()
23132 {
23133 CFPreferencesCopyAppValue(NULL, NULL)
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142   *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145   (eval "$ac_link") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } && {
23152          test -z "$ac_c_werror_flag" ||
23153          test ! -s conftest.err
23154        } && test -s conftest$ac_exeext &&
23155        $as_test_x conftest$ac_exeext; then
23156   gt_cv_func_CFPreferencesCopyAppValue=yes
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         gt_cv_func_CFPreferencesCopyAppValue=no
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165       conftest$ac_exeext conftest.$ac_ext
23166      CPPFLAGS="$gt_save_CPPFLAGS"
23167      LIBS="$gt_save_LIBS"
23168 fi
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23171   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23172
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23175 _ACEOF
23176
23177   fi
23178     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23179 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23180 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23181   echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183   gt_save_CPPFLAGS="$CPPFLAGS"
23184      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23185      gt_save_LIBS="$LIBS"
23186      LIBS="$LIBS -framework CoreFoundation"
23187      cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193 #include <CFLocale.h>
23194 int
23195 main ()
23196 {
23197 CFLocaleCopyCurrent();
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_link") 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } && {
23216          test -z "$ac_c_werror_flag" ||
23217          test ! -s conftest.err
23218        } && test -s conftest$ac_exeext &&
23219        $as_test_x conftest$ac_exeext; then
23220   gt_cv_func_CFLocaleCopyCurrent=yes
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225         gt_cv_func_CFLocaleCopyCurrent=no
23226 fi
23227
23228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23229       conftest$ac_exeext conftest.$ac_ext
23230      CPPFLAGS="$gt_save_CPPFLAGS"
23231      LIBS="$gt_save_LIBS"
23232 fi
23233 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23234 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23235   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23236
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_CFLOCALECOPYCURRENT 1
23239 _ACEOF
23240
23241   fi
23242   INTL_MACOSX_LIBS=
23243   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23244     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23245   fi
23246
23247
23248
23249
23250   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23251 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23252     # Check whether --enable-nls was given.
23253 if test "${enable_nls+set}" = set; then
23254   enableval=$enable_nls; USE_NLS=$enableval
23255 else
23256   USE_NLS=yes
23257 fi
23258
23259   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23260 echo "${ECHO_T}$USE_NLS" >&6; }
23261
23262
23263
23264
23265     BUILD_INCLUDED_LIBINTL=no
23266     USE_INCLUDED_LIBINTL=no
23267
23268   LIBINTL=
23269   LTLIBINTL=
23270   POSUB=
23271
23272     if test "$USE_NLS" = "yes"; then
23273     gt_use_preinstalled_gnugettext=no
23274
23275       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23277
23278 # Check whether --with-included-gettext was given.
23279 if test "${with_included_gettext+set}" = set; then
23280   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23281 else
23282   nls_cv_force_use_gnu_gettext=no
23283 fi
23284
23285       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23287
23288       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23289       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23290
23291
23292
23293
23294
23295
23296         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23298 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 #include <libintl.h>
23308 extern int _nl_msg_cat_cntr;
23309 extern int *_nl_domain_bindings;
23310 int
23311 main ()
23312 {
23313 bindtextdomain ("", "");
23314 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest.$ac_objext conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_link") 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } && {
23333          test -z "$ac_c_werror_flag" ||
23334          test ! -s conftest.err
23335        } && test -s conftest$ac_exeext &&
23336        $as_test_x conftest$ac_exeext; then
23337   gt_cv_func_gnugettext1_libc=yes
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342         gt_cv_func_gnugettext1_libc=no
23343 fi
23344
23345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23346       conftest$ac_exeext conftest.$ac_ext
23347 fi
23348 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23349 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23350
23351         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23352
23353
23354
23355     use_additional=yes
23356
23357   acl_save_prefix="$prefix"
23358   prefix="$acl_final_prefix"
23359   acl_save_exec_prefix="$exec_prefix"
23360   exec_prefix="$acl_final_exec_prefix"
23361
23362     eval additional_includedir=\"$includedir\"
23363     eval additional_libdir=\"$libdir\"
23364
23365   exec_prefix="$acl_save_exec_prefix"
23366   prefix="$acl_save_prefix"
23367
23368
23369 # Check whether --with-libintl-prefix was given.
23370 if test "${with_libintl_prefix+set}" = set; then
23371   withval=$with_libintl_prefix;
23372     if test "X$withval" = "Xno"; then
23373       use_additional=no
23374     else
23375       if test "X$withval" = "X"; then
23376
23377   acl_save_prefix="$prefix"
23378   prefix="$acl_final_prefix"
23379   acl_save_exec_prefix="$exec_prefix"
23380   exec_prefix="$acl_final_exec_prefix"
23381
23382           eval additional_includedir=\"$includedir\"
23383           eval additional_libdir=\"$libdir\"
23384
23385   exec_prefix="$acl_save_exec_prefix"
23386   prefix="$acl_save_prefix"
23387
23388       else
23389         additional_includedir="$withval/include"
23390         additional_libdir="$withval/lib"
23391       fi
23392     fi
23393
23394 fi
23395
23396       LIBINTL=
23397   LTLIBINTL=
23398   INCINTL=
23399   rpathdirs=
23400   ltrpathdirs=
23401   names_already_handled=
23402   names_next_round='intl '
23403   while test -n "$names_next_round"; do
23404     names_this_round="$names_next_round"
23405     names_next_round=
23406     for name in $names_this_round; do
23407       already_handled=
23408       for n in $names_already_handled; do
23409         if test "$n" = "$name"; then
23410           already_handled=yes
23411           break
23412         fi
23413       done
23414       if test -z "$already_handled"; then
23415         names_already_handled="$names_already_handled $name"
23416                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23417         eval value=\"\$HAVE_LIB$uppername\"
23418         if test -n "$value"; then
23419           if test "$value" = yes; then
23420             eval value=\"\$LIB$uppername\"
23421             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23422             eval value=\"\$LTLIB$uppername\"
23423             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23424           else
23425                                     :
23426           fi
23427         else
23428                               found_dir=
23429           found_la=
23430           found_so=
23431           found_a=
23432           if test $use_additional = yes; then
23433             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23434               found_dir="$additional_libdir"
23435               found_so="$additional_libdir/lib$name.$shlibext"
23436               if test -f "$additional_libdir/lib$name.la"; then
23437                 found_la="$additional_libdir/lib$name.la"
23438               fi
23439             else
23440               if test -f "$additional_libdir/lib$name.$libext"; then
23441                 found_dir="$additional_libdir"
23442                 found_a="$additional_libdir/lib$name.$libext"
23443                 if test -f "$additional_libdir/lib$name.la"; then
23444                   found_la="$additional_libdir/lib$name.la"
23445                 fi
23446               fi
23447             fi
23448           fi
23449           if test "X$found_dir" = "X"; then
23450             for x in $LDFLAGS $LTLIBINTL; do
23451
23452   acl_save_prefix="$prefix"
23453   prefix="$acl_final_prefix"
23454   acl_save_exec_prefix="$exec_prefix"
23455   exec_prefix="$acl_final_exec_prefix"
23456   eval x=\"$x\"
23457   exec_prefix="$acl_save_exec_prefix"
23458   prefix="$acl_save_prefix"
23459
23460               case "$x" in
23461                 -L*)
23462                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23463                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23464                     found_dir="$dir"
23465                     found_so="$dir/lib$name.$shlibext"
23466                     if test -f "$dir/lib$name.la"; then
23467                       found_la="$dir/lib$name.la"
23468                     fi
23469                   else
23470                     if test -f "$dir/lib$name.$libext"; then
23471                       found_dir="$dir"
23472                       found_a="$dir/lib$name.$libext"
23473                       if test -f "$dir/lib$name.la"; then
23474                         found_la="$dir/lib$name.la"
23475                       fi
23476                     fi
23477                   fi
23478                   ;;
23479               esac
23480               if test "X$found_dir" != "X"; then
23481                 break
23482               fi
23483             done
23484           fi
23485           if test "X$found_dir" != "X"; then
23486                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23487             if test "X$found_so" != "X"; then
23488                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23489                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23490               else
23491                                                                                 haveit=
23492                 for x in $ltrpathdirs; do
23493                   if test "X$x" = "X$found_dir"; then
23494                     haveit=yes
23495                     break
23496                   fi
23497                 done
23498                 if test -z "$haveit"; then
23499                   ltrpathdirs="$ltrpathdirs $found_dir"
23500                 fi
23501                                 if test "$hardcode_direct" = yes; then
23502                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23503                 else
23504                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23505                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23506                                                             haveit=
23507                     for x in $rpathdirs; do
23508                       if test "X$x" = "X$found_dir"; then
23509                         haveit=yes
23510                         break
23511                       fi
23512                     done
23513                     if test -z "$haveit"; then
23514                       rpathdirs="$rpathdirs $found_dir"
23515                     fi
23516                   else
23517                                                                                 haveit=
23518                     for x in $LDFLAGS $LIBINTL; do
23519
23520   acl_save_prefix="$prefix"
23521   prefix="$acl_final_prefix"
23522   acl_save_exec_prefix="$exec_prefix"
23523   exec_prefix="$acl_final_exec_prefix"
23524   eval x=\"$x\"
23525   exec_prefix="$acl_save_exec_prefix"
23526   prefix="$acl_save_prefix"
23527
23528                       if test "X$x" = "X-L$found_dir"; then
23529                         haveit=yes
23530                         break
23531                       fi
23532                     done
23533                     if test -z "$haveit"; then
23534                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23535                     fi
23536                     if test "$hardcode_minus_L" != no; then
23537                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23538                     else
23539                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23540                     fi
23541                   fi
23542                 fi
23543               fi
23544             else
23545               if test "X$found_a" != "X"; then
23546                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23547               else
23548                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23549               fi
23550             fi
23551                         additional_includedir=
23552             case "$found_dir" in
23553               */lib | */lib/)
23554                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23555                 additional_includedir="$basedir/include"
23556                 ;;
23557             esac
23558             if test "X$additional_includedir" != "X"; then
23559                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23560                 haveit=
23561                 if test "X$additional_includedir" = "X/usr/local/include"; then
23562                   if test -n "$GCC"; then
23563                     case $host_os in
23564                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23565                     esac
23566                   fi
23567                 fi
23568                 if test -z "$haveit"; then
23569                   for x in $CPPFLAGS $INCINTL; do
23570
23571   acl_save_prefix="$prefix"
23572   prefix="$acl_final_prefix"
23573   acl_save_exec_prefix="$exec_prefix"
23574   exec_prefix="$acl_final_exec_prefix"
23575   eval x=\"$x\"
23576   exec_prefix="$acl_save_exec_prefix"
23577   prefix="$acl_save_prefix"
23578
23579                     if test "X$x" = "X-I$additional_includedir"; then
23580                       haveit=yes
23581                       break
23582                     fi
23583                   done
23584                   if test -z "$haveit"; then
23585                     if test -d "$additional_includedir"; then
23586                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23587                     fi
23588                   fi
23589                 fi
23590               fi
23591             fi
23592                         if test -n "$found_la"; then
23593                                                         save_libdir="$libdir"
23594               case "$found_la" in
23595                 */* | *\\*) . "$found_la" ;;
23596                 *) . "./$found_la" ;;
23597               esac
23598               libdir="$save_libdir"
23599                             for dep in $dependency_libs; do
23600                 case "$dep" in
23601                   -L*)
23602                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23603                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23604                       haveit=
23605                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23606                         if test -n "$GCC"; then
23607                           case $host_os in
23608                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23609                           esac
23610                         fi
23611                       fi
23612                       if test -z "$haveit"; then
23613                         haveit=
23614                         for x in $LDFLAGS $LIBINTL; do
23615
23616   acl_save_prefix="$prefix"
23617   prefix="$acl_final_prefix"
23618   acl_save_exec_prefix="$exec_prefix"
23619   exec_prefix="$acl_final_exec_prefix"
23620   eval x=\"$x\"
23621   exec_prefix="$acl_save_exec_prefix"
23622   prefix="$acl_save_prefix"
23623
23624                           if test "X$x" = "X-L$additional_libdir"; then
23625                             haveit=yes
23626                             break
23627                           fi
23628                         done
23629                         if test -z "$haveit"; then
23630                           if test -d "$additional_libdir"; then
23631                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23632                           fi
23633                         fi
23634                         haveit=
23635                         for x in $LDFLAGS $LTLIBINTL; do
23636
23637   acl_save_prefix="$prefix"
23638   prefix="$acl_final_prefix"
23639   acl_save_exec_prefix="$exec_prefix"
23640   exec_prefix="$acl_final_exec_prefix"
23641   eval x=\"$x\"
23642   exec_prefix="$acl_save_exec_prefix"
23643   prefix="$acl_save_prefix"
23644
23645                           if test "X$x" = "X-L$additional_libdir"; then
23646                             haveit=yes
23647                             break
23648                           fi
23649                         done
23650                         if test -z "$haveit"; then
23651                           if test -d "$additional_libdir"; then
23652                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23653                           fi
23654                         fi
23655                       fi
23656                     fi
23657                     ;;
23658                   -R*)
23659                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23660                     if test "$enable_rpath" != no; then
23661                                                                   haveit=
23662                       for x in $rpathdirs; do
23663                         if test "X$x" = "X$dir"; then
23664                           haveit=yes
23665                           break
23666                         fi
23667                       done
23668                       if test -z "$haveit"; then
23669                         rpathdirs="$rpathdirs $dir"
23670                       fi
23671                                                                   haveit=
23672                       for x in $ltrpathdirs; do
23673                         if test "X$x" = "X$dir"; then
23674                           haveit=yes
23675                           break
23676                         fi
23677                       done
23678                       if test -z "$haveit"; then
23679                         ltrpathdirs="$ltrpathdirs $dir"
23680                       fi
23681                     fi
23682                     ;;
23683                   -l*)
23684                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23685                     ;;
23686                   *.la)
23687                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23688                     ;;
23689                   *)
23690                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23691                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23692                     ;;
23693                 esac
23694               done
23695             fi
23696           else
23697                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23698             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23699           fi
23700         fi
23701       fi
23702     done
23703   done
23704   if test "X$rpathdirs" != "X"; then
23705     if test -n "$hardcode_libdir_separator"; then
23706                         alldirs=
23707       for found_dir in $rpathdirs; do
23708         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23709       done
23710             acl_save_libdir="$libdir"
23711       libdir="$alldirs"
23712       eval flag=\"$hardcode_libdir_flag_spec\"
23713       libdir="$acl_save_libdir"
23714       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23715     else
23716             for found_dir in $rpathdirs; do
23717         acl_save_libdir="$libdir"
23718         libdir="$found_dir"
23719         eval flag=\"$hardcode_libdir_flag_spec\"
23720         libdir="$acl_save_libdir"
23721         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23722       done
23723     fi
23724   fi
23725   if test "X$ltrpathdirs" != "X"; then
23726             for found_dir in $ltrpathdirs; do
23727       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23728     done
23729   fi
23730
23731           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23732 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23733 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   gt_save_CPPFLAGS="$CPPFLAGS"
23737             CPPFLAGS="$CPPFLAGS $INCINTL"
23738             gt_save_LIBS="$LIBS"
23739             LIBS="$LIBS $LIBINTL"
23740                         cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h.  */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h.  */
23746 #include <libintl.h>
23747 extern int _nl_msg_cat_cntr;
23748 extern
23749 #ifdef __cplusplus
23750 "C"
23751 #endif
23752 const char *_nl_expand_alias (const char *);
23753 int
23754 main ()
23755 {
23756 bindtextdomain ("", "");
23757 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest.$ac_objext conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766   *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769   (eval "$ac_link") 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } && {
23776          test -z "$ac_c_werror_flag" ||
23777          test ! -s conftest.err
23778        } && test -s conftest$ac_exeext &&
23779        $as_test_x conftest$ac_exeext; then
23780   gt_cv_func_gnugettext1_libintl=yes
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785         gt_cv_func_gnugettext1_libintl=no
23786 fi
23787
23788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23789       conftest$ac_exeext conftest.$ac_ext
23790                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23791               LIBS="$LIBS $LIBICONV"
23792               cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798 #include <libintl.h>
23799 extern int _nl_msg_cat_cntr;
23800 extern
23801 #ifdef __cplusplus
23802 "C"
23803 #endif
23804 const char *_nl_expand_alias (const char *);
23805 int
23806 main ()
23807 {
23808 bindtextdomain ("", "");
23809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23810   ;
23811   return 0;
23812 }
23813 _ACEOF
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821   (eval "$ac_link") 2>conftest.er1
23822   ac_status=$?
23823   grep -v '^ *+' conftest.er1 >conftest.err
23824   rm -f conftest.er1
23825   cat conftest.err >&5
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && {
23828          test -z "$ac_c_werror_flag" ||
23829          test ! -s conftest.err
23830        } && test -s conftest$ac_exeext &&
23831        $as_test_x conftest$ac_exeext; then
23832   LIBINTL="$LIBINTL $LIBICONV"
23833                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23834                 gt_cv_func_gnugettext1_libintl=yes
23835
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840
23841 fi
23842
23843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23844       conftest$ac_exeext conftest.$ac_ext
23845             fi
23846             CPPFLAGS="$gt_save_CPPFLAGS"
23847             LIBS="$gt_save_LIBS"
23848 fi
23849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23851         fi
23852
23853                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23854            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23855                 && test "$PACKAGE" != gettext-runtime \
23856                 && test "$PACKAGE" != gettext-tools; }; then
23857           gt_use_preinstalled_gnugettext=yes
23858         else
23859                     LIBINTL=
23860           LTLIBINTL=
23861           INCINTL=
23862         fi
23863
23864
23865         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23866                               nls_cv_use_gnu_gettext=yes
23867         fi
23868       fi
23869
23870       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23871                 BUILD_INCLUDED_LIBINTL=yes
23872         USE_INCLUDED_LIBINTL=yes
23873         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23874         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23875         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23876       fi
23877
23878       CATOBJEXT=
23879       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23880          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23881                 CATOBJEXT=.gmo
23882       fi
23883
23884
23885     if test -n "$INTL_MACOSX_LIBS"; then
23886       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23887          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23889         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23890       fi
23891     fi
23892
23893     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23894        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23895
23896 cat >>confdefs.h <<\_ACEOF
23897 #define ENABLE_NLS 1
23898 _ACEOF
23899
23900     else
23901       USE_NLS=no
23902     fi
23903   fi
23904
23905   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23906 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23907   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23908 echo "${ECHO_T}$USE_NLS" >&6; }
23909   if test "$USE_NLS" = "yes"; then
23910     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23911 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23912     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914         gt_source="external libintl"
23915       else
23916         gt_source="libc"
23917       fi
23918     else
23919       gt_source="included intl directory"
23920     fi
23921     { echo "$as_me:$LINENO: result: $gt_source" >&5
23922 echo "${ECHO_T}$gt_source" >&6; }
23923   fi
23924
23925   if test "$USE_NLS" = "yes"; then
23926
23927     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23928       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23929         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23930 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23931         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23932 echo "${ECHO_T}$LIBINTL" >&6; }
23933
23934   for element in $INCINTL; do
23935     haveit=
23936     for x in $CPPFLAGS; do
23937
23938   acl_save_prefix="$prefix"
23939   prefix="$acl_final_prefix"
23940   acl_save_exec_prefix="$exec_prefix"
23941   exec_prefix="$acl_final_exec_prefix"
23942   eval x=\"$x\"
23943   exec_prefix="$acl_save_exec_prefix"
23944   prefix="$acl_save_prefix"
23945
23946       if test "X$x" = "X$element"; then
23947         haveit=yes
23948         break
23949       fi
23950     done
23951     if test -z "$haveit"; then
23952       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23953     fi
23954   done
23955
23956       fi
23957
23958
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_GETTEXT 1
23961 _ACEOF
23962
23963
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_DCGETTEXT 1
23966 _ACEOF
23967
23968     fi
23969
23970         POSUB=po
23971   fi
23972
23973
23974             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23975       BUILD_INCLUDED_LIBINTL=yes
23976     fi
23977
23978
23979
23980
23981
23982         nls_cv_header_intl=
23983     nls_cv_header_libgt=
23984
23985         DATADIRNAME=share
23986
23987
23988         INSTOBJEXT=.mo
23989
23990
23991         GENCAT=gencat
23992
23993
23994         INTLOBJS=
23995     if test "$USE_INCLUDED_LIBINTL" = yes; then
23996       INTLOBJS="\$(GETTOBJS)"
23997     fi
23998
23999
24000         INTL_LIBTOOL_SUFFIX_PREFIX=
24001
24002
24003
24004     INTLLIBS="$LIBINTL"
24005
24006
24007
24008
24009
24010
24011 fi
24012
24013 support_mysql=no
24014 support_sqlite=no
24015 support_sqlite3=no
24016 support_postgresql=no
24017 support_ingres=no
24018 support_dbi=no
24019 support_smartalloc=yes
24020 support_readline=yes
24021 support_conio=yes
24022 support_gnome=no
24023 support_bat=no
24024 support_wx_console=no
24025 support_tray_monitor=no
24026 support_tls=no
24027 support_crypto=no
24028 gnome_version=
24029 wx_version=
24030 support_static_tools=no
24031 support_static_fd=no
24032 support_static_sd=no
24033 support_static_dir=no
24034 support_static_cons=no
24035 support_python=no
24036 build_client_only=no
24037 build_dird=yes
24038 build_stored=yes
24039 cats=
24040 db_type=Internal
24041 support_lockmgr=no
24042 DB_TYPE=bdb
24043
24044
24045 # Check whether --enable-gnome was given.
24046 if test "${enable_gnome+set}" = set; then
24047   enableval=$enable_gnome;
24048        if test x$enableval = xyes; then
24049           support_gnome=yes
24050        fi
24051
24052
24053 fi
24054
24055
24056 GNOME_DIR=
24057 if test x$support_gnome = xyes; then
24058    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24059 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24060    { (exit 1); exit 1; }; }
24061    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24062 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24063    { (exit 1); exit 1; }; }
24064 fi
24065 # AC_SUBST(GNOME_DIR)
24066
24067 # Check whether --enable-bat was given.
24068 if test "${enable_bat+set}" = set; then
24069   enableval=$enable_bat;
24070        if test x$enableval = xyes; then
24071
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE_BAT 1
24074 _ACEOF
24075
24076           support_bat=yes
24077        fi
24078
24079
24080 fi
24081
24082
24083 BAT_DIR=
24084 if test x$support_bat = xyes; then
24085    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24086    pkg=$?
24087    if test $pkg = 0; then
24088       BAT_DIR=src/qt-console
24089    else
24090       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24091 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24092    { (exit 1); exit 1; }; }
24093    fi
24094 fi
24095
24096 got_qwt=no
24097 QWT_INC=
24098 QWT_LDFLAGS=
24099 QWT_LIB=
24100 QWT=
24101 no_qwt=no
24102
24103
24104
24105
24106
24107
24108
24109
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112   enableval=$enable_bwx_console;
24113        if test x$enableval = xyes; then
24114           support_wx_console=yes
24115        fi
24116
24117
24118 fi
24119
24120
24121 WX_DIR=
24122 if test x$support_wx_console = xyes; then
24123    abc=`$WXCONFIG $WXFLAGS --cppflags`
24124    pkg=$?
24125    if test $pkg = 0; then
24126       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24129
24130
24131
24132       WX_DIR="src/wx-console"
24133    else
24134       echo " "
24135       echo "wx-config program not found. bwx-console disabled."
24136       echo " "
24137       support_wx_console=no
24138    fi
24139 fi
24140
24141
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144   enableval=$enable_tray_monitor;
24145        if test x$enableval = xyes; then
24146           support_tray_monitor=yes
24147        fi
24148
24149
24150 fi
24151
24152
24153 TRAY_MONITOR_DIR=
24154 if test x$support_tray_monitor = xyes; then
24155    abc=`$PKGCONFIG --exists gtk+-2.0`
24156    pkg=$?
24157    if test $pkg = 0; then
24158       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24160
24161
24162       TRAY_MONITOR_DIR=src/tray-monitor
24163       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24164       pkg=$?
24165       if test $pkg = 0; then
24166
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24169 _ACEOF
24170
24171       fi
24172    fi
24173 fi
24174
24175
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178   enableval=$enable_smartalloc;
24179        if test x$enableval = xno; then
24180           support_smartalloc=no
24181        fi
24182
24183
24184 fi
24185
24186
24187 if test x$support_smartalloc = xyes; then
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24191 _ACEOF
24192
24193 fi
24194
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197   enableval=$enable_lockmgr;
24198        if test x$enableval = xyes; then
24199           support_lockmgr=yes
24200        fi
24201
24202
24203 fi
24204
24205
24206 if test x$support_lockmgr = xyes; then
24207
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24210 _ACEOF
24211
24212 fi
24213
24214
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217   enableval=$enable_static_tools;
24218        if test x$enableval = xyes; then
24219           if test x$use_libtool = xyes; then
24220              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24221   please rerun configure with --disable-libtool" >&5
24222 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24223   please rerun configure with --disable-libtool" >&2;}
24224    { (exit 1); exit 1; }; }
24225           fi
24226           support_static_tools=yes
24227        fi
24228
24229
24230 fi
24231
24232
24233 TTOOL_LDFLAGS=
24234 if test x$support_static_tools = xyes; then
24235    TTOOL_LDFLAGS="-static"
24236 fi
24237
24238
24239 # Check whether --enable-static-fd was given.
24240 if test "${enable_static_fd+set}" = set; then
24241   enableval=$enable_static_fd;
24242        if test x$enableval = xyes; then
24243           if test x$use_libtool = xyes; then
24244              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24245   please rerun configure with --disable-libtool" >&5
24246 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24247   please rerun configure with --disable-libtool" >&2;}
24248    { (exit 1); exit 1; }; }
24249           fi
24250           support_static_fd=yes
24251        fi
24252
24253
24254 fi
24255
24256
24257 STATIC_FD=
24258 if test x$support_static_fd = xyes; then
24259    STATIC_FD="static-bacula-fd"
24260 fi
24261
24262
24263 # Check whether --enable-static-sd was given.
24264 if test "${enable_static_sd+set}" = set; then
24265   enableval=$enable_static_sd;
24266        if test x$enableval = xyes; then
24267           if test x$use_libtool = xyes; then
24268              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24269   please rerun configure with --disable-libtool" >&5
24270 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24271   please rerun configure with --disable-libtool" >&2;}
24272    { (exit 1); exit 1; }; }
24273           fi
24274           support_static_sd=yes
24275        fi
24276
24277
24278 fi
24279
24280
24281 STATIC_SD=
24282 if test x$support_static_sd = xyes; then
24283    STATIC_SD="static-bacula-sd"
24284 fi
24285
24286
24287 # Check whether --enable-static-dir was given.
24288 if test "${enable_static_dir+set}" = set; then
24289   enableval=$enable_static_dir;
24290        if test x$enableval = xyes; then
24291           if test x$use_libtool = xyes; then
24292              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24293   please rerun configure with --disable-libtool" >&5
24294 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24295   please rerun configure with --disable-libtool" >&2;}
24296    { (exit 1); exit 1; }; }
24297           fi
24298           support_static_dir=yes
24299        fi
24300
24301
24302 fi
24303
24304
24305 STATIC_DIR=
24306 if test x$support_static_dir = xyes; then
24307    STATIC_DIR="static-bacula-dir"
24308 fi
24309
24310
24311 # Check whether --enable-static-cons was given.
24312 if test "${enable_static_cons+set}" = set; then
24313   enableval=$enable_static_cons;
24314        if test x$enableval = xyes; then
24315           if test x$use_libtool = xyes; then
24316              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24317   please rerun configure with --disable-libtool" >&5
24318 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24319   please rerun configure with --disable-libtool" >&2;}
24320    { (exit 1); exit 1; }; }
24321           fi
24322           support_static_cons=yes
24323        fi
24324
24325
24326 fi
24327
24328
24329 STATIC_CONS=
24330 STATIC_GNOME_CONS=
24331 STATIC_WX_CONS=
24332 if test x$support_static_cons = xyes; then
24333    STATIC_CONS="static-bconsole"
24334    STATIC_GNOME_CONS="static-bgnome-console"
24335    STATIC_WX_CONS="static-bwx-console"
24336 fi
24337
24338
24339
24340
24341 # Check whether --enable-client-only was given.
24342 if test "${enable_client_only+set}" = set; then
24343   enableval=$enable_client_only;
24344        if test x$enableval = xyes; then
24345           build_client_only=yes
24346           db_type=None
24347           DB_TYPE=none
24348        fi
24349
24350
24351 fi
24352
24353 if test x$build_client_only = xno; then
24354    ALL_DIRS="subdirs"
24355 else
24356    ALL_DIRS=""
24357 fi
24358
24359
24360 # Check whether --enable-build-dird was given.
24361 if test "${enable_build_dird+set}" = set; then
24362   enableval=$enable_build_dird;
24363        if test x$enableval = xno; then
24364           build_dird=no
24365        fi
24366
24367
24368 fi
24369
24370 if test x$build_dird = xyes; then
24371    DIRD_DIR="src/dird"
24372    DIR_TOOLS="DIRTOOLS"
24373 else
24374    DIRD_DIR=""
24375    DIR_TOOLS="NODIRTOOLS"
24376 fi
24377
24378
24379
24380 # Check whether --enable-build-stored was given.
24381 if test "${enable_build_stored+set}" = set; then
24382   enableval=$enable_build_stored;
24383       if test x$enableval = xno; then
24384          build_stored=no
24385       fi
24386
24387
24388 fi
24389
24390 if test x$build_stored = xyes; then
24391    STORED_DIR="src/stored"
24392 else
24393    STORED_DIR=""
24394 fi
24395
24396
24397 # Check whether --enable-conio was given.
24398 if test "${enable_conio+set}" = set; then
24399   enableval=$enable_conio;
24400        if test x$enableval = xno; then
24401           support_conio=no
24402        fi
24403
24404
24405 fi
24406
24407
24408
24409 support_ipv6=yes
24410 # Check whether --enable-ipv6 was given.
24411 if test "${enable_ipv6+set}" = set; then
24412   enableval=$enable_ipv6;
24413        if test x$enableval = xno; then
24414           support_ipv6=no
24415        fi
24416
24417
24418 fi
24419
24420
24421 if test x$support_ipv6 = xyes; then
24422     cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428  #include <sys/types.h>
24429 #include <sys/socket.h>
24430 #include <netinet/in.h>
24431 int
24432 main ()
24433 {
24434 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_link") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest$ac_exeext &&
24456        $as_test_x conftest$ac_exeext; then
24457   support_ipv6=yes
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462         support_ipv6=no
24463 fi
24464
24465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466       conftest$ac_exeext conftest.$ac_ext
24467 fi
24468
24469 if test x$support_ipv6 = xyes; then
24470
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_IPV6 1
24473 _ACEOF
24474
24475 fi
24476
24477 TERM_LIB=""
24478 if test "${ac_cv_header_curses_h+set}" = set; then
24479   { echo "$as_me:$LINENO: checking for curses.h" >&5
24480 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24481 if test "${ac_cv_header_curses_h+set}" = set; then
24482   echo $ECHO_N "(cached) $ECHO_C" >&6
24483 fi
24484 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24485 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24486 else
24487   # Is the header compilable?
24488 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24489 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24490 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h.  */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h.  */
24496 $ac_includes_default
24497 #include <curses.h>
24498 _ACEOF
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506   (eval "$ac_compile") 2>conftest.er1
24507   ac_status=$?
24508   grep -v '^ *+' conftest.er1 >conftest.err
24509   rm -f conftest.er1
24510   cat conftest.err >&5
24511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512   (exit $ac_status); } && {
24513          test -z "$ac_c_werror_flag" ||
24514          test ! -s conftest.err
24515        } && test -s conftest.$ac_objext; then
24516   ac_header_compiler=yes
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521         ac_header_compiler=no
24522 fi
24523
24524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24526 echo "${ECHO_T}$ac_header_compiler" >&6; }
24527
24528 # Is the header present?
24529 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24530 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24531 cat >conftest.$ac_ext <<_ACEOF
24532 /* confdefs.h.  */
24533 _ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h.  */
24537 #include <curses.h>
24538 _ACEOF
24539 if { (ac_try="$ac_cpp conftest.$ac_ext"
24540 case "(($ac_try" in
24541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542   *) ac_try_echo=$ac_try;;
24543 esac
24544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } >/dev/null && {
24552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24553          test ! -s conftest.err
24554        }; then
24555   ac_header_preproc=yes
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560   ac_header_preproc=no
24561 fi
24562
24563 rm -f conftest.err conftest.$ac_ext
24564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24565 echo "${ECHO_T}$ac_header_preproc" >&6; }
24566
24567 # So?  What about this header?
24568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24569   yes:no: )
24570     { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24571 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24572     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24573 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24574     ac_header_preproc=yes
24575     ;;
24576   no:yes:* )
24577     { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24578 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24579     { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
24580 echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
24581     { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24582 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24583     { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
24584 echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24585     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24586 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24587     { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24588 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24589
24590     ;;
24591 esac
24592 { echo "$as_me:$LINENO: checking for curses.h" >&5
24593 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24594 if test "${ac_cv_header_curses_h+set}" = set; then
24595   echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597   ac_cv_header_curses_h=$ac_header_preproc
24598 fi
24599 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24600 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24601
24602 fi
24603 if test $ac_cv_header_curses_h = yes; then
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    TERM_LIB="-lncurses"
24667 else
24668    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24669 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24670 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24671   echo $ECHO_N "(cached) $ECHO_C" >&6
24672 else
24673   ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-ltermcap  $LIBS"
24675 cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681
24682 /* Override any GCC internal prototype to avoid an error.
24683    Use char because int might match the return type of a GCC
24684    builtin and then its argument prototype would still apply.  */
24685 #ifdef __cplusplus
24686 extern "C"
24687 #endif
24688 char tgetent ();
24689 int
24690 main ()
24691 {
24692 return tgetent ();
24693   ;
24694   return 0;
24695 }
24696 _ACEOF
24697 rm -f conftest.$ac_objext conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701   *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704   (eval "$ac_link") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest$ac_exeext &&
24714        $as_test_x conftest$ac_exeext; then
24715   ac_cv_lib_termcap_tgetent=yes
24716 else
24717   echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720         ac_cv_lib_termcap_tgetent=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24724       conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24726 fi
24727 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24728 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24729 if test $ac_cv_lib_termcap_tgetent = yes; then
24730    TERM_LIB="-ltermcap"
24731 fi
24732
24733
24734 fi
24735
24736
24737 else
24738
24739 for ac_header in curses.h
24740 do
24741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 fi
24748 ac_res=`eval echo '${'$as_ac_Header'}'`
24749                { echo "$as_me:$LINENO: result: $ac_res" >&5
24750 echo "${ECHO_T}$ac_res" >&6; }
24751 else
24752   # Is the header compilable?
24753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761 $ac_includes_default
24762 #include <$ac_header>
24763 _ACEOF
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768   *) ac_try_echo=$ac_try;;
24769 esac
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771   (eval "$ac_compile") 2>conftest.er1
24772   ac_status=$?
24773   grep -v '^ *+' conftest.er1 >conftest.err
24774   rm -f conftest.er1
24775   cat conftest.err >&5
24776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777   (exit $ac_status); } && {
24778          test -z "$ac_c_werror_flag" ||
24779          test ! -s conftest.err
24780        } && test -s conftest.$ac_objext; then
24781   ac_header_compiler=yes
24782 else
24783   echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24785
24786         ac_header_compiler=no
24787 fi
24788
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24791 echo "${ECHO_T}$ac_header_compiler" >&6; }
24792
24793 # Is the header present?
24794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802 #include <$ac_header>
24803 _ACEOF
24804 if { (ac_try="$ac_cpp conftest.$ac_ext"
24805 case "(($ac_try" in
24806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807   *) ac_try_echo=$ac_try;;
24808 esac
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24811   ac_status=$?
24812   grep -v '^ *+' conftest.er1 >conftest.err
24813   rm -f conftest.er1
24814   cat conftest.err >&5
24815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816   (exit $ac_status); } >/dev/null && {
24817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24818          test ! -s conftest.err
24819        }; then
24820   ac_header_preproc=yes
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825   ac_header_preproc=no
24826 fi
24827
24828 rm -f conftest.err conftest.$ac_ext
24829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24830 echo "${ECHO_T}$ac_header_preproc" >&6; }
24831
24832 # So?  What about this header?
24833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24834   yes:no: )
24835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24839     ac_header_preproc=yes
24840     ;;
24841   no:yes:* )
24842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24854
24855     ;;
24856 esac
24857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24860   echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862   eval "$as_ac_Header=\$ac_header_preproc"
24863 fi
24864 ac_res=`eval echo '${'$as_ac_Header'}'`
24865                { echo "$as_me:$LINENO: result: $ac_res" >&5
24866 echo "${ECHO_T}$ac_res" >&6; }
24867
24868 fi
24869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24870   cat >>confdefs.h <<_ACEOF
24871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24872 _ACEOF
24873
24874 fi
24875
24876 done
24877
24878      if test "${ac_cv_header_term_h+set}" = set; then
24879   { echo "$as_me:$LINENO: checking for term.h" >&5
24880 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24881 if test "${ac_cv_header_term_h+set}" = set; then
24882   echo $ECHO_N "(cached) $ECHO_C" >&6
24883 fi
24884 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24885 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24886 else
24887   # Is the header compilable?
24888 { echo "$as_me:$LINENO: checking term.h usability" >&5
24889 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24890 cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897 #include <term.h>
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906   (eval "$ac_compile") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } && {
24913          test -z "$ac_c_werror_flag" ||
24914          test ! -s conftest.err
24915        } && test -s conftest.$ac_objext; then
24916   ac_header_compiler=yes
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921         ac_header_compiler=no
24922 fi
24923
24924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926 echo "${ECHO_T}$ac_header_compiler" >&6; }
24927
24928 # Is the header present?
24929 { echo "$as_me:$LINENO: checking term.h presence" >&5
24930 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h.  */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h.  */
24937 #include <term.h>
24938 _ACEOF
24939 if { (ac_try="$ac_cpp conftest.$ac_ext"
24940 case "(($ac_try" in
24941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942   *) ac_try_echo=$ac_try;;
24943 esac
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24946   ac_status=$?
24947   grep -v '^ *+' conftest.er1 >conftest.err
24948   rm -f conftest.er1
24949   cat conftest.err >&5
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); } >/dev/null && {
24952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24953          test ! -s conftest.err
24954        }; then
24955   ac_header_preproc=yes
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960   ac_header_preproc=no
24961 fi
24962
24963 rm -f conftest.err conftest.$ac_ext
24964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24965 echo "${ECHO_T}$ac_header_preproc" >&6; }
24966
24967 # So?  What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24969   yes:no: )
24970     { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24971 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24972     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24973 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24974     ac_header_preproc=yes
24975     ;;
24976   no:yes:* )
24977     { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24978 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24979     { echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
24980 echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
24981     { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24982 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24983     { echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
24984 echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24985     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24986 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24987     { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24988 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24989
24990     ;;
24991 esac
24992 { echo "$as_me:$LINENO: checking for term.h" >&5
24993 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24994 if test "${ac_cv_header_term_h+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   ac_cv_header_term_h=$ac_header_preproc
24998 fi
24999 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25000 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25001
25002 fi
25003 if test $ac_cv_header_term_h = yes; then
25004    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25005 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25006 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25007   echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009   ac_check_lib_save_LIBS=$LIBS
25010 LIBS="-lcurses  $LIBS"
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017
25018 /* Override any GCC internal prototype to avoid an error.
25019    Use char because int might match the return type of a GCC
25020    builtin and then its argument prototype would still apply.  */
25021 #ifdef __cplusplus
25022 extern "C"
25023 #endif
25024 char tgetent ();
25025 int
25026 main ()
25027 {
25028 return tgetent ();
25029   ;
25030   return 0;
25031 }
25032 _ACEOF
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037   *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040   (eval "$ac_link") 2>conftest.er1
25041   ac_status=$?
25042   grep -v '^ *+' conftest.er1 >conftest.err
25043   rm -f conftest.er1
25044   cat conftest.err >&5
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); } && {
25047          test -z "$ac_c_werror_flag" ||
25048          test ! -s conftest.err
25049        } && test -s conftest$ac_exeext &&
25050        $as_test_x conftest$ac_exeext; then
25051   ac_cv_lib_curses_tgetent=yes
25052 else
25053   echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056         ac_cv_lib_curses_tgetent=no
25057 fi
25058
25059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25060       conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25062 fi
25063 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25064 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25065 if test $ac_cv_lib_curses_tgetent = yes; then
25066    TERM_LIB="-lcurses"
25067 fi
25068
25069
25070 fi
25071
25072
25073
25074 fi
25075
25076
25077
25078
25079 got_conio="no"
25080 if test x$support_conio = xyes; then
25081    if test x$TERM_LIB != x; then
25082       CONS_LIBS=$TERM_LIB
25083       CONS_OBJ="conio.o"
25084       CONS_SRC="conio.c"
25085       got_conio="yes"
25086       support_readline=no
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_CONIO 1
25090 _ACEOF
25091
25092    else
25093       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25094    fi
25095 fi
25096
25097
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100   enableval=$enable_readline;
25101        if test x$enableval = xno; then
25102           support_readline=no
25103        fi
25104
25105
25106 fi
25107
25108 if test x$TERM_LIB = x ; then
25109    support_readline=no
25110 fi
25111
25112 got_readline="no"
25113 READLINE_SRC=
25114 if test x$support_readline = xyes; then
25115
25116 # Check whether --with-readline was given.
25117 if test "${with_readline+set}" = set; then
25118   withval=$with_readline;
25119           case "$with_readline" in
25120           no)
25121              :
25122              ;;
25123           yes|*)
25124              if test -f ${with_readline}/readline.h; then
25125                 CONS_INC="-I${with_readline}"
25126                 CONS_LDFLAGS="-L$with_readline"
25127              elif test -f ${with_readline}/include/readline/readline.h; then
25128                 CONS_INC="-I${with_readline}/include/readline"
25129                 CONS_LDFLAGS="-L${with_readline}/lib"
25130                 with_readline="${with_readline}/include/readline"
25131              else
25132                 with_readline="/usr/include/readline"
25133              fi
25134
25135              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25138 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25140   echo $ECHO_N "(cached) $ECHO_C" >&6
25141 fi
25142 ac_res=`eval echo '${'$as_ac_Header'}'`
25143                { echo "$as_me:$LINENO: result: $ac_res" >&5
25144 echo "${ECHO_T}$ac_res" >&6; }
25145 else
25146   # Is the header compilable?
25147 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25148 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25149 cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h.  */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h.  */
25155 $ac_includes_default
25156 #include <${with_readline}/readline.h>
25157 _ACEOF
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_c_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest.$ac_objext; then
25175   ac_header_compiler=yes
25176 else
25177   echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180         ac_header_compiler=no
25181 fi
25182
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25185 echo "${ECHO_T}$ac_header_compiler" >&6; }
25186
25187 # Is the header present?
25188 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25189 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196 #include <${with_readline}/readline.h>
25197 _ACEOF
25198 if { (ac_try="$ac_cpp conftest.$ac_ext"
25199 case "(($ac_try" in
25200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201   *) ac_try_echo=$ac_try;;
25202 esac
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25205   ac_status=$?
25206   grep -v '^ *+' conftest.er1 >conftest.err
25207   rm -f conftest.er1
25208   cat conftest.err >&5
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); } >/dev/null && {
25211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25212          test ! -s conftest.err
25213        }; then
25214   ac_header_preproc=yes
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219   ac_header_preproc=no
25220 fi
25221
25222 rm -f conftest.err conftest.$ac_ext
25223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25224 echo "${ECHO_T}$ac_header_preproc" >&6; }
25225
25226 # So?  What about this header?
25227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25228   yes:no: )
25229     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25230 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25231     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25232 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25233     ac_header_preproc=yes
25234     ;;
25235   no:yes:* )
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25244     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25245 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25246     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25247 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25248
25249     ;;
25250 esac
25251 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25252 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25254   echo $ECHO_N "(cached) $ECHO_C" >&6
25255 else
25256   eval "$as_ac_Header=\$ac_header_preproc"
25257 fi
25258 ac_res=`eval echo '${'$as_ac_Header'}'`
25259                { echo "$as_me:$LINENO: result: $ac_res" >&5
25260 echo "${ECHO_T}$ac_res" >&6; }
25261
25262 fi
25263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25264
25265
25266 cat >>confdefs.h <<\_ACEOF
25267 #define HAVE_READLINE 1
25268 _ACEOF
25269
25270                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25271                     got_readline="yes"
25272
25273 else
25274
25275                     echo " "
25276                     echo "readline.h not found. readline turned off ..."
25277                     echo " "
25278
25279
25280 fi
25281
25282
25283              ;;
25284           esac
25285
25286 else
25287
25288                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25290 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25291 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 fi
25294 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25295 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25296 else
25297   # Is the header compilable?
25298 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25299 echo $ECHO_N "checking /usr/include/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 </usr/include/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 /usr/include/readline/readline.h presence" >&5
25340 echo $ECHO_N "checking /usr/include/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 </usr/include/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: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25381 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25382     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25383 echo "$as_me: WARNING: /usr/include/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: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25398 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25399
25400     ;;
25401 esac
25402 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25403 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25404 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25405   echo $ECHO_N "(cached) $ECHO_C" >&6
25406 else
25407   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25408 fi
25409 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25410 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25411
25412 fi
25413 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25414
25415
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_READLINE 1
25418 _ACEOF
25419
25420                 got_readline="yes"
25421                 CONS_INC="-I/usr/include/readline"
25422                 CONS_LIBS="-lreadline $TERM_LIB"
25423
25424 else
25425
25426                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25429 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25431   echo $ECHO_N "(cached) $ECHO_C" >&6
25432 fi
25433 ac_res=`eval echo '${'$as_ac_Header'}'`
25434                { echo "$as_me:$LINENO: result: $ac_res" >&5
25435 echo "${ECHO_T}$ac_res" >&6; }
25436 else
25437   # Is the header compilable?
25438 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25439 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25440 cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 $ac_includes_default
25447 #include <${TOP_DIR}/depkgs/readline/readline.h>
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453   *) ac_try_echo=$ac_try;;
25454 esac
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456   (eval "$ac_compile") 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } && {
25463          test -z "$ac_c_werror_flag" ||
25464          test ! -s conftest.err
25465        } && test -s conftest.$ac_objext; then
25466   ac_header_compiler=yes
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471         ac_header_compiler=no
25472 fi
25473
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476 echo "${ECHO_T}$ac_header_compiler" >&6; }
25477
25478 # Is the header present?
25479 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25480 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25481 cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 #include <${TOP_DIR}/depkgs/readline/readline.h>
25488 _ACEOF
25489 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
25502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25503          test ! -s conftest.err
25504        }; then
25505   ac_header_preproc=yes
25506 else
25507   echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510   ac_header_preproc=no
25511 fi
25512
25513 rm -f conftest.err conftest.$ac_ext
25514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25515 echo "${ECHO_T}$ac_header_preproc" >&6; }
25516
25517 # So?  What about this header?
25518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25519   yes:no: )
25520     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25521 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25522     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25523 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25524     ac_header_preproc=yes
25525     ;;
25526   no:yes:* )
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25533     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25535     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25536 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25537     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25538 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25539
25540     ;;
25541 esac
25542 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25543 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25545   echo $ECHO_N "(cached) $ECHO_C" >&6
25546 else
25547   eval "$as_ac_Header=\$ac_header_preproc"
25548 fi
25549 ac_res=`eval echo '${'$as_ac_Header'}'`
25550                { echo "$as_me:$LINENO: result: $ac_res" >&5
25551 echo "${ECHO_T}$ac_res" >&6; }
25552
25553 fi
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25555
25556
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_READLINE 1
25559 _ACEOF
25560
25561                         got_readline="yes"
25562                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25563                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25564                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25565                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25566
25567 else
25568
25569                         echo " "
25570                         echo "readline.h not found. readline turned off ..."
25571                         echo " "
25572
25573
25574 fi
25575
25576
25577
25578
25579 fi
25580
25581
25582
25583
25584 fi
25585
25586 fi
25587
25588
25589
25590
25591
25592
25593
25594
25595 MAKE_SHELL=/bin/sh
25596
25597 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25598 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25599 if test "${ac_cv_header_stat_broken+set}" = set; then
25600   echo $ECHO_N "(cached) $ECHO_C" >&6
25601 else
25602   cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h.  */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h.  */
25608 #include <sys/types.h>
25609 #include <sys/stat.h>
25610
25611 #if defined S_ISBLK && defined S_IFDIR
25612 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25613 #endif
25614
25615 #if defined S_ISBLK && defined S_IFCHR
25616 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25617 #endif
25618
25619 #if defined S_ISLNK && defined S_IFREG
25620 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25621 #endif
25622
25623 #if defined S_ISSOCK && defined S_IFREG
25624 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25625 #endif
25626
25627 _ACEOF
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632   *) ac_try_echo=$ac_try;;
25633 esac
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635   (eval "$ac_compile") 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } && {
25642          test -z "$ac_c_werror_flag" ||
25643          test ! -s conftest.err
25644        } && test -s conftest.$ac_objext; then
25645   ac_cv_header_stat_broken=no
25646 else
25647   echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650         ac_cv_header_stat_broken=yes
25651 fi
25652
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25654 fi
25655 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25656 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25657 if test $ac_cv_header_stat_broken = yes; then
25658
25659 cat >>confdefs.h <<\_ACEOF
25660 #define STAT_MACROS_BROKEN 1
25661 _ACEOF
25662
25663 fi
25664
25665
25666
25667
25668
25669
25670 ac_header_dirent=no
25671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25672   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25673 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25674 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25676   echo $ECHO_N "(cached) $ECHO_C" >&6
25677 else
25678   cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h.  */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h.  */
25684 #include <sys/types.h>
25685 #include <$ac_hdr>
25686
25687 int
25688 main ()
25689 {
25690 if ((DIR *) 0)
25691 return 0;
25692   ;
25693   return 0;
25694 }
25695 _ACEOF
25696 rm -f conftest.$ac_objext
25697 if { (ac_try="$ac_compile"
25698 case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_compile") 2>conftest.er1
25704   ac_status=$?
25705   grep -v '^ *+' conftest.er1 >conftest.err
25706   rm -f conftest.er1
25707   cat conftest.err >&5
25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709   (exit $ac_status); } && {
25710          test -z "$ac_c_werror_flag" ||
25711          test ! -s conftest.err
25712        } && test -s conftest.$ac_objext; then
25713   eval "$as_ac_Header=yes"
25714 else
25715   echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25717
25718         eval "$as_ac_Header=no"
25719 fi
25720
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25722 fi
25723 ac_res=`eval echo '${'$as_ac_Header'}'`
25724                { echo "$as_me:$LINENO: result: $ac_res" >&5
25725 echo "${ECHO_T}$ac_res" >&6; }
25726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25727   cat >>confdefs.h <<_ACEOF
25728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25729 _ACEOF
25730
25731 ac_header_dirent=$ac_hdr; break
25732 fi
25733
25734 done
25735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25736 if test $ac_header_dirent = dirent.h; then
25737   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25739 if test "${ac_cv_search_opendir+set}" = set; then
25740   echo $ECHO_N "(cached) $ECHO_C" >&6
25741 else
25742   ac_func_search_save_LIBS=$LIBS
25743 cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749
25750 /* Override any GCC internal prototype to avoid an error.
25751    Use char because int might match the return type of a GCC
25752    builtin and then its argument prototype would still apply.  */
25753 #ifdef __cplusplus
25754 extern "C"
25755 #endif
25756 char opendir ();
25757 int
25758 main ()
25759 {
25760 return opendir ();
25761   ;
25762   return 0;
25763 }
25764 _ACEOF
25765 for ac_lib in '' dir; do
25766   if test -z "$ac_lib"; then
25767     ac_res="none required"
25768   else
25769     ac_res=-l$ac_lib
25770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25771   fi
25772   rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (ac_try="$ac_link"
25774 case "(($ac_try" in
25775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776   *) ac_try_echo=$ac_try;;
25777 esac
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779   (eval "$ac_link") 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } && {
25786          test -z "$ac_c_werror_flag" ||
25787          test ! -s conftest.err
25788        } && test -s conftest$ac_exeext &&
25789        $as_test_x conftest$ac_exeext; then
25790   ac_cv_search_opendir=$ac_res
25791 else
25792   echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25794
25795
25796 fi
25797
25798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25799       conftest$ac_exeext
25800   if test "${ac_cv_search_opendir+set}" = set; then
25801   break
25802 fi
25803 done
25804 if test "${ac_cv_search_opendir+set}" = set; then
25805   :
25806 else
25807   ac_cv_search_opendir=no
25808 fi
25809 rm conftest.$ac_ext
25810 LIBS=$ac_func_search_save_LIBS
25811 fi
25812 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25814 ac_res=$ac_cv_search_opendir
25815 if test "$ac_res" != no; then
25816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25817
25818 fi
25819
25820 else
25821   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25822 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25823 if test "${ac_cv_search_opendir+set}" = set; then
25824   echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826   ac_func_search_save_LIBS=$LIBS
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h.  */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h.  */
25833
25834 /* Override any GCC internal prototype to avoid an error.
25835    Use char because int might match the return type of a GCC
25836    builtin and then its argument prototype would still apply.  */
25837 #ifdef __cplusplus
25838 extern "C"
25839 #endif
25840 char opendir ();
25841 int
25842 main ()
25843 {
25844 return opendir ();
25845   ;
25846   return 0;
25847 }
25848 _ACEOF
25849 for ac_lib in '' x; do
25850   if test -z "$ac_lib"; then
25851     ac_res="none required"
25852   else
25853     ac_res=-l$ac_lib
25854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25855   fi
25856   rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860   *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863   (eval "$ac_link") 2>conftest.er1
25864   ac_status=$?
25865   grep -v '^ *+' conftest.er1 >conftest.err
25866   rm -f conftest.er1
25867   cat conftest.err >&5
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); } && {
25870          test -z "$ac_c_werror_flag" ||
25871          test ! -s conftest.err
25872        } && test -s conftest$ac_exeext &&
25873        $as_test_x conftest$ac_exeext; then
25874   ac_cv_search_opendir=$ac_res
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879
25880 fi
25881
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25883       conftest$ac_exeext
25884   if test "${ac_cv_search_opendir+set}" = set; then
25885   break
25886 fi
25887 done
25888 if test "${ac_cv_search_opendir+set}" = set; then
25889   :
25890 else
25891   ac_cv_search_opendir=no
25892 fi
25893 rm conftest.$ac_ext
25894 LIBS=$ac_func_search_save_LIBS
25895 fi
25896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25898 ac_res=$ac_cv_search_opendir
25899 if test "$ac_res" != no; then
25900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25901
25902 fi
25903
25904 fi
25905
25906
25907
25908
25909
25910
25911
25912
25913 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25914 do
25915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25919   echo $ECHO_N "(cached) $ECHO_C" >&6
25920 else
25921   cat >conftest.$ac_ext <<_ACEOF
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25929 #define $ac_func innocuous_$ac_func
25930
25931 /* System header to define __stub macros and hopefully few prototypes,
25932     which can conflict with char $ac_func (); below.
25933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25934     <limits.h> exists even on freestanding compilers.  */
25935
25936 #ifdef __STDC__
25937 # include <limits.h>
25938 #else
25939 # include <assert.h>
25940 #endif
25941
25942 #undef $ac_func
25943
25944 /* Override any GCC internal prototype to avoid an error.
25945    Use char because int might match the return type of a GCC
25946    builtin and then its argument prototype would still apply.  */
25947 #ifdef __cplusplus
25948 extern "C"
25949 #endif
25950 char $ac_func ();
25951 /* The GNU C library defines this for functions which it implements
25952     to always fail with ENOSYS.  Some functions are actually named
25953     something starting with __ and the normal name is an alias.  */
25954 #if defined __stub_$ac_func || defined __stub___$ac_func
25955 choke me
25956 #endif
25957
25958 int
25959 main ()
25960 {
25961 return $ac_func ();
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_link") 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } && {
25980          test -z "$ac_c_werror_flag" ||
25981          test ! -s conftest.err
25982        } && test -s conftest$ac_exeext &&
25983        $as_test_x conftest$ac_exeext; then
25984   eval "$as_ac_var=yes"
25985 else
25986   echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25988
25989         eval "$as_ac_var=no"
25990 fi
25991
25992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25993       conftest$ac_exeext conftest.$ac_ext
25994 fi
25995 ac_res=`eval echo '${'$as_ac_var'}'`
25996                { echo "$as_me:$LINENO: result: $ac_res" >&5
25997 echo "${ECHO_T}$ac_res" >&6; }
25998 if test `eval echo '${'$as_ac_var'}'` = yes; then
25999   cat >>confdefs.h <<_ACEOF
26000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26001 _ACEOF
26002
26003 fi
26004 done
26005
26006
26007
26008 for ac_func in nanosleep nl_langinfo
26009 do
26010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26014   echo $ECHO_N "(cached) $ECHO_C" >&6
26015 else
26016   cat >conftest.$ac_ext <<_ACEOF
26017 /* confdefs.h.  */
26018 _ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h.  */
26022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26024 #define $ac_func innocuous_$ac_func
26025
26026 /* System header to define __stub macros and hopefully few prototypes,
26027     which can conflict with char $ac_func (); below.
26028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26029     <limits.h> exists even on freestanding compilers.  */
26030
26031 #ifdef __STDC__
26032 # include <limits.h>
26033 #else
26034 # include <assert.h>
26035 #endif
26036
26037 #undef $ac_func
26038
26039 /* Override any GCC internal prototype to avoid an error.
26040    Use char because int might match the return type of a GCC
26041    builtin and then its argument prototype would still apply.  */
26042 #ifdef __cplusplus
26043 extern "C"
26044 #endif
26045 char $ac_func ();
26046 /* The GNU C library defines this for functions which it implements
26047     to always fail with ENOSYS.  Some functions are actually named
26048     something starting with __ and the normal name is an alias.  */
26049 #if defined __stub_$ac_func || defined __stub___$ac_func
26050 choke me
26051 #endif
26052
26053 int
26054 main ()
26055 {
26056 return $ac_func ();
26057   ;
26058   return 0;
26059 }
26060 _ACEOF
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065   *) ac_try_echo=$ac_try;;
26066 esac
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068   (eval "$ac_link") 2>conftest.er1
26069   ac_status=$?
26070   grep -v '^ *+' conftest.er1 >conftest.err
26071   rm -f conftest.er1
26072   cat conftest.err >&5
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); } && {
26075          test -z "$ac_c_werror_flag" ||
26076          test ! -s conftest.err
26077        } && test -s conftest$ac_exeext &&
26078        $as_test_x conftest$ac_exeext; then
26079   eval "$as_ac_var=yes"
26080 else
26081   echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084         eval "$as_ac_var=no"
26085 fi
26086
26087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26088       conftest$ac_exeext conftest.$ac_ext
26089 fi
26090 ac_res=`eval echo '${'$as_ac_var'}'`
26091                { echo "$as_me:$LINENO: result: $ac_res" >&5
26092 echo "${ECHO_T}$ac_res" >&6; }
26093 if test `eval echo '${'$as_ac_var'}'` = yes; then
26094   cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26096 _ACEOF
26097
26098 fi
26099 done
26100
26101
26102 for ac_header in varargs.h
26103 do
26104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 fi
26111 ac_res=`eval echo '${'$as_ac_Header'}'`
26112                { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26114 else
26115   # Is the header compilable?
26116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26118 cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h.  */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h.  */
26124 $ac_includes_default
26125 #include <$ac_header>
26126 _ACEOF
26127 rm -f conftest.$ac_objext
26128 if { (ac_try="$ac_compile"
26129 case "(($ac_try" in
26130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131   *) ac_try_echo=$ac_try;;
26132 esac
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134   (eval "$ac_compile") 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } && {
26141          test -z "$ac_c_werror_flag" ||
26142          test ! -s conftest.err
26143        } && test -s conftest.$ac_objext; then
26144   ac_header_compiler=yes
26145 else
26146   echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26148
26149         ac_header_compiler=no
26150 fi
26151
26152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154 echo "${ECHO_T}$ac_header_compiler" >&6; }
26155
26156 # Is the header present?
26157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 #include <$ac_header>
26166 _ACEOF
26167 if { (ac_try="$ac_cpp conftest.$ac_ext"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } >/dev/null && {
26180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26181          test ! -s conftest.err
26182        }; then
26183   ac_header_preproc=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188   ac_header_preproc=no
26189 fi
26190
26191 rm -f conftest.err conftest.$ac_ext
26192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26193 echo "${ECHO_T}$ac_header_preproc" >&6; }
26194
26195 # So?  What about this header?
26196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26197   yes:no: )
26198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26202     ac_header_preproc=yes
26203     ;;
26204   no:yes:* )
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26217
26218     ;;
26219 esac
26220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26223   echo $ECHO_N "(cached) $ECHO_C" >&6
26224 else
26225   eval "$as_ac_Header=\$ac_header_preproc"
26226 fi
26227 ac_res=`eval echo '${'$as_ac_Header'}'`
26228                { echo "$as_me:$LINENO: result: $ac_res" >&5
26229 echo "${ECHO_T}$ac_res" >&6; }
26230
26231 fi
26232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26233   cat >>confdefs.h <<_ACEOF
26234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26235 _ACEOF
26236
26237 fi
26238
26239 done
26240
26241
26242
26243 { echo "$as_me:$LINENO: checking for Python support" >&5
26244 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26245
26246 # Check whether --with-python was given.
26247 if test "${with_python+set}" = set; then
26248   withval=$with_python;
26249        PYTHON_INCDIR=
26250        PYTHON_LIBS=
26251        if test "$withval" != "no"; then
26252           if test "$withval" = "yes"; then
26253              if test -e /usr/bin/python-config ; then
26254                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26255                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26256              else
26257                 for python_root in /usr /usr/local /usr/sfw; do
26258                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26259                       if test -f $python_root/include/${ver}/Python.h; then
26260                          PYTHON_INCDIR=-I$python_root/include/${ver}
26261                          if test -d $python_root/lib64/${ver}/config; then
26262                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26263                          else
26264                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26265                          fi
26266                          break
26267                       fi
26268                    done
26269                 done
26270
26271                 if test x$PYTHON_INCDIR = x; then
26272                    if test -f $prefix/include/Python.h; then
26273                       PYTHON_INCDIR=-I$prefix/include
26274                       if test -d $prefix/lib64/config; then
26275                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26276                       else
26277                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26278                       fi
26279                    else
26280                       { echo "$as_me:$LINENO: result: no" >&5
26281 echo "${ECHO_T}no" >&6; }
26282                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26283 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26284    { (exit 1); exit 1; }; }
26285                    fi
26286                 fi
26287              fi
26288           else
26289              if test -e $withval/bin/python-config ; then
26290                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26291                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26292              elif test -f $withval/Python.h; then
26293                 PYTHON_INCDIR=-I$withval
26294                 PYTHON_LIBS="-L$withval/config -lpython"
26295              elif test -f $withval/include/Python.h; then
26296                 PYTHON_INCDIR=-I$withval/include
26297                 if test -d $withval/lib64/config; then
26298                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26299                 else
26300                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26301                 fi
26302              elif test -f $withval/include/python/Python.h; then
26303                 PYTHON_INCDIR=-I$withval/include/python
26304                 if test -d $withval/lib64/python/config; then
26305                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26306                 else
26307                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26308                 fi
26309              else
26310                 { echo "$as_me:$LINENO: result: no" >&5
26311 echo "${ECHO_T}no" >&6; }
26312                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26313 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26314    { (exit 1); exit 1; }; }
26315              fi
26316           fi
26317
26318           cat >>confdefs.h <<\_ACEOF
26319 #define HAVE_PYTHON 1
26320 _ACEOF
26321
26322           { echo "$as_me:$LINENO: result: yes" >&5
26323 echo "${ECHO_T}yes" >&6; }
26324           support_python=yes
26325           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26326 echo "$as_me: checking for more Python libs" >&6;}
26327           saved_LIBS="$LIBS"; LIBS=
26328           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26329 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26330 if test "${ac_cv_search_shm_open+set}" = set; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 else
26333   ac_func_search_save_LIBS=$LIBS
26334 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h.  */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h.  */
26340
26341 /* Override any GCC internal prototype to avoid an error.
26342    Use char because int might match the return type of a GCC
26343    builtin and then its argument prototype would still apply.  */
26344 #ifdef __cplusplus
26345 extern "C"
26346 #endif
26347 char shm_open ();
26348 int
26349 main ()
26350 {
26351 return shm_open ();
26352   ;
26353   return 0;
26354 }
26355 _ACEOF
26356 for ac_lib in '' rt; do
26357   if test -z "$ac_lib"; then
26358     ac_res="none required"
26359   else
26360     ac_res=-l$ac_lib
26361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26362   fi
26363   rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367   *) ac_try_echo=$ac_try;;
26368 esac
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370   (eval "$ac_link") 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } && {
26377          test -z "$ac_c_werror_flag" ||
26378          test ! -s conftest.err
26379        } && test -s conftest$ac_exeext &&
26380        $as_test_x conftest$ac_exeext; then
26381   ac_cv_search_shm_open=$ac_res
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386
26387 fi
26388
26389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26390       conftest$ac_exeext
26391   if test "${ac_cv_search_shm_open+set}" = set; then
26392   break
26393 fi
26394 done
26395 if test "${ac_cv_search_shm_open+set}" = set; then
26396   :
26397 else
26398   ac_cv_search_shm_open=no
26399 fi
26400 rm conftest.$ac_ext
26401 LIBS=$ac_func_search_save_LIBS
26402 fi
26403 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26404 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26405 ac_res=$ac_cv_search_shm_open
26406 if test "$ac_res" != no; then
26407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26408
26409 fi
26410
26411
26412 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26413 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26414 if test "${ac_cv_lib_util_openpty+set}" = set; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417   ac_check_lib_save_LIBS=$LIBS
26418 LIBS="-lutil  $LIBS"
26419 cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425
26426 /* Override any GCC internal prototype to avoid an error.
26427    Use char because int might match the return type of a GCC
26428    builtin and then its argument prototype would still apply.  */
26429 #ifdef __cplusplus
26430 extern "C"
26431 #endif
26432 char openpty ();
26433 int
26434 main ()
26435 {
26436 return openpty ();
26437   ;
26438   return 0;
26439 }
26440 _ACEOF
26441 rm -f conftest.$ac_objext conftest$ac_exeext
26442 if { (ac_try="$ac_link"
26443 case "(($ac_try" in
26444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445   *) ac_try_echo=$ac_try;;
26446 esac
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448   (eval "$ac_link") 2>conftest.er1
26449   ac_status=$?
26450   grep -v '^ *+' conftest.er1 >conftest.err
26451   rm -f conftest.er1
26452   cat conftest.err >&5
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); } && {
26455          test -z "$ac_c_werror_flag" ||
26456          test ! -s conftest.err
26457        } && test -s conftest$ac_exeext &&
26458        $as_test_x conftest$ac_exeext; then
26459   ac_cv_lib_util_openpty=yes
26460 else
26461   echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464         ac_cv_lib_util_openpty=no
26465 fi
26466
26467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26468       conftest$ac_exeext conftest.$ac_ext
26469 LIBS=$ac_check_lib_save_LIBS
26470 fi
26471 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26472 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26473 if test $ac_cv_lib_util_openpty = yes; then
26474   cat >>confdefs.h <<_ACEOF
26475 #define HAVE_LIBUTIL 1
26476 _ACEOF
26477
26478   LIBS="-lutil $LIBS"
26479
26480 fi
26481
26482           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26483           LIBS="$saved_LIBS"
26484        else
26485           { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26487        fi
26488
26489 else
26490
26491        { echo "$as_me:$LINENO: result: no" >&5
26492 echo "${ECHO_T}no" >&6; }
26493
26494
26495 fi
26496
26497
26498
26499
26500 { echo "$as_me:$LINENO: checking for socket" >&5
26501 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26502 if test "${ac_cv_func_socket+set}" = set; then
26503   echo $ECHO_N "(cached) $ECHO_C" >&6
26504 else
26505   cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h.  */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h.  */
26511 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26513 #define socket innocuous_socket
26514
26515 /* System header to define __stub macros and hopefully few prototypes,
26516     which can conflict with char socket (); below.
26517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26518     <limits.h> exists even on freestanding compilers.  */
26519
26520 #ifdef __STDC__
26521 # include <limits.h>
26522 #else
26523 # include <assert.h>
26524 #endif
26525
26526 #undef socket
26527
26528 /* Override any GCC internal prototype to avoid an error.
26529    Use char because int might match the return type of a GCC
26530    builtin and then its argument prototype would still apply.  */
26531 #ifdef __cplusplus
26532 extern "C"
26533 #endif
26534 char socket ();
26535 /* The GNU C library defines this for functions which it implements
26536     to always fail with ENOSYS.  Some functions are actually named
26537     something starting with __ and the normal name is an alias.  */
26538 #if defined __stub_socket || defined __stub___socket
26539 choke me
26540 #endif
26541
26542 int
26543 main ()
26544 {
26545 return socket ();
26546   ;
26547   return 0;
26548 }
26549 _ACEOF
26550 rm -f conftest.$ac_objext conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_link") 2>conftest.er1
26558   ac_status=$?
26559   grep -v '^ *+' conftest.er1 >conftest.err
26560   rm -f conftest.er1
26561   cat conftest.err >&5
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); } && {
26564          test -z "$ac_c_werror_flag" ||
26565          test ! -s conftest.err
26566        } && test -s conftest$ac_exeext &&
26567        $as_test_x conftest$ac_exeext; then
26568   ac_cv_func_socket=yes
26569 else
26570   echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573         ac_cv_func_socket=no
26574 fi
26575
26576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26577       conftest$ac_exeext conftest.$ac_ext
26578 fi
26579 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26580 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26581 if test $ac_cv_func_socket = yes; then
26582   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26583 echo "${ECHO_T}using libc's socket" >&6; }
26584 else
26585
26586 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26587 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591   ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-lxnet  $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599
26600 /* Override any GCC internal prototype to avoid an error.
26601    Use char because int might match the return type of a GCC
26602    builtin and then its argument prototype would still apply.  */
26603 #ifdef __cplusplus
26604 extern "C"
26605 #endif
26606 char socket ();
26607 int
26608 main ()
26609 {
26610 return socket ();
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619   *) ac_try_echo=$ac_try;;
26620 esac
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622   (eval "$ac_link") 2>conftest.er1
26623   ac_status=$?
26624   grep -v '^ *+' conftest.er1 >conftest.err
26625   rm -f conftest.er1
26626   cat conftest.err >&5
26627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628   (exit $ac_status); } && {
26629          test -z "$ac_c_werror_flag" ||
26630          test ! -s conftest.err
26631        } && test -s conftest$ac_exeext &&
26632        $as_test_x conftest$ac_exeext; then
26633   ac_cv_lib_xnet_socket=yes
26634 else
26635   echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638         ac_cv_lib_xnet_socket=no
26639 fi
26640
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642       conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26644 fi
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26647 if test $ac_cv_lib_xnet_socket = yes; then
26648   cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBXNET 1
26650 _ACEOF
26651
26652   LIBS="-lxnet $LIBS"
26653
26654 fi
26655
26656
26657 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26658 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26659 if test "${ac_cv_lib_socket_socket+set}" = set; then
26660   echo $ECHO_N "(cached) $ECHO_C" >&6
26661 else
26662   ac_check_lib_save_LIBS=$LIBS
26663 LIBS="-lsocket  $LIBS"
26664 cat >conftest.$ac_ext <<_ACEOF
26665 /* confdefs.h.  */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h.  */
26670
26671 /* Override any GCC internal prototype to avoid an error.
26672    Use char because int might match the return type of a GCC
26673    builtin and then its argument prototype would still apply.  */
26674 #ifdef __cplusplus
26675 extern "C"
26676 #endif
26677 char socket ();
26678 int
26679 main ()
26680 {
26681 return socket ();
26682   ;
26683   return 0;
26684 }
26685 _ACEOF
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690   *) ac_try_echo=$ac_try;;
26691 esac
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693   (eval "$ac_link") 2>conftest.er1
26694   ac_status=$?
26695   grep -v '^ *+' conftest.er1 >conftest.err
26696   rm -f conftest.er1
26697   cat conftest.err >&5
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); } && {
26700          test -z "$ac_c_werror_flag" ||
26701          test ! -s conftest.err
26702        } && test -s conftest$ac_exeext &&
26703        $as_test_x conftest$ac_exeext; then
26704   ac_cv_lib_socket_socket=yes
26705 else
26706   echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26708
26709         ac_cv_lib_socket_socket=no
26710 fi
26711
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713       conftest$ac_exeext conftest.$ac_ext
26714 LIBS=$ac_check_lib_save_LIBS
26715 fi
26716 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26717 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26718 if test $ac_cv_lib_socket_socket = yes; then
26719   cat >>confdefs.h <<_ACEOF
26720 #define HAVE_LIBSOCKET 1
26721 _ACEOF
26722
26723   LIBS="-lsocket $LIBS"
26724
26725 fi
26726
26727
26728 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26729 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26730 if test "${ac_cv_lib_inet_socket+set}" = set; then
26731   echo $ECHO_N "(cached) $ECHO_C" >&6
26732 else
26733   ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-linet  $LIBS"
26735 cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741
26742 /* Override any GCC internal prototype to avoid an error.
26743    Use char because int might match the return type of a GCC
26744    builtin and then its argument prototype would still apply.  */
26745 #ifdef __cplusplus
26746 extern "C"
26747 #endif
26748 char socket ();
26749 int
26750 main ()
26751 {
26752 return socket ();
26753   ;
26754   return 0;
26755 }
26756 _ACEOF
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761   *) ac_try_echo=$ac_try;;
26762 esac
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764   (eval "$ac_link") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } && {
26771          test -z "$ac_c_werror_flag" ||
26772          test ! -s conftest.err
26773        } && test -s conftest$ac_exeext &&
26774        $as_test_x conftest$ac_exeext; then
26775   ac_cv_lib_inet_socket=yes
26776 else
26777   echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26779
26780         ac_cv_lib_inet_socket=no
26781 fi
26782
26783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26784       conftest$ac_exeext conftest.$ac_ext
26785 LIBS=$ac_check_lib_save_LIBS
26786 fi
26787 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26789 if test $ac_cv_lib_inet_socket = yes; then
26790   cat >>confdefs.h <<_ACEOF
26791 #define HAVE_LIBINET 1
26792 _ACEOF
26793
26794   LIBS="-linet $LIBS"
26795
26796 fi
26797
26798 fi
26799
26800
26801 TCPW_MSG="no"
26802 WRAPLIBS=""
26803
26804 # Check whether --with-tcp-wrappers was given.
26805 if test "${with_tcp_wrappers+set}" = set; then
26806   withval=$with_tcp_wrappers;
26807        if test "x$withval" != "xno" ; then
26808           saved_LIBS="$LIBS"
26809           LIBS="$saved_LIBS -lwrap"
26810           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26811 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26812 if test "${ac_cv_search_nanosleep+set}" = set; then
26813   echo $ECHO_N "(cached) $ECHO_C" >&6
26814 else
26815   ac_func_search_save_LIBS=$LIBS
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822
26823 /* Override any GCC internal prototype to avoid an error.
26824    Use char because int might match the return type of a GCC
26825    builtin and then its argument prototype would still apply.  */
26826 #ifdef __cplusplus
26827 extern "C"
26828 #endif
26829 char nanosleep ();
26830 int
26831 main ()
26832 {
26833 return nanosleep ();
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 for ac_lib in '' rt; do
26839   if test -z "$ac_lib"; then
26840     ac_res="none required"
26841   else
26842     ac_res=-l$ac_lib
26843     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26844   fi
26845   rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (ac_try="$ac_link"
26847 case "(($ac_try" in
26848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849   *) ac_try_echo=$ac_try;;
26850 esac
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852   (eval "$ac_link") 2>conftest.er1
26853   ac_status=$?
26854   grep -v '^ *+' conftest.er1 >conftest.err
26855   rm -f conftest.er1
26856   cat conftest.err >&5
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); } && {
26859          test -z "$ac_c_werror_flag" ||
26860          test ! -s conftest.err
26861        } && test -s conftest$ac_exeext &&
26862        $as_test_x conftest$ac_exeext; then
26863   ac_cv_search_nanosleep=$ac_res
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868
26869 fi
26870
26871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26872       conftest$ac_exeext
26873   if test "${ac_cv_search_nanosleep+set}" = set; then
26874   break
26875 fi
26876 done
26877 if test "${ac_cv_search_nanosleep+set}" = set; then
26878   :
26879 else
26880   ac_cv_search_nanosleep=no
26881 fi
26882 rm conftest.$ac_ext
26883 LIBS=$ac_func_search_save_LIBS
26884 fi
26885 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26886 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26887 ac_res=$ac_cv_search_nanosleep
26888 if test "$ac_res" != no; then
26889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26890
26891 fi
26892
26893           { echo "$as_me:$LINENO: checking for libwrap" >&5
26894 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26895           cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h.  */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h.  */
26901
26902                #include <sys/types.h>
26903                #include <tcpd.h>
26904                int deny_severity = 0;
26905                int allow_severity = 0;
26906                struct request_info *req;
26907
26908 int
26909 main ()
26910 {
26911
26912                 hosts_access(req);
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 rm -f conftest.$ac_objext conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925   (eval "$ac_link") 2>conftest.er1
26926   ac_status=$?
26927   grep -v '^ *+' conftest.er1 >conftest.err
26928   rm -f conftest.er1
26929   cat conftest.err >&5
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); } && {
26932          test -z "$ac_c_werror_flag" ||
26933          test ! -s conftest.err
26934        } && test -s conftest$ac_exeext &&
26935        $as_test_x conftest$ac_exeext; then
26936
26937                  { echo "$as_me:$LINENO: result: yes" >&5
26938 echo "${ECHO_T}yes" >&6; }
26939
26940 cat >>confdefs.h <<\_ACEOF
26941 #define HAVE_LIBWRAP 1
26942 _ACEOF
26943
26944                  TCPW_MSG="yes"
26945                  LIBS="$saved_LIBS"
26946                  WRAPLIBS="-lwrap"
26947
26948 else
26949   echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26951
26952
26953                  LIBS="$saved_LIBS -lwrap -lnsl"
26954                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26955                  cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961
26962                        #include <sys/types.h>
26963                        #include <tcpd.h>
26964                        int deny_severity = 0;
26965                        int allow_severity = 0;
26966                        struct request_info *req;
26967
26968 int
26969 main ()
26970 {
26971
26972                        hosts_access(req);
26973
26974   ;
26975   return 0;
26976 }
26977 _ACEOF
26978 rm -f conftest.$ac_objext conftest$ac_exeext
26979 if { (ac_try="$ac_link"
26980 case "(($ac_try" in
26981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982   *) ac_try_echo=$ac_try;;
26983 esac
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985   (eval "$ac_link") 2>conftest.er1
26986   ac_status=$?
26987   grep -v '^ *+' conftest.er1 >conftest.err
26988   rm -f conftest.er1
26989   cat conftest.err >&5
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); } && {
26992          test -z "$ac_c_werror_flag" ||
26993          test ! -s conftest.err
26994        } && test -s conftest$ac_exeext &&
26995        $as_test_x conftest$ac_exeext; then
26996
26997                       { echo "$as_me:$LINENO: result: yes" >&5
26998 echo "${ECHO_T}yes" >&6; }
26999
27000 cat >>confdefs.h <<\_ACEOF
27001 #define HAVE_LIBWRAP 1
27002 _ACEOF
27003
27004                       TCPW_MSG="yes"
27005                       LIBS="$saved_LIBS"
27006                       WRAPLIBS="-lwrap"
27007
27008 else
27009   echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27011
27012
27013                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27014 echo "$as_me: error: *** libwrap missing" >&2;}
27015    { (exit 1); exit 1; }; }
27016
27017
27018 fi
27019
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021       conftest$ac_exeext conftest.$ac_ext
27022
27023
27024 fi
27025
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027       conftest$ac_exeext conftest.$ac_ext
27028        fi
27029
27030
27031 fi
27032
27033
27034 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27035 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27036
27037 # Check whether --with-openssl was given.
27038 if test "${with_openssl+set}" = set; then
27039   withval=$with_openssl;
27040         with_openssl_directory=${withval}
27041
27042
27043 fi
27044
27045
27046 if test "x$with_openssl_directory" != "xno"; then
27047    OPENSSL_LIBS="-lssl -lcrypto"
27048    OPENSSL_INC=""
27049
27050    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27051       #
27052       # Make sure the $with_openssl_directory also makes sense
27053       #
27054       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27055          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27056          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27057       fi
27058    fi
27059
27060    saved_LIBS="${LIBS}"
27061    saved_CFLAGS="${CFLAGS}"
27062    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27063    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27064
27065    cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071
27072           #include <openssl/ssl.h>
27073
27074 int
27075 main ()
27076 {
27077
27078            CRYPTO_set_id_callback(NULL);
27079
27080   ;
27081   return 0;
27082 }
27083 _ACEOF
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (ac_try="$ac_link"
27086 case "(($ac_try" in
27087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088   *) ac_try_echo=$ac_try;;
27089 esac
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091   (eval "$ac_link") 2>conftest.er1
27092   ac_status=$?
27093   grep -v '^ *+' conftest.er1 >conftest.err
27094   rm -f conftest.er1
27095   cat conftest.err >&5
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); } && {
27098          test -z "$ac_c_werror_flag" ||
27099          test ! -s conftest.err
27100        } && test -s conftest$ac_exeext &&
27101        $as_test_x conftest$ac_exeext; then
27102
27103           support_tls="yes"
27104           support_crypto="yes"
27105
27106 else
27107   echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27109
27110
27111           support_tls="no"
27112           support_crypto="no"
27113
27114
27115 fi
27116
27117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118       conftest$ac_exeext conftest.$ac_ext
27119
27120    cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126
27127           #include <openssl/evp.h>
27128
27129 int
27130 main ()
27131 {
27132
27133           EVP_sha512();
27134
27135   ;
27136   return 0;
27137 }
27138 _ACEOF
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (ac_try="$ac_link"
27141 case "(($ac_try" in
27142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143   *) ac_try_echo=$ac_try;;
27144 esac
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146   (eval "$ac_link") 2>conftest.er1
27147   ac_status=$?
27148   grep -v '^ *+' conftest.er1 >conftest.err
27149   rm -f conftest.er1
27150   cat conftest.err >&5
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); } && {
27153          test -z "$ac_c_werror_flag" ||
27154          test ! -s conftest.err
27155        } && test -s conftest$ac_exeext &&
27156        $as_test_x conftest$ac_exeext; then
27157
27158           ac_cv_openssl_sha2="yes"
27159
27160 else
27161   echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164
27165           ac_cv_openssl_sha2="no"
27166
27167
27168 fi
27169
27170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171       conftest$ac_exeext conftest.$ac_ext
27172
27173                cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179
27180           #include <openssl/evp.h>
27181
27182 int
27183 main ()
27184 {
27185
27186           EVP_aes_192_cbc();
27187
27188   ;
27189   return 0;
27190 }
27191 _ACEOF
27192 rm -f conftest.$ac_objext conftest$ac_exeext
27193 if { (ac_try="$ac_link"
27194 case "(($ac_try" in
27195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27196   *) ac_try_echo=$ac_try;;
27197 esac
27198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27199   (eval "$ac_link") 2>conftest.er1
27200   ac_status=$?
27201   grep -v '^ *+' conftest.er1 >conftest.err
27202   rm -f conftest.er1
27203   cat conftest.err >&5
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); } && {
27206          test -z "$ac_c_werror_flag" ||
27207          test ! -s conftest.err
27208        } && test -s conftest$ac_exeext &&
27209        $as_test_x conftest$ac_exeext; then
27210
27211           ac_cv_openssl_export="no"
27212
27213 else
27214   echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27216
27217
27218           ac_cv_openssl_export="yes"
27219
27220
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27224       conftest$ac_exeext conftest.$ac_ext
27225
27226    if test "$support_tls" = "yes"; then
27227
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_OPENSSL 1
27230 _ACEOF
27231
27232
27233 cat >>confdefs.h <<\_ACEOF
27234 #define HAVE_TLS 1
27235 _ACEOF
27236
27237
27238 cat >>confdefs.h <<\_ACEOF
27239 #define HAVE_CRYPTO 1
27240 _ACEOF
27241
27242    fi
27243
27244    if test "$ac_cv_openssl_sha2" = "yes"; then
27245
27246 cat >>confdefs.h <<\_ACEOF
27247 #define HAVE_SHA2 1
27248 _ACEOF
27249
27250    fi
27251
27252    if test "$ac_cv_openssl_export" = "yes"; then
27253
27254 cat >>confdefs.h <<\_ACEOF
27255 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27256 _ACEOF
27257
27258    fi
27259
27260    if test "$support_crypto" = "yes"; then
27261       { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27262 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27263 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27264   echo $ECHO_N "(cached) $ECHO_C" >&6
27265 else
27266   ac_check_lib_save_LIBS=$LIBS
27267 LIBS="-lssl  $LIBS"
27268 cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274
27275 /* Override any GCC internal prototype to avoid an error.
27276    Use char because int might match the return type of a GCC
27277    builtin and then its argument prototype would still apply.  */
27278 #ifdef __cplusplus
27279 extern "C"
27280 #endif
27281 char EVP_PKEY_encrypt_old ();
27282 int
27283 main ()
27284 {
27285 return EVP_PKEY_encrypt_old ();
27286   ;
27287   return 0;
27288 }
27289 _ACEOF
27290 rm -f conftest.$ac_objext conftest$ac_exeext
27291 if { (ac_try="$ac_link"
27292 case "(($ac_try" in
27293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294   *) ac_try_echo=$ac_try;;
27295 esac
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297   (eval "$ac_link") 2>conftest.er1
27298   ac_status=$?
27299   grep -v '^ *+' conftest.er1 >conftest.err
27300   rm -f conftest.er1
27301   cat conftest.err >&5
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } && {
27304          test -z "$ac_c_werror_flag" ||
27305          test ! -s conftest.err
27306        } && test -s conftest$ac_exeext &&
27307        $as_test_x conftest$ac_exeext; then
27308   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27309 else
27310   echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27314 fi
27315
27316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27317       conftest$ac_exeext conftest.$ac_ext
27318 LIBS=$ac_check_lib_save_LIBS
27319 fi
27320 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27321 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27322 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27323
27324 cat >>confdefs.h <<\_ACEOF
27325 #define HAVE_OPENSSLv1 1
27326 _ACEOF
27327
27328 fi
27329
27330    fi
27331
27332    LIBS="${saved_LIBS}"
27333    CFLAGS="${saved_CFLAGS}"
27334 else
27335    support_tls="no"
27336    support_crypto="no"
27337    OPENSSL_LIBS=""
27338    OPENSSL_INC=""
27339 fi
27340 { echo "$as_me:$LINENO: result: $support_tls" >&5
27341 echo "${ECHO_T}$support_tls" >&6; }
27342
27343 if test "$support_tls" = "no"; then
27344    OPENSSL_LIBS=""
27345    OPENSSL_INC=""
27346 fi
27347 if test "$support_crypto" = "no"; then
27348    OPENSSL_LIBS=""
27349    OPENSSL_INC=""
27350 fi
27351
27352
27353
27354
27355 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27356 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27357 if test "${ac_cv_search_dlopen+set}" = set; then
27358   echo $ECHO_N "(cached) $ECHO_C" >&6
27359 else
27360   ac_func_search_save_LIBS=$LIBS
27361 cat >conftest.$ac_ext <<_ACEOF
27362 /* confdefs.h.  */
27363 _ACEOF
27364 cat confdefs.h >>conftest.$ac_ext
27365 cat >>conftest.$ac_ext <<_ACEOF
27366 /* end confdefs.h.  */
27367
27368 /* Override any GCC internal prototype to avoid an error.
27369    Use char because int might match the return type of a GCC
27370    builtin and then its argument prototype would still apply.  */
27371 #ifdef __cplusplus
27372 extern "C"
27373 #endif
27374 char dlopen ();
27375 int
27376 main ()
27377 {
27378 return dlopen ();
27379   ;
27380   return 0;
27381 }
27382 _ACEOF
27383 for ac_lib in '' dl; do
27384   if test -z "$ac_lib"; then
27385     ac_res="none required"
27386   else
27387     ac_res=-l$ac_lib
27388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27389   fi
27390   rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (ac_try="$ac_link"
27392 case "(($ac_try" in
27393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394   *) ac_try_echo=$ac_try;;
27395 esac
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397   (eval "$ac_link") 2>conftest.er1
27398   ac_status=$?
27399   grep -v '^ *+' conftest.er1 >conftest.err
27400   rm -f conftest.er1
27401   cat conftest.err >&5
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); } && {
27404          test -z "$ac_c_werror_flag" ||
27405          test ! -s conftest.err
27406        } && test -s conftest$ac_exeext &&
27407        $as_test_x conftest$ac_exeext; then
27408   ac_cv_search_dlopen=$ac_res
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413
27414 fi
27415
27416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27417       conftest$ac_exeext
27418   if test "${ac_cv_search_dlopen+set}" = set; then
27419   break
27420 fi
27421 done
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27423   :
27424 else
27425   ac_cv_search_dlopen=no
27426 fi
27427 rm conftest.$ac_ext
27428 LIBS=$ac_func_search_save_LIBS
27429 fi
27430 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432 ac_res=$ac_cv_search_dlopen
27433 if test "$ac_res" != no; then
27434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27435
27436 fi
27437
27438
27439 working_dir=`eval echo ${prefix}/var/bacula/working`
27440
27441 # Check whether --with-working-dir was given.
27442 if test "${with_working_dir+set}" = set; then
27443   withval=$with_working_dir;
27444        if test "x$withval" != "xno" ; then
27445          working_dir=$withval
27446        fi
27447
27448
27449 fi
27450
27451
27452
27453
27454 archivedir=/tmp
27455
27456 # Check whether --with-archivedir was given.
27457 if test "${with_archivedir+set}" = set; then
27458   withval=$with_archivedir;
27459        if test "x$withval" != "xno" ; then
27460           archivedir=$withval
27461        fi
27462
27463
27464 fi
27465
27466
27467
27468
27469 basename=`hostname`
27470
27471 # Check whether --with-basename was given.
27472 if test "${with_basename+set}" = set; then
27473   withval=$with_basename;
27474        if test "x$withval" != "xno" ; then
27475           basename=$withval
27476        fi
27477
27478
27479 fi
27480
27481
27482
27483
27484 hostname=`uname -n | cut -d '.' -f 1`
27485 if test x${hostname} = x ; then
27486   hostname="localhost"
27487 fi
27488
27489 # Check whether --with-hostname was given.
27490 if test "${with_hostname+set}" = set; then
27491   withval=$with_hostname;
27492        if test "x$withval" != "xno" ; then
27493          hostname=$withval
27494        fi
27495
27496
27497 fi
27498
27499
27500
27501
27502
27503 scriptdir=`eval echo ${sysconfdir}`
27504
27505 # Check whether --with-scriptdir was given.
27506 if test "${with_scriptdir+set}" = set; then
27507   withval=$with_scriptdir;
27508        if test "x$withval" != "xno" ; then
27509           scriptdir=$withval
27510        fi
27511
27512
27513 fi
27514
27515
27516
27517
27518
27519 bsrdir=/tmp
27520
27521 # Check whether --with-bsrdir was given.
27522 if test "${with_bsrdir+set}" = set; then
27523   withval=$with_bsrdir;
27524        if test "x$withval" != "xno" ; then
27525           bsrdir=$withval
27526        fi
27527
27528
27529 fi
27530
27531
27532
27533
27534 logdir=/tmp
27535
27536 # Check whether --with-logdir was given.
27537 if test "${with_logdir+set}" = set; then
27538   withval=$with_logdir;
27539        if test "x$withval" != "xno" ; then
27540           logdir=$withval
27541        fi
27542
27543
27544 fi
27545
27546
27547
27548
27549
27550 # ------------------------------------------
27551 # Where to place plugindir (plugin files)
27552 # ------------------------------------------
27553 plugindir=`eval echo ${libdir}`
27554
27555 # Check whether --with-plugindir was given.
27556 if test "${with_plugindir+set}" = set; then
27557   withval=$with_plugindir;
27558        if test "x$withval" != "xno" ; then
27559           plugindir=$withval
27560        fi
27561
27562
27563 fi
27564
27565
27566
27567
27568 dump_email=root@localhost
27569
27570 # Check whether --with-dump-email was given.
27571 if test "${with_dump_email+set}" = set; then
27572   withval=$with_dump_email;
27573        if test "x$withval" != "xno" ; then
27574           dump_email=$withval
27575        fi
27576
27577
27578 fi
27579
27580
27581
27582
27583 job_email=root@localhost
27584
27585 # Check whether --with-job-email was given.
27586 if test "${with_job_email+set}" = set; then
27587   withval=$with_job_email;
27588        if test "x$withval" != "xno" ; then
27589           job_email=$withval
27590        fi
27591
27592
27593 fi
27594
27595
27596
27597
27598 smtp_host=localhost
27599
27600 # Check whether --with-smtp_host was given.
27601 if test "${with_smtp_host+set}" = set; then
27602   withval=$with_smtp_host;
27603        if test "x$withval" != "xno" ; then
27604           smtp_host=$withval
27605        fi
27606
27607
27608 fi
27609
27610
27611
27612
27613 piddir=/var/run
27614
27615 # Check whether --with-pid-dir was given.
27616 if test "${with_pid_dir+set}" = set; then
27617   withval=$with_pid_dir;
27618        if test "x$withval" != "xno" ; then
27619           piddir=$withval
27620        fi
27621
27622
27623 fi
27624
27625
27626 cat >>confdefs.h <<_ACEOF
27627 #define _PATH_BACULA_PIDDIR "$piddir"
27628 _ACEOF
27629
27630
27631
27632 subsysdir=/var/run/subsys
27633 if test -d /var/run/subsys; then
27634    subsysdir=/var/run/subsys
27635 elif test -d /var/lock/subsys; then
27636    subsysdir=/var/lock/subsys
27637 else
27638    subsysdir=/var/run/subsys
27639 fi
27640
27641 # Check whether --with-subsys-dir was given.
27642 if test "${with_subsys_dir+set}" = set; then
27643   withval=$with_subsys_dir;
27644        if test "x$withval" != "xno" ; then
27645           subsysdir=$withval
27646        fi
27647
27648
27649 fi
27650
27651
27652
27653
27654 baseport=9101
27655
27656 # Check whether --with-baseport was given.
27657 if test "${with_baseport+set}" = set; then
27658   withval=$with_baseport;
27659        if test "x$withval" != "xno" ; then
27660           baseport=$withval
27661        fi
27662
27663
27664 fi
27665
27666
27667
27668 dir_port=`expr $baseport`
27669 fd_port=`expr $baseport + 1`
27670 sd_port=`expr $fd_port + 1`
27671
27672
27673
27674
27675
27676 dir_password=
27677
27678 # Check whether --with-dir-password was given.
27679 if test "${with_dir_password+set}" = set; then
27680   withval=$with_dir_password;
27681        if test "x$withval" != "xno" ; then
27682           dir_password=$withval
27683        fi
27684
27685
27686 fi
27687
27688
27689 if test "x$dir_password" = "x" ; then
27690    if test "x$OPENSSL" = "xnone" ; then
27691       key=`autoconf/randpass 33`
27692    else
27693       key=`openssl rand -base64 33`
27694    fi
27695    dir_password=$key
27696 fi
27697
27698 fd_password=
27699
27700 # Check whether --with-fd-password was given.
27701 if test "${with_fd_password+set}" = set; then
27702   withval=$with_fd_password;
27703        if test "x$withval" != "xno" ; then
27704           fd_password=$withval
27705        fi
27706
27707
27708 fi
27709
27710
27711 if test "x$fd_password" = "x" ; then
27712    if test "x$OPENSSL" = "xnone" ; then
27713       key=`autoconf/randpass 37`
27714    else
27715       key=`openssl rand -base64 33`
27716    fi
27717    fd_password=$key
27718 fi
27719
27720 sd_password=
27721
27722 # Check whether --with-sd-password was given.
27723 if test "${with_sd_password+set}" = set; then
27724   withval=$with_sd_password;
27725        if test "x$withval" != "xno" ; then
27726           sd_password=$withval
27727        fi
27728
27729
27730 fi
27731
27732
27733 if test "x$sd_password" = "x" ; then
27734    if test "x$OPENSSL" = "xnone" ; then
27735       key=`autoconf/randpass 41`
27736    else
27737       key=`openssl rand -base64 33`
27738    fi
27739    sd_password=$key
27740 fi
27741
27742 mon_dir_password=
27743
27744 # Check whether --with-mon-dir-password was given.
27745 if test "${with_mon_dir_password+set}" = set; then
27746   withval=$with_mon_dir_password;
27747        if test "x$withval" != "xno" ; then
27748           mon_dir_password=$withval
27749        fi
27750
27751
27752 fi
27753
27754
27755 if test "x$mon_dir_password" = "x" ; then
27756    if test "x$OPENSSL" = "xnone" ; then
27757       key=`autoconf/randpass 33`
27758    else
27759       key=`openssl rand -base64 33`
27760    fi
27761    mon_dir_password=$key
27762 fi
27763
27764 mon_fd_password=
27765
27766 # Check whether --with-mon-fd-password was given.
27767 if test "${with_mon_fd_password+set}" = set; then
27768   withval=$with_mon_fd_password;
27769        if test "x$withval" != "xno" ; then
27770           mon_fd_password=$withval
27771        fi
27772
27773
27774 fi
27775
27776
27777 if test "x$mon_fd_password" = "x" ; then
27778    if test "x$OPENSSL" = "xnone" ; then
27779       key=`autoconf/randpass 37`
27780    else
27781       key=`openssl rand -base64 33`
27782    fi
27783    mon_fd_password=$key
27784 fi
27785
27786 mon_sd_password=
27787
27788 # Check whether --with-mon-sd-password was given.
27789 if test "${with_mon_sd_password+set}" = set; then
27790   withval=$with_mon_sd_password;
27791        if test "x$withval" != "xno" ; then
27792           mon_sd_password=$withval
27793        fi
27794
27795
27796 fi
27797
27798
27799 if test "x$mon_sd_password" = "x" ; then
27800    if test "x$OPENSSL" = "xnone" ; then
27801       key=`autoconf/randpass 41`
27802    else
27803       key=`openssl rand -base64 33`
27804    fi
27805    mon_sd_password=$key
27806 fi
27807
27808
27809
27810
27811
27812
27813
27814
27815 db_name=bacula
27816
27817 # Check whether --with-db_name was given.
27818 if test "${with_db_name+set}" = set; then
27819   withval=$with_db_name;
27820        if test "x$withval" != "x" ; then
27821           db_name=$withval
27822        fi
27823
27824
27825 fi
27826
27827
27828
27829 db_user=bacula
27830
27831 # Check whether --with-db_user was given.
27832 if test "${with_db_user+set}" = set; then
27833   withval=$with_db_user;
27834        if test "x$withval" != "x" ; then
27835           db_user=$withval
27836        fi
27837
27838
27839 fi
27840
27841
27842
27843 db_password=
27844
27845 # Check whether --with-db_password was given.
27846 if test "${with_db_password+set}" = set; then
27847   withval=$with_db_password;
27848        if test "x$withval" != "x" ; then
27849           db_password=$withval
27850        fi
27851
27852
27853 fi
27854
27855
27856
27857 db_port=" "
27858
27859 # Check whether --with-db_port was given.
27860 if test "${with_db_port+set}" = set; then
27861   withval=$with_db_port;
27862        if test "x$withval" != "x" ; then
27863           db_port=$withval
27864        fi
27865
27866
27867 fi
27868
27869
27870
27871 #
27872 # Handle users and groups for each daemon
27873 #
27874 dir_user=
27875
27876 # Check whether --with-dir_user was given.
27877 if test "${with_dir_user+set}" = set; then
27878   withval=$with_dir_user;
27879        if test "x$withval" != "x" ; then
27880            dir_user=$withval
27881        fi
27882
27883
27884 fi
27885
27886
27887 dir_group=
27888
27889 # Check whether --with-dir_group was given.
27890 if test "${with_dir_group+set}" = set; then
27891   withval=$with_dir_group;
27892        if test "x$withval" != "x" ; then
27893           dir_group=$withval
27894        fi
27895
27896
27897 fi
27898
27899
27900 sd_user=
27901
27902 # Check whether --with-sd_user was given.
27903 if test "${with_sd_user+set}" = set; then
27904   withval=$with_sd_user;
27905        if test "x$withval" != "x" ; then
27906           sd_user=$withval
27907        fi
27908
27909
27910 fi
27911
27912
27913 sd_group=
27914
27915 # Check whether --with-sd_group was given.
27916 if test "${with_sd_group+set}" = set; then
27917   withval=$with_sd_group;
27918        if test "x$withval" != "x" ; then
27919           sd_group=$withval
27920        fi
27921
27922
27923 fi
27924
27925
27926 fd_user=
27927
27928 # Check whether --with-fd_user was given.
27929 if test "${with_fd_user+set}" = set; then
27930   withval=$with_fd_user;
27931        if test "x$withval" != "x" ; then
27932           fd_user=$withval
27933        fi
27934
27935
27936 fi
27937
27938
27939 fd_group=
27940
27941 # Check whether --with-fd_group was given.
27942 if test "${with_fd_group+set}" = set; then
27943   withval=$with_fd_group;
27944        if test "x$withval" != "x" ; then
27945           fd_group=$withval
27946        fi
27947
27948
27949 fi
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959 SBINPERM=0750
27960
27961 # Check whether --with-sbin-perm was given.
27962 if test "${with_sbin_perm+set}" = set; then
27963   withval=$with_sbin_perm;
27964        if test "x$withval" != "x" ; then
27965           SBINPERM=$withval
27966        fi
27967
27968
27969 fi
27970
27971
27972
27973
27974 SQL_LIB=
27975
27976 db_found=no
27977 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27978 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27979
27980 # Check whether --with-postgresql was given.
27981 if test "${with_postgresql+set}" = set; then
27982   withval=$with_postgresql;
27983   if test "$withval" != "no"; then
27984       if test "$db_found" = "yes"; then
27985           { echo "$as_me:$LINENO: result: error" >&5
27986 echo "${ECHO_T}error" >&6; }
27987           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27988 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27989    { (exit 1); exit 1; }; };
27990       fi
27991       if test "$withval" = "yes"; then
27992           PG_CONFIG=`which pg_config`
27993           if test -n "$PG_CONFIG";then
27994               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27995               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27996               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27997           elif test -f /usr/local/include/libpq-fe.h; then
27998               POSTGRESQL_INCDIR=/usr/local/include
27999               if test -d /usr/local/lib64; then
28000                  POSTGRESQL_LIBDIR=/usr/local/lib64
28001               else
28002                  POSTGRESQL_LIBDIR=/usr/local/lib
28003               fi
28004               POSTGRESQL_BINDIR=/usr/local/bin
28005           elif test -f /usr/include/libpq-fe.h; then
28006               POSTGRESQL_INCDIR=/usr/include
28007               if test -d /usr/lib64; then
28008                  POSTGRESQL_LIBDIR=/usr/lib64
28009               else
28010                  POSTGRESQL_LIBDIR=/usr/lib
28011               fi
28012               POSTGRESQL_BINDIR=/usr/bin
28013           elif test -f /usr/include/pgsql/libpq-fe.h; then
28014               POSTGRESQL_INCDIR=/usr/include/pgsql
28015               if test -d /usr/lib64/pgsql; then
28016                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28017               else
28018                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28019               fi
28020               POSTGRESQL_BINDIR=/usr/bin
28021           elif test -f /usr/include/postgresql/libpq-fe.h; then
28022               POSTGRESQL_INCDIR=/usr/include/postgresql
28023               if test -d /usr/lib64/postgresql; then
28024                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28025               else
28026                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28027               fi
28028               POSTGRESQL_BINDIR=/usr/bin
28029           else
28030               { echo "$as_me:$LINENO: result: no" >&5
28031 echo "${ECHO_T}no" >&6; }
28032               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28033 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28034    { (exit 1); exit 1; }; }
28035           fi
28036       elif test -f $withval/include/libpq-fe.h; then
28037           POSTGRESQL_INCDIR=$withval/include
28038           POSTGRESQL_LIBDIR=$withval/lib
28039           POSTGRESQL_BINDIR=$withval/bin
28040       elif test -f $withval/include/postgresql/libpq-fe.h; then
28041           POSTGRESQL_INCDIR=$withval/include/postgresql
28042      if test -d $withval/lib64; then
28043          POSTGRESQL_LIBDIR=$withval/lib64
28044      else
28045          POSTGRESQL_LIBDIR=$withval/lib
28046      fi
28047           POSTGRESQL_BINDIR=$withval/bin
28048       else
28049           { echo "$as_me:$LINENO: result: no" >&5
28050 echo "${ECHO_T}no" >&6; }
28051           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28052 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28053    { (exit 1); exit 1; }; }
28054       fi
28055       cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_POSTGRESQL 1
28057 _ACEOF
28058
28059       { echo "$as_me:$LINENO: result: yes" >&5
28060 echo "${ECHO_T}yes" >&6; }
28061       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28062       { echo "$as_me:$LINENO: checking for crypt" >&5
28063 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28064 if test "${ac_cv_func_crypt+set}" = set; then
28065   echo $ECHO_N "(cached) $ECHO_C" >&6
28066 else
28067   cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h.  */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h.  */
28073 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28075 #define crypt innocuous_crypt
28076
28077 /* System header to define __stub macros and hopefully few prototypes,
28078     which can conflict with char crypt (); below.
28079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28080     <limits.h> exists even on freestanding compilers.  */
28081
28082 #ifdef __STDC__
28083 # include <limits.h>
28084 #else
28085 # include <assert.h>
28086 #endif
28087
28088 #undef crypt
28089
28090 /* Override any GCC internal prototype to avoid an error.
28091    Use char because int might match the return type of a GCC
28092    builtin and then its argument prototype would still apply.  */
28093 #ifdef __cplusplus
28094 extern "C"
28095 #endif
28096 char crypt ();
28097 /* The GNU C library defines this for functions which it implements
28098     to always fail with ENOSYS.  Some functions are actually named
28099     something starting with __ and the normal name is an alias.  */
28100 #if defined __stub_crypt || defined __stub___crypt
28101 choke me
28102 #endif
28103
28104 int
28105 main ()
28106 {
28107 return crypt ();
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 rm -f conftest.$ac_objext conftest$ac_exeext
28113 if { (ac_try="$ac_link"
28114 case "(($ac_try" in
28115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116   *) ac_try_echo=$ac_try;;
28117 esac
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119   (eval "$ac_link") 2>conftest.er1
28120   ac_status=$?
28121   grep -v '^ *+' conftest.er1 >conftest.err
28122   rm -f conftest.er1
28123   cat conftest.err >&5
28124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125   (exit $ac_status); } && {
28126          test -z "$ac_c_werror_flag" ||
28127          test ! -s conftest.err
28128        } && test -s conftest$ac_exeext &&
28129        $as_test_x conftest$ac_exeext; then
28130   ac_cv_func_crypt=yes
28131 else
28132   echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135         ac_cv_func_crypt=no
28136 fi
28137
28138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28139       conftest$ac_exeext conftest.$ac_ext
28140 fi
28141 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28142 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28143 if test $ac_cv_func_crypt = yes; then
28144   :
28145 else
28146   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28147 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28148 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28149   echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151   ac_check_lib_save_LIBS=$LIBS
28152 LIBS="-lcrypt  $LIBS"
28153 cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159
28160 /* Override any GCC internal prototype to avoid an error.
28161    Use char because int might match the return type of a GCC
28162    builtin and then its argument prototype would still apply.  */
28163 #ifdef __cplusplus
28164 extern "C"
28165 #endif
28166 char crypt ();
28167 int
28168 main ()
28169 {
28170 return crypt ();
28171   ;
28172   return 0;
28173 }
28174 _ACEOF
28175 rm -f conftest.$ac_objext conftest$ac_exeext
28176 if { (ac_try="$ac_link"
28177 case "(($ac_try" in
28178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179   *) ac_try_echo=$ac_try;;
28180 esac
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182   (eval "$ac_link") 2>conftest.er1
28183   ac_status=$?
28184   grep -v '^ *+' conftest.er1 >conftest.err
28185   rm -f conftest.er1
28186   cat conftest.err >&5
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); } && {
28189          test -z "$ac_c_werror_flag" ||
28190          test ! -s conftest.err
28191        } && test -s conftest$ac_exeext &&
28192        $as_test_x conftest$ac_exeext; then
28193   ac_cv_lib_crypt_crypt=yes
28194 else
28195   echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.$ac_ext >&5
28197
28198         ac_cv_lib_crypt_crypt=no
28199 fi
28200
28201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28202       conftest$ac_exeext conftest.$ac_ext
28203 LIBS=$ac_check_lib_save_LIBS
28204 fi
28205 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28206 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28207 if test $ac_cv_lib_crypt_crypt = yes; then
28208   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28209 fi
28210
28211 fi
28212
28213       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28214       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28215       SQL_BINDIR=$POSTGRESQL_BINDIR
28216       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28217
28218       db_found=yes
28219       support_postgresql=yes
28220       db_type=PostgreSQL
28221       DB_TYPE=postgresql
28222   else
28223       { echo "$as_me:$LINENO: result: no" >&5
28224 echo "${ECHO_T}no" >&6; }
28225   fi
28226
28227 else
28228
28229   { echo "$as_me:$LINENO: result: no" >&5
28230 echo "${ECHO_T}no" >&6; }
28231
28232 fi
28233
28234
28235
28236
28237
28238
28239
28240
28241 db_found=no
28242 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28243 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28244
28245 # Check whether --with-mysql was given.
28246 if test "${with_mysql+set}" = set; then
28247   withval=$with_mysql;
28248   if test "$withval" != "no"; then
28249         if test "$withval" = "yes"; then
28250            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28251                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28252                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28253                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28254                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28255                    else
28256                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28257                    fi
28258                    MYSQL_BINDIR=/usr/local/mysql/bin
28259            elif test -f /usr/include/mysql/mysql.h; then
28260                    MYSQL_INCDIR=/usr/include/mysql
28261                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28262                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28263                            MYSQL_LIBDIR=/usr/lib64/mysql
28264                    elif test -f /usr/lib64/libmysqlclient_r.a \
28265                         -o -f /usr/lib64/libmysqlclient_r.so; then
28266                            MYSQL_LIBDIR=/usr/lib64
28267                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28268                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28269                            MYSQL_LIBDIR=/usr/lib/mysql
28270                    else
28271                            MYSQL_LIBDIR=/usr/lib
28272                    fi
28273                    MYSQL_BINDIR=/usr/bin
28274            elif test -f /usr/include/mysql.h; then
28275                    MYSQL_INCDIR=/usr/include
28276                    if test -f /usr/lib64/libmysqlclient_r.a \
28277                         -o -f /usr/lib64/libmysqlclient_r.so; then
28278                            MYSQL_LIBDIR=/usr/lib64
28279                    else
28280                            MYSQL_LIBDIR=/usr/lib
28281                    fi
28282                    MYSQL_BINDIR=/usr/bin
28283            elif test -f /usr/local/include/mysql/mysql.h; then
28284                    MYSQL_INCDIR=/usr/local/include/mysql
28285                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28286                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28287                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28288                    else
28289                            MYSQL_LIBDIR=/usr/local/lib/mysql
28290                    fi
28291                    MYSQL_BINDIR=/usr/local/bin
28292            elif test -f /usr/local/include/mysql.h; then
28293                    MYSQL_INCDIR=/usr/local/include
28294                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28295                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28296                            MYSQL_LIBDIR=/usr/local/lib64
28297                    else
28298                            MYSQL_LIBDIR=/usr/local/lib
28299                    fi
28300                    MYSQL_BINDIR=/usr/local/bin
28301            else
28302               { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28304               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28305 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28306    { (exit 1); exit 1; }; }
28307            fi
28308         else
28309            if test -f $withval/include/mysql/mysql.h; then
28310               MYSQL_INCDIR=$withval/include/mysql
28311               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28312                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28313                  MYSQL_LIBDIR=$withval/lib64/mysql
28314               elif test -f $withval/lib64/libmysqlclient_r.a \
28315                    -o -f $withval/lib64/libmysqlclient_r.so; then
28316                  MYSQL_LIBDIR=$withval/lib64
28317               elif test -f $withval/lib/libmysqlclient_r.a \
28318                    -o -f $withval/lib/libmysqlclient_r.so; then
28319                  MYSQL_LIBDIR=$withval/lib
28320               else
28321                  MYSQL_LIBDIR=$withval/lib/mysql
28322               fi
28323               MYSQL_BINDIR=$withval/bin
28324            elif test -f $withval/include/mysql.h; then
28325               MYSQL_INCDIR=$withval/include
28326               if test -f $withval/lib64/libmysqlclient_r.a \
28327                    -o -f $withval/lib64/libmysqlclient_r.so; then
28328                  MYSQL_LIBDIR=$withval/lib64
28329               else
28330                  MYSQL_LIBDIR=$withval/lib
28331               fi
28332               MYSQL_BINDIR=$withval/bin
28333            else
28334               { echo "$as_me:$LINENO: result: no" >&5
28335 echo "${ECHO_T}no" >&6; }
28336               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28337 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28338    { (exit 1); exit 1; }; }
28339            fi
28340         fi
28341     SQL_INCLUDE=-I$MYSQL_INCDIR
28342     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28343          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28344        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28345        cat >>confdefs.h <<\_ACEOF
28346 #define HAVE_THREAD_SAFE_MYSQL 1
28347 _ACEOF
28348
28349     fi
28350     SQL_BINDIR=$MYSQL_BINDIR
28351     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28352
28353
28354 cat >>confdefs.h <<\_ACEOF
28355 #define HAVE_MYSQL 1
28356 _ACEOF
28357
28358     { echo "$as_me:$LINENO: result: yes" >&5
28359 echo "${ECHO_T}yes" >&6; }
28360     db_found=yes
28361     support_mysql=yes
28362     db_type=MySQL
28363     DB_TYPE=mysql
28364
28365   else
28366         { echo "$as_me:$LINENO: result: no" >&5
28367 echo "${ECHO_T}no" >&6; }
28368   fi
28369
28370
28371 fi
28372
28373
28374
28375 # Check whether --with-embedded-mysql was given.
28376 if test "${with_embedded_mysql+set}" = set; then
28377   withval=$with_embedded_mysql;
28378   if test "$withval" != "no"; then
28379         if test "$withval" = "yes"; then
28380                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28381                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28382                         if test -d /usr/local/mysql/lib64/mysql; then
28383                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28384                         else
28385                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28386                         fi
28387                         MYSQL_BINDIR=/usr/local/mysql/bin
28388                 elif test -f /usr/include/mysql/mysql.h; then
28389                         MYSQL_INCDIR=/usr/include/mysql
28390                         if test -d /usr/lib64/mysql; then
28391                                 MYSQL_LIBDIR=/usr/lib64/mysql
28392                         else
28393                                 MYSQL_LIBDIR=/usr/lib/mysql
28394                         fi
28395                         MYSQL_BINDIR=/usr/bin
28396                 elif test -f /usr/include/mysql.h; then
28397                         MYSQL_INCDIR=/usr/include
28398                         if test -d /usr/lib64; then
28399                                 MYSQL_LIBDIR=/usr/lib64
28400                         else
28401                                 MYSQL_LIBDIR=/usr/lib
28402                         fi
28403                         MYSQL_BINDIR=/usr/bin
28404                 elif test -f /usr/local/include/mysql/mysql.h; then
28405                         MYSQL_INCDIR=/usr/local/include/mysql
28406                         if test -d /usr/local/lib64/mysql; then
28407                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28408                         else
28409                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28410                         fi
28411                         MYSQL_BINDIR=/usr/local/bin
28412                 elif test -f /usr/local/include/mysql.h; then
28413                         MYSQL_INCDIR=/usr/local/include
28414                         if test -d /usr/local/lib64; then
28415                                 MYSQL_LIBDIR=/usr/local/lib64
28416                         else
28417                                 MYSQL_LIBDIR=/usr/local/lib
28418                         fi
28419                         MYSQL_BINDIR=/usr/local/bin
28420                 else
28421                    { echo "$as_me:$LINENO: result: no" >&5
28422 echo "${ECHO_T}no" >&6; }
28423                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28424 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28425    { (exit 1); exit 1; }; }
28426                 fi
28427         else
28428                 if test -f $withval/include/mysql/mysql.h; then
28429                         MYSQL_INCDIR=$withval/include/mysql
28430                         if test -d $withval/lib64/mysql; then
28431                                 MYSQL_LIBDIR=$withval/lib64/mysql
28432                         else
28433                                 MYSQL_LIBDIR=$withval/lib/mysql
28434                         fi
28435                         MYSQL_BINDIR=$withval/bin
28436                 elif test -f $withval/include/mysql.h; then
28437                         MYSQL_INCDIR=$withval/include
28438                         if test -d $withval/lib64; then
28439                                 MYSQL_LIBDIR=$withval/lib64
28440                         else
28441                                 MYSQL_LIBDIR=$withval/lib
28442                         fi
28443                         MYSQL_BINDIR=$withval/bin
28444                 else
28445                    { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28448 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28449    { (exit 1); exit 1; }; }
28450                 fi
28451         fi
28452     SQL_INCLUDE=-I$MYSQL_INCDIR
28453     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28454     SQL_BINDIR=$MYSQL_BINDIR
28455     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28456
28457     cat >>confdefs.h <<\_ACEOF
28458 #define HAVE_MYSQL 1
28459 _ACEOF
28460
28461     cat >>confdefs.h <<\_ACEOF
28462 #define HAVE_EMBEDDED_MYSQL 1
28463 _ACEOF
28464
28465     { echo "$as_me:$LINENO: result: yes" >&5
28466 echo "${ECHO_T}yes" >&6; }
28467     db_found=yes
28468     support_mysql=yes
28469     db_type=MySQL
28470     DB_TYPE=mysql
28471
28472   else
28473         { echo "$as_me:$LINENO: result: no" >&5
28474 echo "${ECHO_T}no" >&6; }
28475   fi
28476
28477
28478 fi
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489 db_found=no
28490 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28491 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28492
28493 # Check whether --with-ingres was given.
28494 if test "${with_ingres+set}" = set; then
28495   withval=$with_ingres;
28496   if test "$withval" != "no"; then
28497      if test "$withval" = "yes"; then
28498         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28499            INGRES_INCDIR=${II_SYSTEM}/files
28500            INGRES_LIBDIR=${II_SYSTEM}/lib
28501            INGRES_BINDIR=${II_SYSTEM}/bin
28502         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28503            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28504            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28505            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
28506         else
28507            { echo "$as_me:$LINENO: result: no" >&5
28508 echo "${ECHO_T}no" >&6; }
28509            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28510 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28511    { (exit 1); exit 1; }; }
28512         fi
28513      else
28514         if test -f $withval/files/eqdefc.h; then
28515            INGRES_INCDIR=$withval/files
28516            INGRES_LIBDIR=$withval/lib
28517            INGRES_BINDIR=$withval/bin
28518         else
28519            { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28521            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
28522 echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
28523    { (exit 1); exit 1; }; }
28524         fi
28525      fi
28526      SQL_INCLUDE=-I$INGRES_INCDIR
28527      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
28528      SQL_BINDIR=$INGRES_BINDIR
28529      SQL_LIB=$INGRES_LIBDIR/libingres.a
28530
28531 cat >>confdefs.h <<\_ACEOF
28532 #define HAVE_INGRES 1
28533 _ACEOF
28534
28535      { echo "$as_me:$LINENO: result: yes" >&5
28536 echo "${ECHO_T}yes" >&6; }
28537      db_found=yes
28538      support_ingres=yes
28539      db_type=Ingres
28540      DB_TYPE=ingres
28541
28542   else
28543      { echo "$as_me:$LINENO: result: no" >&5
28544 echo "${ECHO_T}no" >&6; }
28545   fi
28546
28547 else
28548
28549   { echo "$as_me:$LINENO: result: no" >&5
28550 echo "${ECHO_T}no" >&6; }
28551
28552 fi
28553
28554
28555
28556
28557
28558
28559
28560
28561 db_found=no
28562 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28563 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28564
28565 # Check whether --with-sqlite3 was given.
28566 if test "${with_sqlite3+set}" = set; then
28567   withval=$with_sqlite3;
28568   if test "$withval" != "no"; then
28569      if test "$withval" = "yes"; then
28570         if test -f /usr/local/include/sqlite3.h; then
28571            SQLITE_INCDIR=/usr/local/include
28572            if test -d /usr/local/lib64; then
28573               SQLITE_LIBDIR=/usr/local/lib64
28574            else
28575               SQLITE_LIBDIR=/usr/local/lib
28576            fi
28577            SQLITE_BINDIR=/usr/local/bin
28578         elif test -f /usr/include/sqlite3.h; then
28579            SQLITE_INCDIR=/usr/include
28580            if test -d /usr/lib64; then
28581               SQLITE_LIBDIR=/usr/lib64
28582            else
28583               SQLITE_LIBDIR=/usr/lib
28584            fi
28585            SQLITE_BINDIR=/usr/bin
28586         elif test -f $prefix/include/sqlite3.h; then
28587            SQLITE_INCDIR=$prefix/include
28588            if test -d $prefix/lib64; then
28589               SQLITE_LIBDIR=$prefix/lib64
28590            else
28591               SQLITE_LIBDIR=$prefix/lib
28592            fi
28593            SQLITE_BINDIR=$prefix/bin
28594         else
28595            { echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6; }
28597            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28598 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28599    { (exit 1); exit 1; }; }
28600         fi
28601      else
28602         if test -f $withval/sqlite3.h; then
28603            SQLITE_INCDIR=$withval
28604            SQLITE_LIBDIR=$withval
28605            SQLITE_BINDIR=$withval
28606         elif test -f $withval/include/sqlite3.h; then
28607            SQLITE_INCDIR=$withval/include
28608            if test -d $withval/lib64; then
28609               SQLITE_LIBDIR=$withval/lib64
28610            else
28611               SQLITE_LIBDIR=$withval/lib
28612            fi
28613            SQLITE_BINDIR=$withval/bin
28614         else
28615            { echo "$as_me:$LINENO: result: no" >&5
28616 echo "${ECHO_T}no" >&6; }
28617            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28618 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28619    { (exit 1); exit 1; }; }
28620         fi
28621      fi
28622      SQL_INCLUDE=-I$SQLITE_INCDIR
28623      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28624      SQL_BINDIR=$SQLITE_BINDIR
28625      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28626
28627      cat >>confdefs.h <<\_ACEOF
28628 #define HAVE_SQLITE3 1
28629 _ACEOF
28630
28631      { echo "$as_me:$LINENO: result: yes" >&5
28632 echo "${ECHO_T}yes" >&6; }
28633      db_found=yes
28634      support_sqlite3=yes
28635      db_type=SQLite3
28636      DB_TYPE=sqlite3
28637
28638   else
28639      { echo "$as_me:$LINENO: result: no" >&5
28640 echo "${ECHO_T}no" >&6; }
28641   fi
28642
28643 else
28644
28645   { echo "$as_me:$LINENO: result: no" >&5
28646 echo "${ECHO_T}no" >&6; }
28647
28648 fi
28649
28650
28651
28652
28653
28654
28655
28656 # BA_CHECK_SQLITE_DB
28657
28658
28659 db_found=no
28660 { echo "$as_me:$LINENO: checking for DBI support" >&5
28661 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28662
28663 # Check whether --with-dbi was given.
28664 if test "${with_dbi+set}" = set; then
28665   withval=$with_dbi;
28666   if test "$withval" != "no"; then
28667      if test "$withval" = "yes"; then
28668         if test -f /usr/local/include/dbi/dbi.h; then
28669            DBI_INCDIR=/usr/local/dbi/include
28670            if test -d /usr/local/lib64; then
28671               DBI_LIBDIR=/usr/local/lib64
28672            else
28673               DBI_LIBDIR=/usr/local/lib
28674            fi
28675            DBI_BINDIR=/usr/local/bin
28676         elif test -f /usr/include/dbi/dbi.h; then
28677            DBI_INCDIR=/usr/include
28678            if test -d /usr/lib64; then
28679               DBI_LIBDIR=/usr/lib64
28680            else
28681               DBI_LIBDIR=/usr/lib
28682            fi
28683            DBI_BINDIR=/usr/bin
28684         elif test -f $prefix/include/dbi/dbi.h; then
28685            DBI_INCDIR=$prefix/include
28686            if test -d $prefix/lib64; then
28687               DBI_LIBDIR=$prefix/lib64
28688            else
28689               DBI_LIBDIR=$prefix/lib
28690            fi
28691            DBI_BINDIR=$prefix/bin
28692         else
28693            { echo "$as_me:$LINENO: result: no" >&5
28694 echo "${ECHO_T}no" >&6; }
28695            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28696 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28697    { (exit 1); exit 1; }; }
28698         fi
28699         if test -d /usr/local/lib/dbd; then
28700            DRIVERDIR=/usr/local/lib/dbd
28701            if test -d /usr/local/lib64/dbd; then
28702               DRIVERDIR=/usr/local/lib64/dbd
28703            else
28704               DRIVERDIR=/usr/local/lib/dbd
28705            fi
28706         elif test -d /usr/lib/dbd; then
28707            DRIVERDIR=/usr/lib/dbd
28708            if test -d /usr/lib64/dbd; then
28709               DRIVERDIR=/usr/lib64/dbd
28710            else
28711               DRIVERDIR=/usr/lib/dbd
28712            fi
28713         elif test -d $prefix/lib/dbd; then
28714            if test -d $prefix/lib64/dbd; then
28715               DRIVERDIR=$prefix/lib64/dbd
28716            else
28717               DRIVERDIR=$prefix/lib/dbd
28718            fi
28719         elif test -d /usr/local/lib64/dbd; then
28720            DRIVERDIR=/usr/local/lib64/dbd
28721         elif test -d /usr/lib64/dbd; then
28722            DRIVERDIR=/usr/lib64/dbd
28723         elif test -d $prefix/lib64/dbd; then
28724            DRIVERDIR=$prefix/lib64/dbd
28725         else
28726            { echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6; }
28728            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28729 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28730    { (exit 1); exit 1; }; }
28731         fi
28732      else
28733         if test -f $withval/dbi.h; then
28734            DBI_INCDIR=$withval
28735            DBI_LIBDIR=$withval
28736            DBI_BINDIR=$withval
28737         elif test -f $withval/include/dbi/dbi.h; then
28738            DBI_INCDIR=$withval/include
28739            if test -d $withval/lib64; then
28740               DBI_LIBDIR=$withval/lib64
28741            else
28742               DBI_LIBDIR=$withval/lib
28743            fi
28744            DBI_BINDIR=$withval/bin
28745         else
28746            { echo "$as_me:$LINENO: result: no" >&5
28747 echo "${ECHO_T}no" >&6; }
28748            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28749 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28750    { (exit 1); exit 1; }; }
28751         fi
28752         if test -d $withval/dbd; then
28753            DRIVERDIR=$withval/dbd
28754         elif test -d $withval/lib/; then
28755            if test -d $withval/lib64/dbd; then
28756               DRIVERDIR=$withval/lib64/dbd
28757            else
28758               DRIVERDIR=$withval/lib/dbd
28759            fi
28760         elif test -d $withval/lib64/dbd; then
28761            DRIVERDIR=$withval/lib64/dbd
28762         else
28763            { echo "$as_me:$LINENO: result: no" >&5
28764 echo "${ECHO_T}no" >&6; }
28765            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28766 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28767    { (exit 1); exit 1; }; }
28768         fi
28769      fi
28770      SQL_INCLUDE=-I$DBI_INCDIR
28771      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28772      SQL_BINDIR=$DBI_BINDIR
28773      SQL_LIB=$DBI_LIBDIR/libdbi.a
28774      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28775
28776
28777 cat >>confdefs.h <<\_ACEOF
28778 #define HAVE_DBI 1
28779 _ACEOF
28780
28781      { echo "$as_me:$LINENO: result: yes" >&5
28782 echo "${ECHO_T}yes" >&6; }
28783      db_found=yes
28784      support_dbi=yes
28785      db_type=DBI
28786      DB_TYPE=dbi
28787      uncomment_dbi=" "
28788
28789   else
28790      { echo "$as_me:$LINENO: result: no" >&5
28791 echo "${ECHO_T}no" >&6; }
28792   fi
28793
28794 else
28795
28796   { echo "$as_me:$LINENO: result: no" >&5
28797 echo "${ECHO_T}no" >&6; }
28798
28799 fi
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810 db_found=no
28811 db_prog=no
28812 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28813 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28814
28815 # Check whether --with-dbi-driver was given.
28816 if test "${with_dbi_driver+set}" = set; then
28817   withval=$with_dbi_driver;
28818   if test "$withval" != "no"; then
28819      case $withval in
28820         "mysql")
28821            db_prog="mysql"
28822            if test -f /usr/local/mysql/bin/mysql; then
28823               SQL_BINDIR=/usr/local/mysql/bin
28824               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28825                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28826                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28827               else
28828                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28829               fi
28830            elif test -f /usr/bin/mysql; then
28831               SQL_BINDIR=/usr/bin
28832               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28833                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28834                   SQL_LIBDIR=/usr/lib64/mysql
28835               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28836                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28837                   SQL_LIBDIR=/usr/lib/mysql
28838               else
28839                   SQL_LIBDIR=/usr/lib
28840               fi
28841            elif test -f /usr/local/bin/mysql; then
28842               SQL_BINDIR=/usr/local/bin
28843               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28844                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28845                   SQL_LIBDIR=/usr/local/lib64/mysql
28846               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28847                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28848                   SQL_LIBDIR=/usr/local/lib/mysql
28849               else
28850                   SQL_LIBDIR=/usr/local/lib
28851               fi
28852            elif test -f $withval/bin/mysql; then
28853               SQL_BINDIR=$withval/bin
28854               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28855                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28856                   SQL_LIBDIR=$withval/lib64/mysql
28857               elif test -f $withval/lib64/libmysqlclient_r.a \
28858                   -o -f $withval/lib64/libmysqlclient_r.so; then
28859                   SQL_LIBDIR=$withval/lib64
28860               elif test -f $withval/lib/libmysqlclient_r.a \
28861                   -o -f $withval/lib/libmysqlclient_r.so; then
28862                   SQL_LIBDIR=$withval/lib/
28863               else
28864                   SQL_LIBDIR=$withval/lib/mysql
28865               fi
28866            else
28867               { echo "$as_me:$LINENO: result: no" >&5
28868 echo "${ECHO_T}no" >&6; }
28869               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28870 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28871    { (exit 1); exit 1; }; }
28872            fi
28873            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28874               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28875            else
28876               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28877            fi
28878         ;;
28879         "postgresql")
28880            db_prog="postgresql"
28881            PG_CONFIG=`which pg_config`
28882            if test -n "$PG_CONFIG"; then
28883               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28884               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28885            elif test -f /usr/local/bin/psql; then
28886               SQL_BINDIR=/usr/local/bin
28887               if test -d /usr/local/lib64; then
28888                  SQL_LIBDIR=/usr/local/lib64
28889               else
28890                  SQL_LIBDIR=/usr/local/lib
28891               fi
28892            elif test -f /usr/bin/psql; then
28893               SQL_BINDIR=/usr/local/bin
28894               if test -d /usr/lib64/postgresql; then
28895                  SQL_LIBDIR=/usr/lib64/postgresql
28896               elif test -d /usr/lib/postgresql; then
28897                  SQL_LIBDIR=/usr/lib/postgresql
28898               elif test -d /usr/lib64; then
28899                  SQL_LIBDIR=/usr/lib64
28900               else
28901                  SQL_LIBDIR=/usr/lib
28902               fi
28903            elif test -f $withval/bin/psql; then
28904               SQL_BINDIR=$withval/bin
28905               if test -d $withval/lib64; then
28906                  SQL_LIBDIR=$withval/lib64
28907               else
28908                  SQL_LIBDIR=$withval/lib
28909               fi
28910            else
28911               { echo "$as_me:$LINENO: result: no" >&5
28912 echo "${ECHO_T}no" >&6; }
28913               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28914 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28915    { (exit 1); exit 1; }; }
28916            fi
28917            if test -f $SQL_LIBDIR/libpq.so; then
28918               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28919            else
28920               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28921            fi
28922         ;;
28923         "sqlite")
28924            db_prog="sqlite"
28925            if test -f /usr/local/bin/sqlite; then
28926               SQL_BINDIR=/usr/local/bin
28927               if test -d /usr/local/lib64; then
28928                  SQL_LIBDIR=/usr/local/lib64
28929               else
28930                  SQL_LIBDIR=/usr/local/lib
28931               fi
28932            elif test -f /usr/bin/sqlite; then
28933               SQL_BINDIR=/usr/bin
28934               if test -d /usr/lib64; then
28935                  SQL_LIBDIR=/usr/lib64
28936               else
28937                  SQL_LIBDIR=/usr/lib
28938               fi
28939            elif test -f $withval/bin/sqlite; then
28940               SQL_BINDIR=$withval/bin
28941               if test -d $withval/lib64; then
28942                  SQL_LIBDIR=$withval/lib64
28943               else
28944                  SQL_LIBDIR=$withval/lib
28945               fi
28946            else
28947               { echo "$as_me:$LINENO: result: no" >&5
28948 echo "${ECHO_T}no" >&6; }
28949               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28950 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28951    { (exit 1); exit 1; }; }
28952            fi
28953            if test -f $SQL_LIBDIR/libsqlite.so; then
28954               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28955            else
28956               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28957            fi
28958         ;;
28959         "sqlite3")
28960            db_prog="sqlite3"
28961            if test -f /usr/local/bin/sqlite3; then
28962               SQL_BINDIR=/usr/local/bin
28963               if test -d /usr/local/lib64; then
28964                  SQL_LIBDIR=/usr/local/lib64
28965               else
28966                  SQL_LIBDIR=/usr/local/lib
28967               fi
28968            elif test -f /usr/bin/sqlite3; then
28969               SQL_BINDIR=/usr/bin
28970               if test -d /usr/lib64; then
28971                  SQL_LIBDIR=/usr/lib64
28972               else
28973                  SQL_LIBDIR=/usr/lib
28974               fi
28975            elif test -f $withval/bin/sqlite3; then
28976               SQL_BINDIR=$withval/bin
28977               if test -d $withval/lib64; then
28978                  SQL_LIBDIR=$withval/lib64
28979               else
28980                  SQL_LIBDIR=$withval/lib
28981               fi
28982            else
28983               { echo "$as_me:$LINENO: result: no" >&5
28984 echo "${ECHO_T}no" >&6; }
28985               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28986 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28987    { (exit 1); exit 1; }; }
28988            fi
28989            if test -f $SQL_LIBDIR/libsqlite3.so; then
28990               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28991            else
28992               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28993            fi
28994         ;;
28995         *)
28996            { echo "$as_me:$LINENO: result: no" >&5
28997 echo "${ECHO_T}no" >&6; }
28998            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28999 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29000    { (exit 1); exit 1; }; }
29001         ;;
29002      esac
29003
29004      { echo "$as_me:$LINENO: result: yes" >&5
29005 echo "${ECHO_T}yes" >&6; }
29006      DB_PROG=$db_prog
29007   else
29008      { echo "$as_me:$LINENO: result: no" >&5
29009 echo "${ECHO_T}no" >&6; }
29010   fi
29011
29012 else
29013
29014   { echo "$as_me:$LINENO: result: no" >&5
29015 echo "${ECHO_T}no" >&6; }
29016
29017 fi
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028 support_batch_insert=no
29029 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29030 pkg=$?
29031 if test $pkg = 0; then
29032    support_batch_insert=yes
29033    # Check whether --enable-batch-insert was given.
29034 if test "${enable_batch_insert+set}" = set; then
29035   enableval=$enable_batch_insert;
29036           if test x$enableval = xno; then
29037              support_batch_insert=no
29038           else
29039              support_batch_insert=yes
29040           fi
29041
29042
29043 fi
29044
29045 fi
29046
29047 saved_LIBS="${LIBS}"
29048 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
29049
29050 if test x$DB_TYPE = xpostgresql; then
29051    support_batch_insert=yes
29052    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29053 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29054 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   ac_check_lib_save_LIBS=$LIBS
29058 LIBS="-lpq  $LIBS"
29059 cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h.  */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h.  */
29065
29066 /* Override any GCC internal prototype to avoid an error.
29067    Use char because int might match the return type of a GCC
29068    builtin and then its argument prototype would still apply.  */
29069 #ifdef __cplusplus
29070 extern "C"
29071 #endif
29072 char PQisthreadsafe ();
29073 int
29074 main ()
29075 {
29076 return PQisthreadsafe ();
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext conftest$ac_exeext
29082 if { (ac_try="$ac_link"
29083 case "(($ac_try" in
29084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085   *) ac_try_echo=$ac_try;;
29086 esac
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088   (eval "$ac_link") 2>conftest.er1
29089   ac_status=$?
29090   grep -v '^ *+' conftest.er1 >conftest.err
29091   rm -f conftest.er1
29092   cat conftest.err >&5
29093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094   (exit $ac_status); } && {
29095          test -z "$ac_c_werror_flag" ||
29096          test ! -s conftest.err
29097        } && test -s conftest$ac_exeext &&
29098        $as_test_x conftest$ac_exeext; then
29099   ac_cv_lib_pq_PQisthreadsafe=yes
29100 else
29101   echo "$as_me: failed program was:" >&5
29102 sed 's/^/| /' conftest.$ac_ext >&5
29103
29104         ac_cv_lib_pq_PQisthreadsafe=no
29105 fi
29106
29107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29108       conftest$ac_exeext conftest.$ac_ext
29109 LIBS=$ac_check_lib_save_LIBS
29110 fi
29111 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29112 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29113 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29114
29115 cat >>confdefs.h <<\_ACEOF
29116 #define HAVE_PQISTHREADSAFE 1
29117 _ACEOF
29118
29119 fi
29120
29121    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29122 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29123 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29124   echo $ECHO_N "(cached) $ECHO_C" >&6
29125 else
29126   ac_check_lib_save_LIBS=$LIBS
29127 LIBS="-lpq  $LIBS"
29128 cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134
29135 /* Override any GCC internal prototype to avoid an error.
29136    Use char because int might match the return type of a GCC
29137    builtin and then its argument prototype would still apply.  */
29138 #ifdef __cplusplus
29139 extern "C"
29140 #endif
29141 char PQputCopyData ();
29142 int
29143 main ()
29144 {
29145 return PQputCopyData ();
29146   ;
29147   return 0;
29148 }
29149 _ACEOF
29150 rm -f conftest.$ac_objext conftest$ac_exeext
29151 if { (ac_try="$ac_link"
29152 case "(($ac_try" in
29153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154   *) ac_try_echo=$ac_try;;
29155 esac
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157   (eval "$ac_link") 2>conftest.er1
29158   ac_status=$?
29159   grep -v '^ *+' conftest.er1 >conftest.err
29160   rm -f conftest.er1
29161   cat conftest.err >&5
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); } && {
29164          test -z "$ac_c_werror_flag" ||
29165          test ! -s conftest.err
29166        } && test -s conftest$ac_exeext &&
29167        $as_test_x conftest$ac_exeext; then
29168   ac_cv_lib_pq_PQputCopyData=yes
29169 else
29170   echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29172
29173         ac_cv_lib_pq_PQputCopyData=no
29174 fi
29175
29176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29177       conftest$ac_exeext conftest.$ac_ext
29178 LIBS=$ac_check_lib_save_LIBS
29179 fi
29180 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29181 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29182 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29183
29184 cat >>confdefs.h <<\_ACEOF
29185 #define HAVE_PQ_COPY 1
29186 _ACEOF
29187
29188 fi
29189
29190    test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
29191    pkg=$?
29192    if test $pkg = 0; then
29193       # Check whether --enable-batch-insert was given.
29194 if test "${enable_batch_insert+set}" = set; then
29195   enableval=$enable_batch_insert;
29196              if test x$enableval = xno; then
29197                 support_batch_insert=no
29198              fi
29199
29200
29201 fi
29202
29203    else
29204       support_batch_insert=no
29205    fi
29206 fi
29207
29208 if test x$DB_TYPE = xdbi; then
29209    DB_TYPE=$DB_PROG
29210    db_type=$DB_PROG
29211    pkg=1
29212       if test $DB_PROG = postgresql; then
29213       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29214 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29215 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29216   echo $ECHO_N "(cached) $ECHO_C" >&6
29217 else
29218   ac_check_lib_save_LIBS=$LIBS
29219 LIBS="-lpq  $LIBS"
29220 cat >conftest.$ac_ext <<_ACEOF
29221 /* confdefs.h.  */
29222 _ACEOF
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h.  */
29226
29227 /* Override any GCC internal prototype to avoid an error.
29228    Use char because int might match the return type of a GCC
29229    builtin and then its argument prototype would still apply.  */
29230 #ifdef __cplusplus
29231 extern "C"
29232 #endif
29233 char PQisthreadsafe ();
29234 int
29235 main ()
29236 {
29237 return PQisthreadsafe ();
29238   ;
29239   return 0;
29240 }
29241 _ACEOF
29242 rm -f conftest.$ac_objext conftest$ac_exeext
29243 if { (ac_try="$ac_link"
29244 case "(($ac_try" in
29245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246   *) ac_try_echo=$ac_try;;
29247 esac
29248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249   (eval "$ac_link") 2>conftest.er1
29250   ac_status=$?
29251   grep -v '^ *+' conftest.er1 >conftest.err
29252   rm -f conftest.er1
29253   cat conftest.err >&5
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); } && {
29256          test -z "$ac_c_werror_flag" ||
29257          test ! -s conftest.err
29258        } && test -s conftest$ac_exeext &&
29259        $as_test_x conftest$ac_exeext; then
29260   ac_cv_lib_pq_PQisthreadsafe=yes
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265         ac_cv_lib_pq_PQisthreadsafe=no
29266 fi
29267
29268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29269       conftest$ac_exeext conftest.$ac_ext
29270 LIBS=$ac_check_lib_save_LIBS
29271 fi
29272 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29273 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29274 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29275   cat >>confdefs.h <<\_ACEOF
29276 #define HAVE_PQISTHREADSAFE 1
29277 _ACEOF
29278
29279 fi
29280
29281       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29282 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29283 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29284   echo $ECHO_N "(cached) $ECHO_C" >&6
29285 else
29286   ac_check_lib_save_LIBS=$LIBS
29287 LIBS="-lpq  $LIBS"
29288 cat >conftest.$ac_ext <<_ACEOF
29289 /* confdefs.h.  */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h.  */
29294
29295 /* Override any GCC internal prototype to avoid an error.
29296    Use char because int might match the return type of a GCC
29297    builtin and then its argument prototype would still apply.  */
29298 #ifdef __cplusplus
29299 extern "C"
29300 #endif
29301 char PQputCopyData ();
29302 int
29303 main ()
29304 {
29305 return PQputCopyData ();
29306   ;
29307   return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext conftest$ac_exeext
29311 if { (ac_try="$ac_link"
29312 case "(($ac_try" in
29313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314   *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317   (eval "$ac_link") 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } && {
29324          test -z "$ac_c_werror_flag" ||
29325          test ! -s conftest.err
29326        } && test -s conftest$ac_exeext &&
29327        $as_test_x conftest$ac_exeext; then
29328   ac_cv_lib_pq_PQputCopyData=yes
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333         ac_cv_lib_pq_PQputCopyData=no
29334 fi
29335
29336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29337       conftest$ac_exeext conftest.$ac_ext
29338 LIBS=$ac_check_lib_save_LIBS
29339 fi
29340 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29341 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29342 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29343   cat >>confdefs.h <<\_ACEOF
29344 #define HAVE_PQ_COPY 1
29345 _ACEOF
29346
29347 fi
29348
29349       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
29350       pkg=$?
29351    fi
29352
29353    if test $DB_PROG = mysql; then
29354       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29355       pkg=$?
29356    fi
29357
29358    if test $DB_PROG = sqlite3; then
29359       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29360       pkg=$?
29361       { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29362 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29363 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29364   echo $ECHO_N "(cached) $ECHO_C" >&6
29365 else
29366   ac_check_lib_save_LIBS=$LIBS
29367 LIBS="-lsqlite3  $LIBS"
29368 cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374
29375 /* Override any GCC internal prototype to avoid an error.
29376    Use char because int might match the return type of a GCC
29377    builtin and then its argument prototype would still apply.  */
29378 #ifdef __cplusplus
29379 extern "C"
29380 #endif
29381 char sqlite3_threadsafe ();
29382 int
29383 main ()
29384 {
29385 return sqlite3_threadsafe ();
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 rm -f conftest.$ac_objext conftest$ac_exeext
29391 if { (ac_try="$ac_link"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_link") 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } && {
29404          test -z "$ac_c_werror_flag" ||
29405          test ! -s conftest.err
29406        } && test -s conftest$ac_exeext &&
29407        $as_test_x conftest$ac_exeext; then
29408   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29409 else
29410   echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29412
29413         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29414 fi
29415
29416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29417       conftest$ac_exeext conftest.$ac_ext
29418 LIBS=$ac_check_lib_save_LIBS
29419 fi
29420 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29421 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29422 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29423
29424 cat >>confdefs.h <<\_ACEOF
29425 #define HAVE_SQLITE3_THREADSAFE 1
29426 _ACEOF
29427
29428 fi
29429
29430    fi
29431
29432    if test $pkg = 0; then
29433       # Check whether --enable-batch-insert was given.
29434 if test "${enable_batch_insert+set}" = set; then
29435   enableval=$enable_batch_insert;
29436              if test x$enableval = xno; then
29437                 support_batch_insert=no
29438              else
29439                 support_batch_insert=yes
29440              fi
29441
29442
29443 fi
29444
29445    fi
29446 else
29447       uncomment_dbi="#"
29448 fi
29449
29450 LIBS="${saved_LIBS}"
29451
29452
29453
29454 if test x$DB_TYPE = xingres; then
29455    support_batch_insert=yes
29456 fi
29457
29458 if test $support_batch_insert = yes ; then
29459
29460 cat >>confdefs.h <<\_ACEOF
29461 #define HAVE_BATCH_FILE_INSERT 1
29462 _ACEOF
29463
29464 fi
29465
29466 cat >>confdefs.h <<\_ACEOF
29467 #define PROTOTYPES 1
29468 _ACEOF
29469
29470
29471 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29472    if test -z "$CCOPTS"; then
29473       CCOPTS='-g -O2 -Wall'
29474    fi
29475    CFLAGS="$CCOPTS"
29476 fi
29477
29478
29479
29480 largefile_support="no"
29481
29482    # Check whether --enable-largefile was given.
29483 if test "${enable_largefile+set}" = set; then
29484   enableval=$enable_largefile;
29485 fi
29486
29487    if test "$enable_largefile" != no; then
29488      if test -n "$ac_tool_prefix"; then
29489   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29490 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29493 if test "${ac_cv_prog_GETCONF+set}" = set; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 else
29496   if test -n "$GETCONF"; then
29497   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29498 else
29499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29500 for as_dir in $PATH
29501 do
29502   IFS=$as_save_IFS
29503   test -z "$as_dir" && as_dir=.
29504   for ac_exec_ext in '' $ac_executable_extensions; do
29505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29506     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29508     break 2
29509   fi
29510 done
29511 done
29512 IFS=$as_save_IFS
29513
29514 fi
29515 fi
29516 GETCONF=$ac_cv_prog_GETCONF
29517 if test -n "$GETCONF"; then
29518   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29519 echo "${ECHO_T}$GETCONF" >&6; }
29520 else
29521   { echo "$as_me:$LINENO: result: no" >&5
29522 echo "${ECHO_T}no" >&6; }
29523 fi
29524
29525
29526 fi
29527 if test -z "$ac_cv_prog_GETCONF"; then
29528   ac_ct_GETCONF=$GETCONF
29529   # Extract the first word of "getconf", so it can be a program name with args.
29530 set dummy getconf; ac_word=$2
29531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29533 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29534   echo $ECHO_N "(cached) $ECHO_C" >&6
29535 else
29536   if test -n "$ac_ct_GETCONF"; then
29537   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29538 else
29539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29540 for as_dir in $PATH
29541 do
29542   IFS=$as_save_IFS
29543   test -z "$as_dir" && as_dir=.
29544   for ac_exec_ext in '' $ac_executable_extensions; do
29545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29546     ac_cv_prog_ac_ct_GETCONF="getconf"
29547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29548     break 2
29549   fi
29550 done
29551 done
29552 IFS=$as_save_IFS
29553
29554 fi
29555 fi
29556 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29557 if test -n "$ac_ct_GETCONF"; then
29558   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29559 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29560 else
29561   { echo "$as_me:$LINENO: result: no" >&5
29562 echo "${ECHO_T}no" >&6; }
29563 fi
29564
29565   if test "x$ac_ct_GETCONF" = x; then
29566     GETCONF=""
29567   else
29568     case $cross_compiling:$ac_tool_warned in
29569 yes:)
29570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29571 whose name does not start with the host triplet.  If you think this
29572 configuration is useful to you, please write to autoconf@gnu.org." >&5
29573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29574 whose name does not start with the host triplet.  If you think this
29575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29576 ac_tool_warned=yes ;;
29577 esac
29578     GETCONF=$ac_ct_GETCONF
29579   fi
29580 else
29581   GETCONF="$ac_cv_prog_GETCONF"
29582 fi
29583
29584      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29585 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29586 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29587   echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29590         ac_cv_sys_largefile_CFLAGS=no
29591         case "$host_os" in
29592            # IRIX 6.2 and later require cc -n32.
29593            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29594              if test "$GCC" != yes; then
29595                ac_cv_sys_largefile_CFLAGS=-n32
29596              fi
29597              ac_save_CC="$CC"
29598              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29599              cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605
29606 int
29607 main ()
29608 {
29609
29610   ;
29611   return 0;
29612 }
29613 _ACEOF
29614 rm -f conftest.$ac_objext conftest$ac_exeext
29615 if { (ac_try="$ac_link"
29616 case "(($ac_try" in
29617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618   *) ac_try_echo=$ac_try;;
29619 esac
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621   (eval "$ac_link") 2>conftest.er1
29622   ac_status=$?
29623   grep -v '^ *+' conftest.er1 >conftest.err
29624   rm -f conftest.er1
29625   cat conftest.err >&5
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); } && {
29628          test -z "$ac_c_werror_flag" ||
29629          test ! -s conftest.err
29630        } && test -s conftest$ac_exeext &&
29631        $as_test_x conftest$ac_exeext; then
29632   :
29633 else
29634   echo "$as_me: failed program was:" >&5
29635 sed 's/^/| /' conftest.$ac_ext >&5
29636
29637         ac_cv_sys_largefile_CFLAGS=no
29638 fi
29639
29640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29641       conftest$ac_exeext conftest.$ac_ext
29642              CC="$ac_save_CC"
29643            esac
29644       }
29645 fi
29646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29647 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29648      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29649 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29650 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29651   echo $ECHO_N "(cached) $ECHO_C" >&6
29652 else
29653   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29654         ac_cv_sys_largefile_LDFLAGS=no
29655
29656       }
29657 fi
29658 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29659 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29660      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29661 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29662 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29663   echo $ECHO_N "(cached) $ECHO_C" >&6
29664 else
29665   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29666         ac_cv_sys_largefile_LIBS=no
29667
29668       }
29669 fi
29670 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29671 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29672
29673      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29674        case "$ac_flag" in
29675        no) ;;
29676        -D_FILE_OFFSET_BITS=*) ;;
29677        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29678        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29679        -D?* | -I?*)
29680          case "$ac_flag" in
29681    no) ;;
29682    ?*)
29683      case "$CPPFLAGS" in
29684      '') CPPFLAGS="$ac_flag" ;;
29685      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29686      esac ;;
29687    esac ;;
29688        *)
29689          case "$ac_flag" in
29690    no) ;;
29691    ?*)
29692      case "$CFLAGS" in
29693      '') CFLAGS="$ac_flag" ;;
29694      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29695      esac ;;
29696    esac ;;
29697        esac
29698      done
29699      case "$ac_cv_sys_largefile_LDFLAGS" in
29700    no) ;;
29701    ?*)
29702      case "$LDFLAGS" in
29703      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29704      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29705      esac ;;
29706    esac
29707      case "$ac_cv_sys_largefile_LIBS" in
29708    no) ;;
29709    ?*)
29710      case "$LIBS" in
29711      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29712      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29713      esac ;;
29714    esac
29715      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29716 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29717 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29718   echo $ECHO_N "(cached) $ECHO_C" >&6
29719 else
29720   ac_cv_sys_file_offset_bits=no
29721       ac_cv_sys_file_offset_bits=64
29722       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29723         case "$ac_flag" in
29724         -D_FILE_OFFSET_BITS)
29725           ac_cv_sys_file_offset_bits=1 ;;
29726         -D_FILE_OFFSET_BITS=*)
29727           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29728         esac
29729       done
29730
29731 fi
29732 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29733 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29734    if test "$ac_cv_sys_file_offset_bits" != no; then
29735
29736 cat >>confdefs.h <<_ACEOF
29737 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29738 _ACEOF
29739
29740    fi
29741      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29742 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29743 if test "${ac_cv_sys_largefile_source+set}" = set; then
29744   echo $ECHO_N "(cached) $ECHO_C" >&6
29745 else
29746   ac_cv_sys_largefile_source=no
29747       ac_cv_sys_largefile_source=1
29748       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29749         case "$ac_flag" in
29750         -D_LARGEFILE_SOURCE)
29751           ac_cv_sys_largefile_source=1 ;;
29752         -D_LARGEFILE_SOURCE=*)
29753           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29754         esac
29755       done
29756
29757 fi
29758 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29759 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29760    if test "$ac_cv_sys_largefile_source" != no; then
29761
29762 cat >>confdefs.h <<_ACEOF
29763 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29764 _ACEOF
29765
29766    fi
29767      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29768 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29769 if test "${ac_cv_sys_large_files+set}" = set; then
29770   echo $ECHO_N "(cached) $ECHO_C" >&6
29771 else
29772   ac_cv_sys_large_files=no
29773       ac_cv_sys_large_files=1
29774       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29775         case "$ac_flag" in
29776         -D_LARGE_FILES)
29777           ac_cv_sys_large_files=1 ;;
29778         -D_LARGE_FILES=*)
29779           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29780         esac
29781       done
29782
29783 fi
29784 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29785 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29786    if test "$ac_cv_sys_large_files" != no; then
29787
29788 cat >>confdefs.h <<_ACEOF
29789 #define _LARGE_FILES $ac_cv_sys_large_files
29790 _ACEOF
29791
29792    fi
29793    fi
29794
29795
29796 { echo "$as_me:$LINENO: checking for X" >&5
29797 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29798
29799
29800 # Check whether --with-x was given.
29801 if test "${with_x+set}" = set; then
29802   withval=$with_x;
29803 fi
29804
29805 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29806 if test "x$with_x" = xno; then
29807   # The user explicitly disabled X.
29808   have_x=disabled
29809 else
29810   case $x_includes,$x_libraries in #(
29811     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29812 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29813    { (exit 1); exit 1; }; };; #(
29814     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29815   echo $ECHO_N "(cached) $ECHO_C" >&6
29816 else
29817   # One or both of the vars are not set, and there is no cached value.
29818 ac_x_includes=no ac_x_libraries=no
29819 rm -f -r conftest.dir
29820 if mkdir conftest.dir; then
29821   cd conftest.dir
29822   cat >Imakefile <<'_ACEOF'
29823 incroot:
29824         @echo incroot='${INCROOT}'
29825 usrlibdir:
29826         @echo usrlibdir='${USRLIBDIR}'
29827 libdir:
29828         @echo libdir='${LIBDIR}'
29829 _ACEOF
29830   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29831     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29832     for ac_var in incroot usrlibdir libdir; do
29833       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29834     done
29835     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29836     for ac_extension in a so sl; do
29837       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29838          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29839         ac_im_usrlibdir=$ac_im_libdir; break
29840       fi
29841     done
29842     # Screen out bogus values from the imake configuration.  They are
29843     # bogus both because they are the default anyway, and because
29844     # using them would break gcc on systems where it needs fixed includes.
29845     case $ac_im_incroot in
29846         /usr/include) ac_x_includes= ;;
29847         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29848     esac
29849     case $ac_im_usrlibdir in
29850         /usr/lib | /lib) ;;
29851         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29852     esac
29853   fi
29854   cd ..
29855   rm -f -r conftest.dir
29856 fi
29857
29858 # Standard set of common directories for X headers.
29859 # Check X11 before X11Rn because it is often a symlink to the current release.
29860 ac_x_header_dirs='
29861 /usr/X11/include
29862 /usr/X11R6/include
29863 /usr/X11R5/include
29864 /usr/X11R4/include
29865
29866 /usr/include/X11
29867 /usr/include/X11R6
29868 /usr/include/X11R5
29869 /usr/include/X11R4
29870
29871 /usr/local/X11/include
29872 /usr/local/X11R6/include
29873 /usr/local/X11R5/include
29874 /usr/local/X11R4/include
29875
29876 /usr/local/include/X11
29877 /usr/local/include/X11R6
29878 /usr/local/include/X11R5
29879 /usr/local/include/X11R4
29880
29881 /usr/X386/include
29882 /usr/x386/include
29883 /usr/XFree86/include/X11
29884
29885 /usr/include
29886 /usr/local/include
29887 /usr/unsupported/include
29888 /usr/athena/include
29889 /usr/local/x11r5/include
29890 /usr/lpp/Xamples/include
29891
29892 /usr/openwin/include
29893 /usr/openwin/share/include'
29894
29895 if test "$ac_x_includes" = no; then
29896   # Guess where to find include files, by looking for Xlib.h.
29897   # First, try using that file with no special directory specified.
29898   cat >conftest.$ac_ext <<_ACEOF
29899 /* confdefs.h.  */
29900 _ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h.  */
29904 #include <X11/Xlib.h>
29905 _ACEOF
29906 if { (ac_try="$ac_cpp conftest.$ac_ext"
29907 case "(($ac_try" in
29908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909   *) ac_try_echo=$ac_try;;
29910 esac
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29913   ac_status=$?
29914   grep -v '^ *+' conftest.er1 >conftest.err
29915   rm -f conftest.er1
29916   cat conftest.err >&5
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); } >/dev/null && {
29919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29920          test ! -s conftest.err
29921        }; then
29922   # We can compile using X headers with no special include directory.
29923 ac_x_includes=
29924 else
29925   echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928   for ac_dir in $ac_x_header_dirs; do
29929   if test -r "$ac_dir/X11/Xlib.h"; then
29930     ac_x_includes=$ac_dir
29931     break
29932   fi
29933 done
29934 fi
29935
29936 rm -f conftest.err conftest.$ac_ext
29937 fi # $ac_x_includes = no
29938
29939 if test "$ac_x_libraries" = no; then
29940   # Check for the libraries.
29941   # See if we find them without any special options.
29942   # Don't add to $LIBS permanently.
29943   ac_save_LIBS=$LIBS
29944   LIBS="-lX11 $LIBS"
29945   cat >conftest.$ac_ext <<_ACEOF
29946 /* confdefs.h.  */
29947 _ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h.  */
29951 #include <X11/Xlib.h>
29952 int
29953 main ()
29954 {
29955 XrmInitialize ()
29956   ;
29957   return 0;
29958 }
29959 _ACEOF
29960 rm -f conftest.$ac_objext conftest$ac_exeext
29961 if { (ac_try="$ac_link"
29962 case "(($ac_try" in
29963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964   *) ac_try_echo=$ac_try;;
29965 esac
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967   (eval "$ac_link") 2>conftest.er1
29968   ac_status=$?
29969   grep -v '^ *+' conftest.er1 >conftest.err
29970   rm -f conftest.er1
29971   cat conftest.err >&5
29972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973   (exit $ac_status); } && {
29974          test -z "$ac_c_werror_flag" ||
29975          test ! -s conftest.err
29976        } && test -s conftest$ac_exeext &&
29977        $as_test_x conftest$ac_exeext; then
29978   LIBS=$ac_save_LIBS
29979 # We can link X programs with no special library path.
29980 ac_x_libraries=
29981 else
29982   echo "$as_me: failed program was:" >&5
29983 sed 's/^/| /' conftest.$ac_ext >&5
29984
29985         LIBS=$ac_save_LIBS
29986 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29987 do
29988   # Don't even attempt the hair of trying to link an X program!
29989   for ac_extension in a so sl; do
29990     if test -r "$ac_dir/libX11.$ac_extension"; then
29991       ac_x_libraries=$ac_dir
29992       break 2
29993     fi
29994   done
29995 done
29996 fi
29997
29998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29999       conftest$ac_exeext conftest.$ac_ext
30000 fi # $ac_x_libraries = no
30001
30002 case $ac_x_includes,$ac_x_libraries in #(
30003   no,* | *,no | *\'*)
30004     # Didn't find X, or a directory has "'" in its name.
30005     ac_cv_have_x="have_x=no";; #(
30006   *)
30007     # Record where we found X for the cache.
30008     ac_cv_have_x="have_x=yes\
30009         ac_x_includes='$ac_x_includes'\
30010         ac_x_libraries='$ac_x_libraries'"
30011 esac
30012 fi
30013 ;; #(
30014     *) have_x=yes;;
30015   esac
30016   eval "$ac_cv_have_x"
30017 fi # $with_x != no
30018
30019 if test "$have_x" != yes; then
30020   { echo "$as_me:$LINENO: result: $have_x" >&5
30021 echo "${ECHO_T}$have_x" >&6; }
30022   no_x=yes
30023 else
30024   # If each of the values was on the command line, it overrides each guess.
30025   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30026   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30027   # Update the cache value to reflect the command line values.
30028   ac_cv_have_x="have_x=yes\
30029         ac_x_includes='$x_includes'\
30030         ac_x_libraries='$x_libraries'"
30031   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30032 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30033 fi
30034
30035 if test "$no_x" = yes; then
30036   # Not all programs may use this symbol, but it does not hurt to define it.
30037
30038 cat >>confdefs.h <<\_ACEOF
30039 #define X_DISPLAY_MISSING 1
30040 _ACEOF
30041
30042   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30043 else
30044   if test -n "$x_includes"; then
30045     X_CFLAGS="$X_CFLAGS -I$x_includes"
30046   fi
30047
30048   # It would also be nice to do this for all -L options, not just this one.
30049   if test -n "$x_libraries"; then
30050     X_LIBS="$X_LIBS -L$x_libraries"
30051     # For Solaris; some versions of Sun CC require a space after -R and
30052     # others require no space.  Words are not sufficient . . . .
30053     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30054 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30055     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30056     ac_xsave_c_werror_flag=$ac_c_werror_flag
30057     ac_c_werror_flag=yes
30058     cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h.  */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h.  */
30064
30065 int
30066 main ()
30067 {
30068
30069   ;
30070   return 0;
30071 }
30072 _ACEOF
30073 rm -f conftest.$ac_objext conftest$ac_exeext
30074 if { (ac_try="$ac_link"
30075 case "(($ac_try" in
30076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077   *) ac_try_echo=$ac_try;;
30078 esac
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080   (eval "$ac_link") 2>conftest.er1
30081   ac_status=$?
30082   grep -v '^ *+' conftest.er1 >conftest.err
30083   rm -f conftest.er1
30084   cat conftest.err >&5
30085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086   (exit $ac_status); } && {
30087          test -z "$ac_c_werror_flag" ||
30088          test ! -s conftest.err
30089        } && test -s conftest$ac_exeext &&
30090        $as_test_x conftest$ac_exeext; then
30091   { echo "$as_me:$LINENO: result: no" >&5
30092 echo "${ECHO_T}no" >&6; }
30093        X_LIBS="$X_LIBS -R$x_libraries"
30094 else
30095   echo "$as_me: failed program was:" >&5
30096 sed 's/^/| /' conftest.$ac_ext >&5
30097
30098         LIBS="$ac_xsave_LIBS -R $x_libraries"
30099        cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h.  */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h.  */
30105
30106 int
30107 main ()
30108 {
30109
30110   ;
30111   return 0;
30112 }
30113 _ACEOF
30114 rm -f conftest.$ac_objext conftest$ac_exeext
30115 if { (ac_try="$ac_link"
30116 case "(($ac_try" in
30117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118   *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121   (eval "$ac_link") 2>conftest.er1
30122   ac_status=$?
30123   grep -v '^ *+' conftest.er1 >conftest.err
30124   rm -f conftest.er1
30125   cat conftest.err >&5
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); } && {
30128          test -z "$ac_c_werror_flag" ||
30129          test ! -s conftest.err
30130        } && test -s conftest$ac_exeext &&
30131        $as_test_x conftest$ac_exeext; then
30132   { echo "$as_me:$LINENO: result: yes" >&5
30133 echo "${ECHO_T}yes" >&6; }
30134           X_LIBS="$X_LIBS -R $x_libraries"
30135 else
30136   echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30138
30139         { echo "$as_me:$LINENO: result: neither works" >&5
30140 echo "${ECHO_T}neither works" >&6; }
30141 fi
30142
30143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30144       conftest$ac_exeext conftest.$ac_ext
30145 fi
30146
30147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30148       conftest$ac_exeext conftest.$ac_ext
30149     ac_c_werror_flag=$ac_xsave_c_werror_flag
30150     LIBS=$ac_xsave_LIBS
30151   fi
30152
30153   # Check for system-dependent libraries X programs must link with.
30154   # Do this before checking for the system-independent R6 libraries
30155   # (-lICE), since we may need -lsocket or whatever for X linking.
30156
30157   if test "$ISC" = yes; then
30158     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30159   else
30160     # Martyn Johnson says this is needed for Ultrix, if the X
30161     # libraries were built with DECnet support.  And Karl Berry says
30162     # the Alpha needs dnet_stub (dnet does not exist).
30163     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30164     cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170
30171 /* Override any GCC internal prototype to avoid an error.
30172    Use char because int might match the return type of a GCC
30173    builtin and then its argument prototype would still apply.  */
30174 #ifdef __cplusplus
30175 extern "C"
30176 #endif
30177 char XOpenDisplay ();
30178 int
30179 main ()
30180 {
30181 return XOpenDisplay ();
30182   ;
30183   return 0;
30184 }
30185 _ACEOF
30186 rm -f conftest.$ac_objext conftest$ac_exeext
30187 if { (ac_try="$ac_link"
30188 case "(($ac_try" in
30189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30190   *) ac_try_echo=$ac_try;;
30191 esac
30192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30193   (eval "$ac_link") 2>conftest.er1
30194   ac_status=$?
30195   grep -v '^ *+' conftest.er1 >conftest.err
30196   rm -f conftest.er1
30197   cat conftest.err >&5
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); } && {
30200          test -z "$ac_c_werror_flag" ||
30201          test ! -s conftest.err
30202        } && test -s conftest$ac_exeext &&
30203        $as_test_x conftest$ac_exeext; then
30204   :
30205 else
30206   echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30208
30209         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30210 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30211 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30212   echo $ECHO_N "(cached) $ECHO_C" >&6
30213 else
30214   ac_check_lib_save_LIBS=$LIBS
30215 LIBS="-ldnet  $LIBS"
30216 cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h.  */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h.  */
30222
30223 /* Override any GCC internal prototype to avoid an error.
30224    Use char because int might match the return type of a GCC
30225    builtin and then its argument prototype would still apply.  */
30226 #ifdef __cplusplus
30227 extern "C"
30228 #endif
30229 char dnet_ntoa ();
30230 int
30231 main ()
30232 {
30233 return dnet_ntoa ();
30234   ;
30235   return 0;
30236 }
30237 _ACEOF
30238 rm -f conftest.$ac_objext conftest$ac_exeext
30239 if { (ac_try="$ac_link"
30240 case "(($ac_try" in
30241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30242   *) ac_try_echo=$ac_try;;
30243 esac
30244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30245   (eval "$ac_link") 2>conftest.er1
30246   ac_status=$?
30247   grep -v '^ *+' conftest.er1 >conftest.err
30248   rm -f conftest.er1
30249   cat conftest.err >&5
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); } && {
30252          test -z "$ac_c_werror_flag" ||
30253          test ! -s conftest.err
30254        } && test -s conftest$ac_exeext &&
30255        $as_test_x conftest$ac_exeext; then
30256   ac_cv_lib_dnet_dnet_ntoa=yes
30257 else
30258   echo "$as_me: failed program was:" >&5
30259 sed 's/^/| /' conftest.$ac_ext >&5
30260
30261         ac_cv_lib_dnet_dnet_ntoa=no
30262 fi
30263
30264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30265       conftest$ac_exeext conftest.$ac_ext
30266 LIBS=$ac_check_lib_save_LIBS
30267 fi
30268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30269 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30270 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30271   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30272 fi
30273
30274     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30275       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30276 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30277 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30278   echo $ECHO_N "(cached) $ECHO_C" >&6
30279 else
30280   ac_check_lib_save_LIBS=$LIBS
30281 LIBS="-ldnet_stub  $LIBS"
30282 cat >conftest.$ac_ext <<_ACEOF
30283 /* confdefs.h.  */
30284 _ACEOF
30285 cat confdefs.h >>conftest.$ac_ext
30286 cat >>conftest.$ac_ext <<_ACEOF
30287 /* end confdefs.h.  */
30288
30289 /* Override any GCC internal prototype to avoid an error.
30290    Use char because int might match the return type of a GCC
30291    builtin and then its argument prototype would still apply.  */
30292 #ifdef __cplusplus
30293 extern "C"
30294 #endif
30295 char dnet_ntoa ();
30296 int
30297 main ()
30298 {
30299 return dnet_ntoa ();
30300   ;
30301   return 0;
30302 }
30303 _ACEOF
30304 rm -f conftest.$ac_objext conftest$ac_exeext
30305 if { (ac_try="$ac_link"
30306 case "(($ac_try" in
30307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308   *) ac_try_echo=$ac_try;;
30309 esac
30310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311   (eval "$ac_link") 2>conftest.er1
30312   ac_status=$?
30313   grep -v '^ *+' conftest.er1 >conftest.err
30314   rm -f conftest.er1
30315   cat conftest.err >&5
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); } && {
30318          test -z "$ac_c_werror_flag" ||
30319          test ! -s conftest.err
30320        } && test -s conftest$ac_exeext &&
30321        $as_test_x conftest$ac_exeext; then
30322   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30323 else
30324   echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30326
30327         ac_cv_lib_dnet_stub_dnet_ntoa=no
30328 fi
30329
30330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30331       conftest$ac_exeext conftest.$ac_ext
30332 LIBS=$ac_check_lib_save_LIBS
30333 fi
30334 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30335 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30336 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30337   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30338 fi
30339
30340     fi
30341 fi
30342
30343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30344       conftest$ac_exeext conftest.$ac_ext
30345     LIBS="$ac_xsave_LIBS"
30346
30347     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30348     # to get the SysV transport functions.
30349     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30350     # needs -lnsl.
30351     # The nsl library prevents programs from opening the X display
30352     # on Irix 5.2, according to T.E. Dickey.
30353     # The functions gethostbyname, getservbyname, and inet_addr are
30354     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30355     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30356 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30357 if test "${ac_cv_func_gethostbyname+set}" = set; then
30358   echo $ECHO_N "(cached) $ECHO_C" >&6
30359 else
30360   cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30368 #define gethostbyname innocuous_gethostbyname
30369
30370 /* System header to define __stub macros and hopefully few prototypes,
30371     which can conflict with char gethostbyname (); below.
30372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30373     <limits.h> exists even on freestanding compilers.  */
30374
30375 #ifdef __STDC__
30376 # include <limits.h>
30377 #else
30378 # include <assert.h>
30379 #endif
30380
30381 #undef gethostbyname
30382
30383 /* Override any GCC internal prototype to avoid an error.
30384    Use char because int might match the return type of a GCC
30385    builtin and then its argument prototype would still apply.  */
30386 #ifdef __cplusplus
30387 extern "C"
30388 #endif
30389 char gethostbyname ();
30390 /* The GNU C library defines this for functions which it implements
30391     to always fail with ENOSYS.  Some functions are actually named
30392     something starting with __ and the normal name is an alias.  */
30393 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30394 choke me
30395 #endif
30396
30397 int
30398 main ()
30399 {
30400 return gethostbyname ();
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_link") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } && {
30419          test -z "$ac_c_werror_flag" ||
30420          test ! -s conftest.err
30421        } && test -s conftest$ac_exeext &&
30422        $as_test_x conftest$ac_exeext; then
30423   ac_cv_func_gethostbyname=yes
30424 else
30425   echo "$as_me: failed program was:" >&5
30426 sed 's/^/| /' conftest.$ac_ext >&5
30427
30428         ac_cv_func_gethostbyname=no
30429 fi
30430
30431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30432       conftest$ac_exeext conftest.$ac_ext
30433 fi
30434 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30435 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30436
30437     if test $ac_cv_func_gethostbyname = no; then
30438       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30439 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30440 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443   ac_check_lib_save_LIBS=$LIBS
30444 LIBS="-lnsl  $LIBS"
30445 cat >conftest.$ac_ext <<_ACEOF
30446 /* confdefs.h.  */
30447 _ACEOF
30448 cat confdefs.h >>conftest.$ac_ext
30449 cat >>conftest.$ac_ext <<_ACEOF
30450 /* end confdefs.h.  */
30451
30452 /* Override any GCC internal prototype to avoid an error.
30453    Use char because int might match the return type of a GCC
30454    builtin and then its argument prototype would still apply.  */
30455 #ifdef __cplusplus
30456 extern "C"
30457 #endif
30458 char gethostbyname ();
30459 int
30460 main ()
30461 {
30462 return gethostbyname ();
30463   ;
30464   return 0;
30465 }
30466 _ACEOF
30467 rm -f conftest.$ac_objext conftest$ac_exeext
30468 if { (ac_try="$ac_link"
30469 case "(($ac_try" in
30470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471   *) ac_try_echo=$ac_try;;
30472 esac
30473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474   (eval "$ac_link") 2>conftest.er1
30475   ac_status=$?
30476   grep -v '^ *+' conftest.er1 >conftest.err
30477   rm -f conftest.er1
30478   cat conftest.err >&5
30479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480   (exit $ac_status); } && {
30481          test -z "$ac_c_werror_flag" ||
30482          test ! -s conftest.err
30483        } && test -s conftest$ac_exeext &&
30484        $as_test_x conftest$ac_exeext; then
30485   ac_cv_lib_nsl_gethostbyname=yes
30486 else
30487   echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30489
30490         ac_cv_lib_nsl_gethostbyname=no
30491 fi
30492
30493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30494       conftest$ac_exeext conftest.$ac_ext
30495 LIBS=$ac_check_lib_save_LIBS
30496 fi
30497 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30498 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30499 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30500   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30501 fi
30502
30503       if test $ac_cv_lib_nsl_gethostbyname = no; then
30504         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30505 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30506 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30507   echo $ECHO_N "(cached) $ECHO_C" >&6
30508 else
30509   ac_check_lib_save_LIBS=$LIBS
30510 LIBS="-lbsd  $LIBS"
30511 cat >conftest.$ac_ext <<_ACEOF
30512 /* confdefs.h.  */
30513 _ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h.  */
30517
30518 /* Override any GCC internal prototype to avoid an error.
30519    Use char because int might match the return type of a GCC
30520    builtin and then its argument prototype would still apply.  */
30521 #ifdef __cplusplus
30522 extern "C"
30523 #endif
30524 char gethostbyname ();
30525 int
30526 main ()
30527 {
30528 return gethostbyname ();
30529   ;
30530   return 0;
30531 }
30532 _ACEOF
30533 rm -f conftest.$ac_objext conftest$ac_exeext
30534 if { (ac_try="$ac_link"
30535 case "(($ac_try" in
30536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537   *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540   (eval "$ac_link") 2>conftest.er1
30541   ac_status=$?
30542   grep -v '^ *+' conftest.er1 >conftest.err
30543   rm -f conftest.er1
30544   cat conftest.err >&5
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); } && {
30547          test -z "$ac_c_werror_flag" ||
30548          test ! -s conftest.err
30549        } && test -s conftest$ac_exeext &&
30550        $as_test_x conftest$ac_exeext; then
30551   ac_cv_lib_bsd_gethostbyname=yes
30552 else
30553   echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30555
30556         ac_cv_lib_bsd_gethostbyname=no
30557 fi
30558
30559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30560       conftest$ac_exeext conftest.$ac_ext
30561 LIBS=$ac_check_lib_save_LIBS
30562 fi
30563 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30564 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30565 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30566   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30567 fi
30568
30569       fi
30570     fi
30571
30572     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30573     # socket/setsockopt and other routines are undefined under SCO ODT
30574     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30575     # on later versions), says Simon Leinen: it contains gethostby*
30576     # variants that don't use the name server (or something).  -lsocket
30577     # must be given before -lnsl if both are needed.  We assume that
30578     # if connect needs -lnsl, so does gethostbyname.
30579     { echo "$as_me:$LINENO: checking for connect" >&5
30580 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30581 if test "${ac_cv_func_connect+set}" = set; then
30582   echo $ECHO_N "(cached) $ECHO_C" >&6
30583 else
30584   cat >conftest.$ac_ext <<_ACEOF
30585 /* confdefs.h.  */
30586 _ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h.  */
30590 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30592 #define connect innocuous_connect
30593
30594 /* System header to define __stub macros and hopefully few prototypes,
30595     which can conflict with char connect (); below.
30596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30597     <limits.h> exists even on freestanding compilers.  */
30598
30599 #ifdef __STDC__
30600 # include <limits.h>
30601 #else
30602 # include <assert.h>
30603 #endif
30604
30605 #undef connect
30606
30607 /* Override any GCC internal prototype to avoid an error.
30608    Use char because int might match the return type of a GCC
30609    builtin and then its argument prototype would still apply.  */
30610 #ifdef __cplusplus
30611 extern "C"
30612 #endif
30613 char connect ();
30614 /* The GNU C library defines this for functions which it implements
30615     to always fail with ENOSYS.  Some functions are actually named
30616     something starting with __ and the normal name is an alias.  */
30617 #if defined __stub_connect || defined __stub___connect
30618 choke me
30619 #endif
30620
30621 int
30622 main ()
30623 {
30624 return connect ();
30625   ;
30626   return 0;
30627 }
30628 _ACEOF
30629 rm -f conftest.$ac_objext conftest$ac_exeext
30630 if { (ac_try="$ac_link"
30631 case "(($ac_try" in
30632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633   *) ac_try_echo=$ac_try;;
30634 esac
30635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636   (eval "$ac_link") 2>conftest.er1
30637   ac_status=$?
30638   grep -v '^ *+' conftest.er1 >conftest.err
30639   rm -f conftest.er1
30640   cat conftest.err >&5
30641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642   (exit $ac_status); } && {
30643          test -z "$ac_c_werror_flag" ||
30644          test ! -s conftest.err
30645        } && test -s conftest$ac_exeext &&
30646        $as_test_x conftest$ac_exeext; then
30647   ac_cv_func_connect=yes
30648 else
30649   echo "$as_me: failed program was:" >&5
30650 sed 's/^/| /' conftest.$ac_ext >&5
30651
30652         ac_cv_func_connect=no
30653 fi
30654
30655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30656       conftest$ac_exeext conftest.$ac_ext
30657 fi
30658 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30659 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30660
30661     if test $ac_cv_func_connect = no; then
30662       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30663 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30664 if test "${ac_cv_lib_socket_connect+set}" = set; then
30665   echo $ECHO_N "(cached) $ECHO_C" >&6
30666 else
30667   ac_check_lib_save_LIBS=$LIBS
30668 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30669 cat >conftest.$ac_ext <<_ACEOF
30670 /* confdefs.h.  */
30671 _ACEOF
30672 cat confdefs.h >>conftest.$ac_ext
30673 cat >>conftest.$ac_ext <<_ACEOF
30674 /* end confdefs.h.  */
30675
30676 /* Override any GCC internal prototype to avoid an error.
30677    Use char because int might match the return type of a GCC
30678    builtin and then its argument prototype would still apply.  */
30679 #ifdef __cplusplus
30680 extern "C"
30681 #endif
30682 char connect ();
30683 int
30684 main ()
30685 {
30686 return connect ();
30687   ;
30688   return 0;
30689 }
30690 _ACEOF
30691 rm -f conftest.$ac_objext conftest$ac_exeext
30692 if { (ac_try="$ac_link"
30693 case "(($ac_try" in
30694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30695   *) ac_try_echo=$ac_try;;
30696 esac
30697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30698   (eval "$ac_link") 2>conftest.er1
30699   ac_status=$?
30700   grep -v '^ *+' conftest.er1 >conftest.err
30701   rm -f conftest.er1
30702   cat conftest.err >&5
30703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704   (exit $ac_status); } && {
30705          test -z "$ac_c_werror_flag" ||
30706          test ! -s conftest.err
30707        } && test -s conftest$ac_exeext &&
30708        $as_test_x conftest$ac_exeext; then
30709   ac_cv_lib_socket_connect=yes
30710 else
30711   echo "$as_me: failed program was:" >&5
30712 sed 's/^/| /' conftest.$ac_ext >&5
30713
30714         ac_cv_lib_socket_connect=no
30715 fi
30716
30717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30718       conftest$ac_exeext conftest.$ac_ext
30719 LIBS=$ac_check_lib_save_LIBS
30720 fi
30721 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30722 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30723 if test $ac_cv_lib_socket_connect = yes; then
30724   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30725 fi
30726
30727     fi
30728
30729     # Guillermo Gomez says -lposix is necessary on A/UX.
30730     { echo "$as_me:$LINENO: checking for remove" >&5
30731 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30732 if test "${ac_cv_func_remove+set}" = set; then
30733   echo $ECHO_N "(cached) $ECHO_C" >&6
30734 else
30735   cat >conftest.$ac_ext <<_ACEOF
30736 /* confdefs.h.  */
30737 _ACEOF
30738 cat confdefs.h >>conftest.$ac_ext
30739 cat >>conftest.$ac_ext <<_ACEOF
30740 /* end confdefs.h.  */
30741 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30743 #define remove innocuous_remove
30744
30745 /* System header to define __stub macros and hopefully few prototypes,
30746     which can conflict with char remove (); below.
30747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30748     <limits.h> exists even on freestanding compilers.  */
30749
30750 #ifdef __STDC__
30751 # include <limits.h>
30752 #else
30753 # include <assert.h>
30754 #endif
30755
30756 #undef remove
30757
30758 /* Override any GCC internal prototype to avoid an error.
30759    Use char because int might match the return type of a GCC
30760    builtin and then its argument prototype would still apply.  */
30761 #ifdef __cplusplus
30762 extern "C"
30763 #endif
30764 char remove ();
30765 /* The GNU C library defines this for functions which it implements
30766     to always fail with ENOSYS.  Some functions are actually named
30767     something starting with __ and the normal name is an alias.  */
30768 #if defined __stub_remove || defined __stub___remove
30769 choke me
30770 #endif
30771
30772 int
30773 main ()
30774 {
30775 return remove ();
30776   ;
30777   return 0;
30778 }
30779 _ACEOF
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (ac_try="$ac_link"
30782 case "(($ac_try" in
30783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784   *) ac_try_echo=$ac_try;;
30785 esac
30786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30787   (eval "$ac_link") 2>conftest.er1
30788   ac_status=$?
30789   grep -v '^ *+' conftest.er1 >conftest.err
30790   rm -f conftest.er1
30791   cat conftest.err >&5
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); } && {
30794          test -z "$ac_c_werror_flag" ||
30795          test ! -s conftest.err
30796        } && test -s conftest$ac_exeext &&
30797        $as_test_x conftest$ac_exeext; then
30798   ac_cv_func_remove=yes
30799 else
30800   echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803         ac_cv_func_remove=no
30804 fi
30805
30806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30807       conftest$ac_exeext conftest.$ac_ext
30808 fi
30809 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30810 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30811
30812     if test $ac_cv_func_remove = no; then
30813       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30814 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30815 if test "${ac_cv_lib_posix_remove+set}" = set; then
30816   echo $ECHO_N "(cached) $ECHO_C" >&6
30817 else
30818   ac_check_lib_save_LIBS=$LIBS
30819 LIBS="-lposix  $LIBS"
30820 cat >conftest.$ac_ext <<_ACEOF
30821 /* confdefs.h.  */
30822 _ACEOF
30823 cat confdefs.h >>conftest.$ac_ext
30824 cat >>conftest.$ac_ext <<_ACEOF
30825 /* end confdefs.h.  */
30826
30827 /* Override any GCC internal prototype to avoid an error.
30828    Use char because int might match the return type of a GCC
30829    builtin and then its argument prototype would still apply.  */
30830 #ifdef __cplusplus
30831 extern "C"
30832 #endif
30833 char remove ();
30834 int
30835 main ()
30836 {
30837 return remove ();
30838   ;
30839   return 0;
30840 }
30841 _ACEOF
30842 rm -f conftest.$ac_objext conftest$ac_exeext
30843 if { (ac_try="$ac_link"
30844 case "(($ac_try" in
30845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846   *) ac_try_echo=$ac_try;;
30847 esac
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849   (eval "$ac_link") 2>conftest.er1
30850   ac_status=$?
30851   grep -v '^ *+' conftest.er1 >conftest.err
30852   rm -f conftest.er1
30853   cat conftest.err >&5
30854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855   (exit $ac_status); } && {
30856          test -z "$ac_c_werror_flag" ||
30857          test ! -s conftest.err
30858        } && test -s conftest$ac_exeext &&
30859        $as_test_x conftest$ac_exeext; then
30860   ac_cv_lib_posix_remove=yes
30861 else
30862   echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30864
30865         ac_cv_lib_posix_remove=no
30866 fi
30867
30868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30869       conftest$ac_exeext conftest.$ac_ext
30870 LIBS=$ac_check_lib_save_LIBS
30871 fi
30872 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30873 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30874 if test $ac_cv_lib_posix_remove = yes; then
30875   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30876 fi
30877
30878     fi
30879
30880     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30881     { echo "$as_me:$LINENO: checking for shmat" >&5
30882 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30883 if test "${ac_cv_func_shmat+set}" = set; then
30884   echo $ECHO_N "(cached) $ECHO_C" >&6
30885 else
30886   cat >conftest.$ac_ext <<_ACEOF
30887 /* confdefs.h.  */
30888 _ACEOF
30889 cat confdefs.h >>conftest.$ac_ext
30890 cat >>conftest.$ac_ext <<_ACEOF
30891 /* end confdefs.h.  */
30892 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30894 #define shmat innocuous_shmat
30895
30896 /* System header to define __stub macros and hopefully few prototypes,
30897     which can conflict with char shmat (); below.
30898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30899     <limits.h> exists even on freestanding compilers.  */
30900
30901 #ifdef __STDC__
30902 # include <limits.h>
30903 #else
30904 # include <assert.h>
30905 #endif
30906
30907 #undef shmat
30908
30909 /* Override any GCC internal prototype to avoid an error.
30910    Use char because int might match the return type of a GCC
30911    builtin and then its argument prototype would still apply.  */
30912 #ifdef __cplusplus
30913 extern "C"
30914 #endif
30915 char shmat ();
30916 /* The GNU C library defines this for functions which it implements
30917     to always fail with ENOSYS.  Some functions are actually named
30918     something starting with __ and the normal name is an alias.  */
30919 #if defined __stub_shmat || defined __stub___shmat
30920 choke me
30921 #endif
30922
30923 int
30924 main ()
30925 {
30926 return shmat ();
30927   ;
30928   return 0;
30929 }
30930 _ACEOF
30931 rm -f conftest.$ac_objext conftest$ac_exeext
30932 if { (ac_try="$ac_link"
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_link") 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); } && {
30945          test -z "$ac_c_werror_flag" ||
30946          test ! -s conftest.err
30947        } && test -s conftest$ac_exeext &&
30948        $as_test_x conftest$ac_exeext; then
30949   ac_cv_func_shmat=yes
30950 else
30951   echo "$as_me: failed program was:" >&5
30952 sed 's/^/| /' conftest.$ac_ext >&5
30953
30954         ac_cv_func_shmat=no
30955 fi
30956
30957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30958       conftest$ac_exeext conftest.$ac_ext
30959 fi
30960 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30961 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30962
30963     if test $ac_cv_func_shmat = no; then
30964       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30965 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30966 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30967   echo $ECHO_N "(cached) $ECHO_C" >&6
30968 else
30969   ac_check_lib_save_LIBS=$LIBS
30970 LIBS="-lipc  $LIBS"
30971 cat >conftest.$ac_ext <<_ACEOF
30972 /* confdefs.h.  */
30973 _ACEOF
30974 cat confdefs.h >>conftest.$ac_ext
30975 cat >>conftest.$ac_ext <<_ACEOF
30976 /* end confdefs.h.  */
30977
30978 /* Override any GCC internal prototype to avoid an error.
30979    Use char because int might match the return type of a GCC
30980    builtin and then its argument prototype would still apply.  */
30981 #ifdef __cplusplus
30982 extern "C"
30983 #endif
30984 char shmat ();
30985 int
30986 main ()
30987 {
30988 return shmat ();
30989   ;
30990   return 0;
30991 }
30992 _ACEOF
30993 rm -f conftest.$ac_objext conftest$ac_exeext
30994 if { (ac_try="$ac_link"
30995 case "(($ac_try" in
30996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997   *) ac_try_echo=$ac_try;;
30998 esac
30999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000   (eval "$ac_link") 2>conftest.er1
31001   ac_status=$?
31002   grep -v '^ *+' conftest.er1 >conftest.err
31003   rm -f conftest.er1
31004   cat conftest.err >&5
31005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006   (exit $ac_status); } && {
31007          test -z "$ac_c_werror_flag" ||
31008          test ! -s conftest.err
31009        } && test -s conftest$ac_exeext &&
31010        $as_test_x conftest$ac_exeext; then
31011   ac_cv_lib_ipc_shmat=yes
31012 else
31013   echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016         ac_cv_lib_ipc_shmat=no
31017 fi
31018
31019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31020       conftest$ac_exeext conftest.$ac_ext
31021 LIBS=$ac_check_lib_save_LIBS
31022 fi
31023 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31024 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31025 if test $ac_cv_lib_ipc_shmat = yes; then
31026   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31027 fi
31028
31029     fi
31030   fi
31031
31032   # Check for libraries that X11R6 Xt/Xaw programs need.
31033   ac_save_LDFLAGS=$LDFLAGS
31034   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31035   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31036   # check for ICE first), but we must link in the order -lSM -lICE or
31037   # we get undefined symbols.  So assume we have SM if we have ICE.
31038   # These have to be linked with before -lX11, unlike the other
31039   # libraries we check for below, so use a different variable.
31040   # John Interrante, Karl Berry
31041   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31042 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31043 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31044   echo $ECHO_N "(cached) $ECHO_C" >&6
31045 else
31046   ac_check_lib_save_LIBS=$LIBS
31047 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31048 cat >conftest.$ac_ext <<_ACEOF
31049 /* confdefs.h.  */
31050 _ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h.  */
31054
31055 /* Override any GCC internal prototype to avoid an error.
31056    Use char because int might match the return type of a GCC
31057    builtin and then its argument prototype would still apply.  */
31058 #ifdef __cplusplus
31059 extern "C"
31060 #endif
31061 char IceConnectionNumber ();
31062 int
31063 main ()
31064 {
31065 return IceConnectionNumber ();
31066   ;
31067   return 0;
31068 }
31069 _ACEOF
31070 rm -f conftest.$ac_objext conftest$ac_exeext
31071 if { (ac_try="$ac_link"
31072 case "(($ac_try" in
31073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074   *) ac_try_echo=$ac_try;;
31075 esac
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077   (eval "$ac_link") 2>conftest.er1
31078   ac_status=$?
31079   grep -v '^ *+' conftest.er1 >conftest.err
31080   rm -f conftest.er1
31081   cat conftest.err >&5
31082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083   (exit $ac_status); } && {
31084          test -z "$ac_c_werror_flag" ||
31085          test ! -s conftest.err
31086        } && test -s conftest$ac_exeext &&
31087        $as_test_x conftest$ac_exeext; then
31088   ac_cv_lib_ICE_IceConnectionNumber=yes
31089 else
31090   echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.$ac_ext >&5
31092
31093         ac_cv_lib_ICE_IceConnectionNumber=no
31094 fi
31095
31096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31097       conftest$ac_exeext conftest.$ac_ext
31098 LIBS=$ac_check_lib_save_LIBS
31099 fi
31100 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31101 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31102 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31103   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31104 fi
31105
31106   LDFLAGS=$ac_save_LDFLAGS
31107
31108 fi
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140 for ac_header in \
31141    assert.h \
31142    fcntl.h \
31143    grp.h \
31144    pwd.h \
31145    libc.h \
31146    limits.h \
31147    stdarg.h \
31148    stdlib.h \
31149    stdint.h \
31150    string.h \
31151    strings.h \
31152    termios.h \
31153    termcap.h \
31154    term.h \
31155    unistd.h \
31156    sys/bitypes.h \
31157    sys/byteorder.h \
31158    sys/ioctl.h \
31159    sys/select.h \
31160    sys/socket.h \
31161    sys/sockio.h \
31162    sys/stat.h \
31163    sys/time.h \
31164    sys/types.h \
31165    arpa/nameser.h \
31166    mtio.h \
31167    sys/mtio.h \
31168    sys/tape.h \
31169    regex.h \
31170
31171 do
31172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31177   echo $ECHO_N "(cached) $ECHO_C" >&6
31178 fi
31179 ac_res=`eval echo '${'$as_ac_Header'}'`
31180                { echo "$as_me:$LINENO: result: $ac_res" >&5
31181 echo "${ECHO_T}$ac_res" >&6; }
31182 else
31183   # Is the header compilable?
31184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31186 cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h.  */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h.  */
31192 $ac_includes_default
31193 #include <$ac_header>
31194 _ACEOF
31195 rm -f conftest.$ac_objext
31196 if { (ac_try="$ac_compile"
31197 case "(($ac_try" in
31198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199   *) ac_try_echo=$ac_try;;
31200 esac
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202   (eval "$ac_compile") 2>conftest.er1
31203   ac_status=$?
31204   grep -v '^ *+' conftest.er1 >conftest.err
31205   rm -f conftest.er1
31206   cat conftest.err >&5
31207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208   (exit $ac_status); } && {
31209          test -z "$ac_c_werror_flag" ||
31210          test ! -s conftest.err
31211        } && test -s conftest.$ac_objext; then
31212   ac_header_compiler=yes
31213 else
31214   echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217         ac_header_compiler=no
31218 fi
31219
31220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31222 echo "${ECHO_T}$ac_header_compiler" >&6; }
31223
31224 # Is the header present?
31225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31227 cat >conftest.$ac_ext <<_ACEOF
31228 /* confdefs.h.  */
31229 _ACEOF
31230 cat confdefs.h >>conftest.$ac_ext
31231 cat >>conftest.$ac_ext <<_ACEOF
31232 /* end confdefs.h.  */
31233 #include <$ac_header>
31234 _ACEOF
31235 if { (ac_try="$ac_cpp conftest.$ac_ext"
31236 case "(($ac_try" in
31237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31238   *) ac_try_echo=$ac_try;;
31239 esac
31240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31242   ac_status=$?
31243   grep -v '^ *+' conftest.er1 >conftest.err
31244   rm -f conftest.er1
31245   cat conftest.err >&5
31246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247   (exit $ac_status); } >/dev/null && {
31248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31249          test ! -s conftest.err
31250        }; then
31251   ac_header_preproc=yes
31252 else
31253   echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31255
31256   ac_header_preproc=no
31257 fi
31258
31259 rm -f conftest.err conftest.$ac_ext
31260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31261 echo "${ECHO_T}$ac_header_preproc" >&6; }
31262
31263 # So?  What about this header?
31264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31265   yes:no: )
31266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31270     ac_header_preproc=yes
31271     ;;
31272   no:yes:* )
31273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31285
31286     ;;
31287 esac
31288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31291   echo $ECHO_N "(cached) $ECHO_C" >&6
31292 else
31293   eval "$as_ac_Header=\$ac_header_preproc"
31294 fi
31295 ac_res=`eval echo '${'$as_ac_Header'}'`
31296                { echo "$as_me:$LINENO: result: $ac_res" >&5
31297 echo "${ECHO_T}$ac_res" >&6; }
31298
31299 fi
31300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31301   cat >>confdefs.h <<_ACEOF
31302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31303 _ACEOF
31304
31305 fi
31306
31307 done
31308
31309 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31310 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31311 if test "${ac_cv_header_stdc+set}" = set; then
31312   echo $ECHO_N "(cached) $ECHO_C" >&6
31313 else
31314   cat >conftest.$ac_ext <<_ACEOF
31315 /* confdefs.h.  */
31316 _ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h.  */
31320 #include <stdlib.h>
31321 #include <stdarg.h>
31322 #include <string.h>
31323 #include <float.h>
31324
31325 int
31326 main ()
31327 {
31328
31329   ;
31330   return 0;
31331 }
31332 _ACEOF
31333 rm -f conftest.$ac_objext
31334 if { (ac_try="$ac_compile"
31335 case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_compile") 2>conftest.er1
31341   ac_status=$?
31342   grep -v '^ *+' conftest.er1 >conftest.err
31343   rm -f conftest.er1
31344   cat conftest.err >&5
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); } && {
31347          test -z "$ac_c_werror_flag" ||
31348          test ! -s conftest.err
31349        } && test -s conftest.$ac_objext; then
31350   ac_cv_header_stdc=yes
31351 else
31352   echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31354
31355         ac_cv_header_stdc=no
31356 fi
31357
31358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31359
31360 if test $ac_cv_header_stdc = yes; then
31361   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31362   cat >conftest.$ac_ext <<_ACEOF
31363 /* confdefs.h.  */
31364 _ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h.  */
31368 #include <string.h>
31369
31370 _ACEOF
31371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31372   $EGREP "memchr" >/dev/null 2>&1; then
31373   :
31374 else
31375   ac_cv_header_stdc=no
31376 fi
31377 rm -f conftest*
31378
31379 fi
31380
31381 if test $ac_cv_header_stdc = yes; then
31382   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 #include <stdlib.h>
31390
31391 _ACEOF
31392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31393   $EGREP "free" >/dev/null 2>&1; then
31394   :
31395 else
31396   ac_cv_header_stdc=no
31397 fi
31398 rm -f conftest*
31399
31400 fi
31401
31402 if test $ac_cv_header_stdc = yes; then
31403   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31404   if test "$cross_compiling" = yes; then
31405   :
31406 else
31407   cat >conftest.$ac_ext <<_ACEOF
31408 /* confdefs.h.  */
31409 _ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h.  */
31413 #include <ctype.h>
31414 #include <stdlib.h>
31415 #if ((' ' & 0x0FF) == 0x020)
31416 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31417 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31418 #else
31419 # define ISLOWER(c) \
31420                    (('a' <= (c) && (c) <= 'i') \
31421                      || ('j' <= (c) && (c) <= 'r') \
31422                      || ('s' <= (c) && (c) <= 'z'))
31423 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31424 #endif
31425
31426 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31427 int
31428 main ()
31429 {
31430   int i;
31431   for (i = 0; i < 256; i++)
31432     if (XOR (islower (i), ISLOWER (i))
31433         || toupper (i) != TOUPPER (i))
31434       return 2;
31435   return 0;
31436 }
31437 _ACEOF
31438 rm -f conftest$ac_exeext
31439 if { (ac_try="$ac_link"
31440 case "(($ac_try" in
31441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442   *) ac_try_echo=$ac_try;;
31443 esac
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445   (eval "$ac_link") 2>&5
31446   ac_status=$?
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31449   { (case "(($ac_try" in
31450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451   *) ac_try_echo=$ac_try;;
31452 esac
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454   (eval "$ac_try") 2>&5
31455   ac_status=$?
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); }; }; then
31458   :
31459 else
31460   echo "$as_me: program exited with status $ac_status" >&5
31461 echo "$as_me: failed program was:" >&5
31462 sed 's/^/| /' conftest.$ac_ext >&5
31463
31464 ( exit $ac_status )
31465 ac_cv_header_stdc=no
31466 fi
31467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31468 fi
31469
31470
31471 fi
31472 fi
31473 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31474 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31475 if test $ac_cv_header_stdc = yes; then
31476
31477 cat >>confdefs.h <<\_ACEOF
31478 #define STDC_HEADERS 1
31479 _ACEOF
31480
31481 fi
31482
31483 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31484 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31485 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31486   echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488   cat >conftest.$ac_ext <<_ACEOF
31489 /* confdefs.h.  */
31490 _ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h.  */
31494 #include <sys/types.h>
31495 int
31496 main ()
31497 {
31498 return makedev(0, 0);
31499   ;
31500   return 0;
31501 }
31502 _ACEOF
31503 rm -f conftest.$ac_objext conftest$ac_exeext
31504 if { (ac_try="$ac_link"
31505 case "(($ac_try" in
31506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31507   *) ac_try_echo=$ac_try;;
31508 esac
31509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31510   (eval "$ac_link") 2>conftest.er1
31511   ac_status=$?
31512   grep -v '^ *+' conftest.er1 >conftest.err
31513   rm -f conftest.er1
31514   cat conftest.err >&5
31515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516   (exit $ac_status); } && {
31517          test -z "$ac_c_werror_flag" ||
31518          test ! -s conftest.err
31519        } && test -s conftest$ac_exeext &&
31520        $as_test_x conftest$ac_exeext; then
31521   ac_cv_header_sys_types_h_makedev=yes
31522 else
31523   echo "$as_me: failed program was:" >&5
31524 sed 's/^/| /' conftest.$ac_ext >&5
31525
31526         ac_cv_header_sys_types_h_makedev=no
31527 fi
31528
31529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31530       conftest$ac_exeext conftest.$ac_ext
31531
31532 fi
31533 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31534 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31535
31536 if test $ac_cv_header_sys_types_h_makedev = no; then
31537 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31538   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31539 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31540 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31541   echo $ECHO_N "(cached) $ECHO_C" >&6
31542 fi
31543 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31544 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31545 else
31546   # Is the header compilable?
31547 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31548 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31549 cat >conftest.$ac_ext <<_ACEOF
31550 /* confdefs.h.  */
31551 _ACEOF
31552 cat confdefs.h >>conftest.$ac_ext
31553 cat >>conftest.$ac_ext <<_ACEOF
31554 /* end confdefs.h.  */
31555 $ac_includes_default
31556 #include <sys/mkdev.h>
31557 _ACEOF
31558 rm -f conftest.$ac_objext
31559 if { (ac_try="$ac_compile"
31560 case "(($ac_try" in
31561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562   *) ac_try_echo=$ac_try;;
31563 esac
31564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565   (eval "$ac_compile") 2>conftest.er1
31566   ac_status=$?
31567   grep -v '^ *+' conftest.er1 >conftest.err
31568   rm -f conftest.er1
31569   cat conftest.err >&5
31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571   (exit $ac_status); } && {
31572          test -z "$ac_c_werror_flag" ||
31573          test ! -s conftest.err
31574        } && test -s conftest.$ac_objext; then
31575   ac_header_compiler=yes
31576 else
31577   echo "$as_me: failed program was:" >&5
31578 sed 's/^/| /' conftest.$ac_ext >&5
31579
31580         ac_header_compiler=no
31581 fi
31582
31583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31585 echo "${ECHO_T}$ac_header_compiler" >&6; }
31586
31587 # Is the header present?
31588 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31589 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31590 cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h.  */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h.  */
31596 #include <sys/mkdev.h>
31597 _ACEOF
31598 if { (ac_try="$ac_cpp conftest.$ac_ext"
31599 case "(($ac_try" in
31600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31601   *) ac_try_echo=$ac_try;;
31602 esac
31603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31605   ac_status=$?
31606   grep -v '^ *+' conftest.er1 >conftest.err
31607   rm -f conftest.er1
31608   cat conftest.err >&5
31609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610   (exit $ac_status); } >/dev/null && {
31611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31612          test ! -s conftest.err
31613        }; then
31614   ac_header_preproc=yes
31615 else
31616   echo "$as_me: failed program was:" >&5
31617 sed 's/^/| /' conftest.$ac_ext >&5
31618
31619   ac_header_preproc=no
31620 fi
31621
31622 rm -f conftest.err conftest.$ac_ext
31623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31624 echo "${ECHO_T}$ac_header_preproc" >&6; }
31625
31626 # So?  What about this header?
31627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31628   yes:no: )
31629     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31630 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31631     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31632 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31633     ac_header_preproc=yes
31634     ;;
31635   no:yes:* )
31636     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31637 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31638     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31639 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31640     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31641 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31642     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31643 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31644     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31645 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31646     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31647 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31648
31649     ;;
31650 esac
31651 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31652 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31653 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31654   echo $ECHO_N "(cached) $ECHO_C" >&6
31655 else
31656   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31657 fi
31658 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31659 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31660
31661 fi
31662 if test $ac_cv_header_sys_mkdev_h = yes; then
31663
31664 cat >>confdefs.h <<\_ACEOF
31665 #define MAJOR_IN_MKDEV 1
31666 _ACEOF
31667
31668 fi
31669
31670
31671
31672   if test $ac_cv_header_sys_mkdev_h = no; then
31673     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31674   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31675 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31676 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31677   echo $ECHO_N "(cached) $ECHO_C" >&6
31678 fi
31679 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31680 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31681 else
31682   # Is the header compilable?
31683 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31684 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31685 cat >conftest.$ac_ext <<_ACEOF
31686 /* confdefs.h.  */
31687 _ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h.  */
31691 $ac_includes_default
31692 #include <sys/sysmacros.h>
31693 _ACEOF
31694 rm -f conftest.$ac_objext
31695 if { (ac_try="$ac_compile"
31696 case "(($ac_try" in
31697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31698   *) ac_try_echo=$ac_try;;
31699 esac
31700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701   (eval "$ac_compile") 2>conftest.er1
31702   ac_status=$?
31703   grep -v '^ *+' conftest.er1 >conftest.err
31704   rm -f conftest.er1
31705   cat conftest.err >&5
31706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707   (exit $ac_status); } && {
31708          test -z "$ac_c_werror_flag" ||
31709          test ! -s conftest.err
31710        } && test -s conftest.$ac_objext; then
31711   ac_header_compiler=yes
31712 else
31713   echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31715
31716         ac_header_compiler=no
31717 fi
31718
31719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31721 echo "${ECHO_T}$ac_header_compiler" >&6; }
31722
31723 # Is the header present?
31724 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31725 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31726 cat >conftest.$ac_ext <<_ACEOF
31727 /* confdefs.h.  */
31728 _ACEOF
31729 cat confdefs.h >>conftest.$ac_ext
31730 cat >>conftest.$ac_ext <<_ACEOF
31731 /* end confdefs.h.  */
31732 #include <sys/sysmacros.h>
31733 _ACEOF
31734 if { (ac_try="$ac_cpp conftest.$ac_ext"
31735 case "(($ac_try" in
31736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737   *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31741   ac_status=$?
31742   grep -v '^ *+' conftest.er1 >conftest.err
31743   rm -f conftest.er1
31744   cat conftest.err >&5
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); } >/dev/null && {
31747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31748          test ! -s conftest.err
31749        }; then
31750   ac_header_preproc=yes
31751 else
31752   echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755   ac_header_preproc=no
31756 fi
31757
31758 rm -f conftest.err conftest.$ac_ext
31759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31760 echo "${ECHO_T}$ac_header_preproc" >&6; }
31761
31762 # So?  What about this header?
31763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31764   yes:no: )
31765     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31766 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31767     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31768 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31769     ac_header_preproc=yes
31770     ;;
31771   no:yes:* )
31772     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31773 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31774     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31775 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31776     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31777 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31778     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31779 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31780     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31781 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31782     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31783 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31784
31785     ;;
31786 esac
31787 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31788 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31789 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31790   echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31793 fi
31794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31795 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31796
31797 fi
31798 if test $ac_cv_header_sys_sysmacros_h = yes; then
31799
31800 cat >>confdefs.h <<\_ACEOF
31801 #define MAJOR_IN_SYSMACROS 1
31802 _ACEOF
31803
31804 fi
31805
31806
31807   fi
31808 fi
31809
31810
31811
31812
31813
31814
31815 ac_header_dirent=no
31816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31817   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31818 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31819 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31821   echo $ECHO_N "(cached) $ECHO_C" >&6
31822 else
31823   cat >conftest.$ac_ext <<_ACEOF
31824 /* confdefs.h.  */
31825 _ACEOF
31826 cat confdefs.h >>conftest.$ac_ext
31827 cat >>conftest.$ac_ext <<_ACEOF
31828 /* end confdefs.h.  */
31829 #include <sys/types.h>
31830 #include <$ac_hdr>
31831
31832 int
31833 main ()
31834 {
31835 if ((DIR *) 0)
31836 return 0;
31837   ;
31838   return 0;
31839 }
31840 _ACEOF
31841 rm -f conftest.$ac_objext
31842 if { (ac_try="$ac_compile"
31843 case "(($ac_try" in
31844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845   *) ac_try_echo=$ac_try;;
31846 esac
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848   (eval "$ac_compile") 2>conftest.er1
31849   ac_status=$?
31850   grep -v '^ *+' conftest.er1 >conftest.err
31851   rm -f conftest.er1
31852   cat conftest.err >&5
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); } && {
31855          test -z "$ac_c_werror_flag" ||
31856          test ! -s conftest.err
31857        } && test -s conftest.$ac_objext; then
31858   eval "$as_ac_Header=yes"
31859 else
31860   echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31862
31863         eval "$as_ac_Header=no"
31864 fi
31865
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31867 fi
31868 ac_res=`eval echo '${'$as_ac_Header'}'`
31869                { echo "$as_me:$LINENO: result: $ac_res" >&5
31870 echo "${ECHO_T}$ac_res" >&6; }
31871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31872   cat >>confdefs.h <<_ACEOF
31873 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31874 _ACEOF
31875
31876 ac_header_dirent=$ac_hdr; break
31877 fi
31878
31879 done
31880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31881 if test $ac_header_dirent = dirent.h; then
31882   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31884 if test "${ac_cv_search_opendir+set}" = set; then
31885   echo $ECHO_N "(cached) $ECHO_C" >&6
31886 else
31887   ac_func_search_save_LIBS=$LIBS
31888 cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894
31895 /* Override any GCC internal prototype to avoid an error.
31896    Use char because int might match the return type of a GCC
31897    builtin and then its argument prototype would still apply.  */
31898 #ifdef __cplusplus
31899 extern "C"
31900 #endif
31901 char opendir ();
31902 int
31903 main ()
31904 {
31905 return opendir ();
31906   ;
31907   return 0;
31908 }
31909 _ACEOF
31910 for ac_lib in '' dir; do
31911   if test -z "$ac_lib"; then
31912     ac_res="none required"
31913   else
31914     ac_res=-l$ac_lib
31915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31916   fi
31917   rm -f conftest.$ac_objext conftest$ac_exeext
31918 if { (ac_try="$ac_link"
31919 case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_link") 2>conftest.er1
31925   ac_status=$?
31926   grep -v '^ *+' conftest.er1 >conftest.err
31927   rm -f conftest.er1
31928   cat conftest.err >&5
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); } && {
31931          test -z "$ac_c_werror_flag" ||
31932          test ! -s conftest.err
31933        } && test -s conftest$ac_exeext &&
31934        $as_test_x conftest$ac_exeext; then
31935   ac_cv_search_opendir=$ac_res
31936 else
31937   echo "$as_me: failed program was:" >&5
31938 sed 's/^/| /' conftest.$ac_ext >&5
31939
31940
31941 fi
31942
31943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31944       conftest$ac_exeext
31945   if test "${ac_cv_search_opendir+set}" = set; then
31946   break
31947 fi
31948 done
31949 if test "${ac_cv_search_opendir+set}" = set; then
31950   :
31951 else
31952   ac_cv_search_opendir=no
31953 fi
31954 rm conftest.$ac_ext
31955 LIBS=$ac_func_search_save_LIBS
31956 fi
31957 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31958 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31959 ac_res=$ac_cv_search_opendir
31960 if test "$ac_res" != no; then
31961   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31962
31963 fi
31964
31965 else
31966   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31967 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31968 if test "${ac_cv_search_opendir+set}" = set; then
31969   echo $ECHO_N "(cached) $ECHO_C" >&6
31970 else
31971   ac_func_search_save_LIBS=$LIBS
31972 cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978
31979 /* Override any GCC internal prototype to avoid an error.
31980    Use char because int might match the return type of a GCC
31981    builtin and then its argument prototype would still apply.  */
31982 #ifdef __cplusplus
31983 extern "C"
31984 #endif
31985 char opendir ();
31986 int
31987 main ()
31988 {
31989 return opendir ();
31990   ;
31991   return 0;
31992 }
31993 _ACEOF
31994 for ac_lib in '' x; do
31995   if test -z "$ac_lib"; then
31996     ac_res="none required"
31997   else
31998     ac_res=-l$ac_lib
31999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32000   fi
32001   rm -f conftest.$ac_objext conftest$ac_exeext
32002 if { (ac_try="$ac_link"
32003 case "(($ac_try" in
32004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005   *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008   (eval "$ac_link") 2>conftest.er1
32009   ac_status=$?
32010   grep -v '^ *+' conftest.er1 >conftest.err
32011   rm -f conftest.er1
32012   cat conftest.err >&5
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); } && {
32015          test -z "$ac_c_werror_flag" ||
32016          test ! -s conftest.err
32017        } && test -s conftest$ac_exeext &&
32018        $as_test_x conftest$ac_exeext; then
32019   ac_cv_search_opendir=$ac_res
32020 else
32021   echo "$as_me: failed program was:" >&5
32022 sed 's/^/| /' conftest.$ac_ext >&5
32023
32024
32025 fi
32026
32027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32028       conftest$ac_exeext
32029   if test "${ac_cv_search_opendir+set}" = set; then
32030   break
32031 fi
32032 done
32033 if test "${ac_cv_search_opendir+set}" = set; then
32034   :
32035 else
32036   ac_cv_search_opendir=no
32037 fi
32038 rm conftest.$ac_ext
32039 LIBS=$ac_func_search_save_LIBS
32040 fi
32041 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32042 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32043 ac_res=$ac_cv_search_opendir
32044 if test "$ac_res" != no; then
32045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32046
32047 fi
32048
32049 fi
32050
32051 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32052 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32053 if test "${ac_cv_header_stat_broken+set}" = set; then
32054   echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32056   cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h.  */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h.  */
32062 #include <sys/types.h>
32063 #include <sys/stat.h>
32064
32065 #if defined S_ISBLK && defined S_IFDIR
32066 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32067 #endif
32068
32069 #if defined S_ISBLK && defined S_IFCHR
32070 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32071 #endif
32072
32073 #if defined S_ISLNK && defined S_IFREG
32074 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32075 #endif
32076
32077 #if defined S_ISSOCK && defined S_IFREG
32078 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32079 #endif
32080
32081 _ACEOF
32082 rm -f conftest.$ac_objext
32083 if { (ac_try="$ac_compile"
32084 case "(($ac_try" in
32085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086   *) ac_try_echo=$ac_try;;
32087 esac
32088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089   (eval "$ac_compile") 2>conftest.er1
32090   ac_status=$?
32091   grep -v '^ *+' conftest.er1 >conftest.err
32092   rm -f conftest.er1
32093   cat conftest.err >&5
32094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095   (exit $ac_status); } && {
32096          test -z "$ac_c_werror_flag" ||
32097          test ! -s conftest.err
32098        } && test -s conftest.$ac_objext; then
32099   ac_cv_header_stat_broken=no
32100 else
32101   echo "$as_me: failed program was:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32103
32104         ac_cv_header_stat_broken=yes
32105 fi
32106
32107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32108 fi
32109 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32110 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32111 if test $ac_cv_header_stat_broken = yes; then
32112
32113 cat >>confdefs.h <<\_ACEOF
32114 #define STAT_MACROS_BROKEN 1
32115 _ACEOF
32116
32117 fi
32118
32119 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32120 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32121 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32122   echo $ECHO_N "(cached) $ECHO_C" >&6
32123 else
32124   cat >conftest.$ac_ext <<_ACEOF
32125 /* confdefs.h.  */
32126 _ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h.  */
32130 #include <sys/types.h>
32131 #include <sys/wait.h>
32132 #ifndef WEXITSTATUS
32133 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32134 #endif
32135 #ifndef WIFEXITED
32136 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32137 #endif
32138
32139 int
32140 main ()
32141 {
32142   int s;
32143   wait (&s);
32144   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32145   ;
32146   return 0;
32147 }
32148 _ACEOF
32149 rm -f conftest.$ac_objext
32150 if { (ac_try="$ac_compile"
32151 case "(($ac_try" in
32152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153   *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156   (eval "$ac_compile") 2>conftest.er1
32157   ac_status=$?
32158   grep -v '^ *+' conftest.er1 >conftest.err
32159   rm -f conftest.er1
32160   cat conftest.err >&5
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); } && {
32163          test -z "$ac_c_werror_flag" ||
32164          test ! -s conftest.err
32165        } && test -s conftest.$ac_objext; then
32166   ac_cv_header_sys_wait_h=yes
32167 else
32168   echo "$as_me: failed program was:" >&5
32169 sed 's/^/| /' conftest.$ac_ext >&5
32170
32171         ac_cv_header_sys_wait_h=no
32172 fi
32173
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175 fi
32176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32177 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32178 if test $ac_cv_header_sys_wait_h = yes; then
32179
32180 cat >>confdefs.h <<\_ACEOF
32181 #define HAVE_SYS_WAIT_H 1
32182 _ACEOF
32183
32184 fi
32185
32186 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32187 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32188 if test "${ac_cv_header_time+set}" = set; then
32189   echo $ECHO_N "(cached) $ECHO_C" >&6
32190 else
32191   cat >conftest.$ac_ext <<_ACEOF
32192 /* confdefs.h.  */
32193 _ACEOF
32194 cat confdefs.h >>conftest.$ac_ext
32195 cat >>conftest.$ac_ext <<_ACEOF
32196 /* end confdefs.h.  */
32197 #include <sys/types.h>
32198 #include <sys/time.h>
32199 #include <time.h>
32200
32201 int
32202 main ()
32203 {
32204 if ((struct tm *) 0)
32205 return 0;
32206   ;
32207   return 0;
32208 }
32209 _ACEOF
32210 rm -f conftest.$ac_objext
32211 if { (ac_try="$ac_compile"
32212 case "(($ac_try" in
32213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214   *) ac_try_echo=$ac_try;;
32215 esac
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217   (eval "$ac_compile") 2>conftest.er1
32218   ac_status=$?
32219   grep -v '^ *+' conftest.er1 >conftest.err
32220   rm -f conftest.er1
32221   cat conftest.err >&5
32222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223   (exit $ac_status); } && {
32224          test -z "$ac_c_werror_flag" ||
32225          test ! -s conftest.err
32226        } && test -s conftest.$ac_objext; then
32227   ac_cv_header_time=yes
32228 else
32229   echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32231
32232         ac_cv_header_time=no
32233 fi
32234
32235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236 fi
32237 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32238 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32239 if test $ac_cv_header_time = yes; then
32240
32241 cat >>confdefs.h <<\_ACEOF
32242 #define TIME_WITH_SYS_TIME 1
32243 _ACEOF
32244
32245 fi
32246
32247 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32248 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32249 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32250   echo $ECHO_N "(cached) $ECHO_C" >&6
32251 else
32252   cat >conftest.$ac_ext <<_ACEOF
32253 /* confdefs.h.  */
32254 _ACEOF
32255 cat confdefs.h >>conftest.$ac_ext
32256 cat >>conftest.$ac_ext <<_ACEOF
32257 /* end confdefs.h.  */
32258 $ac_includes_default
32259 int
32260 main ()
32261 {
32262 static struct stat ac_aggr;
32263 if (ac_aggr.st_blksize)
32264 return 0;
32265   ;
32266   return 0;
32267 }
32268 _ACEOF
32269 rm -f conftest.$ac_objext
32270 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32277   ac_status=$?
32278   grep -v '^ *+' conftest.er1 >conftest.err
32279   rm -f conftest.er1
32280   cat conftest.err >&5
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); } && {
32283          test -z "$ac_c_werror_flag" ||
32284          test ! -s conftest.err
32285        } && test -s conftest.$ac_objext; then
32286   ac_cv_member_struct_stat_st_blksize=yes
32287 else
32288   echo "$as_me: failed program was:" >&5
32289 sed 's/^/| /' conftest.$ac_ext >&5
32290
32291         cat >conftest.$ac_ext <<_ACEOF
32292 /* confdefs.h.  */
32293 _ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h.  */
32297 $ac_includes_default
32298 int
32299 main ()
32300 {
32301 static struct stat ac_aggr;
32302 if (sizeof ac_aggr.st_blksize)
32303 return 0;
32304   ;
32305   return 0;
32306 }
32307 _ACEOF
32308 rm -f conftest.$ac_objext
32309 if { (ac_try="$ac_compile"
32310 case "(($ac_try" in
32311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312   *) ac_try_echo=$ac_try;;
32313 esac
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315   (eval "$ac_compile") 2>conftest.er1
32316   ac_status=$?
32317   grep -v '^ *+' conftest.er1 >conftest.err
32318   rm -f conftest.er1
32319   cat conftest.err >&5
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); } && {
32322          test -z "$ac_c_werror_flag" ||
32323          test ! -s conftest.err
32324        } && test -s conftest.$ac_objext; then
32325   ac_cv_member_struct_stat_st_blksize=yes
32326 else
32327   echo "$as_me: failed program was:" >&5
32328 sed 's/^/| /' conftest.$ac_ext >&5
32329
32330         ac_cv_member_struct_stat_st_blksize=no
32331 fi
32332
32333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32334 fi
32335
32336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32337 fi
32338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32339 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32340 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32341
32342 cat >>confdefs.h <<_ACEOF
32343 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32344 _ACEOF
32345
32346
32347 cat >>confdefs.h <<\_ACEOF
32348 #define HAVE_ST_BLKSIZE 1
32349 _ACEOF
32350
32351 fi
32352
32353
32354 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32355 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32356 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32357   echo $ECHO_N "(cached) $ECHO_C" >&6
32358 else
32359   cat >conftest.$ac_ext <<_ACEOF
32360 /* confdefs.h.  */
32361 _ACEOF
32362 cat confdefs.h >>conftest.$ac_ext
32363 cat >>conftest.$ac_ext <<_ACEOF
32364 /* end confdefs.h.  */
32365 $ac_includes_default
32366 int
32367 main ()
32368 {
32369 static struct stat ac_aggr;
32370 if (ac_aggr.st_blocks)
32371 return 0;
32372   ;
32373   return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest.$ac_objext
32377 if { (ac_try="$ac_compile"
32378 case "(($ac_try" in
32379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380   *) ac_try_echo=$ac_try;;
32381 esac
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383   (eval "$ac_compile") 2>conftest.er1
32384   ac_status=$?
32385   grep -v '^ *+' conftest.er1 >conftest.err
32386   rm -f conftest.er1
32387   cat conftest.err >&5
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); } && {
32390          test -z "$ac_c_werror_flag" ||
32391          test ! -s conftest.err
32392        } && test -s conftest.$ac_objext; then
32393   ac_cv_member_struct_stat_st_blocks=yes
32394 else
32395   echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32397
32398         cat >conftest.$ac_ext <<_ACEOF
32399 /* confdefs.h.  */
32400 _ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h.  */
32404 $ac_includes_default
32405 int
32406 main ()
32407 {
32408 static struct stat ac_aggr;
32409 if (sizeof ac_aggr.st_blocks)
32410 return 0;
32411   ;
32412   return 0;
32413 }
32414 _ACEOF
32415 rm -f conftest.$ac_objext
32416 if { (ac_try="$ac_compile"
32417 case "(($ac_try" in
32418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419   *) ac_try_echo=$ac_try;;
32420 esac
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422   (eval "$ac_compile") 2>conftest.er1
32423   ac_status=$?
32424   grep -v '^ *+' conftest.er1 >conftest.err
32425   rm -f conftest.er1
32426   cat conftest.err >&5
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); } && {
32429          test -z "$ac_c_werror_flag" ||
32430          test ! -s conftest.err
32431        } && test -s conftest.$ac_objext; then
32432   ac_cv_member_struct_stat_st_blocks=yes
32433 else
32434   echo "$as_me: failed program was:" >&5
32435 sed 's/^/| /' conftest.$ac_ext >&5
32436
32437         ac_cv_member_struct_stat_st_blocks=no
32438 fi
32439
32440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 fi
32442
32443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32444 fi
32445 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32446 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32447 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32448
32449 cat >>confdefs.h <<_ACEOF
32450 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32451 _ACEOF
32452
32453
32454 cat >>confdefs.h <<\_ACEOF
32455 #define HAVE_ST_BLOCKS 1
32456 _ACEOF
32457
32458 else
32459   case " $LIBOBJS " in
32460   *" fileblocks.$ac_objext "* ) ;;
32461   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32462  ;;
32463 esac
32464
32465 fi
32466
32467
32468 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32469 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32470 if test "${ac_cv_struct_tm+set}" = set; then
32471   echo $ECHO_N "(cached) $ECHO_C" >&6
32472 else
32473   cat >conftest.$ac_ext <<_ACEOF
32474 /* confdefs.h.  */
32475 _ACEOF
32476 cat confdefs.h >>conftest.$ac_ext
32477 cat >>conftest.$ac_ext <<_ACEOF
32478 /* end confdefs.h.  */
32479 #include <sys/types.h>
32480 #include <time.h>
32481
32482 int
32483 main ()
32484 {
32485 struct tm tm;
32486                                      int *p = &tm.tm_sec;
32487                                      return !p;
32488   ;
32489   return 0;
32490 }
32491 _ACEOF
32492 rm -f conftest.$ac_objext
32493 if { (ac_try="$ac_compile"
32494 case "(($ac_try" in
32495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496   *) ac_try_echo=$ac_try;;
32497 esac
32498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499   (eval "$ac_compile") 2>conftest.er1
32500   ac_status=$?
32501   grep -v '^ *+' conftest.er1 >conftest.err
32502   rm -f conftest.er1
32503   cat conftest.err >&5
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); } && {
32506          test -z "$ac_c_werror_flag" ||
32507          test ! -s conftest.err
32508        } && test -s conftest.$ac_objext; then
32509   ac_cv_struct_tm=time.h
32510 else
32511   echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32513
32514         ac_cv_struct_tm=sys/time.h
32515 fi
32516
32517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32518 fi
32519 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32520 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32521 if test $ac_cv_struct_tm = sys/time.h; then
32522
32523 cat >>confdefs.h <<\_ACEOF
32524 #define TM_IN_SYS_TIME 1
32525 _ACEOF
32526
32527 fi
32528
32529 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32530 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32531 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32532   echo $ECHO_N "(cached) $ECHO_C" >&6
32533 else
32534   cat >conftest.$ac_ext <<_ACEOF
32535 /* confdefs.h.  */
32536 _ACEOF
32537 cat confdefs.h >>conftest.$ac_ext
32538 cat >>conftest.$ac_ext <<_ACEOF
32539 /* end confdefs.h.  */
32540 #include <sys/types.h>
32541 #include <$ac_cv_struct_tm>
32542
32543
32544 int
32545 main ()
32546 {
32547 static struct tm ac_aggr;
32548 if (ac_aggr.tm_zone)
32549 return 0;
32550   ;
32551   return 0;
32552 }
32553 _ACEOF
32554 rm -f conftest.$ac_objext
32555 if { (ac_try="$ac_compile"
32556 case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561   (eval "$ac_compile") 2>conftest.er1
32562   ac_status=$?
32563   grep -v '^ *+' conftest.er1 >conftest.err
32564   rm -f conftest.er1
32565   cat conftest.err >&5
32566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567   (exit $ac_status); } && {
32568          test -z "$ac_c_werror_flag" ||
32569          test ! -s conftest.err
32570        } && test -s conftest.$ac_objext; then
32571   ac_cv_member_struct_tm_tm_zone=yes
32572 else
32573   echo "$as_me: failed program was:" >&5
32574 sed 's/^/| /' conftest.$ac_ext >&5
32575
32576         cat >conftest.$ac_ext <<_ACEOF
32577 /* confdefs.h.  */
32578 _ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h.  */
32582 #include <sys/types.h>
32583 #include <$ac_cv_struct_tm>
32584
32585
32586 int
32587 main ()
32588 {
32589 static struct tm ac_aggr;
32590 if (sizeof ac_aggr.tm_zone)
32591 return 0;
32592   ;
32593   return 0;
32594 }
32595 _ACEOF
32596 rm -f conftest.$ac_objext
32597 if { (ac_try="$ac_compile"
32598 case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_compile") 2>conftest.er1
32604   ac_status=$?
32605   grep -v '^ *+' conftest.er1 >conftest.err
32606   rm -f conftest.er1
32607   cat conftest.err >&5
32608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); } && {
32610          test -z "$ac_c_werror_flag" ||
32611          test ! -s conftest.err
32612        } && test -s conftest.$ac_objext; then
32613   ac_cv_member_struct_tm_tm_zone=yes
32614 else
32615   echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32617
32618         ac_cv_member_struct_tm_tm_zone=no
32619 fi
32620
32621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32622 fi
32623
32624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32625 fi
32626 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32627 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32628 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32629
32630 cat >>confdefs.h <<_ACEOF
32631 #define HAVE_STRUCT_TM_TM_ZONE 1
32632 _ACEOF
32633
32634
32635 fi
32636
32637 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32638
32639 cat >>confdefs.h <<\_ACEOF
32640 #define HAVE_TM_ZONE 1
32641 _ACEOF
32642
32643 else
32644   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32645 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32646 if test "${ac_cv_have_decl_tzname+set}" = set; then
32647   echo $ECHO_N "(cached) $ECHO_C" >&6
32648 else
32649   cat >conftest.$ac_ext <<_ACEOF
32650 /* confdefs.h.  */
32651 _ACEOF
32652 cat confdefs.h >>conftest.$ac_ext
32653 cat >>conftest.$ac_ext <<_ACEOF
32654 /* end confdefs.h.  */
32655 #include <time.h>
32656
32657 int
32658 main ()
32659 {
32660 #ifndef tzname
32661   (void) tzname;
32662 #endif
32663
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest.$ac_objext
32669 if { (ac_try="$ac_compile"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_compile") 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } && {
32682          test -z "$ac_c_werror_flag" ||
32683          test ! -s conftest.err
32684        } && test -s conftest.$ac_objext; then
32685   ac_cv_have_decl_tzname=yes
32686 else
32687   echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32689
32690         ac_cv_have_decl_tzname=no
32691 fi
32692
32693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32694 fi
32695 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32696 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32697 if test $ac_cv_have_decl_tzname = yes; then
32698
32699 cat >>confdefs.h <<_ACEOF
32700 #define HAVE_DECL_TZNAME 1
32701 _ACEOF
32702
32703
32704 else
32705   cat >>confdefs.h <<_ACEOF
32706 #define HAVE_DECL_TZNAME 0
32707 _ACEOF
32708
32709
32710 fi
32711
32712
32713   { echo "$as_me:$LINENO: checking for tzname" >&5
32714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32715 if test "${ac_cv_var_tzname+set}" = set; then
32716   echo $ECHO_N "(cached) $ECHO_C" >&6
32717 else
32718   cat >conftest.$ac_ext <<_ACEOF
32719 /* confdefs.h.  */
32720 _ACEOF
32721 cat confdefs.h >>conftest.$ac_ext
32722 cat >>conftest.$ac_ext <<_ACEOF
32723 /* end confdefs.h.  */
32724 #include <time.h>
32725 #if !HAVE_DECL_TZNAME
32726 extern char *tzname[];
32727 #endif
32728
32729 int
32730 main ()
32731 {
32732 return tzname[0][0];
32733   ;
32734   return 0;
32735 }
32736 _ACEOF
32737 rm -f conftest.$ac_objext conftest$ac_exeext
32738 if { (ac_try="$ac_link"
32739 case "(($ac_try" in
32740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741   *) ac_try_echo=$ac_try;;
32742 esac
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744   (eval "$ac_link") 2>conftest.er1
32745   ac_status=$?
32746   grep -v '^ *+' conftest.er1 >conftest.err
32747   rm -f conftest.er1
32748   cat conftest.err >&5
32749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750   (exit $ac_status); } && {
32751          test -z "$ac_c_werror_flag" ||
32752          test ! -s conftest.err
32753        } && test -s conftest$ac_exeext &&
32754        $as_test_x conftest$ac_exeext; then
32755   ac_cv_var_tzname=yes
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32759
32760         ac_cv_var_tzname=no
32761 fi
32762
32763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32764       conftest$ac_exeext conftest.$ac_ext
32765 fi
32766 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32767 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32768   if test $ac_cv_var_tzname = yes; then
32769
32770 cat >>confdefs.h <<\_ACEOF
32771 #define HAVE_TZNAME 1
32772 _ACEOF
32773
32774   fi
32775 fi
32776
32777
32778 { echo "$as_me:$LINENO: checking for utime.h" >&5
32779 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32780 if test "${ba_cv_header_utime_h+set}" = set; then
32781   echo $ECHO_N "(cached) $ECHO_C" >&6
32782 else
32783
32784        cat >conftest.$ac_ext <<_ACEOF
32785 /* confdefs.h.  */
32786 _ACEOF
32787 cat confdefs.h >>conftest.$ac_ext
32788 cat >>conftest.$ac_ext <<_ACEOF
32789 /* end confdefs.h.  */
32790
32791               #include <sys/types.h>
32792               #include <utime.h>
32793
32794 int
32795 main ()
32796 {
32797
32798               struct utimbuf foo
32799
32800   ;
32801   return 0;
32802 }
32803 _ACEOF
32804 rm -f conftest.$ac_objext
32805 if { (ac_try="$ac_compile"
32806 case "(($ac_try" in
32807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808   *) ac_try_echo=$ac_try;;
32809 esac
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811   (eval "$ac_compile") 2>conftest.er1
32812   ac_status=$?
32813   grep -v '^ *+' conftest.er1 >conftest.err
32814   rm -f conftest.er1
32815   cat conftest.err >&5
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); } && {
32818          test -z "$ac_c_werror_flag" ||
32819          test ! -s conftest.err
32820        } && test -s conftest.$ac_objext; then
32821
32822               ba_cv_header_utime_h=yes
32823
32824 else
32825   echo "$as_me: failed program was:" >&5
32826 sed 's/^/| /' conftest.$ac_ext >&5
32827
32828
32829               ba_cv_header_utime_h=no
32830
32831
32832 fi
32833
32834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32835
32836
32837 fi
32838 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32839 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32840 test $ba_cv_header_utime_h = yes &&
32841 cat >>confdefs.h <<\_ACEOF
32842 #define HAVE_UTIME_H 1
32843 _ACEOF
32844
32845
32846 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32847 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32848 if test "${ba_cv_header_socklen_t+set}" = set; then
32849   echo $ECHO_N "(cached) $ECHO_C" >&6
32850 else
32851
32852        cat >conftest.$ac_ext <<_ACEOF
32853 /* confdefs.h.  */
32854 _ACEOF
32855 cat confdefs.h >>conftest.$ac_ext
32856 cat >>conftest.$ac_ext <<_ACEOF
32857 /* end confdefs.h.  */
32858
32859               #include <sys/types.h>
32860               #include <sys/socket.h>
32861
32862 int
32863 main ()
32864 {
32865
32866               socklen_t x
32867
32868   ;
32869   return 0;
32870 }
32871 _ACEOF
32872 rm -f conftest.$ac_objext
32873 if { (ac_try="$ac_compile"
32874 case "(($ac_try" in
32875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32876   *) ac_try_echo=$ac_try;;
32877 esac
32878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32879   (eval "$ac_compile") 2>conftest.er1
32880   ac_status=$?
32881   grep -v '^ *+' conftest.er1 >conftest.err
32882   rm -f conftest.er1
32883   cat conftest.err >&5
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); } && {
32886          test -z "$ac_c_werror_flag" ||
32887          test ! -s conftest.err
32888        } && test -s conftest.$ac_objext; then
32889
32890              ba_cv_header_socklen_t=yes
32891
32892 else
32893   echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32895
32896
32897              ba_cv_header_socklen_t=no
32898
32899
32900 fi
32901
32902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32903
32904
32905 fi
32906 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32907 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32908 test $ba_cv_header_socklen_t = yes &&
32909 cat >>confdefs.h <<\_ACEOF
32910 #define HAVE_SOCKLEN_T 1
32911 _ACEOF
32912
32913
32914 ac_ext=cpp
32915 ac_cpp='$CXXCPP $CPPFLAGS'
32916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32919
32920 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32921 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32922 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32923   echo $ECHO_N "(cached) $ECHO_C" >&6
32924 else
32925
32926        cat >conftest.$ac_ext <<_ACEOF
32927 /* confdefs.h.  */
32928 _ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h.  */
32932
32933               #include <unistd.h>
32934               #include <sys/types.h>
32935               #include <sys/ioctl.h>
32936
32937 int
32938 main ()
32939 {
32940
32941               int (*d_ioctl)(int fd, unsigned long int request, ...);
32942               d_ioctl = ::ioctl;
32943
32944   ;
32945   return 0;
32946 }
32947 _ACEOF
32948 rm -f conftest.$ac_objext
32949 if { (ac_try="$ac_compile"
32950 case "(($ac_try" in
32951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32952   *) ac_try_echo=$ac_try;;
32953 esac
32954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32955   (eval "$ac_compile") 2>conftest.er1
32956   ac_status=$?
32957   grep -v '^ *+' conftest.er1 >conftest.err
32958   rm -f conftest.er1
32959   cat conftest.err >&5
32960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961   (exit $ac_status); } && {
32962          test -z "$ac_cxx_werror_flag" ||
32963          test ! -s conftest.err
32964        } && test -s conftest.$ac_objext; then
32965
32966              ba_cv_header_ioctl_req_t=yes
32967
32968 else
32969   echo "$as_me: failed program was:" >&5
32970 sed 's/^/| /' conftest.$ac_ext >&5
32971
32972
32973              ba_cv_header_ioctl_req_t=no
32974
32975
32976 fi
32977
32978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32979
32980
32981 fi
32982 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32983 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32984 test $ba_cv_header_ioctl_req_t = yes &&
32985 cat >>confdefs.h <<\_ACEOF
32986 #define HAVE_IOCTL_ULINT_REQUEST 1
32987 _ACEOF
32988
32989
32990 ac_ext=c
32991 ac_cpp='$CPP $CPPFLAGS'
32992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32995
32996
32997 ac_ext=cpp
32998 ac_cpp='$CXXCPP $CPPFLAGS'
32999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33002
33003 { echo "$as_me:$LINENO: checking for typeof" >&5
33004 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
33005 if test "${ba_cv_have_typeof+set}" = set; then
33006   echo $ECHO_N "(cached) $ECHO_C" >&6
33007 else
33008
33009        if test "$cross_compiling" = yes; then
33010
33011               ba_cv_have_typeof=no
33012
33013
33014 else
33015   cat >conftest.$ac_ext <<_ACEOF
33016 /* confdefs.h.  */
33017 _ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h.  */
33021
33022               main(){char *a = 0; a = (typeof a)a;}
33023
33024 _ACEOF
33025 rm -f conftest$ac_exeext
33026 if { (ac_try="$ac_link"
33027 case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032   (eval "$ac_link") 2>&5
33033   ac_status=$?
33034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33036   { (case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_try") 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; }; then
33045
33046               ba_cv_have_typeof=yes
33047
33048 else
33049   echo "$as_me: program exited with status $ac_status" >&5
33050 echo "$as_me: failed program was:" >&5
33051 sed 's/^/| /' conftest.$ac_ext >&5
33052
33053 ( exit $ac_status )
33054
33055               ba_cv_have_typeof=no
33056
33057 fi
33058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33059 fi
33060
33061
33062
33063
33064 fi
33065 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33066 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33067 test $ba_cv_have_typeof = yes &&
33068 cat >>confdefs.h <<\_ACEOF
33069 #define HAVE_TYPEOF 1
33070 _ACEOF
33071
33072 ac_ext=c
33073 ac_cpp='$CPP $CPPFLAGS'
33074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33077
33078
33079 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33081 if test "${ac_cv_c_const+set}" = set; then
33082   echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084   cat >conftest.$ac_ext <<_ACEOF
33085 /* confdefs.h.  */
33086 _ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h.  */
33090
33091 int
33092 main ()
33093 {
33094 /* FIXME: Include the comments suggested by Paul. */
33095 #ifndef __cplusplus
33096   /* Ultrix mips cc rejects this.  */
33097   typedef int charset[2];
33098   const charset cs;
33099   /* SunOS 4.1.1 cc rejects this.  */
33100   char const *const *pcpcc;
33101   char **ppc;
33102   /* NEC SVR4.0.2 mips cc rejects this.  */
33103   struct point {int x, y;};
33104   static struct point const zero = {0,0};
33105   /* AIX XL C 1.02.0.0 rejects this.
33106      It does not let you subtract one const X* pointer from another in
33107      an arm of an if-expression whose if-part is not a constant
33108      expression */
33109   const char *g = "string";
33110   pcpcc = &g + (g ? g-g : 0);
33111   /* HPUX 7.0 cc rejects these. */
33112   ++pcpcc;
33113   ppc = (char**) pcpcc;
33114   pcpcc = (char const *const *) ppc;
33115   { /* SCO 3.2v4 cc rejects this.  */
33116     char *t;
33117     char const *s = 0 ? (char *) 0 : (char const *) 0;
33118
33119     *t++ = 0;
33120     if (s) return 0;
33121   }
33122   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33123     int x[] = {25, 17};
33124     const int *foo = &x[0];
33125     ++foo;
33126   }
33127   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33128     typedef const int *iptr;
33129     iptr p = 0;
33130     ++p;
33131   }
33132   { /* AIX XL C 1.02.0.0 rejects this saying
33133        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33134     struct s { int j; const int *ap[3]; };
33135     struct s *b; b->j = 5;
33136   }
33137   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33138     const int foo = 10;
33139     if (!foo) return 0;
33140   }
33141   return !cs[0] && !zero.x;
33142 #endif
33143
33144   ;
33145   return 0;
33146 }
33147 _ACEOF
33148 rm -f conftest.$ac_objext
33149 if { (ac_try="$ac_compile"
33150 case "(($ac_try" in
33151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152   *) ac_try_echo=$ac_try;;
33153 esac
33154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155   (eval "$ac_compile") 2>conftest.er1
33156   ac_status=$?
33157   grep -v '^ *+' conftest.er1 >conftest.err
33158   rm -f conftest.er1
33159   cat conftest.err >&5
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); } && {
33162          test -z "$ac_c_werror_flag" ||
33163          test ! -s conftest.err
33164        } && test -s conftest.$ac_objext; then
33165   ac_cv_c_const=yes
33166 else
33167   echo "$as_me: failed program was:" >&5
33168 sed 's/^/| /' conftest.$ac_ext >&5
33169
33170         ac_cv_c_const=no
33171 fi
33172
33173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33174 fi
33175 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33176 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33177 if test $ac_cv_c_const = no; then
33178
33179 cat >>confdefs.h <<\_ACEOF
33180 #define const
33181 _ACEOF
33182
33183 fi
33184
33185
33186 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33187 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33188 if test "${ac_cv_c_bigendian+set}" = set; then
33189   echo $ECHO_N "(cached) $ECHO_C" >&6
33190 else
33191   # See if sys/param.h defines the BYTE_ORDER macro.
33192 cat >conftest.$ac_ext <<_ACEOF
33193 /* confdefs.h.  */
33194 _ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h.  */
33198 #include <sys/types.h>
33199 #include <sys/param.h>
33200
33201 int
33202 main ()
33203 {
33204 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33205         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33206  bogus endian macros
33207 #endif
33208
33209   ;
33210   return 0;
33211 }
33212 _ACEOF
33213 rm -f conftest.$ac_objext
33214 if { (ac_try="$ac_compile"
33215 case "(($ac_try" in
33216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217   *) ac_try_echo=$ac_try;;
33218 esac
33219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220   (eval "$ac_compile") 2>conftest.er1
33221   ac_status=$?
33222   grep -v '^ *+' conftest.er1 >conftest.err
33223   rm -f conftest.er1
33224   cat conftest.err >&5
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); } && {
33227          test -z "$ac_c_werror_flag" ||
33228          test ! -s conftest.err
33229        } && test -s conftest.$ac_objext; then
33230   # It does; now see whether it defined to BIG_ENDIAN or not.
33231 cat >conftest.$ac_ext <<_ACEOF
33232 /* confdefs.h.  */
33233 _ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h.  */
33237 #include <sys/types.h>
33238 #include <sys/param.h>
33239
33240 int
33241 main ()
33242 {
33243 #if BYTE_ORDER != BIG_ENDIAN
33244  not big endian
33245 #endif
33246
33247   ;
33248   return 0;
33249 }
33250 _ACEOF
33251 rm -f conftest.$ac_objext
33252 if { (ac_try="$ac_compile"
33253 case "(($ac_try" in
33254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255   *) ac_try_echo=$ac_try;;
33256 esac
33257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258   (eval "$ac_compile") 2>conftest.er1
33259   ac_status=$?
33260   grep -v '^ *+' conftest.er1 >conftest.err
33261   rm -f conftest.er1
33262   cat conftest.err >&5
33263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264   (exit $ac_status); } && {
33265          test -z "$ac_c_werror_flag" ||
33266          test ! -s conftest.err
33267        } && test -s conftest.$ac_objext; then
33268   ac_cv_c_bigendian=yes
33269 else
33270   echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33272
33273         ac_cv_c_bigendian=no
33274 fi
33275
33276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33277 else
33278   echo "$as_me: failed program was:" >&5
33279 sed 's/^/| /' conftest.$ac_ext >&5
33280
33281         # It does not; compile a test program.
33282 if test "$cross_compiling" = yes; then
33283   # try to guess the endianness by grepping values into an object file
33284   ac_cv_c_bigendian=unknown
33285   cat >conftest.$ac_ext <<_ACEOF
33286 /* confdefs.h.  */
33287 _ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h.  */
33291 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33292 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33293 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33294 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33295 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33296 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33297 int
33298 main ()
33299 {
33300  _ascii (); _ebcdic ();
33301   ;
33302   return 0;
33303 }
33304 _ACEOF
33305 rm -f conftest.$ac_objext
33306 if { (ac_try="$ac_compile"
33307 case "(($ac_try" in
33308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309   *) ac_try_echo=$ac_try;;
33310 esac
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312   (eval "$ac_compile") 2>conftest.er1
33313   ac_status=$?
33314   grep -v '^ *+' conftest.er1 >conftest.err
33315   rm -f conftest.er1
33316   cat conftest.err >&5
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); } && {
33319          test -z "$ac_c_werror_flag" ||
33320          test ! -s conftest.err
33321        } && test -s conftest.$ac_objext; then
33322   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33323   ac_cv_c_bigendian=yes
33324 fi
33325 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33326   if test "$ac_cv_c_bigendian" = unknown; then
33327     ac_cv_c_bigendian=no
33328   else
33329     # finding both strings is unlikely to happen, but who knows?
33330     ac_cv_c_bigendian=unknown
33331   fi
33332 fi
33333 else
33334   echo "$as_me: failed program was:" >&5
33335 sed 's/^/| /' conftest.$ac_ext >&5
33336
33337
33338 fi
33339
33340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33341 else
33342   cat >conftest.$ac_ext <<_ACEOF
33343 /* confdefs.h.  */
33344 _ACEOF
33345 cat confdefs.h >>conftest.$ac_ext
33346 cat >>conftest.$ac_ext <<_ACEOF
33347 /* end confdefs.h.  */
33348 $ac_includes_default
33349 int
33350 main ()
33351 {
33352
33353   /* Are we little or big endian?  From Harbison&Steele.  */
33354   union
33355   {
33356     long int l;
33357     char c[sizeof (long int)];
33358   } u;
33359   u.l = 1;
33360   return u.c[sizeof (long int) - 1] == 1;
33361
33362   ;
33363   return 0;
33364 }
33365 _ACEOF
33366 rm -f conftest$ac_exeext
33367 if { (ac_try="$ac_link"
33368 case "(($ac_try" in
33369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370   *) ac_try_echo=$ac_try;;
33371 esac
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373   (eval "$ac_link") 2>&5
33374   ac_status=$?
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33377   { (case "(($ac_try" in
33378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33379   *) ac_try_echo=$ac_try;;
33380 esac
33381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33382   (eval "$ac_try") 2>&5
33383   ac_status=$?
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); }; }; then
33386   ac_cv_c_bigendian=no
33387 else
33388   echo "$as_me: program exited with status $ac_status" >&5
33389 echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33391
33392 ( exit $ac_status )
33393 ac_cv_c_bigendian=yes
33394 fi
33395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33396 fi
33397
33398
33399 fi
33400
33401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33402 fi
33403 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33404 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33405 case $ac_cv_c_bigendian in
33406   yes)
33407
33408 cat >>confdefs.h <<\_ACEOF
33409 #define HAVE_BIG_ENDIAN 1
33410 _ACEOF
33411  ;;
33412   no)
33413
33414 cat >>confdefs.h <<\_ACEOF
33415 #define HAVE_LITTLE_ENDIAN 1
33416 _ACEOF
33417  ;;
33418   *)
33419     { { echo "$as_me:$LINENO: error: unknown endianness
33420 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33421 echo "$as_me: error: unknown endianness
33422 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33423    { (exit 1); exit 1; }; } ;;
33424 esac
33425
33426
33427 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33428 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33429 fstype=no
33430 # The order of these tests is important.
33431 cat >conftest.$ac_ext <<_ACEOF
33432 /* confdefs.h.  */
33433 _ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h.  */
33437
33438        #include <sys/statvfs.h>
33439        #include <sys/fstyp.h>
33440
33441 _ACEOF
33442 if { (ac_try="$ac_cpp conftest.$ac_ext"
33443 case "(($ac_try" in
33444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445   *) ac_try_echo=$ac_try;;
33446 esac
33447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33449   ac_status=$?
33450   grep -v '^ *+' conftest.er1 >conftest.err
33451   rm -f conftest.er1
33452   cat conftest.err >&5
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); } >/dev/null && {
33455          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33456          test ! -s conftest.err
33457        }; then
33458   cat >>confdefs.h <<\_ACEOF
33459 #define FSTYPE_STATVFS 1
33460 _ACEOF
33461  fstype=SVR4
33462
33463 else
33464   echo "$as_me: failed program was:" >&5
33465 sed 's/^/| /' conftest.$ac_ext >&5
33466
33467
33468 fi
33469
33470 rm -f conftest.err conftest.$ac_ext
33471 if test $fstype = no; then
33472    cat >conftest.$ac_ext <<_ACEOF
33473 /* confdefs.h.  */
33474 _ACEOF
33475 cat confdefs.h >>conftest.$ac_ext
33476 cat >>conftest.$ac_ext <<_ACEOF
33477 /* end confdefs.h.  */
33478
33479           #include <sys/statfs.h>
33480           #include <sys/fstyp.h>
33481
33482 _ACEOF
33483 if { (ac_try="$ac_cpp conftest.$ac_ext"
33484 case "(($ac_try" in
33485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33486   *) ac_try_echo=$ac_try;;
33487 esac
33488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33490   ac_status=$?
33491   grep -v '^ *+' conftest.er1 >conftest.err
33492   rm -f conftest.er1
33493   cat conftest.err >&5
33494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495   (exit $ac_status); } >/dev/null && {
33496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33497          test ! -s conftest.err
33498        }; then
33499   cat >>confdefs.h <<\_ACEOF
33500 #define FSTYPE_USG_STATFS 1
33501 _ACEOF
33502  fstype=SVR3
33503
33504 else
33505   echo "$as_me: failed program was:" >&5
33506 sed 's/^/| /' conftest.$ac_ext >&5
33507
33508
33509 fi
33510
33511 rm -f conftest.err conftest.$ac_ext
33512 fi
33513 if test $fstype = no; then
33514    cat >conftest.$ac_ext <<_ACEOF
33515 /* confdefs.h.  */
33516 _ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h.  */
33520
33521           #include <sys/statfs.h>
33522           #include <sys/vmount.h>
33523
33524 _ACEOF
33525 if { (ac_try="$ac_cpp conftest.$ac_ext"
33526 case "(($ac_try" in
33527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528   *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } >/dev/null && {
33538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33539          test ! -s conftest.err
33540        }; then
33541   cat >>confdefs.h <<\_ACEOF
33542 #define FSTYPE_AIX_STATFS 1
33543 _ACEOF
33544  fstype=AIX
33545
33546 else
33547   echo "$as_me: failed program was:" >&5
33548 sed 's/^/| /' conftest.$ac_ext >&5
33549
33550
33551 fi
33552
33553 rm -f conftest.err conftest.$ac_ext
33554 fi
33555 if test $fstype = no; then
33556    cat >conftest.$ac_ext <<_ACEOF
33557 /* confdefs.h.  */
33558 _ACEOF
33559 cat confdefs.h >>conftest.$ac_ext
33560 cat >>conftest.$ac_ext <<_ACEOF
33561 /* end confdefs.h.  */
33562
33563           #include <mntent.h>
33564
33565 _ACEOF
33566 if { (ac_try="$ac_cpp conftest.$ac_ext"
33567 case "(($ac_try" in
33568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569   *) ac_try_echo=$ac_try;;
33570 esac
33571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33573   ac_status=$?
33574   grep -v '^ *+' conftest.er1 >conftest.err
33575   rm -f conftest.er1
33576   cat conftest.err >&5
33577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578   (exit $ac_status); } >/dev/null && {
33579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33580          test ! -s conftest.err
33581        }; then
33582   cat >>confdefs.h <<\_ACEOF
33583 #define FSTYPE_MNTENT 1
33584 _ACEOF
33585  fstype=4.3BSD
33586
33587 else
33588   echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33590
33591
33592 fi
33593
33594 rm -f conftest.err conftest.$ac_ext
33595 fi
33596 if test $fstype = no; then
33597    cat >conftest.$ac_ext <<_ACEOF
33598 /* confdefs.h.  */
33599 _ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h.  */
33603 #include <sys/mount.h>
33604
33605 _ACEOF
33606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33607   $EGREP "f_type;" >/dev/null 2>&1; then
33608   cat >>confdefs.h <<\_ACEOF
33609 #define FSTYPE_STATFS 1
33610 _ACEOF
33611  fstype=4.4BSD/OSF1
33612 fi
33613 rm -f conftest*
33614
33615 fi
33616 if test $fstype = no; then
33617    cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h.  */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h.  */
33623
33624           #include <sys/mount.h>
33625           #include <sys/fs_types.h>
33626
33627 _ACEOF
33628 if { (ac_try="$ac_cpp conftest.$ac_ext"
33629 case "(($ac_try" in
33630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631   *) ac_try_echo=$ac_try;;
33632 esac
33633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33635   ac_status=$?
33636   grep -v '^ *+' conftest.er1 >conftest.err
33637   rm -f conftest.er1
33638   cat conftest.err >&5
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); } >/dev/null && {
33641          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33642          test ! -s conftest.err
33643        }; then
33644   cat >>confdefs.h <<\_ACEOF
33645 #define FSTYPE_GETMNT 1
33646 _ACEOF
33647  fstype=Ultrix
33648
33649 else
33650   echo "$as_me: failed program was:" >&5
33651 sed 's/^/| /' conftest.$ac_ext >&5
33652
33653
33654 fi
33655
33656 rm -f conftest.err conftest.$ac_ext
33657 fi
33658 { echo "$as_me:$LINENO: result: $fstype" >&5
33659 echo "${ECHO_T}$fstype" >&6; }
33660
33661 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33662   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33663 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33664 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33665   echo $ECHO_N "(cached) $ECHO_C" >&6
33666 fi
33667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33668 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33669 else
33670   # Is the header compilable?
33671 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33672 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33673 cat >conftest.$ac_ext <<_ACEOF
33674 /* confdefs.h.  */
33675 _ACEOF
33676 cat confdefs.h >>conftest.$ac_ext
33677 cat >>conftest.$ac_ext <<_ACEOF
33678 /* end confdefs.h.  */
33679 $ac_includes_default
33680 #include <sys/statvfs.h>
33681 _ACEOF
33682 rm -f conftest.$ac_objext
33683 if { (ac_try="$ac_compile"
33684 case "(($ac_try" in
33685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33686   *) ac_try_echo=$ac_try;;
33687 esac
33688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33689   (eval "$ac_compile") 2>conftest.er1
33690   ac_status=$?
33691   grep -v '^ *+' conftest.er1 >conftest.err
33692   rm -f conftest.er1
33693   cat conftest.err >&5
33694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695   (exit $ac_status); } && {
33696          test -z "$ac_c_werror_flag" ||
33697          test ! -s conftest.err
33698        } && test -s conftest.$ac_objext; then
33699   ac_header_compiler=yes
33700 else
33701   echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33703
33704         ac_header_compiler=no
33705 fi
33706
33707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33709 echo "${ECHO_T}$ac_header_compiler" >&6; }
33710
33711 # Is the header present?
33712 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33713 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33714 cat >conftest.$ac_ext <<_ACEOF
33715 /* confdefs.h.  */
33716 _ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h.  */
33720 #include <sys/statvfs.h>
33721 _ACEOF
33722 if { (ac_try="$ac_cpp conftest.$ac_ext"
33723 case "(($ac_try" in
33724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725   *) ac_try_echo=$ac_try;;
33726 esac
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } >/dev/null && {
33735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33736          test ! -s conftest.err
33737        }; then
33738   ac_header_preproc=yes
33739 else
33740   echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33742
33743   ac_header_preproc=no
33744 fi
33745
33746 rm -f conftest.err conftest.$ac_ext
33747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33748 echo "${ECHO_T}$ac_header_preproc" >&6; }
33749
33750 # So?  What about this header?
33751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33752   yes:no: )
33753     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33754 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33755     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33756 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33757     ac_header_preproc=yes
33758     ;;
33759   no:yes:* )
33760     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33761 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33762     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33763 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33764     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33765 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33766     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33767 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33768     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33769 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33770     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33771 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33772
33773     ;;
33774 esac
33775 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33776 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33778   echo $ECHO_N "(cached) $ECHO_C" >&6
33779 else
33780   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33781 fi
33782 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33783 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33784
33785 fi
33786 if test $ac_cv_header_sys_statvfs_h = yes; then
33787
33788 cat >>confdefs.h <<\_ACEOF
33789 #define HAVE_SYS_STATVFS_H 1
33790 _ACEOF
33791
33792 fi
33793
33794
33795
33796 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33797 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33798 if test "${ac_cv_type_signal+set}" = set; then
33799   echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33801   cat >conftest.$ac_ext <<_ACEOF
33802 /* confdefs.h.  */
33803 _ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h.  */
33807 #include <sys/types.h>
33808 #include <signal.h>
33809
33810 int
33811 main ()
33812 {
33813 return *(signal (0, 0)) (0) == 1;
33814   ;
33815   return 0;
33816 }
33817 _ACEOF
33818 rm -f conftest.$ac_objext
33819 if { (ac_try="$ac_compile"
33820 case "(($ac_try" in
33821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822   *) ac_try_echo=$ac_try;;
33823 esac
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825   (eval "$ac_compile") 2>conftest.er1
33826   ac_status=$?
33827   grep -v '^ *+' conftest.er1 >conftest.err
33828   rm -f conftest.er1
33829   cat conftest.err >&5
33830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831   (exit $ac_status); } && {
33832          test -z "$ac_c_werror_flag" ||
33833          test ! -s conftest.err
33834        } && test -s conftest.$ac_objext; then
33835   ac_cv_type_signal=int
33836 else
33837   echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33839
33840         ac_cv_type_signal=void
33841 fi
33842
33843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 fi
33845 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33846 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33847
33848 cat >>confdefs.h <<_ACEOF
33849 #define RETSIGTYPE $ac_cv_type_signal
33850 _ACEOF
33851
33852
33853
33854   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33855 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33856   if test "${bash_cv_signal_vintage+set}" = set; then
33857   echo $ECHO_N "(cached) $ECHO_C" >&6
33858 else
33859
33860     cat >conftest.$ac_ext <<_ACEOF
33861 /* confdefs.h.  */
33862 _ACEOF
33863 cat confdefs.h >>conftest.$ac_ext
33864 cat >>conftest.$ac_ext <<_ACEOF
33865 /* end confdefs.h.  */
33866 #include <signal.h>
33867 int
33868 main ()
33869 {
33870
33871       sigset_t ss;
33872       struct sigaction sa;
33873       sigemptyset(&ss); sigsuspend(&ss);
33874       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33875       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33876
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext conftest$ac_exeext
33882 if { (ac_try="$ac_link"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888   (eval "$ac_link") 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } && {
33895          test -z "$ac_c_werror_flag" ||
33896          test ! -s conftest.err
33897        } && test -s conftest$ac_exeext &&
33898        $as_test_x conftest$ac_exeext; then
33899   bash_cv_signal_vintage="posix"
33900 else
33901   echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33903
33904
33905       cat >conftest.$ac_ext <<_ACEOF
33906 /* confdefs.h.  */
33907 _ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h.  */
33911 #include <signal.h>
33912 int
33913 main ()
33914 {
33915
33916           int mask = sigmask(SIGINT);
33917           sigsetmask(mask); sigblock(mask); sigpause(mask);
33918
33919   ;
33920   return 0;
33921 }
33922 _ACEOF
33923 rm -f conftest.$ac_objext conftest$ac_exeext
33924 if { (ac_try="$ac_link"
33925 case "(($ac_try" in
33926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33927   *) ac_try_echo=$ac_try;;
33928 esac
33929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33930   (eval "$ac_link") 2>conftest.er1
33931   ac_status=$?
33932   grep -v '^ *+' conftest.er1 >conftest.err
33933   rm -f conftest.er1
33934   cat conftest.err >&5
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); } && {
33937          test -z "$ac_c_werror_flag" ||
33938          test ! -s conftest.err
33939        } && test -s conftest$ac_exeext &&
33940        $as_test_x conftest$ac_exeext; then
33941   bash_cv_signal_vintage="4.2bsd"
33942 else
33943   echo "$as_me: failed program was:" >&5
33944 sed 's/^/| /' conftest.$ac_ext >&5
33945
33946
33947         cat >conftest.$ac_ext <<_ACEOF
33948 /* confdefs.h.  */
33949 _ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h.  */
33953
33954           #include <signal.h>
33955           RETSIGTYPE foo() { }
33956 int
33957 main ()
33958 {
33959
33960                   int mask = sigmask(SIGINT);
33961                   sigset(SIGINT, foo); sigrelse(SIGINT);
33962                   sighold(SIGINT); sigpause(SIGINT);
33963
33964   ;
33965   return 0;
33966 }
33967 _ACEOF
33968 rm -f conftest.$ac_objext conftest$ac_exeext
33969 if { (ac_try="$ac_link"
33970 case "(($ac_try" in
33971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33972   *) ac_try_echo=$ac_try;;
33973 esac
33974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33975   (eval "$ac_link") 2>conftest.er1
33976   ac_status=$?
33977   grep -v '^ *+' conftest.er1 >conftest.err
33978   rm -f conftest.er1
33979   cat conftest.err >&5
33980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981   (exit $ac_status); } && {
33982          test -z "$ac_c_werror_flag" ||
33983          test ! -s conftest.err
33984        } && test -s conftest$ac_exeext &&
33985        $as_test_x conftest$ac_exeext; then
33986   bash_cv_signal_vintage="svr3"
33987 else
33988   echo "$as_me: failed program was:" >&5
33989 sed 's/^/| /' conftest.$ac_ext >&5
33990
33991         bash_cv_signal_vintage="v7"
33992
33993 fi
33994
33995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33996       conftest$ac_exeext conftest.$ac_ext
33997
33998 fi
33999
34000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34001       conftest$ac_exeext conftest.$ac_ext
34002
34003 fi
34004
34005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34006       conftest$ac_exeext conftest.$ac_ext
34007
34008 fi
34009
34010   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
34011 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
34012   if test "$bash_cv_signal_vintage" = "posix"; then
34013     cat >>confdefs.h <<\_ACEOF
34014 #define HAVE_POSIX_SIGNALS 1
34015 _ACEOF
34016
34017   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
34018     cat >>confdefs.h <<\_ACEOF
34019 #define HAVE_BSD_SIGNALS 1
34020 _ACEOF
34021
34022   elif test "$bash_cv_signal_vintage" = "svr3"; then
34023     cat >>confdefs.h <<\_ACEOF
34024 #define HAVE_USG_SIGHOLD 1
34025 _ACEOF
34026
34027   fi
34028
34029 { echo "$as_me:$LINENO: checking for mode_t" >&5
34030 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34031 if test "${ac_cv_type_mode_t+set}" = set; then
34032   echo $ECHO_N "(cached) $ECHO_C" >&6
34033 else
34034   cat >conftest.$ac_ext <<_ACEOF
34035 /* confdefs.h.  */
34036 _ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h.  */
34040 $ac_includes_default
34041 typedef mode_t ac__type_new_;
34042 int
34043 main ()
34044 {
34045 if ((ac__type_new_ *) 0)
34046   return 0;
34047 if (sizeof (ac__type_new_))
34048   return 0;
34049   ;
34050   return 0;
34051 }
34052 _ACEOF
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057   *) ac_try_echo=$ac_try;;
34058 esac
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060   (eval "$ac_compile") 2>conftest.er1
34061   ac_status=$?
34062   grep -v '^ *+' conftest.er1 >conftest.err
34063   rm -f conftest.er1
34064   cat conftest.err >&5
34065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066   (exit $ac_status); } && {
34067          test -z "$ac_c_werror_flag" ||
34068          test ! -s conftest.err
34069        } && test -s conftest.$ac_objext; then
34070   ac_cv_type_mode_t=yes
34071 else
34072   echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34074
34075         ac_cv_type_mode_t=no
34076 fi
34077
34078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34079 fi
34080 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34081 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34082 if test $ac_cv_type_mode_t = yes; then
34083   :
34084 else
34085
34086 cat >>confdefs.h <<_ACEOF
34087 #define mode_t int
34088 _ACEOF
34089
34090 fi
34091
34092 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34093 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
34094 if test "${ac_cv_type_uid_t+set}" = set; then
34095   echo $ECHO_N "(cached) $ECHO_C" >&6
34096 else
34097   cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103 #include <sys/types.h>
34104
34105 _ACEOF
34106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34107   $EGREP "uid_t" >/dev/null 2>&1; then
34108   ac_cv_type_uid_t=yes
34109 else
34110   ac_cv_type_uid_t=no
34111 fi
34112 rm -f conftest*
34113
34114 fi
34115 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34116 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
34117 if test $ac_cv_type_uid_t = no; then
34118
34119 cat >>confdefs.h <<\_ACEOF
34120 #define uid_t int
34121 _ACEOF
34122
34123
34124 cat >>confdefs.h <<\_ACEOF
34125 #define gid_t int
34126 _ACEOF
34127
34128 fi
34129
34130 { echo "$as_me:$LINENO: checking for size_t" >&5
34131 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34132 if test "${ac_cv_type_size_t+set}" = set; then
34133   echo $ECHO_N "(cached) $ECHO_C" >&6
34134 else
34135   cat >conftest.$ac_ext <<_ACEOF
34136 /* confdefs.h.  */
34137 _ACEOF
34138 cat confdefs.h >>conftest.$ac_ext
34139 cat >>conftest.$ac_ext <<_ACEOF
34140 /* end confdefs.h.  */
34141 $ac_includes_default
34142 typedef size_t ac__type_new_;
34143 int
34144 main ()
34145 {
34146 if ((ac__type_new_ *) 0)
34147   return 0;
34148 if (sizeof (ac__type_new_))
34149   return 0;
34150   ;
34151   return 0;
34152 }
34153 _ACEOF
34154 rm -f conftest.$ac_objext
34155 if { (ac_try="$ac_compile"
34156 case "(($ac_try" in
34157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34158   *) ac_try_echo=$ac_try;;
34159 esac
34160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34161   (eval "$ac_compile") 2>conftest.er1
34162   ac_status=$?
34163   grep -v '^ *+' conftest.er1 >conftest.err
34164   rm -f conftest.er1
34165   cat conftest.err >&5
34166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167   (exit $ac_status); } && {
34168          test -z "$ac_c_werror_flag" ||
34169          test ! -s conftest.err
34170        } && test -s conftest.$ac_objext; then
34171   ac_cv_type_size_t=yes
34172 else
34173   echo "$as_me: failed program was:" >&5
34174 sed 's/^/| /' conftest.$ac_ext >&5
34175
34176         ac_cv_type_size_t=no
34177 fi
34178
34179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34180 fi
34181 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34182 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34183 if test $ac_cv_type_size_t = yes; then
34184   :
34185 else
34186
34187 cat >>confdefs.h <<_ACEOF
34188 #define size_t unsigned int
34189 _ACEOF
34190
34191 fi
34192
34193 { echo "$as_me:$LINENO: checking for pid_t" >&5
34194 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34195 if test "${ac_cv_type_pid_t+set}" = set; then
34196   echo $ECHO_N "(cached) $ECHO_C" >&6
34197 else
34198   cat >conftest.$ac_ext <<_ACEOF
34199 /* confdefs.h.  */
34200 _ACEOF
34201 cat confdefs.h >>conftest.$ac_ext
34202 cat >>conftest.$ac_ext <<_ACEOF
34203 /* end confdefs.h.  */
34204 $ac_includes_default
34205 typedef pid_t ac__type_new_;
34206 int
34207 main ()
34208 {
34209 if ((ac__type_new_ *) 0)
34210   return 0;
34211 if (sizeof (ac__type_new_))
34212   return 0;
34213   ;
34214   return 0;
34215 }
34216 _ACEOF
34217 rm -f conftest.$ac_objext
34218 if { (ac_try="$ac_compile"
34219 case "(($ac_try" in
34220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34221   *) ac_try_echo=$ac_try;;
34222 esac
34223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34224   (eval "$ac_compile") 2>conftest.er1
34225   ac_status=$?
34226   grep -v '^ *+' conftest.er1 >conftest.err
34227   rm -f conftest.er1
34228   cat conftest.err >&5
34229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230   (exit $ac_status); } && {
34231          test -z "$ac_c_werror_flag" ||
34232          test ! -s conftest.err
34233        } && test -s conftest.$ac_objext; then
34234   ac_cv_type_pid_t=yes
34235 else
34236   echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34238
34239         ac_cv_type_pid_t=no
34240 fi
34241
34242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243 fi
34244 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34245 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34246 if test $ac_cv_type_pid_t = yes; then
34247   :
34248 else
34249
34250 cat >>confdefs.h <<_ACEOF
34251 #define pid_t int
34252 _ACEOF
34253
34254 fi
34255
34256 { echo "$as_me:$LINENO: checking for off_t" >&5
34257 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34258 if test "${ac_cv_type_off_t+set}" = set; then
34259   echo $ECHO_N "(cached) $ECHO_C" >&6
34260 else
34261   cat >conftest.$ac_ext <<_ACEOF
34262 /* confdefs.h.  */
34263 _ACEOF
34264 cat confdefs.h >>conftest.$ac_ext
34265 cat >>conftest.$ac_ext <<_ACEOF
34266 /* end confdefs.h.  */
34267 $ac_includes_default
34268 typedef off_t ac__type_new_;
34269 int
34270 main ()
34271 {
34272 if ((ac__type_new_ *) 0)
34273   return 0;
34274 if (sizeof (ac__type_new_))
34275   return 0;
34276   ;
34277   return 0;
34278 }
34279 _ACEOF
34280 rm -f conftest.$ac_objext
34281 if { (ac_try="$ac_compile"
34282 case "(($ac_try" in
34283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34284   *) ac_try_echo=$ac_try;;
34285 esac
34286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34287   (eval "$ac_compile") 2>conftest.er1
34288   ac_status=$?
34289   grep -v '^ *+' conftest.er1 >conftest.err
34290   rm -f conftest.er1
34291   cat conftest.err >&5
34292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293   (exit $ac_status); } && {
34294          test -z "$ac_c_werror_flag" ||
34295          test ! -s conftest.err
34296        } && test -s conftest.$ac_objext; then
34297   ac_cv_type_off_t=yes
34298 else
34299   echo "$as_me: failed program was:" >&5
34300 sed 's/^/| /' conftest.$ac_ext >&5
34301
34302         ac_cv_type_off_t=no
34303 fi
34304
34305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34306 fi
34307 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34308 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34309 if test $ac_cv_type_off_t = yes; then
34310   :
34311 else
34312
34313 cat >>confdefs.h <<_ACEOF
34314 #define off_t long int
34315 _ACEOF
34316
34317 fi
34318
34319
34320   { echo "$as_me:$LINENO: checking for intptr_t" >&5
34321 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34322 if test "${ac_cv_type_intptr_t+set}" = set; then
34323   echo $ECHO_N "(cached) $ECHO_C" >&6
34324 else
34325   cat >conftest.$ac_ext <<_ACEOF
34326 /* confdefs.h.  */
34327 _ACEOF
34328 cat confdefs.h >>conftest.$ac_ext
34329 cat >>conftest.$ac_ext <<_ACEOF
34330 /* end confdefs.h.  */
34331 $ac_includes_default
34332 typedef intptr_t ac__type_new_;
34333 int
34334 main ()
34335 {
34336 if ((ac__type_new_ *) 0)
34337   return 0;
34338 if (sizeof (ac__type_new_))
34339   return 0;
34340   ;
34341   return 0;
34342 }
34343 _ACEOF
34344 rm -f conftest.$ac_objext
34345 if { (ac_try="$ac_compile"
34346 case "(($ac_try" in
34347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348   *) ac_try_echo=$ac_try;;
34349 esac
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351   (eval "$ac_compile") 2>conftest.er1
34352   ac_status=$?
34353   grep -v '^ *+' conftest.er1 >conftest.err
34354   rm -f conftest.er1
34355   cat conftest.err >&5
34356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } && {
34358          test -z "$ac_c_werror_flag" ||
34359          test ! -s conftest.err
34360        } && test -s conftest.$ac_objext; then
34361   ac_cv_type_intptr_t=yes
34362 else
34363   echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34365
34366         ac_cv_type_intptr_t=no
34367 fi
34368
34369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34370 fi
34371 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34372 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34373 if test $ac_cv_type_intptr_t = yes; then
34374
34375 cat >>confdefs.h <<\_ACEOF
34376 #define HAVE_INTPTR_T 1
34377 _ACEOF
34378
34379 else
34380   for ac_type in 'int' 'long int' 'long long int'; do
34381        cat >conftest.$ac_ext <<_ACEOF
34382 /* confdefs.h.  */
34383 _ACEOF
34384 cat confdefs.h >>conftest.$ac_ext
34385 cat >>conftest.$ac_ext <<_ACEOF
34386 /* end confdefs.h.  */
34387 $ac_includes_default
34388 int
34389 main ()
34390 {
34391 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34392 test_array [0] = 0
34393
34394   ;
34395   return 0;
34396 }
34397 _ACEOF
34398 rm -f conftest.$ac_objext
34399 if { (ac_try="$ac_compile"
34400 case "(($ac_try" in
34401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34402   *) ac_try_echo=$ac_try;;
34403 esac
34404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34405   (eval "$ac_compile") 2>conftest.er1
34406   ac_status=$?
34407   grep -v '^ *+' conftest.er1 >conftest.err
34408   rm -f conftest.er1
34409   cat conftest.err >&5
34410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411   (exit $ac_status); } && {
34412          test -z "$ac_c_werror_flag" ||
34413          test ! -s conftest.err
34414        } && test -s conftest.$ac_objext; then
34415
34416 cat >>confdefs.h <<_ACEOF
34417 #define intptr_t $ac_type
34418 _ACEOF
34419
34420           ac_type=
34421 else
34422   echo "$as_me: failed program was:" >&5
34423 sed 's/^/| /' conftest.$ac_ext >&5
34424
34425
34426 fi
34427
34428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34429        test -z "$ac_type" && break
34430      done
34431 fi
34432
34433
34434
34435   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34436 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34437 if test "${ac_cv_type_uintptr_t+set}" = set; then
34438   echo $ECHO_N "(cached) $ECHO_C" >&6
34439 else
34440   cat >conftest.$ac_ext <<_ACEOF
34441 /* confdefs.h.  */
34442 _ACEOF
34443 cat confdefs.h >>conftest.$ac_ext
34444 cat >>conftest.$ac_ext <<_ACEOF
34445 /* end confdefs.h.  */
34446 $ac_includes_default
34447 typedef uintptr_t ac__type_new_;
34448 int
34449 main ()
34450 {
34451 if ((ac__type_new_ *) 0)
34452   return 0;
34453 if (sizeof (ac__type_new_))
34454   return 0;
34455   ;
34456   return 0;
34457 }
34458 _ACEOF
34459 rm -f conftest.$ac_objext
34460 if { (ac_try="$ac_compile"
34461 case "(($ac_try" in
34462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34463   *) ac_try_echo=$ac_try;;
34464 esac
34465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34466   (eval "$ac_compile") 2>conftest.er1
34467   ac_status=$?
34468   grep -v '^ *+' conftest.er1 >conftest.err
34469   rm -f conftest.er1
34470   cat conftest.err >&5
34471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472   (exit $ac_status); } && {
34473          test -z "$ac_c_werror_flag" ||
34474          test ! -s conftest.err
34475        } && test -s conftest.$ac_objext; then
34476   ac_cv_type_uintptr_t=yes
34477 else
34478   echo "$as_me: failed program was:" >&5
34479 sed 's/^/| /' conftest.$ac_ext >&5
34480
34481         ac_cv_type_uintptr_t=no
34482 fi
34483
34484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34485 fi
34486 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34487 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34488 if test $ac_cv_type_uintptr_t = yes; then
34489
34490 cat >>confdefs.h <<\_ACEOF
34491 #define HAVE_UINTPTR_T 1
34492 _ACEOF
34493
34494 else
34495   for ac_type in 'unsigned int' 'unsigned long int' \
34496         'unsigned long long int'; do
34497        cat >conftest.$ac_ext <<_ACEOF
34498 /* confdefs.h.  */
34499 _ACEOF
34500 cat confdefs.h >>conftest.$ac_ext
34501 cat >>conftest.$ac_ext <<_ACEOF
34502 /* end confdefs.h.  */
34503 $ac_includes_default
34504 int
34505 main ()
34506 {
34507 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34508 test_array [0] = 0
34509
34510   ;
34511   return 0;
34512 }
34513 _ACEOF
34514 rm -f conftest.$ac_objext
34515 if { (ac_try="$ac_compile"
34516 case "(($ac_try" in
34517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34518   *) ac_try_echo=$ac_try;;
34519 esac
34520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34521   (eval "$ac_compile") 2>conftest.er1
34522   ac_status=$?
34523   grep -v '^ *+' conftest.er1 >conftest.err
34524   rm -f conftest.er1
34525   cat conftest.err >&5
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); } && {
34528          test -z "$ac_c_werror_flag" ||
34529          test ! -s conftest.err
34530        } && test -s conftest.$ac_objext; then
34531
34532 cat >>confdefs.h <<_ACEOF
34533 #define uintptr_t $ac_type
34534 _ACEOF
34535
34536           ac_type=
34537 else
34538   echo "$as_me: failed program was:" >&5
34539 sed 's/^/| /' conftest.$ac_ext >&5
34540
34541
34542 fi
34543
34544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34545        test -z "$ac_type" && break
34546      done
34547 fi
34548
34549
34550 { echo "$as_me:$LINENO: checking for ino_t" >&5
34551 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34552 if test "${ac_cv_type_ino_t+set}" = set; then
34553   echo $ECHO_N "(cached) $ECHO_C" >&6
34554 else
34555   cat >conftest.$ac_ext <<_ACEOF
34556 /* confdefs.h.  */
34557 _ACEOF
34558 cat confdefs.h >>conftest.$ac_ext
34559 cat >>conftest.$ac_ext <<_ACEOF
34560 /* end confdefs.h.  */
34561 $ac_includes_default
34562 typedef ino_t ac__type_new_;
34563 int
34564 main ()
34565 {
34566 if ((ac__type_new_ *) 0)
34567   return 0;
34568 if (sizeof (ac__type_new_))
34569   return 0;
34570   ;
34571   return 0;
34572 }
34573 _ACEOF
34574 rm -f conftest.$ac_objext
34575 if { (ac_try="$ac_compile"
34576 case "(($ac_try" in
34577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34578   *) ac_try_echo=$ac_try;;
34579 esac
34580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34581   (eval "$ac_compile") 2>conftest.er1
34582   ac_status=$?
34583   grep -v '^ *+' conftest.er1 >conftest.err
34584   rm -f conftest.er1
34585   cat conftest.err >&5
34586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587   (exit $ac_status); } && {
34588          test -z "$ac_c_werror_flag" ||
34589          test ! -s conftest.err
34590        } && test -s conftest.$ac_objext; then
34591   ac_cv_type_ino_t=yes
34592 else
34593   echo "$as_me: failed program was:" >&5
34594 sed 's/^/| /' conftest.$ac_ext >&5
34595
34596         ac_cv_type_ino_t=no
34597 fi
34598
34599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34600 fi
34601 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34602 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34603 if test $ac_cv_type_ino_t = yes; then
34604   :
34605 else
34606
34607 cat >>confdefs.h <<_ACEOF
34608 #define ino_t unsigned long
34609 _ACEOF
34610
34611 fi
34612
34613 { echo "$as_me:$LINENO: checking for dev_t" >&5
34614 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34615 if test "${ac_cv_type_dev_t+set}" = set; then
34616   echo $ECHO_N "(cached) $ECHO_C" >&6
34617 else
34618   cat >conftest.$ac_ext <<_ACEOF
34619 /* confdefs.h.  */
34620 _ACEOF
34621 cat confdefs.h >>conftest.$ac_ext
34622 cat >>conftest.$ac_ext <<_ACEOF
34623 /* end confdefs.h.  */
34624 $ac_includes_default
34625 typedef dev_t ac__type_new_;
34626 int
34627 main ()
34628 {
34629 if ((ac__type_new_ *) 0)
34630   return 0;
34631 if (sizeof (ac__type_new_))
34632   return 0;
34633   ;
34634   return 0;
34635 }
34636 _ACEOF
34637 rm -f conftest.$ac_objext
34638 if { (ac_try="$ac_compile"
34639 case "(($ac_try" in
34640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641   *) ac_try_echo=$ac_try;;
34642 esac
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644   (eval "$ac_compile") 2>conftest.er1
34645   ac_status=$?
34646   grep -v '^ *+' conftest.er1 >conftest.err
34647   rm -f conftest.er1
34648   cat conftest.err >&5
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); } && {
34651          test -z "$ac_c_werror_flag" ||
34652          test ! -s conftest.err
34653        } && test -s conftest.$ac_objext; then
34654   ac_cv_type_dev_t=yes
34655 else
34656   echo "$as_me: failed program was:" >&5
34657 sed 's/^/| /' conftest.$ac_ext >&5
34658
34659         ac_cv_type_dev_t=no
34660 fi
34661
34662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34663 fi
34664 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34665 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34666 if test $ac_cv_type_dev_t = yes; then
34667   :
34668 else
34669
34670 cat >>confdefs.h <<_ACEOF
34671 #define dev_t unsigned long
34672 _ACEOF
34673
34674 fi
34675
34676 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34677 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34678 if test "${ac_cv_type_daddr_t+set}" = set; then
34679   echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681   cat >conftest.$ac_ext <<_ACEOF
34682 /* confdefs.h.  */
34683 _ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h.  */
34687 $ac_includes_default
34688 typedef daddr_t ac__type_new_;
34689 int
34690 main ()
34691 {
34692 if ((ac__type_new_ *) 0)
34693   return 0;
34694 if (sizeof (ac__type_new_))
34695   return 0;
34696   ;
34697   return 0;
34698 }
34699 _ACEOF
34700 rm -f conftest.$ac_objext
34701 if { (ac_try="$ac_compile"
34702 case "(($ac_try" in
34703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34704   *) ac_try_echo=$ac_try;;
34705 esac
34706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34707   (eval "$ac_compile") 2>conftest.er1
34708   ac_status=$?
34709   grep -v '^ *+' conftest.er1 >conftest.err
34710   rm -f conftest.er1
34711   cat conftest.err >&5
34712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713   (exit $ac_status); } && {
34714          test -z "$ac_c_werror_flag" ||
34715          test ! -s conftest.err
34716        } && test -s conftest.$ac_objext; then
34717   ac_cv_type_daddr_t=yes
34718 else
34719   echo "$as_me: failed program was:" >&5
34720 sed 's/^/| /' conftest.$ac_ext >&5
34721
34722         ac_cv_type_daddr_t=no
34723 fi
34724
34725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34726 fi
34727 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34728 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34729 if test $ac_cv_type_daddr_t = yes; then
34730   :
34731 else
34732
34733 cat >>confdefs.h <<_ACEOF
34734 #define daddr_t long
34735 _ACEOF
34736
34737 fi
34738
34739 { echo "$as_me:$LINENO: checking for major_t" >&5
34740 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34741 if test "${ac_cv_type_major_t+set}" = set; then
34742   echo $ECHO_N "(cached) $ECHO_C" >&6
34743 else
34744   cat >conftest.$ac_ext <<_ACEOF
34745 /* confdefs.h.  */
34746 _ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h.  */
34750 $ac_includes_default
34751 typedef major_t ac__type_new_;
34752 int
34753 main ()
34754 {
34755 if ((ac__type_new_ *) 0)
34756   return 0;
34757 if (sizeof (ac__type_new_))
34758   return 0;
34759   ;
34760   return 0;
34761 }
34762 _ACEOF
34763 rm -f conftest.$ac_objext
34764 if { (ac_try="$ac_compile"
34765 case "(($ac_try" in
34766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34767   *) ac_try_echo=$ac_try;;
34768 esac
34769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34770   (eval "$ac_compile") 2>conftest.er1
34771   ac_status=$?
34772   grep -v '^ *+' conftest.er1 >conftest.err
34773   rm -f conftest.er1
34774   cat conftest.err >&5
34775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776   (exit $ac_status); } && {
34777          test -z "$ac_c_werror_flag" ||
34778          test ! -s conftest.err
34779        } && test -s conftest.$ac_objext; then
34780   ac_cv_type_major_t=yes
34781 else
34782   echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34784
34785         ac_cv_type_major_t=no
34786 fi
34787
34788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34789 fi
34790 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34791 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34792 if test $ac_cv_type_major_t = yes; then
34793   :
34794 else
34795
34796 cat >>confdefs.h <<_ACEOF
34797 #define major_t int
34798 _ACEOF
34799
34800 fi
34801
34802 { echo "$as_me:$LINENO: checking for minor_t" >&5
34803 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34804 if test "${ac_cv_type_minor_t+set}" = set; then
34805   echo $ECHO_N "(cached) $ECHO_C" >&6
34806 else
34807   cat >conftest.$ac_ext <<_ACEOF
34808 /* confdefs.h.  */
34809 _ACEOF
34810 cat confdefs.h >>conftest.$ac_ext
34811 cat >>conftest.$ac_ext <<_ACEOF
34812 /* end confdefs.h.  */
34813 $ac_includes_default
34814 typedef minor_t ac__type_new_;
34815 int
34816 main ()
34817 {
34818 if ((ac__type_new_ *) 0)
34819   return 0;
34820 if (sizeof (ac__type_new_))
34821   return 0;
34822   ;
34823   return 0;
34824 }
34825 _ACEOF
34826 rm -f conftest.$ac_objext
34827 if { (ac_try="$ac_compile"
34828 case "(($ac_try" in
34829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34830   *) ac_try_echo=$ac_try;;
34831 esac
34832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34833   (eval "$ac_compile") 2>conftest.er1
34834   ac_status=$?
34835   grep -v '^ *+' conftest.er1 >conftest.err
34836   rm -f conftest.er1
34837   cat conftest.err >&5
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); } && {
34840          test -z "$ac_c_werror_flag" ||
34841          test ! -s conftest.err
34842        } && test -s conftest.$ac_objext; then
34843   ac_cv_type_minor_t=yes
34844 else
34845   echo "$as_me: failed program was:" >&5
34846 sed 's/^/| /' conftest.$ac_ext >&5
34847
34848         ac_cv_type_minor_t=no
34849 fi
34850
34851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34852 fi
34853 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34854 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34855 if test $ac_cv_type_minor_t = yes; then
34856   :
34857 else
34858
34859 cat >>confdefs.h <<_ACEOF
34860 #define minor_t int
34861 _ACEOF
34862
34863 fi
34864
34865 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34866 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34867 if test "${ac_cv_type_ssize_t+set}" = set; then
34868   echo $ECHO_N "(cached) $ECHO_C" >&6
34869 else
34870   cat >conftest.$ac_ext <<_ACEOF
34871 /* confdefs.h.  */
34872 _ACEOF
34873 cat confdefs.h >>conftest.$ac_ext
34874 cat >>conftest.$ac_ext <<_ACEOF
34875 /* end confdefs.h.  */
34876 $ac_includes_default
34877 typedef ssize_t ac__type_new_;
34878 int
34879 main ()
34880 {
34881 if ((ac__type_new_ *) 0)
34882   return 0;
34883 if (sizeof (ac__type_new_))
34884   return 0;
34885   ;
34886   return 0;
34887 }
34888 _ACEOF
34889 rm -f conftest.$ac_objext
34890 if { (ac_try="$ac_compile"
34891 case "(($ac_try" in
34892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34893   *) ac_try_echo=$ac_try;;
34894 esac
34895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34896   (eval "$ac_compile") 2>conftest.er1
34897   ac_status=$?
34898   grep -v '^ *+' conftest.er1 >conftest.err
34899   rm -f conftest.er1
34900   cat conftest.err >&5
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } && {
34903          test -z "$ac_c_werror_flag" ||
34904          test ! -s conftest.err
34905        } && test -s conftest.$ac_objext; then
34906   ac_cv_type_ssize_t=yes
34907 else
34908   echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34910
34911         ac_cv_type_ssize_t=no
34912 fi
34913
34914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34915 fi
34916 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34917 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34918 if test $ac_cv_type_ssize_t = yes; then
34919   :
34920 else
34921
34922 cat >>confdefs.h <<_ACEOF
34923 #define ssize_t int
34924 _ACEOF
34925
34926 fi
34927
34928 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34929 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34930 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34931   echo $ECHO_N "(cached) $ECHO_C" >&6
34932 else
34933   cat >conftest.$ac_ext <<_ACEOF
34934 /* confdefs.h.  */
34935 _ACEOF
34936 cat confdefs.h >>conftest.$ac_ext
34937 cat >>conftest.$ac_ext <<_ACEOF
34938 /* end confdefs.h.  */
34939 $ac_includes_default
34940 int
34941 main ()
34942 {
34943 static struct stat ac_aggr;
34944 if (ac_aggr.st_blocks)
34945 return 0;
34946   ;
34947   return 0;
34948 }
34949 _ACEOF
34950 rm -f conftest.$ac_objext
34951 if { (ac_try="$ac_compile"
34952 case "(($ac_try" in
34953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34954   *) ac_try_echo=$ac_try;;
34955 esac
34956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34957   (eval "$ac_compile") 2>conftest.er1
34958   ac_status=$?
34959   grep -v '^ *+' conftest.er1 >conftest.err
34960   rm -f conftest.er1
34961   cat conftest.err >&5
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); } && {
34964          test -z "$ac_c_werror_flag" ||
34965          test ! -s conftest.err
34966        } && test -s conftest.$ac_objext; then
34967   ac_cv_member_struct_stat_st_blocks=yes
34968 else
34969   echo "$as_me: failed program was:" >&5
34970 sed 's/^/| /' conftest.$ac_ext >&5
34971
34972         cat >conftest.$ac_ext <<_ACEOF
34973 /* confdefs.h.  */
34974 _ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h.  */
34978 $ac_includes_default
34979 int
34980 main ()
34981 {
34982 static struct stat ac_aggr;
34983 if (sizeof ac_aggr.st_blocks)
34984 return 0;
34985   ;
34986   return 0;
34987 }
34988 _ACEOF
34989 rm -f conftest.$ac_objext
34990 if { (ac_try="$ac_compile"
34991 case "(($ac_try" in
34992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34993   *) ac_try_echo=$ac_try;;
34994 esac
34995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34996   (eval "$ac_compile") 2>conftest.er1
34997   ac_status=$?
34998   grep -v '^ *+' conftest.er1 >conftest.err
34999   rm -f conftest.er1
35000   cat conftest.err >&5
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); } && {
35003          test -z "$ac_c_werror_flag" ||
35004          test ! -s conftest.err
35005        } && test -s conftest.$ac_objext; then
35006   ac_cv_member_struct_stat_st_blocks=yes
35007 else
35008   echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35010
35011         ac_cv_member_struct_stat_st_blocks=no
35012 fi
35013
35014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35015 fi
35016
35017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35018 fi
35019 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
35020 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
35021 if test $ac_cv_member_struct_stat_st_blocks = yes; then
35022
35023 cat >>confdefs.h <<_ACEOF
35024 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
35025 _ACEOF
35026
35027
35028 cat >>confdefs.h <<\_ACEOF
35029 #define HAVE_ST_BLOCKS 1
35030 _ACEOF
35031
35032 else
35033   case " $LIBOBJS " in
35034   *" fileblocks.$ac_objext "* ) ;;
35035   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
35036  ;;
35037 esac
35038
35039 fi
35040
35041
35042 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
35043 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
35044 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
35045   echo $ECHO_N "(cached) $ECHO_C" >&6
35046 else
35047   cat >conftest.$ac_ext <<_ACEOF
35048 /* confdefs.h.  */
35049 _ACEOF
35050 cat confdefs.h >>conftest.$ac_ext
35051 cat >>conftest.$ac_ext <<_ACEOF
35052 /* end confdefs.h.  */
35053 $ac_includes_default
35054 int
35055 main ()
35056 {
35057 static struct stat ac_aggr;
35058 if (ac_aggr.st_rdev)
35059 return 0;
35060   ;
35061   return 0;
35062 }
35063 _ACEOF
35064 rm -f conftest.$ac_objext
35065 if { (ac_try="$ac_compile"
35066 case "(($ac_try" in
35067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35068   *) ac_try_echo=$ac_try;;
35069 esac
35070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35071   (eval "$ac_compile") 2>conftest.er1
35072   ac_status=$?
35073   grep -v '^ *+' conftest.er1 >conftest.err
35074   rm -f conftest.er1
35075   cat conftest.err >&5
35076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077   (exit $ac_status); } && {
35078          test -z "$ac_c_werror_flag" ||
35079          test ! -s conftest.err
35080        } && test -s conftest.$ac_objext; then
35081   ac_cv_member_struct_stat_st_rdev=yes
35082 else
35083   echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35085
35086         cat >conftest.$ac_ext <<_ACEOF
35087 /* confdefs.h.  */
35088 _ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h.  */
35092 $ac_includes_default
35093 int
35094 main ()
35095 {
35096 static struct stat ac_aggr;
35097 if (sizeof ac_aggr.st_rdev)
35098 return 0;
35099   ;
35100   return 0;
35101 }
35102 _ACEOF
35103 rm -f conftest.$ac_objext
35104 if { (ac_try="$ac_compile"
35105 case "(($ac_try" in
35106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35107   *) ac_try_echo=$ac_try;;
35108 esac
35109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35110   (eval "$ac_compile") 2>conftest.er1
35111   ac_status=$?
35112   grep -v '^ *+' conftest.er1 >conftest.err
35113   rm -f conftest.er1
35114   cat conftest.err >&5
35115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116   (exit $ac_status); } && {
35117          test -z "$ac_c_werror_flag" ||
35118          test ! -s conftest.err
35119        } && test -s conftest.$ac_objext; then
35120   ac_cv_member_struct_stat_st_rdev=yes
35121 else
35122   echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.$ac_ext >&5
35124
35125         ac_cv_member_struct_stat_st_rdev=no
35126 fi
35127
35128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35129 fi
35130
35131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35132 fi
35133 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
35134 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
35135 if test $ac_cv_member_struct_stat_st_rdev = yes; then
35136
35137 cat >>confdefs.h <<_ACEOF
35138 #define HAVE_STRUCT_STAT_ST_RDEV 1
35139 _ACEOF
35140
35141
35142 cat >>confdefs.h <<\_ACEOF
35143 #define HAVE_ST_RDEV 1
35144 _ACEOF
35145
35146 fi
35147
35148
35149 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
35150 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
35151 if test "${ac_cv_struct_tm+set}" = set; then
35152   echo $ECHO_N "(cached) $ECHO_C" >&6
35153 else
35154   cat >conftest.$ac_ext <<_ACEOF
35155 /* confdefs.h.  */
35156 _ACEOF
35157 cat confdefs.h >>conftest.$ac_ext
35158 cat >>conftest.$ac_ext <<_ACEOF
35159 /* end confdefs.h.  */
35160 #include <sys/types.h>
35161 #include <time.h>
35162
35163 int
35164 main ()
35165 {
35166 struct tm tm;
35167                                      int *p = &tm.tm_sec;
35168                                      return !p;
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext
35174 if { (ac_try="$ac_compile"
35175 case "(($ac_try" in
35176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35177   *) ac_try_echo=$ac_try;;
35178 esac
35179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35180   (eval "$ac_compile") 2>conftest.er1
35181   ac_status=$?
35182   grep -v '^ *+' conftest.er1 >conftest.err
35183   rm -f conftest.er1
35184   cat conftest.err >&5
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); } && {
35187          test -z "$ac_c_werror_flag" ||
35188          test ! -s conftest.err
35189        } && test -s conftest.$ac_objext; then
35190   ac_cv_struct_tm=time.h
35191 else
35192   echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35194
35195         ac_cv_struct_tm=sys/time.h
35196 fi
35197
35198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35199 fi
35200 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
35201 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
35202 if test $ac_cv_struct_tm = sys/time.h; then
35203
35204 cat >>confdefs.h <<\_ACEOF
35205 #define TM_IN_SYS_TIME 1
35206 _ACEOF
35207
35208 fi
35209
35210 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35211 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
35212 if test "${ac_cv_c_const+set}" = set; then
35213   echo $ECHO_N "(cached) $ECHO_C" >&6
35214 else
35215   cat >conftest.$ac_ext <<_ACEOF
35216 /* confdefs.h.  */
35217 _ACEOF
35218 cat confdefs.h >>conftest.$ac_ext
35219 cat >>conftest.$ac_ext <<_ACEOF
35220 /* end confdefs.h.  */
35221
35222 int
35223 main ()
35224 {
35225 /* FIXME: Include the comments suggested by Paul. */
35226 #ifndef __cplusplus
35227   /* Ultrix mips cc rejects this.  */
35228   typedef int charset[2];
35229   const charset cs;
35230   /* SunOS 4.1.1 cc rejects this.  */
35231   char const *const *pcpcc;
35232   char **ppc;
35233   /* NEC SVR4.0.2 mips cc rejects this.  */
35234   struct point {int x, y;};
35235   static struct point const zero = {0,0};
35236   /* AIX XL C 1.02.0.0 rejects this.
35237      It does not let you subtract one const X* pointer from another in
35238      an arm of an if-expression whose if-part is not a constant
35239      expression */
35240   const char *g = "string";
35241   pcpcc = &g + (g ? g-g : 0);
35242   /* HPUX 7.0 cc rejects these. */
35243   ++pcpcc;
35244   ppc = (char**) pcpcc;
35245   pcpcc = (char const *const *) ppc;
35246   { /* SCO 3.2v4 cc rejects this.  */
35247     char *t;
35248     char const *s = 0 ? (char *) 0 : (char const *) 0;
35249
35250     *t++ = 0;
35251     if (s) return 0;
35252   }
35253   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35254     int x[] = {25, 17};
35255     const int *foo = &x[0];
35256     ++foo;
35257   }
35258   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35259     typedef const int *iptr;
35260     iptr p = 0;
35261     ++p;
35262   }
35263   { /* AIX XL C 1.02.0.0 rejects this saying
35264        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35265     struct s { int j; const int *ap[3]; };
35266     struct s *b; b->j = 5;
35267   }
35268   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35269     const int foo = 10;
35270     if (!foo) return 0;
35271   }
35272   return !cs[0] && !zero.x;
35273 #endif
35274
35275   ;
35276   return 0;
35277 }
35278 _ACEOF
35279 rm -f conftest.$ac_objext
35280 if { (ac_try="$ac_compile"
35281 case "(($ac_try" in
35282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283   *) ac_try_echo=$ac_try;;
35284 esac
35285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35286   (eval "$ac_compile") 2>conftest.er1
35287   ac_status=$?
35288   grep -v '^ *+' conftest.er1 >conftest.err
35289   rm -f conftest.er1
35290   cat conftest.err >&5
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); } && {
35293          test -z "$ac_c_werror_flag" ||
35294          test ! -s conftest.err
35295        } && test -s conftest.$ac_objext; then
35296   ac_cv_c_const=yes
35297 else
35298   echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35300
35301         ac_cv_c_const=no
35302 fi
35303
35304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 fi
35306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35308 if test $ac_cv_c_const = no; then
35309
35310 cat >>confdefs.h <<\_ACEOF
35311 #define const
35312 _ACEOF
35313
35314 fi
35315
35316
35317 { echo "$as_me:$LINENO: checking for char" >&5
35318 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35319 if test "${ac_cv_type_char+set}" = set; then
35320   echo $ECHO_N "(cached) $ECHO_C" >&6
35321 else
35322   cat >conftest.$ac_ext <<_ACEOF
35323 /* confdefs.h.  */
35324 _ACEOF
35325 cat confdefs.h >>conftest.$ac_ext
35326 cat >>conftest.$ac_ext <<_ACEOF
35327 /* end confdefs.h.  */
35328 $ac_includes_default
35329 typedef char ac__type_new_;
35330 int
35331 main ()
35332 {
35333 if ((ac__type_new_ *) 0)
35334   return 0;
35335 if (sizeof (ac__type_new_))
35336   return 0;
35337   ;
35338   return 0;
35339 }
35340 _ACEOF
35341 rm -f conftest.$ac_objext
35342 if { (ac_try="$ac_compile"
35343 case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348   (eval "$ac_compile") 2>conftest.er1
35349   ac_status=$?
35350   grep -v '^ *+' conftest.er1 >conftest.err
35351   rm -f conftest.er1
35352   cat conftest.err >&5
35353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354   (exit $ac_status); } && {
35355          test -z "$ac_c_werror_flag" ||
35356          test ! -s conftest.err
35357        } && test -s conftest.$ac_objext; then
35358   ac_cv_type_char=yes
35359 else
35360   echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35362
35363         ac_cv_type_char=no
35364 fi
35365
35366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35367 fi
35368 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35369 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35370
35371 # The cast to long int works around a bug in the HP C Compiler
35372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35374 # This bug is HP SR number 8606223364.
35375 { echo "$as_me:$LINENO: checking size of char" >&5
35376 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35377 if test "${ac_cv_sizeof_char+set}" = set; then
35378   echo $ECHO_N "(cached) $ECHO_C" >&6
35379 else
35380   if test "$cross_compiling" = yes; then
35381   # Depending upon the size, compute the lo and hi bounds.
35382 cat >conftest.$ac_ext <<_ACEOF
35383 /* confdefs.h.  */
35384 _ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h.  */
35388 $ac_includes_default
35389    typedef char ac__type_sizeof_;
35390 int
35391 main ()
35392 {
35393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35394 test_array [0] = 0
35395
35396   ;
35397   return 0;
35398 }
35399 _ACEOF
35400 rm -f conftest.$ac_objext
35401 if { (ac_try="$ac_compile"
35402 case "(($ac_try" in
35403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35404   *) ac_try_echo=$ac_try;;
35405 esac
35406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35407   (eval "$ac_compile") 2>conftest.er1
35408   ac_status=$?
35409   grep -v '^ *+' conftest.er1 >conftest.err
35410   rm -f conftest.er1
35411   cat conftest.err >&5
35412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413   (exit $ac_status); } && {
35414          test -z "$ac_c_werror_flag" ||
35415          test ! -s conftest.err
35416        } && test -s conftest.$ac_objext; then
35417   ac_lo=0 ac_mid=0
35418   while :; do
35419     cat >conftest.$ac_ext <<_ACEOF
35420 /* confdefs.h.  */
35421 _ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h.  */
35425 $ac_includes_default
35426    typedef char ac__type_sizeof_;
35427 int
35428 main ()
35429 {
35430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35431 test_array [0] = 0
35432
35433   ;
35434   return 0;
35435 }
35436 _ACEOF
35437 rm -f conftest.$ac_objext
35438 if { (ac_try="$ac_compile"
35439 case "(($ac_try" in
35440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35441   *) ac_try_echo=$ac_try;;
35442 esac
35443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35444   (eval "$ac_compile") 2>conftest.er1
35445   ac_status=$?
35446   grep -v '^ *+' conftest.er1 >conftest.err
35447   rm -f conftest.er1
35448   cat conftest.err >&5
35449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450   (exit $ac_status); } && {
35451          test -z "$ac_c_werror_flag" ||
35452          test ! -s conftest.err
35453        } && test -s conftest.$ac_objext; then
35454   ac_hi=$ac_mid; break
35455 else
35456   echo "$as_me: failed program was:" >&5
35457 sed 's/^/| /' conftest.$ac_ext >&5
35458
35459         ac_lo=`expr $ac_mid + 1`
35460                         if test $ac_lo -le $ac_mid; then
35461                           ac_lo= ac_hi=
35462                           break
35463                         fi
35464                         ac_mid=`expr 2 '*' $ac_mid + 1`
35465 fi
35466
35467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35468   done
35469 else
35470   echo "$as_me: failed program was:" >&5
35471 sed 's/^/| /' conftest.$ac_ext >&5
35472
35473         cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h.  */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h.  */
35479 $ac_includes_default
35480    typedef char ac__type_sizeof_;
35481 int
35482 main ()
35483 {
35484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35485 test_array [0] = 0
35486
35487   ;
35488   return 0;
35489 }
35490 _ACEOF
35491 rm -f conftest.$ac_objext
35492 if { (ac_try="$ac_compile"
35493 case "(($ac_try" in
35494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495   *) ac_try_echo=$ac_try;;
35496 esac
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498   (eval "$ac_compile") 2>conftest.er1
35499   ac_status=$?
35500   grep -v '^ *+' conftest.er1 >conftest.err
35501   rm -f conftest.er1
35502   cat conftest.err >&5
35503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504   (exit $ac_status); } && {
35505          test -z "$ac_c_werror_flag" ||
35506          test ! -s conftest.err
35507        } && test -s conftest.$ac_objext; then
35508   ac_hi=-1 ac_mid=-1
35509   while :; do
35510     cat >conftest.$ac_ext <<_ACEOF
35511 /* confdefs.h.  */
35512 _ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h.  */
35516 $ac_includes_default
35517    typedef char ac__type_sizeof_;
35518 int
35519 main ()
35520 {
35521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35522 test_array [0] = 0
35523
35524   ;
35525   return 0;
35526 }
35527 _ACEOF
35528 rm -f conftest.$ac_objext
35529 if { (ac_try="$ac_compile"
35530 case "(($ac_try" in
35531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35532   *) ac_try_echo=$ac_try;;
35533 esac
35534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35535   (eval "$ac_compile") 2>conftest.er1
35536   ac_status=$?
35537   grep -v '^ *+' conftest.er1 >conftest.err
35538   rm -f conftest.er1
35539   cat conftest.err >&5
35540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541   (exit $ac_status); } && {
35542          test -z "$ac_c_werror_flag" ||
35543          test ! -s conftest.err
35544        } && test -s conftest.$ac_objext; then
35545   ac_lo=$ac_mid; break
35546 else
35547   echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35549
35550         ac_hi=`expr '(' $ac_mid ')' - 1`
35551                         if test $ac_mid -le $ac_hi; then
35552                           ac_lo= ac_hi=
35553                           break
35554                         fi
35555                         ac_mid=`expr 2 '*' $ac_mid`
35556 fi
35557
35558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35559   done
35560 else
35561   echo "$as_me: failed program was:" >&5
35562 sed 's/^/| /' conftest.$ac_ext >&5
35563
35564         ac_lo= ac_hi=
35565 fi
35566
35567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35568 fi
35569
35570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35571 # Binary search between lo and hi bounds.
35572 while test "x$ac_lo" != "x$ac_hi"; do
35573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35574   cat >conftest.$ac_ext <<_ACEOF
35575 /* confdefs.h.  */
35576 _ACEOF
35577 cat confdefs.h >>conftest.$ac_ext
35578 cat >>conftest.$ac_ext <<_ACEOF
35579 /* end confdefs.h.  */
35580 $ac_includes_default
35581    typedef char ac__type_sizeof_;
35582 int
35583 main ()
35584 {
35585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35586 test_array [0] = 0
35587
35588   ;
35589   return 0;
35590 }
35591 _ACEOF
35592 rm -f conftest.$ac_objext
35593 if { (ac_try="$ac_compile"
35594 case "(($ac_try" in
35595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35596   *) ac_try_echo=$ac_try;;
35597 esac
35598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35599   (eval "$ac_compile") 2>conftest.er1
35600   ac_status=$?
35601   grep -v '^ *+' conftest.er1 >conftest.err
35602   rm -f conftest.er1
35603   cat conftest.err >&5
35604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605   (exit $ac_status); } && {
35606          test -z "$ac_c_werror_flag" ||
35607          test ! -s conftest.err
35608        } && test -s conftest.$ac_objext; then
35609   ac_hi=$ac_mid
35610 else
35611   echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35613
35614         ac_lo=`expr '(' $ac_mid ')' + 1`
35615 fi
35616
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618 done
35619 case $ac_lo in
35620 ?*) ac_cv_sizeof_char=$ac_lo;;
35621 '') if test "$ac_cv_type_char" = yes; then
35622      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35623 See \`config.log' for more details." >&5
35624 echo "$as_me: error: cannot compute sizeof (char)
35625 See \`config.log' for more details." >&2;}
35626    { (exit 77); exit 77; }; }
35627    else
35628      ac_cv_sizeof_char=0
35629    fi ;;
35630 esac
35631 else
35632   cat >conftest.$ac_ext <<_ACEOF
35633 /* confdefs.h.  */
35634 _ACEOF
35635 cat confdefs.h >>conftest.$ac_ext
35636 cat >>conftest.$ac_ext <<_ACEOF
35637 /* end confdefs.h.  */
35638 $ac_includes_default
35639    typedef char ac__type_sizeof_;
35640 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35641 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35642 #include <stdio.h>
35643 #include <stdlib.h>
35644 int
35645 main ()
35646 {
35647
35648   FILE *f = fopen ("conftest.val", "w");
35649   if (! f)
35650     return 1;
35651   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35652     {
35653       long int i = longval ();
35654       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35655         return 1;
35656       fprintf (f, "%ld\n", i);
35657     }
35658   else
35659     {
35660       unsigned long int i = ulongval ();
35661       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35662         return 1;
35663       fprintf (f, "%lu\n", i);
35664     }
35665   return ferror (f) || fclose (f) != 0;
35666
35667   ;
35668   return 0;
35669 }
35670 _ACEOF
35671 rm -f conftest$ac_exeext
35672 if { (ac_try="$ac_link"
35673 case "(($ac_try" in
35674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35675   *) ac_try_echo=$ac_try;;
35676 esac
35677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35678   (eval "$ac_link") 2>&5
35679   ac_status=$?
35680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35682   { (case "(($ac_try" in
35683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35684   *) ac_try_echo=$ac_try;;
35685 esac
35686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35687   (eval "$ac_try") 2>&5
35688   ac_status=$?
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); }; }; then
35691   ac_cv_sizeof_char=`cat conftest.val`
35692 else
35693   echo "$as_me: program exited with status $ac_status" >&5
35694 echo "$as_me: failed program was:" >&5
35695 sed 's/^/| /' conftest.$ac_ext >&5
35696
35697 ( exit $ac_status )
35698 if test "$ac_cv_type_char" = yes; then
35699      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35700 See \`config.log' for more details." >&5
35701 echo "$as_me: error: cannot compute sizeof (char)
35702 See \`config.log' for more details." >&2;}
35703    { (exit 77); exit 77; }; }
35704    else
35705      ac_cv_sizeof_char=0
35706    fi
35707 fi
35708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35709 fi
35710 rm -f conftest.val
35711 fi
35712 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35713 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35714
35715
35716
35717 cat >>confdefs.h <<_ACEOF
35718 #define SIZEOF_CHAR $ac_cv_sizeof_char
35719 _ACEOF
35720
35721
35722 { echo "$as_me:$LINENO: checking for short int" >&5
35723 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35724 if test "${ac_cv_type_short_int+set}" = set; then
35725   echo $ECHO_N "(cached) $ECHO_C" >&6
35726 else
35727   cat >conftest.$ac_ext <<_ACEOF
35728 /* confdefs.h.  */
35729 _ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h.  */
35733 $ac_includes_default
35734 typedef short int ac__type_new_;
35735 int
35736 main ()
35737 {
35738 if ((ac__type_new_ *) 0)
35739   return 0;
35740 if (sizeof (ac__type_new_))
35741   return 0;
35742   ;
35743   return 0;
35744 }
35745 _ACEOF
35746 rm -f conftest.$ac_objext
35747 if { (ac_try="$ac_compile"
35748 case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_compile") 2>conftest.er1
35754   ac_status=$?
35755   grep -v '^ *+' conftest.er1 >conftest.err
35756   rm -f conftest.er1
35757   cat conftest.err >&5
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); } && {
35760          test -z "$ac_c_werror_flag" ||
35761          test ! -s conftest.err
35762        } && test -s conftest.$ac_objext; then
35763   ac_cv_type_short_int=yes
35764 else
35765   echo "$as_me: failed program was:" >&5
35766 sed 's/^/| /' conftest.$ac_ext >&5
35767
35768         ac_cv_type_short_int=no
35769 fi
35770
35771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35772 fi
35773 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35774 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35775
35776 # The cast to long int works around a bug in the HP C Compiler
35777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35779 # This bug is HP SR number 8606223364.
35780 { echo "$as_me:$LINENO: checking size of short int" >&5
35781 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35782 if test "${ac_cv_sizeof_short_int+set}" = set; then
35783   echo $ECHO_N "(cached) $ECHO_C" >&6
35784 else
35785   if test "$cross_compiling" = yes; then
35786   # Depending upon the size, compute the lo and hi bounds.
35787 cat >conftest.$ac_ext <<_ACEOF
35788 /* confdefs.h.  */
35789 _ACEOF
35790 cat confdefs.h >>conftest.$ac_ext
35791 cat >>conftest.$ac_ext <<_ACEOF
35792 /* end confdefs.h.  */
35793 $ac_includes_default
35794    typedef short int ac__type_sizeof_;
35795 int
35796 main ()
35797 {
35798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35799 test_array [0] = 0
35800
35801   ;
35802   return 0;
35803 }
35804 _ACEOF
35805 rm -f conftest.$ac_objext
35806 if { (ac_try="$ac_compile"
35807 case "(($ac_try" in
35808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35809   *) ac_try_echo=$ac_try;;
35810 esac
35811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35812   (eval "$ac_compile") 2>conftest.er1
35813   ac_status=$?
35814   grep -v '^ *+' conftest.er1 >conftest.err
35815   rm -f conftest.er1
35816   cat conftest.err >&5
35817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818   (exit $ac_status); } && {
35819          test -z "$ac_c_werror_flag" ||
35820          test ! -s conftest.err
35821        } && test -s conftest.$ac_objext; then
35822   ac_lo=0 ac_mid=0
35823   while :; do
35824     cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830 $ac_includes_default
35831    typedef short int ac__type_sizeof_;
35832 int
35833 main ()
35834 {
35835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35836 test_array [0] = 0
35837
35838   ;
35839   return 0;
35840 }
35841 _ACEOF
35842 rm -f conftest.$ac_objext
35843 if { (ac_try="$ac_compile"
35844 case "(($ac_try" in
35845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35846   *) ac_try_echo=$ac_try;;
35847 esac
35848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35849   (eval "$ac_compile") 2>conftest.er1
35850   ac_status=$?
35851   grep -v '^ *+' conftest.er1 >conftest.err
35852   rm -f conftest.er1
35853   cat conftest.err >&5
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); } && {
35856          test -z "$ac_c_werror_flag" ||
35857          test ! -s conftest.err
35858        } && test -s conftest.$ac_objext; then
35859   ac_hi=$ac_mid; break
35860 else
35861   echo "$as_me: failed program was:" >&5
35862 sed 's/^/| /' conftest.$ac_ext >&5
35863
35864         ac_lo=`expr $ac_mid + 1`
35865                         if test $ac_lo -le $ac_mid; then
35866                           ac_lo= ac_hi=
35867                           break
35868                         fi
35869                         ac_mid=`expr 2 '*' $ac_mid + 1`
35870 fi
35871
35872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35873   done
35874 else
35875   echo "$as_me: failed program was:" >&5
35876 sed 's/^/| /' conftest.$ac_ext >&5
35877
35878         cat >conftest.$ac_ext <<_ACEOF
35879 /* confdefs.h.  */
35880 _ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h.  */
35884 $ac_includes_default
35885    typedef short int ac__type_sizeof_;
35886 int
35887 main ()
35888 {
35889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35890 test_array [0] = 0
35891
35892   ;
35893   return 0;
35894 }
35895 _ACEOF
35896 rm -f conftest.$ac_objext
35897 if { (ac_try="$ac_compile"
35898 case "(($ac_try" in
35899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35900   *) ac_try_echo=$ac_try;;
35901 esac
35902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35903   (eval "$ac_compile") 2>conftest.er1
35904   ac_status=$?
35905   grep -v '^ *+' conftest.er1 >conftest.err
35906   rm -f conftest.er1
35907   cat conftest.err >&5
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); } && {
35910          test -z "$ac_c_werror_flag" ||
35911          test ! -s conftest.err
35912        } && test -s conftest.$ac_objext; then
35913   ac_hi=-1 ac_mid=-1
35914   while :; do
35915     cat >conftest.$ac_ext <<_ACEOF
35916 /* confdefs.h.  */
35917 _ACEOF
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h.  */
35921 $ac_includes_default
35922    typedef short int ac__type_sizeof_;
35923 int
35924 main ()
35925 {
35926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35927 test_array [0] = 0
35928
35929   ;
35930   return 0;
35931 }
35932 _ACEOF
35933 rm -f conftest.$ac_objext
35934 if { (ac_try="$ac_compile"
35935 case "(($ac_try" in
35936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35937   *) ac_try_echo=$ac_try;;
35938 esac
35939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35940   (eval "$ac_compile") 2>conftest.er1
35941   ac_status=$?
35942   grep -v '^ *+' conftest.er1 >conftest.err
35943   rm -f conftest.er1
35944   cat conftest.err >&5
35945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946   (exit $ac_status); } && {
35947          test -z "$ac_c_werror_flag" ||
35948          test ! -s conftest.err
35949        } && test -s conftest.$ac_objext; then
35950   ac_lo=$ac_mid; break
35951 else
35952   echo "$as_me: failed program was:" >&5
35953 sed 's/^/| /' conftest.$ac_ext >&5
35954
35955         ac_hi=`expr '(' $ac_mid ')' - 1`
35956                         if test $ac_mid -le $ac_hi; then
35957                           ac_lo= ac_hi=
35958                           break
35959                         fi
35960                         ac_mid=`expr 2 '*' $ac_mid`
35961 fi
35962
35963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35964   done
35965 else
35966   echo "$as_me: failed program was:" >&5
35967 sed 's/^/| /' conftest.$ac_ext >&5
35968
35969         ac_lo= ac_hi=
35970 fi
35971
35972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35973 fi
35974
35975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35976 # Binary search between lo and hi bounds.
35977 while test "x$ac_lo" != "x$ac_hi"; do
35978   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35979   cat >conftest.$ac_ext <<_ACEOF
35980 /* confdefs.h.  */
35981 _ACEOF
35982 cat confdefs.h >>conftest.$ac_ext
35983 cat >>conftest.$ac_ext <<_ACEOF
35984 /* end confdefs.h.  */
35985 $ac_includes_default
35986    typedef short int ac__type_sizeof_;
35987 int
35988 main ()
35989 {
35990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35991 test_array [0] = 0
35992
35993   ;
35994   return 0;
35995 }
35996 _ACEOF
35997 rm -f conftest.$ac_objext
35998 if { (ac_try="$ac_compile"
35999 case "(($ac_try" in
36000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36001   *) ac_try_echo=$ac_try;;
36002 esac
36003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36004   (eval "$ac_compile") 2>conftest.er1
36005   ac_status=$?
36006   grep -v '^ *+' conftest.er1 >conftest.err
36007   rm -f conftest.er1
36008   cat conftest.err >&5
36009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010   (exit $ac_status); } && {
36011          test -z "$ac_c_werror_flag" ||
36012          test ! -s conftest.err
36013        } && test -s conftest.$ac_objext; then
36014   ac_hi=$ac_mid
36015 else
36016   echo "$as_me: failed program was:" >&5
36017 sed 's/^/| /' conftest.$ac_ext >&5
36018
36019         ac_lo=`expr '(' $ac_mid ')' + 1`
36020 fi
36021
36022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36023 done
36024 case $ac_lo in
36025 ?*) ac_cv_sizeof_short_int=$ac_lo;;
36026 '') if test "$ac_cv_type_short_int" = yes; then
36027      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
36028 See \`config.log' for more details." >&5
36029 echo "$as_me: error: cannot compute sizeof (short int)
36030 See \`config.log' for more details." >&2;}
36031    { (exit 77); exit 77; }; }
36032    else
36033      ac_cv_sizeof_short_int=0
36034    fi ;;
36035 esac
36036 else
36037   cat >conftest.$ac_ext <<_ACEOF
36038 /* confdefs.h.  */
36039 _ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h.  */
36043 $ac_includes_default
36044    typedef short int ac__type_sizeof_;
36045 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36046 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36047 #include <stdio.h>
36048 #include <stdlib.h>
36049 int
36050 main ()
36051 {
36052
36053   FILE *f = fopen ("conftest.val", "w");
36054   if (! f)
36055     return 1;
36056   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36057     {
36058       long int i = longval ();
36059       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36060         return 1;
36061       fprintf (f, "%ld\n", i);
36062     }
36063   else
36064     {
36065       unsigned long int i = ulongval ();
36066       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36067         return 1;
36068       fprintf (f, "%lu\n", i);
36069     }
36070   return ferror (f) || fclose (f) != 0;
36071
36072   ;
36073   return 0;
36074 }
36075 _ACEOF
36076 rm -f conftest$ac_exeext
36077 if { (ac_try="$ac_link"
36078 case "(($ac_try" in
36079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36080   *) ac_try_echo=$ac_try;;
36081 esac
36082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36083   (eval "$ac_link") 2>&5
36084   ac_status=$?
36085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36087   { (case "(($ac_try" in
36088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36089   *) ac_try_echo=$ac_try;;
36090 esac
36091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36092   (eval "$ac_try") 2>&5
36093   ac_status=$?
36094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095   (exit $ac_status); }; }; then
36096   ac_cv_sizeof_short_int=`cat conftest.val`
36097 else
36098   echo "$as_me: program exited with status $ac_status" >&5
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36101
36102 ( exit $ac_status )
36103 if test "$ac_cv_type_short_int" = yes; then
36104      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
36105 See \`config.log' for more details." >&5
36106 echo "$as_me: error: cannot compute sizeof (short int)
36107 See \`config.log' for more details." >&2;}
36108    { (exit 77); exit 77; }; }
36109    else
36110      ac_cv_sizeof_short_int=0
36111    fi
36112 fi
36113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36114 fi
36115 rm -f conftest.val
36116 fi
36117 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
36118 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
36119
36120
36121
36122 cat >>confdefs.h <<_ACEOF
36123 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
36124 _ACEOF
36125
36126
36127 { echo "$as_me:$LINENO: checking for int" >&5
36128 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
36129 if test "${ac_cv_type_int+set}" = set; then
36130   echo $ECHO_N "(cached) $ECHO_C" >&6
36131 else
36132   cat >conftest.$ac_ext <<_ACEOF
36133 /* confdefs.h.  */
36134 _ACEOF
36135 cat confdefs.h >>conftest.$ac_ext
36136 cat >>conftest.$ac_ext <<_ACEOF
36137 /* end confdefs.h.  */
36138 $ac_includes_default
36139 typedef int ac__type_new_;
36140 int
36141 main ()
36142 {
36143 if ((ac__type_new_ *) 0)
36144   return 0;
36145 if (sizeof (ac__type_new_))
36146   return 0;
36147   ;
36148   return 0;
36149 }
36150 _ACEOF
36151 rm -f conftest.$ac_objext
36152 if { (ac_try="$ac_compile"
36153 case "(($ac_try" in
36154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155   *) ac_try_echo=$ac_try;;
36156 esac
36157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36158   (eval "$ac_compile") 2>conftest.er1
36159   ac_status=$?
36160   grep -v '^ *+' conftest.er1 >conftest.err
36161   rm -f conftest.er1
36162   cat conftest.err >&5
36163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164   (exit $ac_status); } && {
36165          test -z "$ac_c_werror_flag" ||
36166          test ! -s conftest.err
36167        } && test -s conftest.$ac_objext; then
36168   ac_cv_type_int=yes
36169 else
36170   echo "$as_me: failed program was:" >&5
36171 sed 's/^/| /' conftest.$ac_ext >&5
36172
36173         ac_cv_type_int=no
36174 fi
36175
36176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36177 fi
36178 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
36179 echo "${ECHO_T}$ac_cv_type_int" >&6; }
36180
36181 # The cast to long int works around a bug in the HP C Compiler
36182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36184 # This bug is HP SR number 8606223364.
36185 { echo "$as_me:$LINENO: checking size of int" >&5
36186 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
36187 if test "${ac_cv_sizeof_int+set}" = set; then
36188   echo $ECHO_N "(cached) $ECHO_C" >&6
36189 else
36190   if test "$cross_compiling" = yes; then
36191   # Depending upon the size, compute the lo and hi bounds.
36192 cat >conftest.$ac_ext <<_ACEOF
36193 /* confdefs.h.  */
36194 _ACEOF
36195 cat confdefs.h >>conftest.$ac_ext
36196 cat >>conftest.$ac_ext <<_ACEOF
36197 /* end confdefs.h.  */
36198 $ac_includes_default
36199    typedef int ac__type_sizeof_;
36200 int
36201 main ()
36202 {
36203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36204 test_array [0] = 0
36205
36206   ;
36207   return 0;
36208 }
36209 _ACEOF
36210 rm -f conftest.$ac_objext
36211 if { (ac_try="$ac_compile"
36212 case "(($ac_try" in
36213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36214   *) ac_try_echo=$ac_try;;
36215 esac
36216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36217   (eval "$ac_compile") 2>conftest.er1
36218   ac_status=$?
36219   grep -v '^ *+' conftest.er1 >conftest.err
36220   rm -f conftest.er1
36221   cat conftest.err >&5
36222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36223   (exit $ac_status); } && {
36224          test -z "$ac_c_werror_flag" ||
36225          test ! -s conftest.err
36226        } && test -s conftest.$ac_objext; then
36227   ac_lo=0 ac_mid=0
36228   while :; do
36229     cat >conftest.$ac_ext <<_ACEOF
36230 /* confdefs.h.  */
36231 _ACEOF
36232 cat confdefs.h >>conftest.$ac_ext
36233 cat >>conftest.$ac_ext <<_ACEOF
36234 /* end confdefs.h.  */
36235 $ac_includes_default
36236    typedef int ac__type_sizeof_;
36237 int
36238 main ()
36239 {
36240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36241 test_array [0] = 0
36242
36243   ;
36244   return 0;
36245 }
36246 _ACEOF
36247 rm -f conftest.$ac_objext
36248 if { (ac_try="$ac_compile"
36249 case "(($ac_try" in
36250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36251   *) ac_try_echo=$ac_try;;
36252 esac
36253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36254   (eval "$ac_compile") 2>conftest.er1
36255   ac_status=$?
36256   grep -v '^ *+' conftest.er1 >conftest.err
36257   rm -f conftest.er1
36258   cat conftest.err >&5
36259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260   (exit $ac_status); } && {
36261          test -z "$ac_c_werror_flag" ||
36262          test ! -s conftest.err
36263        } && test -s conftest.$ac_objext; then
36264   ac_hi=$ac_mid; break
36265 else
36266   echo "$as_me: failed program was:" >&5
36267 sed 's/^/| /' conftest.$ac_ext >&5
36268
36269         ac_lo=`expr $ac_mid + 1`
36270                         if test $ac_lo -le $ac_mid; then
36271                           ac_lo= ac_hi=
36272                           break
36273                         fi
36274                         ac_mid=`expr 2 '*' $ac_mid + 1`
36275 fi
36276
36277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36278   done
36279 else
36280   echo "$as_me: failed program was:" >&5
36281 sed 's/^/| /' conftest.$ac_ext >&5
36282
36283         cat >conftest.$ac_ext <<_ACEOF
36284 /* confdefs.h.  */
36285 _ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h.  */
36289 $ac_includes_default
36290    typedef int ac__type_sizeof_;
36291 int
36292 main ()
36293 {
36294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36295 test_array [0] = 0
36296
36297   ;
36298   return 0;
36299 }
36300 _ACEOF
36301 rm -f conftest.$ac_objext
36302 if { (ac_try="$ac_compile"
36303 case "(($ac_try" in
36304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305   *) ac_try_echo=$ac_try;;
36306 esac
36307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36308   (eval "$ac_compile") 2>conftest.er1
36309   ac_status=$?
36310   grep -v '^ *+' conftest.er1 >conftest.err
36311   rm -f conftest.er1
36312   cat conftest.err >&5
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); } && {
36315          test -z "$ac_c_werror_flag" ||
36316          test ! -s conftest.err
36317        } && test -s conftest.$ac_objext; then
36318   ac_hi=-1 ac_mid=-1
36319   while :; do
36320     cat >conftest.$ac_ext <<_ACEOF
36321 /* confdefs.h.  */
36322 _ACEOF
36323 cat confdefs.h >>conftest.$ac_ext
36324 cat >>conftest.$ac_ext <<_ACEOF
36325 /* end confdefs.h.  */
36326 $ac_includes_default
36327    typedef int ac__type_sizeof_;
36328 int
36329 main ()
36330 {
36331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36332 test_array [0] = 0
36333
36334   ;
36335   return 0;
36336 }
36337 _ACEOF
36338 rm -f conftest.$ac_objext
36339 if { (ac_try="$ac_compile"
36340 case "(($ac_try" in
36341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36342   *) ac_try_echo=$ac_try;;
36343 esac
36344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36345   (eval "$ac_compile") 2>conftest.er1
36346   ac_status=$?
36347   grep -v '^ *+' conftest.er1 >conftest.err
36348   rm -f conftest.er1
36349   cat conftest.err >&5
36350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351   (exit $ac_status); } && {
36352          test -z "$ac_c_werror_flag" ||
36353          test ! -s conftest.err
36354        } && test -s conftest.$ac_objext; then
36355   ac_lo=$ac_mid; break
36356 else
36357   echo "$as_me: failed program was:" >&5
36358 sed 's/^/| /' conftest.$ac_ext >&5
36359
36360         ac_hi=`expr '(' $ac_mid ')' - 1`
36361                         if test $ac_mid -le $ac_hi; then
36362                           ac_lo= ac_hi=
36363                           break
36364                         fi
36365                         ac_mid=`expr 2 '*' $ac_mid`
36366 fi
36367
36368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36369   done
36370 else
36371   echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36373
36374         ac_lo= ac_hi=
36375 fi
36376
36377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36378 fi
36379
36380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36381 # Binary search between lo and hi bounds.
36382 while test "x$ac_lo" != "x$ac_hi"; do
36383   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36384   cat >conftest.$ac_ext <<_ACEOF
36385 /* confdefs.h.  */
36386 _ACEOF
36387 cat confdefs.h >>conftest.$ac_ext
36388 cat >>conftest.$ac_ext <<_ACEOF
36389 /* end confdefs.h.  */
36390 $ac_includes_default
36391    typedef int ac__type_sizeof_;
36392 int
36393 main ()
36394 {
36395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36396 test_array [0] = 0
36397
36398   ;
36399   return 0;
36400 }
36401 _ACEOF
36402 rm -f conftest.$ac_objext
36403 if { (ac_try="$ac_compile"
36404 case "(($ac_try" in
36405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36406   *) ac_try_echo=$ac_try;;
36407 esac
36408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36409   (eval "$ac_compile") 2>conftest.er1
36410   ac_status=$?
36411   grep -v '^ *+' conftest.er1 >conftest.err
36412   rm -f conftest.er1
36413   cat conftest.err >&5
36414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); } && {
36416          test -z "$ac_c_werror_flag" ||
36417          test ! -s conftest.err
36418        } && test -s conftest.$ac_objext; then
36419   ac_hi=$ac_mid
36420 else
36421   echo "$as_me: failed program was:" >&5
36422 sed 's/^/| /' conftest.$ac_ext >&5
36423
36424         ac_lo=`expr '(' $ac_mid ')' + 1`
36425 fi
36426
36427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36428 done
36429 case $ac_lo in
36430 ?*) ac_cv_sizeof_int=$ac_lo;;
36431 '') if test "$ac_cv_type_int" = yes; then
36432      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36433 See \`config.log' for more details." >&5
36434 echo "$as_me: error: cannot compute sizeof (int)
36435 See \`config.log' for more details." >&2;}
36436    { (exit 77); exit 77; }; }
36437    else
36438      ac_cv_sizeof_int=0
36439    fi ;;
36440 esac
36441 else
36442   cat >conftest.$ac_ext <<_ACEOF
36443 /* confdefs.h.  */
36444 _ACEOF
36445 cat confdefs.h >>conftest.$ac_ext
36446 cat >>conftest.$ac_ext <<_ACEOF
36447 /* end confdefs.h.  */
36448 $ac_includes_default
36449    typedef int ac__type_sizeof_;
36450 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36451 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36452 #include <stdio.h>
36453 #include <stdlib.h>
36454 int
36455 main ()
36456 {
36457
36458   FILE *f = fopen ("conftest.val", "w");
36459   if (! f)
36460     return 1;
36461   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36462     {
36463       long int i = longval ();
36464       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36465         return 1;
36466       fprintf (f, "%ld\n", i);
36467     }
36468   else
36469     {
36470       unsigned long int i = ulongval ();
36471       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36472         return 1;
36473       fprintf (f, "%lu\n", i);
36474     }
36475   return ferror (f) || fclose (f) != 0;
36476
36477   ;
36478   return 0;
36479 }
36480 _ACEOF
36481 rm -f conftest$ac_exeext
36482 if { (ac_try="$ac_link"
36483 case "(($ac_try" in
36484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36485   *) ac_try_echo=$ac_try;;
36486 esac
36487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36488   (eval "$ac_link") 2>&5
36489   ac_status=$?
36490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36492   { (case "(($ac_try" in
36493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36494   *) ac_try_echo=$ac_try;;
36495 esac
36496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36497   (eval "$ac_try") 2>&5
36498   ac_status=$?
36499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500   (exit $ac_status); }; }; then
36501   ac_cv_sizeof_int=`cat conftest.val`
36502 else
36503   echo "$as_me: program exited with status $ac_status" >&5
36504 echo "$as_me: failed program was:" >&5
36505 sed 's/^/| /' conftest.$ac_ext >&5
36506
36507 ( exit $ac_status )
36508 if test "$ac_cv_type_int" = yes; then
36509      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36510 See \`config.log' for more details." >&5
36511 echo "$as_me: error: cannot compute sizeof (int)
36512 See \`config.log' for more details." >&2;}
36513    { (exit 77); exit 77; }; }
36514    else
36515      ac_cv_sizeof_int=0
36516    fi
36517 fi
36518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36519 fi
36520 rm -f conftest.val
36521 fi
36522 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36523 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36524
36525
36526
36527 cat >>confdefs.h <<_ACEOF
36528 #define SIZEOF_INT $ac_cv_sizeof_int
36529 _ACEOF
36530
36531
36532 { echo "$as_me:$LINENO: checking for long int" >&5
36533 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36534 if test "${ac_cv_type_long_int+set}" = set; then
36535   echo $ECHO_N "(cached) $ECHO_C" >&6
36536 else
36537   cat >conftest.$ac_ext <<_ACEOF
36538 /* confdefs.h.  */
36539 _ACEOF
36540 cat confdefs.h >>conftest.$ac_ext
36541 cat >>conftest.$ac_ext <<_ACEOF
36542 /* end confdefs.h.  */
36543 $ac_includes_default
36544 typedef long int ac__type_new_;
36545 int
36546 main ()
36547 {
36548 if ((ac__type_new_ *) 0)
36549   return 0;
36550 if (sizeof (ac__type_new_))
36551   return 0;
36552   ;
36553   return 0;
36554 }
36555 _ACEOF
36556 rm -f conftest.$ac_objext
36557 if { (ac_try="$ac_compile"
36558 case "(($ac_try" in
36559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36560   *) ac_try_echo=$ac_try;;
36561 esac
36562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36563   (eval "$ac_compile") 2>conftest.er1
36564   ac_status=$?
36565   grep -v '^ *+' conftest.er1 >conftest.err
36566   rm -f conftest.er1
36567   cat conftest.err >&5
36568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569   (exit $ac_status); } && {
36570          test -z "$ac_c_werror_flag" ||
36571          test ! -s conftest.err
36572        } && test -s conftest.$ac_objext; then
36573   ac_cv_type_long_int=yes
36574 else
36575   echo "$as_me: failed program was:" >&5
36576 sed 's/^/| /' conftest.$ac_ext >&5
36577
36578         ac_cv_type_long_int=no
36579 fi
36580
36581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36582 fi
36583 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36584 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36585
36586 # The cast to long int works around a bug in the HP C Compiler
36587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36589 # This bug is HP SR number 8606223364.
36590 { echo "$as_me:$LINENO: checking size of long int" >&5
36591 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36592 if test "${ac_cv_sizeof_long_int+set}" = set; then
36593   echo $ECHO_N "(cached) $ECHO_C" >&6
36594 else
36595   if test "$cross_compiling" = yes; then
36596   # Depending upon the size, compute the lo and hi bounds.
36597 cat >conftest.$ac_ext <<_ACEOF
36598 /* confdefs.h.  */
36599 _ACEOF
36600 cat confdefs.h >>conftest.$ac_ext
36601 cat >>conftest.$ac_ext <<_ACEOF
36602 /* end confdefs.h.  */
36603 $ac_includes_default
36604    typedef long int ac__type_sizeof_;
36605 int
36606 main ()
36607 {
36608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36609 test_array [0] = 0
36610
36611   ;
36612   return 0;
36613 }
36614 _ACEOF
36615 rm -f conftest.$ac_objext
36616 if { (ac_try="$ac_compile"
36617 case "(($ac_try" in
36618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36619   *) ac_try_echo=$ac_try;;
36620 esac
36621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36622   (eval "$ac_compile") 2>conftest.er1
36623   ac_status=$?
36624   grep -v '^ *+' conftest.er1 >conftest.err
36625   rm -f conftest.er1
36626   cat conftest.err >&5
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); } && {
36629          test -z "$ac_c_werror_flag" ||
36630          test ! -s conftest.err
36631        } && test -s conftest.$ac_objext; then
36632   ac_lo=0 ac_mid=0
36633   while :; do
36634     cat >conftest.$ac_ext <<_ACEOF
36635 /* confdefs.h.  */
36636 _ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h.  */
36640 $ac_includes_default
36641    typedef long int ac__type_sizeof_;
36642 int
36643 main ()
36644 {
36645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36646 test_array [0] = 0
36647
36648   ;
36649   return 0;
36650 }
36651 _ACEOF
36652 rm -f conftest.$ac_objext
36653 if { (ac_try="$ac_compile"
36654 case "(($ac_try" in
36655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36656   *) ac_try_echo=$ac_try;;
36657 esac
36658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36659   (eval "$ac_compile") 2>conftest.er1
36660   ac_status=$?
36661   grep -v '^ *+' conftest.er1 >conftest.err
36662   rm -f conftest.er1
36663   cat conftest.err >&5
36664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665   (exit $ac_status); } && {
36666          test -z "$ac_c_werror_flag" ||
36667          test ! -s conftest.err
36668        } && test -s conftest.$ac_objext; then
36669   ac_hi=$ac_mid; break
36670 else
36671   echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36673
36674         ac_lo=`expr $ac_mid + 1`
36675                         if test $ac_lo -le $ac_mid; then
36676                           ac_lo= ac_hi=
36677                           break
36678                         fi
36679                         ac_mid=`expr 2 '*' $ac_mid + 1`
36680 fi
36681
36682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36683   done
36684 else
36685   echo "$as_me: failed program was:" >&5
36686 sed 's/^/| /' conftest.$ac_ext >&5
36687
36688         cat >conftest.$ac_ext <<_ACEOF
36689 /* confdefs.h.  */
36690 _ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h.  */
36694 $ac_includes_default
36695    typedef long int ac__type_sizeof_;
36696 int
36697 main ()
36698 {
36699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36700 test_array [0] = 0
36701
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext
36707 if { (ac_try="$ac_compile"
36708 case "(($ac_try" in
36709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710   *) ac_try_echo=$ac_try;;
36711 esac
36712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36713   (eval "$ac_compile") 2>conftest.er1
36714   ac_status=$?
36715   grep -v '^ *+' conftest.er1 >conftest.err
36716   rm -f conftest.er1
36717   cat conftest.err >&5
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); } && {
36720          test -z "$ac_c_werror_flag" ||
36721          test ! -s conftest.err
36722        } && test -s conftest.$ac_objext; then
36723   ac_hi=-1 ac_mid=-1
36724   while :; do
36725     cat >conftest.$ac_ext <<_ACEOF
36726 /* confdefs.h.  */
36727 _ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h.  */
36731 $ac_includes_default
36732    typedef long int ac__type_sizeof_;
36733 int
36734 main ()
36735 {
36736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36737 test_array [0] = 0
36738
36739   ;
36740   return 0;
36741 }
36742 _ACEOF
36743 rm -f conftest.$ac_objext
36744 if { (ac_try="$ac_compile"
36745 case "(($ac_try" in
36746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36747   *) ac_try_echo=$ac_try;;
36748 esac
36749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36750   (eval "$ac_compile") 2>conftest.er1
36751   ac_status=$?
36752   grep -v '^ *+' conftest.er1 >conftest.err
36753   rm -f conftest.er1
36754   cat conftest.err >&5
36755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756   (exit $ac_status); } && {
36757          test -z "$ac_c_werror_flag" ||
36758          test ! -s conftest.err
36759        } && test -s conftest.$ac_objext; then
36760   ac_lo=$ac_mid; break
36761 else
36762   echo "$as_me: failed program was:" >&5
36763 sed 's/^/| /' conftest.$ac_ext >&5
36764
36765         ac_hi=`expr '(' $ac_mid ')' - 1`
36766                         if test $ac_mid -le $ac_hi; then
36767                           ac_lo= ac_hi=
36768                           break
36769                         fi
36770                         ac_mid=`expr 2 '*' $ac_mid`
36771 fi
36772
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774   done
36775 else
36776   echo "$as_me: failed program was:" >&5
36777 sed 's/^/| /' conftest.$ac_ext >&5
36778
36779         ac_lo= ac_hi=
36780 fi
36781
36782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36783 fi
36784
36785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36786 # Binary search between lo and hi bounds.
36787 while test "x$ac_lo" != "x$ac_hi"; do
36788   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36789   cat >conftest.$ac_ext <<_ACEOF
36790 /* confdefs.h.  */
36791 _ACEOF
36792 cat confdefs.h >>conftest.$ac_ext
36793 cat >>conftest.$ac_ext <<_ACEOF
36794 /* end confdefs.h.  */
36795 $ac_includes_default
36796    typedef long int ac__type_sizeof_;
36797 int
36798 main ()
36799 {
36800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36801 test_array [0] = 0
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   ac_hi=$ac_mid
36825 else
36826   echo "$as_me: failed program was:" >&5
36827 sed 's/^/| /' conftest.$ac_ext >&5
36828
36829         ac_lo=`expr '(' $ac_mid ')' + 1`
36830 fi
36831
36832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36833 done
36834 case $ac_lo in
36835 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36836 '') if test "$ac_cv_type_long_int" = yes; then
36837      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36838 See \`config.log' for more details." >&5
36839 echo "$as_me: error: cannot compute sizeof (long int)
36840 See \`config.log' for more details." >&2;}
36841    { (exit 77); exit 77; }; }
36842    else
36843      ac_cv_sizeof_long_int=0
36844    fi ;;
36845 esac
36846 else
36847   cat >conftest.$ac_ext <<_ACEOF
36848 /* confdefs.h.  */
36849 _ACEOF
36850 cat confdefs.h >>conftest.$ac_ext
36851 cat >>conftest.$ac_ext <<_ACEOF
36852 /* end confdefs.h.  */
36853 $ac_includes_default
36854    typedef long int ac__type_sizeof_;
36855 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36856 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36857 #include <stdio.h>
36858 #include <stdlib.h>
36859 int
36860 main ()
36861 {
36862
36863   FILE *f = fopen ("conftest.val", "w");
36864   if (! f)
36865     return 1;
36866   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36867     {
36868       long int i = longval ();
36869       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36870         return 1;
36871       fprintf (f, "%ld\n", i);
36872     }
36873   else
36874     {
36875       unsigned long int i = ulongval ();
36876       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36877         return 1;
36878       fprintf (f, "%lu\n", i);
36879     }
36880   return ferror (f) || fclose (f) != 0;
36881
36882   ;
36883   return 0;
36884 }
36885 _ACEOF
36886 rm -f conftest$ac_exeext
36887 if { (ac_try="$ac_link"
36888 case "(($ac_try" in
36889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890   *) ac_try_echo=$ac_try;;
36891 esac
36892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36893   (eval "$ac_link") 2>&5
36894   ac_status=$?
36895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36897   { (case "(($ac_try" in
36898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36899   *) ac_try_echo=$ac_try;;
36900 esac
36901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36902   (eval "$ac_try") 2>&5
36903   ac_status=$?
36904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905   (exit $ac_status); }; }; then
36906   ac_cv_sizeof_long_int=`cat conftest.val`
36907 else
36908   echo "$as_me: program exited with status $ac_status" >&5
36909 echo "$as_me: failed program was:" >&5
36910 sed 's/^/| /' conftest.$ac_ext >&5
36911
36912 ( exit $ac_status )
36913 if test "$ac_cv_type_long_int" = yes; then
36914      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36915 See \`config.log' for more details." >&5
36916 echo "$as_me: error: cannot compute sizeof (long int)
36917 See \`config.log' for more details." >&2;}
36918    { (exit 77); exit 77; }; }
36919    else
36920      ac_cv_sizeof_long_int=0
36921    fi
36922 fi
36923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36924 fi
36925 rm -f conftest.val
36926 fi
36927 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36928 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36929
36930
36931
36932 cat >>confdefs.h <<_ACEOF
36933 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36934 _ACEOF
36935
36936
36937 { echo "$as_me:$LINENO: checking for long long int" >&5
36938 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36939 if test "${ac_cv_type_long_long_int+set}" = set; then
36940   echo $ECHO_N "(cached) $ECHO_C" >&6
36941 else
36942   cat >conftest.$ac_ext <<_ACEOF
36943 /* confdefs.h.  */
36944 _ACEOF
36945 cat confdefs.h >>conftest.$ac_ext
36946 cat >>conftest.$ac_ext <<_ACEOF
36947 /* end confdefs.h.  */
36948 $ac_includes_default
36949 typedef long long int ac__type_new_;
36950 int
36951 main ()
36952 {
36953 if ((ac__type_new_ *) 0)
36954   return 0;
36955 if (sizeof (ac__type_new_))
36956   return 0;
36957   ;
36958   return 0;
36959 }
36960 _ACEOF
36961 rm -f conftest.$ac_objext
36962 if { (ac_try="$ac_compile"
36963 case "(($ac_try" in
36964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36965   *) ac_try_echo=$ac_try;;
36966 esac
36967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36968   (eval "$ac_compile") 2>conftest.er1
36969   ac_status=$?
36970   grep -v '^ *+' conftest.er1 >conftest.err
36971   rm -f conftest.er1
36972   cat conftest.err >&5
36973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974   (exit $ac_status); } && {
36975          test -z "$ac_c_werror_flag" ||
36976          test ! -s conftest.err
36977        } && test -s conftest.$ac_objext; then
36978   ac_cv_type_long_long_int=yes
36979 else
36980   echo "$as_me: failed program was:" >&5
36981 sed 's/^/| /' conftest.$ac_ext >&5
36982
36983         ac_cv_type_long_long_int=no
36984 fi
36985
36986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36987 fi
36988 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36989 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36990
36991 # The cast to long int works around a bug in the HP C Compiler
36992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36994 # This bug is HP SR number 8606223364.
36995 { echo "$as_me:$LINENO: checking size of long long int" >&5
36996 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36997 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36998   echo $ECHO_N "(cached) $ECHO_C" >&6
36999 else
37000   if test "$cross_compiling" = yes; then
37001   # Depending upon the size, compute the lo and hi bounds.
37002 cat >conftest.$ac_ext <<_ACEOF
37003 /* confdefs.h.  */
37004 _ACEOF
37005 cat confdefs.h >>conftest.$ac_ext
37006 cat >>conftest.$ac_ext <<_ACEOF
37007 /* end confdefs.h.  */
37008 $ac_includes_default
37009    typedef long long int ac__type_sizeof_;
37010 int
37011 main ()
37012 {
37013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37014 test_array [0] = 0
37015
37016   ;
37017   return 0;
37018 }
37019 _ACEOF
37020 rm -f conftest.$ac_objext
37021 if { (ac_try="$ac_compile"
37022 case "(($ac_try" in
37023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37024   *) ac_try_echo=$ac_try;;
37025 esac
37026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37027   (eval "$ac_compile") 2>conftest.er1
37028   ac_status=$?
37029   grep -v '^ *+' conftest.er1 >conftest.err
37030   rm -f conftest.er1
37031   cat conftest.err >&5
37032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033   (exit $ac_status); } && {
37034          test -z "$ac_c_werror_flag" ||
37035          test ! -s conftest.err
37036        } && test -s conftest.$ac_objext; then
37037   ac_lo=0 ac_mid=0
37038   while :; do
37039     cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h.  */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h.  */
37045 $ac_includes_default
37046    typedef long long int ac__type_sizeof_;
37047 int
37048 main ()
37049 {
37050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37051 test_array [0] = 0
37052
37053   ;
37054   return 0;
37055 }
37056 _ACEOF
37057 rm -f conftest.$ac_objext
37058 if { (ac_try="$ac_compile"
37059 case "(($ac_try" in
37060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37061   *) ac_try_echo=$ac_try;;
37062 esac
37063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37064   (eval "$ac_compile") 2>conftest.er1
37065   ac_status=$?
37066   grep -v '^ *+' conftest.er1 >conftest.err
37067   rm -f conftest.er1
37068   cat conftest.err >&5
37069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070   (exit $ac_status); } && {
37071          test -z "$ac_c_werror_flag" ||
37072          test ! -s conftest.err
37073        } && test -s conftest.$ac_objext; then
37074   ac_hi=$ac_mid; break
37075 else
37076   echo "$as_me: failed program was:" >&5
37077 sed 's/^/| /' conftest.$ac_ext >&5
37078
37079         ac_lo=`expr $ac_mid + 1`
37080                         if test $ac_lo -le $ac_mid; then
37081                           ac_lo= ac_hi=
37082                           break
37083                         fi
37084                         ac_mid=`expr 2 '*' $ac_mid + 1`
37085 fi
37086
37087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37088   done
37089 else
37090   echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37092
37093         cat >conftest.$ac_ext <<_ACEOF
37094 /* confdefs.h.  */
37095 _ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h.  */
37099 $ac_includes_default
37100    typedef long long int ac__type_sizeof_;
37101 int
37102 main ()
37103 {
37104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37105 test_array [0] = 0
37106
37107   ;
37108   return 0;
37109 }
37110 _ACEOF
37111 rm -f conftest.$ac_objext
37112 if { (ac_try="$ac_compile"
37113 case "(($ac_try" in
37114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37115   *) ac_try_echo=$ac_try;;
37116 esac
37117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37118   (eval "$ac_compile") 2>conftest.er1
37119   ac_status=$?
37120   grep -v '^ *+' conftest.er1 >conftest.err
37121   rm -f conftest.er1
37122   cat conftest.err >&5
37123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124   (exit $ac_status); } && {
37125          test -z "$ac_c_werror_flag" ||
37126          test ! -s conftest.err
37127        } && test -s conftest.$ac_objext; then
37128   ac_hi=-1 ac_mid=-1
37129   while :; do
37130     cat >conftest.$ac_ext <<_ACEOF
37131 /* confdefs.h.  */
37132 _ACEOF
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h.  */
37136 $ac_includes_default
37137    typedef long long int ac__type_sizeof_;
37138 int
37139 main ()
37140 {
37141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37142 test_array [0] = 0
37143
37144   ;
37145   return 0;
37146 }
37147 _ACEOF
37148 rm -f conftest.$ac_objext
37149 if { (ac_try="$ac_compile"
37150 case "(($ac_try" in
37151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152   *) ac_try_echo=$ac_try;;
37153 esac
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155   (eval "$ac_compile") 2>conftest.er1
37156   ac_status=$?
37157   grep -v '^ *+' conftest.er1 >conftest.err
37158   rm -f conftest.er1
37159   cat conftest.err >&5
37160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161   (exit $ac_status); } && {
37162          test -z "$ac_c_werror_flag" ||
37163          test ! -s conftest.err
37164        } && test -s conftest.$ac_objext; then
37165   ac_lo=$ac_mid; break
37166 else
37167   echo "$as_me: failed program was:" >&5
37168 sed 's/^/| /' conftest.$ac_ext >&5
37169
37170         ac_hi=`expr '(' $ac_mid ')' - 1`
37171                         if test $ac_mid -le $ac_hi; then
37172                           ac_lo= ac_hi=
37173                           break
37174                         fi
37175                         ac_mid=`expr 2 '*' $ac_mid`
37176 fi
37177
37178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37179   done
37180 else
37181   echo "$as_me: failed program was:" >&5
37182 sed 's/^/| /' conftest.$ac_ext >&5
37183
37184         ac_lo= ac_hi=
37185 fi
37186
37187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37188 fi
37189
37190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37191 # Binary search between lo and hi bounds.
37192 while test "x$ac_lo" != "x$ac_hi"; do
37193   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37194   cat >conftest.$ac_ext <<_ACEOF
37195 /* confdefs.h.  */
37196 _ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h.  */
37200 $ac_includes_default
37201    typedef long long int ac__type_sizeof_;
37202 int
37203 main ()
37204 {
37205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37206 test_array [0] = 0
37207
37208   ;
37209   return 0;
37210 }
37211 _ACEOF
37212 rm -f conftest.$ac_objext
37213 if { (ac_try="$ac_compile"
37214 case "(($ac_try" in
37215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37216   *) ac_try_echo=$ac_try;;
37217 esac
37218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37219   (eval "$ac_compile") 2>conftest.er1
37220   ac_status=$?
37221   grep -v '^ *+' conftest.er1 >conftest.err
37222   rm -f conftest.er1
37223   cat conftest.err >&5
37224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225   (exit $ac_status); } && {
37226          test -z "$ac_c_werror_flag" ||
37227          test ! -s conftest.err
37228        } && test -s conftest.$ac_objext; then
37229   ac_hi=$ac_mid
37230 else
37231   echo "$as_me: failed program was:" >&5
37232 sed 's/^/| /' conftest.$ac_ext >&5
37233
37234         ac_lo=`expr '(' $ac_mid ')' + 1`
37235 fi
37236
37237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37238 done
37239 case $ac_lo in
37240 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
37241 '') if test "$ac_cv_type_long_long_int" = yes; then
37242      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37243 See \`config.log' for more details." >&5
37244 echo "$as_me: error: cannot compute sizeof (long long int)
37245 See \`config.log' for more details." >&2;}
37246    { (exit 77); exit 77; }; }
37247    else
37248      ac_cv_sizeof_long_long_int=0
37249    fi ;;
37250 esac
37251 else
37252   cat >conftest.$ac_ext <<_ACEOF
37253 /* confdefs.h.  */
37254 _ACEOF
37255 cat confdefs.h >>conftest.$ac_ext
37256 cat >>conftest.$ac_ext <<_ACEOF
37257 /* end confdefs.h.  */
37258 $ac_includes_default
37259    typedef long long int ac__type_sizeof_;
37260 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37261 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37262 #include <stdio.h>
37263 #include <stdlib.h>
37264 int
37265 main ()
37266 {
37267
37268   FILE *f = fopen ("conftest.val", "w");
37269   if (! f)
37270     return 1;
37271   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37272     {
37273       long int i = longval ();
37274       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37275         return 1;
37276       fprintf (f, "%ld\n", i);
37277     }
37278   else
37279     {
37280       unsigned long int i = ulongval ();
37281       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37282         return 1;
37283       fprintf (f, "%lu\n", i);
37284     }
37285   return ferror (f) || fclose (f) != 0;
37286
37287   ;
37288   return 0;
37289 }
37290 _ACEOF
37291 rm -f conftest$ac_exeext
37292 if { (ac_try="$ac_link"
37293 case "(($ac_try" in
37294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37295   *) ac_try_echo=$ac_try;;
37296 esac
37297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37298   (eval "$ac_link") 2>&5
37299   ac_status=$?
37300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37302   { (case "(($ac_try" in
37303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37304   *) ac_try_echo=$ac_try;;
37305 esac
37306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37307   (eval "$ac_try") 2>&5
37308   ac_status=$?
37309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310   (exit $ac_status); }; }; then
37311   ac_cv_sizeof_long_long_int=`cat conftest.val`
37312 else
37313   echo "$as_me: program exited with status $ac_status" >&5
37314 echo "$as_me: failed program was:" >&5
37315 sed 's/^/| /' conftest.$ac_ext >&5
37316
37317 ( exit $ac_status )
37318 if test "$ac_cv_type_long_long_int" = yes; then
37319      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37320 See \`config.log' for more details." >&5
37321 echo "$as_me: error: cannot compute sizeof (long long int)
37322 See \`config.log' for more details." >&2;}
37323    { (exit 77); exit 77; }; }
37324    else
37325      ac_cv_sizeof_long_long_int=0
37326    fi
37327 fi
37328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37329 fi
37330 rm -f conftest.val
37331 fi
37332 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37333 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37334
37335
37336
37337 cat >>confdefs.h <<_ACEOF
37338 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37339 _ACEOF
37340
37341
37342 { echo "$as_me:$LINENO: checking for int *" >&5
37343 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37344 if test "${ac_cv_type_int_p+set}" = set; then
37345   echo $ECHO_N "(cached) $ECHO_C" >&6
37346 else
37347   cat >conftest.$ac_ext <<_ACEOF
37348 /* confdefs.h.  */
37349 _ACEOF
37350 cat confdefs.h >>conftest.$ac_ext
37351 cat >>conftest.$ac_ext <<_ACEOF
37352 /* end confdefs.h.  */
37353 $ac_includes_default
37354 typedef int * ac__type_new_;
37355 int
37356 main ()
37357 {
37358 if ((ac__type_new_ *) 0)
37359   return 0;
37360 if (sizeof (ac__type_new_))
37361   return 0;
37362   ;
37363   return 0;
37364 }
37365 _ACEOF
37366 rm -f conftest.$ac_objext
37367 if { (ac_try="$ac_compile"
37368 case "(($ac_try" in
37369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37370   *) ac_try_echo=$ac_try;;
37371 esac
37372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37373   (eval "$ac_compile") 2>conftest.er1
37374   ac_status=$?
37375   grep -v '^ *+' conftest.er1 >conftest.err
37376   rm -f conftest.er1
37377   cat conftest.err >&5
37378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379   (exit $ac_status); } && {
37380          test -z "$ac_c_werror_flag" ||
37381          test ! -s conftest.err
37382        } && test -s conftest.$ac_objext; then
37383   ac_cv_type_int_p=yes
37384 else
37385   echo "$as_me: failed program was:" >&5
37386 sed 's/^/| /' conftest.$ac_ext >&5
37387
37388         ac_cv_type_int_p=no
37389 fi
37390
37391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37392 fi
37393 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37394 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37395
37396 # The cast to long int works around a bug in the HP C Compiler
37397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37399 # This bug is HP SR number 8606223364.
37400 { echo "$as_me:$LINENO: checking size of int *" >&5
37401 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37402 if test "${ac_cv_sizeof_int_p+set}" = set; then
37403   echo $ECHO_N "(cached) $ECHO_C" >&6
37404 else
37405   if test "$cross_compiling" = yes; then
37406   # Depending upon the size, compute the lo and hi bounds.
37407 cat >conftest.$ac_ext <<_ACEOF
37408 /* confdefs.h.  */
37409 _ACEOF
37410 cat confdefs.h >>conftest.$ac_ext
37411 cat >>conftest.$ac_ext <<_ACEOF
37412 /* end confdefs.h.  */
37413 $ac_includes_default
37414    typedef int * ac__type_sizeof_;
37415 int
37416 main ()
37417 {
37418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37419 test_array [0] = 0
37420
37421   ;
37422   return 0;
37423 }
37424 _ACEOF
37425 rm -f conftest.$ac_objext
37426 if { (ac_try="$ac_compile"
37427 case "(($ac_try" in
37428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37429   *) ac_try_echo=$ac_try;;
37430 esac
37431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37432   (eval "$ac_compile") 2>conftest.er1
37433   ac_status=$?
37434   grep -v '^ *+' conftest.er1 >conftest.err
37435   rm -f conftest.er1
37436   cat conftest.err >&5
37437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438   (exit $ac_status); } && {
37439          test -z "$ac_c_werror_flag" ||
37440          test ! -s conftest.err
37441        } && test -s conftest.$ac_objext; then
37442   ac_lo=0 ac_mid=0
37443   while :; do
37444     cat >conftest.$ac_ext <<_ACEOF
37445 /* confdefs.h.  */
37446 _ACEOF
37447 cat confdefs.h >>conftest.$ac_ext
37448 cat >>conftest.$ac_ext <<_ACEOF
37449 /* end confdefs.h.  */
37450 $ac_includes_default
37451    typedef int * ac__type_sizeof_;
37452 int
37453 main ()
37454 {
37455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37456 test_array [0] = 0
37457
37458   ;
37459   return 0;
37460 }
37461 _ACEOF
37462 rm -f conftest.$ac_objext
37463 if { (ac_try="$ac_compile"
37464 case "(($ac_try" in
37465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37466   *) ac_try_echo=$ac_try;;
37467 esac
37468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37469   (eval "$ac_compile") 2>conftest.er1
37470   ac_status=$?
37471   grep -v '^ *+' conftest.er1 >conftest.err
37472   rm -f conftest.er1
37473   cat conftest.err >&5
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); } && {
37476          test -z "$ac_c_werror_flag" ||
37477          test ! -s conftest.err
37478        } && test -s conftest.$ac_objext; then
37479   ac_hi=$ac_mid; break
37480 else
37481   echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37483
37484         ac_lo=`expr $ac_mid + 1`
37485                         if test $ac_lo -le $ac_mid; then
37486                           ac_lo= ac_hi=
37487                           break
37488                         fi
37489                         ac_mid=`expr 2 '*' $ac_mid + 1`
37490 fi
37491
37492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37493   done
37494 else
37495   echo "$as_me: failed program was:" >&5
37496 sed 's/^/| /' conftest.$ac_ext >&5
37497
37498         cat >conftest.$ac_ext <<_ACEOF
37499 /* confdefs.h.  */
37500 _ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h.  */
37504 $ac_includes_default
37505    typedef int * ac__type_sizeof_;
37506 int
37507 main ()
37508 {
37509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37510 test_array [0] = 0
37511
37512   ;
37513   return 0;
37514 }
37515 _ACEOF
37516 rm -f conftest.$ac_objext
37517 if { (ac_try="$ac_compile"
37518 case "(($ac_try" in
37519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37520   *) ac_try_echo=$ac_try;;
37521 esac
37522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37523   (eval "$ac_compile") 2>conftest.er1
37524   ac_status=$?
37525   grep -v '^ *+' conftest.er1 >conftest.err
37526   rm -f conftest.er1
37527   cat conftest.err >&5
37528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529   (exit $ac_status); } && {
37530          test -z "$ac_c_werror_flag" ||
37531          test ! -s conftest.err
37532        } && test -s conftest.$ac_objext; then
37533   ac_hi=-1 ac_mid=-1
37534   while :; do
37535     cat >conftest.$ac_ext <<_ACEOF
37536 /* confdefs.h.  */
37537 _ACEOF
37538 cat confdefs.h >>conftest.$ac_ext
37539 cat >>conftest.$ac_ext <<_ACEOF
37540 /* end confdefs.h.  */
37541 $ac_includes_default
37542    typedef int * ac__type_sizeof_;
37543 int
37544 main ()
37545 {
37546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37547 test_array [0] = 0
37548
37549   ;
37550   return 0;
37551 }
37552 _ACEOF
37553 rm -f conftest.$ac_objext
37554 if { (ac_try="$ac_compile"
37555 case "(($ac_try" in
37556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37557   *) ac_try_echo=$ac_try;;
37558 esac
37559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37560   (eval "$ac_compile") 2>conftest.er1
37561   ac_status=$?
37562   grep -v '^ *+' conftest.er1 >conftest.err
37563   rm -f conftest.er1
37564   cat conftest.err >&5
37565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566   (exit $ac_status); } && {
37567          test -z "$ac_c_werror_flag" ||
37568          test ! -s conftest.err
37569        } && test -s conftest.$ac_objext; then
37570   ac_lo=$ac_mid; break
37571 else
37572   echo "$as_me: failed program was:" >&5
37573 sed 's/^/| /' conftest.$ac_ext >&5
37574
37575         ac_hi=`expr '(' $ac_mid ')' - 1`
37576                         if test $ac_mid -le $ac_hi; then
37577                           ac_lo= ac_hi=
37578                           break
37579                         fi
37580                         ac_mid=`expr 2 '*' $ac_mid`
37581 fi
37582
37583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37584   done
37585 else
37586   echo "$as_me: failed program was:" >&5
37587 sed 's/^/| /' conftest.$ac_ext >&5
37588
37589         ac_lo= ac_hi=
37590 fi
37591
37592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37593 fi
37594
37595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37596 # Binary search between lo and hi bounds.
37597 while test "x$ac_lo" != "x$ac_hi"; do
37598   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37599   cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h.  */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h.  */
37605 $ac_includes_default
37606    typedef int * ac__type_sizeof_;
37607 int
37608 main ()
37609 {
37610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37611 test_array [0] = 0
37612
37613   ;
37614   return 0;
37615 }
37616 _ACEOF
37617 rm -f conftest.$ac_objext
37618 if { (ac_try="$ac_compile"
37619 case "(($ac_try" in
37620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37621   *) ac_try_echo=$ac_try;;
37622 esac
37623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37624   (eval "$ac_compile") 2>conftest.er1
37625   ac_status=$?
37626   grep -v '^ *+' conftest.er1 >conftest.err
37627   rm -f conftest.er1
37628   cat conftest.err >&5
37629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630   (exit $ac_status); } && {
37631          test -z "$ac_c_werror_flag" ||
37632          test ! -s conftest.err
37633        } && test -s conftest.$ac_objext; then
37634   ac_hi=$ac_mid
37635 else
37636   echo "$as_me: failed program was:" >&5
37637 sed 's/^/| /' conftest.$ac_ext >&5
37638
37639         ac_lo=`expr '(' $ac_mid ')' + 1`
37640 fi
37641
37642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37643 done
37644 case $ac_lo in
37645 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37646 '') if test "$ac_cv_type_int_p" = yes; then
37647      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37648 See \`config.log' for more details." >&5
37649 echo "$as_me: error: cannot compute sizeof (int *)
37650 See \`config.log' for more details." >&2;}
37651    { (exit 77); exit 77; }; }
37652    else
37653      ac_cv_sizeof_int_p=0
37654    fi ;;
37655 esac
37656 else
37657   cat >conftest.$ac_ext <<_ACEOF
37658 /* confdefs.h.  */
37659 _ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h.  */
37663 $ac_includes_default
37664    typedef int * ac__type_sizeof_;
37665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37667 #include <stdio.h>
37668 #include <stdlib.h>
37669 int
37670 main ()
37671 {
37672
37673   FILE *f = fopen ("conftest.val", "w");
37674   if (! f)
37675     return 1;
37676   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37677     {
37678       long int i = longval ();
37679       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37680         return 1;
37681       fprintf (f, "%ld\n", i);
37682     }
37683   else
37684     {
37685       unsigned long int i = ulongval ();
37686       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37687         return 1;
37688       fprintf (f, "%lu\n", i);
37689     }
37690   return ferror (f) || fclose (f) != 0;
37691
37692   ;
37693   return 0;
37694 }
37695 _ACEOF
37696 rm -f conftest$ac_exeext
37697 if { (ac_try="$ac_link"
37698 case "(($ac_try" in
37699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37700   *) ac_try_echo=$ac_try;;
37701 esac
37702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37703   (eval "$ac_link") 2>&5
37704   ac_status=$?
37705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37707   { (case "(($ac_try" in
37708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709   *) ac_try_echo=$ac_try;;
37710 esac
37711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37712   (eval "$ac_try") 2>&5
37713   ac_status=$?
37714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715   (exit $ac_status); }; }; then
37716   ac_cv_sizeof_int_p=`cat conftest.val`
37717 else
37718   echo "$as_me: program exited with status $ac_status" >&5
37719 echo "$as_me: failed program was:" >&5
37720 sed 's/^/| /' conftest.$ac_ext >&5
37721
37722 ( exit $ac_status )
37723 if test "$ac_cv_type_int_p" = yes; then
37724      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37725 See \`config.log' for more details." >&5
37726 echo "$as_me: error: cannot compute sizeof (int *)
37727 See \`config.log' for more details." >&2;}
37728    { (exit 77); exit 77; }; }
37729    else
37730      ac_cv_sizeof_int_p=0
37731    fi
37732 fi
37733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37734 fi
37735 rm -f conftest.val
37736 fi
37737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37738 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37739
37740
37741
37742 cat >>confdefs.h <<_ACEOF
37743 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37744 _ACEOF
37745
37746
37747
37748 { echo "$as_me:$LINENO: checking for u_int type" >&5
37749 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37750 if test "${ac_cv_have_u_int+set}" = set; then
37751   echo $ECHO_N "(cached) $ECHO_C" >&6
37752 else
37753
37754        cat >conftest.$ac_ext <<_ACEOF
37755 /* confdefs.h.  */
37756 _ACEOF
37757 cat confdefs.h >>conftest.$ac_ext
37758 cat >>conftest.$ac_ext <<_ACEOF
37759 /* end confdefs.h.  */
37760
37761               #include <sys/types.h>
37762
37763 int
37764 main ()
37765 {
37766
37767               u_int a; a = 1;
37768
37769   ;
37770   return 0;
37771 }
37772 _ACEOF
37773 rm -f conftest.$ac_objext
37774 if { (ac_try="$ac_compile"
37775 case "(($ac_try" in
37776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37777   *) ac_try_echo=$ac_try;;
37778 esac
37779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37780   (eval "$ac_compile") 2>conftest.er1
37781   ac_status=$?
37782   grep -v '^ *+' conftest.er1 >conftest.err
37783   rm -f conftest.er1
37784   cat conftest.err >&5
37785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786   (exit $ac_status); } && {
37787          test -z "$ac_c_werror_flag" ||
37788          test ! -s conftest.err
37789        } && test -s conftest.$ac_objext; then
37790
37791               ac_cv_have_u_int="yes"
37792
37793 else
37794   echo "$as_me: failed program was:" >&5
37795 sed 's/^/| /' conftest.$ac_ext >&5
37796
37797
37798               ac_cv_have_u_int="no"
37799
37800
37801 fi
37802
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804
37805
37806 fi
37807 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37808 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37809 if test "x$ac_cv_have_u_int" = "xyes" ; then
37810    cat >>confdefs.h <<\_ACEOF
37811 #define HAVE_U_INT 1
37812 _ACEOF
37813
37814    have_u_int=1
37815 fi
37816
37817 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37818 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37819 if test "${ac_cv_have_intmax_t+set}" = set; then
37820   echo $ECHO_N "(cached) $ECHO_C" >&6
37821 else
37822
37823        cat >conftest.$ac_ext <<_ACEOF
37824 /* confdefs.h.  */
37825 _ACEOF
37826 cat confdefs.h >>conftest.$ac_ext
37827 cat >>conftest.$ac_ext <<_ACEOF
37828 /* end confdefs.h.  */
37829
37830               #include <sys/types.h>
37831
37832 int
37833 main ()
37834 {
37835
37836               intmax_t a; a = 1;
37837
37838   ;
37839   return 0;
37840 }
37841 _ACEOF
37842 rm -f conftest.$ac_objext
37843 if { (ac_try="$ac_compile"
37844 case "(($ac_try" in
37845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37846   *) ac_try_echo=$ac_try;;
37847 esac
37848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37849   (eval "$ac_compile") 2>conftest.er1
37850   ac_status=$?
37851   grep -v '^ *+' conftest.er1 >conftest.err
37852   rm -f conftest.er1
37853   cat conftest.err >&5
37854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37855   (exit $ac_status); } && {
37856          test -z "$ac_c_werror_flag" ||
37857          test ! -s conftest.err
37858        } && test -s conftest.$ac_objext; then
37859
37860               ac_cv_have_intmax_t="yes"
37861
37862 else
37863   echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37865
37866
37867               cat >conftest.$ac_ext <<_ACEOF
37868 /* confdefs.h.  */
37869 _ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h.  */
37873
37874                      #include <stdint.h>
37875
37876 int
37877 main ()
37878 {
37879
37880                      intmax_t a; a = 1;
37881
37882   ;
37883   return 0;
37884 }
37885 _ACEOF
37886 rm -f conftest.$ac_objext
37887 if { (ac_try="$ac_compile"
37888 case "(($ac_try" in
37889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37890   *) ac_try_echo=$ac_try;;
37891 esac
37892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37893   (eval "$ac_compile") 2>conftest.er1
37894   ac_status=$?
37895   grep -v '^ *+' conftest.er1 >conftest.err
37896   rm -f conftest.er1
37897   cat conftest.err >&5
37898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899   (exit $ac_status); } && {
37900          test -z "$ac_c_werror_flag" ||
37901          test ! -s conftest.err
37902        } && test -s conftest.$ac_objext; then
37903
37904                      ac_cv_have_intmax_t="yes"
37905
37906 else
37907   echo "$as_me: failed program was:" >&5
37908 sed 's/^/| /' conftest.$ac_ext >&5
37909
37910
37911                      ac_cv_have_intmax_t="no"
37912
37913
37914 fi
37915
37916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37917
37918
37919 fi
37920
37921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37922
37923
37924 fi
37925 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37926 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37927 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37928    cat >>confdefs.h <<\_ACEOF
37929 #define HAVE_INTMAX_T 1
37930 _ACEOF
37931
37932    have_intmax_t=1
37933 fi
37934
37935 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37936 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37937 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37938   echo $ECHO_N "(cached) $ECHO_C" >&6
37939 else
37940
37941        cat >conftest.$ac_ext <<_ACEOF
37942 /* confdefs.h.  */
37943 _ACEOF
37944 cat confdefs.h >>conftest.$ac_ext
37945 cat >>conftest.$ac_ext <<_ACEOF
37946 /* end confdefs.h.  */
37947
37948               #include <sys/types.h>
37949
37950 int
37951 main ()
37952 {
37953
37954               u_intmax_t a; a = 1;
37955
37956   ;
37957   return 0;
37958 }
37959 _ACEOF
37960 rm -f conftest.$ac_objext
37961 if { (ac_try="$ac_compile"
37962 case "(($ac_try" in
37963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37964   *) ac_try_echo=$ac_try;;
37965 esac
37966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37967   (eval "$ac_compile") 2>conftest.er1
37968   ac_status=$?
37969   grep -v '^ *+' conftest.er1 >conftest.err
37970   rm -f conftest.er1
37971   cat conftest.err >&5
37972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973   (exit $ac_status); } && {
37974          test -z "$ac_c_werror_flag" ||
37975          test ! -s conftest.err
37976        } && test -s conftest.$ac_objext; then
37977
37978               ac_cv_have_u_intmax_t="yes"
37979
37980 else
37981   echo "$as_me: failed program was:" >&5
37982 sed 's/^/| /' conftest.$ac_ext >&5
37983
37984
37985               cat >conftest.$ac_ext <<_ACEOF
37986 /* confdefs.h.  */
37987 _ACEOF
37988 cat confdefs.h >>conftest.$ac_ext
37989 cat >>conftest.$ac_ext <<_ACEOF
37990 /* end confdefs.h.  */
37991
37992                      #include <stdint.h>
37993
37994 int
37995 main ()
37996 {
37997
37998                     u_intmax_t a; a = 1;
37999
38000   ;
38001   return 0;
38002 }
38003 _ACEOF
38004 rm -f conftest.$ac_objext
38005 if { (ac_try="$ac_compile"
38006 case "(($ac_try" in
38007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38008   *) ac_try_echo=$ac_try;;
38009 esac
38010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38011   (eval "$ac_compile") 2>conftest.er1
38012   ac_status=$?
38013   grep -v '^ *+' conftest.er1 >conftest.err
38014   rm -f conftest.er1
38015   cat conftest.err >&5
38016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017   (exit $ac_status); } && {
38018          test -z "$ac_c_werror_flag" ||
38019          test ! -s conftest.err
38020        } && test -s conftest.$ac_objext; then
38021
38022                     ac_cv_have_u_intmax_t="yes"
38023
38024 else
38025   echo "$as_me: failed program was:" >&5
38026 sed 's/^/| /' conftest.$ac_ext >&5
38027
38028
38029                     ac_cv_have_u_intmax_t="no"
38030
38031
38032 fi
38033
38034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38035
38036
38037 fi
38038
38039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38040
38041
38042 fi
38043 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
38044 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
38045 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
38046    cat >>confdefs.h <<\_ACEOF
38047 #define HAVE_U_INTMAX_T 1
38048 _ACEOF
38049
38050    have_u_intmax_t=1
38051 fi
38052
38053 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
38054 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
38055 if test "${ac_cv_have_intxx_t+set}" = set; then
38056   echo $ECHO_N "(cached) $ECHO_C" >&6
38057 else
38058
38059        cat >conftest.$ac_ext <<_ACEOF
38060 /* confdefs.h.  */
38061 _ACEOF
38062 cat confdefs.h >>conftest.$ac_ext
38063 cat >>conftest.$ac_ext <<_ACEOF
38064 /* end confdefs.h.  */
38065
38066               #include <sys/types.h>
38067
38068 int
38069 main ()
38070 {
38071
38072               int8_t a; int16_t b; int32_t c; a = b = c = 1;
38073
38074   ;
38075   return 0;
38076 }
38077 _ACEOF
38078 rm -f conftest.$ac_objext
38079 if { (ac_try="$ac_compile"
38080 case "(($ac_try" in
38081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38082   *) ac_try_echo=$ac_try;;
38083 esac
38084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38085   (eval "$ac_compile") 2>conftest.er1
38086   ac_status=$?
38087   grep -v '^ *+' conftest.er1 >conftest.err
38088   rm -f conftest.er1
38089   cat conftest.err >&5
38090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091   (exit $ac_status); } && {
38092          test -z "$ac_c_werror_flag" ||
38093          test ! -s conftest.err
38094        } && test -s conftest.$ac_objext; then
38095
38096               ac_cv_have_intxx_t="yes"
38097
38098 else
38099   echo "$as_me: failed program was:" >&5
38100 sed 's/^/| /' conftest.$ac_ext >&5
38101
38102
38103               ac_cv_have_intxx_t="no"
38104
38105
38106 fi
38107
38108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38109
38110
38111 fi
38112 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
38113 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
38114 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
38115    cat >>confdefs.h <<\_ACEOF
38116 #define HAVE_INTXX_T 1
38117 _ACEOF
38118
38119    have_intxx_t=1
38120 fi
38121
38122 { echo "$as_me:$LINENO: checking for int64_t type" >&5
38123 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
38124 if test "${ac_cv_have_int64_t+set}" = set; then
38125   echo $ECHO_N "(cached) $ECHO_C" >&6
38126 else
38127
38128        cat >conftest.$ac_ext <<_ACEOF
38129 /* confdefs.h.  */
38130 _ACEOF
38131 cat confdefs.h >>conftest.$ac_ext
38132 cat >>conftest.$ac_ext <<_ACEOF
38133 /* end confdefs.h.  */
38134
38135               #include <sys/types.h>
38136
38137 int
38138 main ()
38139 {
38140
38141               int64_t a; a = 1;
38142
38143   ;
38144   return 0;
38145 }
38146 _ACEOF
38147 rm -f conftest.$ac_objext
38148 if { (ac_try="$ac_compile"
38149 case "(($ac_try" in
38150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38151   *) ac_try_echo=$ac_try;;
38152 esac
38153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38154   (eval "$ac_compile") 2>conftest.er1
38155   ac_status=$?
38156   grep -v '^ *+' conftest.er1 >conftest.err
38157   rm -f conftest.er1
38158   cat conftest.err >&5
38159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160   (exit $ac_status); } && {
38161          test -z "$ac_c_werror_flag" ||
38162          test ! -s conftest.err
38163        } && test -s conftest.$ac_objext; then
38164
38165               ac_cv_have_int64_t="yes"
38166
38167 else
38168   echo "$as_me: failed program was:" >&5
38169 sed 's/^/| /' conftest.$ac_ext >&5
38170
38171
38172               ac_cv_have_int64_t="no"
38173
38174
38175 fi
38176
38177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38178
38179
38180 fi
38181 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
38182 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
38183 if test "x$ac_cv_have_int64_t" = "xyes" ; then
38184    cat >>confdefs.h <<\_ACEOF
38185 #define HAVE_INT64_T 1
38186 _ACEOF
38187
38188    have_int64_t=1
38189 fi
38190
38191 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
38192 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
38193 if test "${ac_cv_have_u_intxx_t+set}" = set; then
38194   echo $ECHO_N "(cached) $ECHO_C" >&6
38195 else
38196
38197        cat >conftest.$ac_ext <<_ACEOF
38198 /* confdefs.h.  */
38199 _ACEOF
38200 cat confdefs.h >>conftest.$ac_ext
38201 cat >>conftest.$ac_ext <<_ACEOF
38202 /* end confdefs.h.  */
38203
38204               #include <sys/types.h>
38205
38206 int
38207 main ()
38208 {
38209
38210               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
38211
38212   ;
38213   return 0;
38214 }
38215 _ACEOF
38216 rm -f conftest.$ac_objext
38217 if { (ac_try="$ac_compile"
38218 case "(($ac_try" in
38219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38220   *) ac_try_echo=$ac_try;;
38221 esac
38222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38223   (eval "$ac_compile") 2>conftest.er1
38224   ac_status=$?
38225   grep -v '^ *+' conftest.er1 >conftest.err
38226   rm -f conftest.er1
38227   cat conftest.err >&5
38228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229   (exit $ac_status); } && {
38230          test -z "$ac_c_werror_flag" ||
38231          test ! -s conftest.err
38232        } && test -s conftest.$ac_objext; then
38233
38234              ac_cv_have_u_intxx_t="yes"
38235
38236 else
38237   echo "$as_me: failed program was:" >&5
38238 sed 's/^/| /' conftest.$ac_ext >&5
38239
38240
38241              ac_cv_have_u_intxx_t="no"
38242
38243
38244 fi
38245
38246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38247
38248
38249 fi
38250 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
38251 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
38252 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
38253    cat >>confdefs.h <<\_ACEOF
38254 #define HAVE_U_INTXX_T 1
38255 _ACEOF
38256
38257    have_u_intxx_t=1
38258 fi
38259
38260 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
38261 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
38262 if test "${ac_cv_have_u_int64_t+set}" = set; then
38263   echo $ECHO_N "(cached) $ECHO_C" >&6
38264 else
38265
38266        cat >conftest.$ac_ext <<_ACEOF
38267 /* confdefs.h.  */
38268 _ACEOF
38269 cat confdefs.h >>conftest.$ac_ext
38270 cat >>conftest.$ac_ext <<_ACEOF
38271 /* end confdefs.h.  */
38272
38273               #include <sys/types.h>
38274
38275 int
38276 main ()
38277 {
38278
38279               u_int64_t a; a = 1;
38280
38281   ;
38282   return 0;
38283 }
38284 _ACEOF
38285 rm -f conftest.$ac_objext
38286 if { (ac_try="$ac_compile"
38287 case "(($ac_try" in
38288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289   *) ac_try_echo=$ac_try;;
38290 esac
38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292   (eval "$ac_compile") 2>conftest.er1
38293   ac_status=$?
38294   grep -v '^ *+' conftest.er1 >conftest.err
38295   rm -f conftest.er1
38296   cat conftest.err >&5
38297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298   (exit $ac_status); } && {
38299          test -z "$ac_c_werror_flag" ||
38300          test ! -s conftest.err
38301        } && test -s conftest.$ac_objext; then
38302
38303              ac_cv_have_u_int64_t="yes"
38304
38305 else
38306   echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38308
38309
38310              ac_cv_have_u_int64_t="no"
38311
38312
38313 fi
38314
38315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38316
38317
38318 fi
38319 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
38320 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38321 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38322    cat >>confdefs.h <<\_ACEOF
38323 #define HAVE_U_INT64_T 1
38324 _ACEOF
38325
38326    have_u_int64_t=1
38327 fi
38328
38329 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38330     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38331 then
38332    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38333 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38334    cat >conftest.$ac_ext <<_ACEOF
38335 /* confdefs.h.  */
38336 _ACEOF
38337 cat confdefs.h >>conftest.$ac_ext
38338 cat >>conftest.$ac_ext <<_ACEOF
38339 /* end confdefs.h.  */
38340
38341           #include <sys/bitypes.h>
38342
38343 int
38344 main ()
38345 {
38346
38347           int8_t a; int16_t b; int32_t c;
38348           u_int8_t e; u_int16_t f; u_int32_t g;
38349           a = b = c = e = f = g = 1;
38350
38351   ;
38352   return 0;
38353 }
38354 _ACEOF
38355 rm -f conftest.$ac_objext
38356 if { (ac_try="$ac_compile"
38357 case "(($ac_try" in
38358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38359   *) ac_try_echo=$ac_try;;
38360 esac
38361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38362   (eval "$ac_compile") 2>conftest.er1
38363   ac_status=$?
38364   grep -v '^ *+' conftest.er1 >conftest.err
38365   rm -f conftest.er1
38366   cat conftest.err >&5
38367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368   (exit $ac_status); } && {
38369          test -z "$ac_c_werror_flag" ||
38370          test ! -s conftest.err
38371        } && test -s conftest.$ac_objext; then
38372
38373           cat >>confdefs.h <<\_ACEOF
38374 #define HAVE_U_INTXX_T 1
38375 _ACEOF
38376
38377           cat >>confdefs.h <<\_ACEOF
38378 #define HAVE_INTXX_T 1
38379 _ACEOF
38380
38381           cat >>confdefs.h <<\_ACEOF
38382 #define HAVE_SYS_BITYPES_H 1
38383 _ACEOF
38384
38385           { echo "$as_me:$LINENO: result: yes" >&5
38386 echo "${ECHO_T}yes" >&6; }
38387
38388 else
38389   echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.$ac_ext >&5
38391
38392
38393           { echo "$as_me:$LINENO: result: no" >&5
38394 echo "${ECHO_T}no" >&6; }
38395
38396
38397 fi
38398
38399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38400 fi
38401
38402 if test -z "$have_u_intxx_t" ; then
38403    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38404 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38405 if test "${ac_cv_have_uintxx_t+set}" = set; then
38406   echo $ECHO_N "(cached) $ECHO_C" >&6
38407 else
38408
38409           cat >conftest.$ac_ext <<_ACEOF
38410 /* confdefs.h.  */
38411 _ACEOF
38412 cat confdefs.h >>conftest.$ac_ext
38413 cat >>conftest.$ac_ext <<_ACEOF
38414 /* end confdefs.h.  */
38415
38416                  #include <sys/types.h>
38417
38418 int
38419 main ()
38420 {
38421
38422                  uint8_t a; uint16_t b;
38423                  uint32_t c; a = b = c = 1;
38424
38425   ;
38426   return 0;
38427 }
38428 _ACEOF
38429 rm -f conftest.$ac_objext
38430 if { (ac_try="$ac_compile"
38431 case "(($ac_try" in
38432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38433   *) ac_try_echo=$ac_try;;
38434 esac
38435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38436   (eval "$ac_compile") 2>conftest.er1
38437   ac_status=$?
38438   grep -v '^ *+' conftest.er1 >conftest.err
38439   rm -f conftest.er1
38440   cat conftest.err >&5
38441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442   (exit $ac_status); } && {
38443          test -z "$ac_c_werror_flag" ||
38444          test ! -s conftest.err
38445        } && test -s conftest.$ac_objext; then
38446
38447                 ac_cv_have_uintxx_t="yes"
38448
38449 else
38450   echo "$as_me: failed program was:" >&5
38451 sed 's/^/| /' conftest.$ac_ext >&5
38452
38453
38454                 ac_cv_have_uintxx_t="no"
38455
38456
38457 fi
38458
38459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38460
38461
38462 fi
38463 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38464 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38465    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38466       cat >>confdefs.h <<\_ACEOF
38467 #define HAVE_UINTXX_T 1
38468 _ACEOF
38469
38470    fi
38471 fi
38472
38473 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38474     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38475 then
38476    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38477 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38478    cat >conftest.$ac_ext <<_ACEOF
38479 /* confdefs.h.  */
38480 _ACEOF
38481 cat confdefs.h >>conftest.$ac_ext
38482 cat >>conftest.$ac_ext <<_ACEOF
38483 /* end confdefs.h.  */
38484
38485           #include <sys/bitypes.h>
38486
38487 int
38488 main ()
38489 {
38490
38491           int64_t a; u_int64_t b;
38492           a = b = 1;
38493
38494   ;
38495   return 0;
38496 }
38497 _ACEOF
38498 rm -f conftest.$ac_objext
38499 if { (ac_try="$ac_compile"
38500 case "(($ac_try" in
38501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38502   *) ac_try_echo=$ac_try;;
38503 esac
38504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38505   (eval "$ac_compile") 2>conftest.er1
38506   ac_status=$?
38507   grep -v '^ *+' conftest.er1 >conftest.err
38508   rm -f conftest.er1
38509   cat conftest.err >&5
38510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511   (exit $ac_status); } && {
38512          test -z "$ac_c_werror_flag" ||
38513          test ! -s conftest.err
38514        } && test -s conftest.$ac_objext; then
38515
38516           cat >>confdefs.h <<\_ACEOF
38517 #define HAVE_U_INT64_T 1
38518 _ACEOF
38519
38520           cat >>confdefs.h <<\_ACEOF
38521 #define HAVE_INT64_T 1
38522 _ACEOF
38523
38524           { echo "$as_me:$LINENO: result: yes" >&5
38525 echo "${ECHO_T}yes" >&6; }
38526
38527 else
38528   echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38530
38531
38532           { echo "$as_me:$LINENO: result: no" >&5
38533 echo "${ECHO_T}no" >&6; }
38534
38535
38536 fi
38537
38538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38539 fi
38540
38541 if (test -z "$have_uintxx_t" && \
38542     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38543 then
38544    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38545 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38546    cat >conftest.$ac_ext <<_ACEOF
38547 /* confdefs.h.  */
38548 _ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h.  */
38552
38553           #include <sys/bitypes.h>
38554
38555 int
38556 main ()
38557 {
38558
38559           uint8_t a; uint16_t b;
38560           uint32_t c; a = b = c = 1;
38561
38562   ;
38563   return 0;
38564 }
38565 _ACEOF
38566 rm -f conftest.$ac_objext
38567 if { (ac_try="$ac_compile"
38568 case "(($ac_try" in
38569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38570   *) ac_try_echo=$ac_try;;
38571 esac
38572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38573   (eval "$ac_compile") 2>conftest.er1
38574   ac_status=$?
38575   grep -v '^ *+' conftest.er1 >conftest.err
38576   rm -f conftest.er1
38577   cat conftest.err >&5
38578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579   (exit $ac_status); } && {
38580          test -z "$ac_c_werror_flag" ||
38581          test ! -s conftest.err
38582        } && test -s conftest.$ac_objext; then
38583
38584           cat >>confdefs.h <<\_ACEOF
38585 #define HAVE_UINTXX_T 1
38586 _ACEOF
38587
38588           { echo "$as_me:$LINENO: result: yes" >&5
38589 echo "${ECHO_T}yes" >&6; }
38590
38591 else
38592   echo "$as_me: failed program was:" >&5
38593 sed 's/^/| /' conftest.$ac_ext >&5
38594
38595
38596           { echo "$as_me:$LINENO: result: no" >&5
38597 echo "${ECHO_T}no" >&6; }
38598
38599
38600 fi
38601
38602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38603 fi
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618 for ac_func in \
38619    fork \
38620    getcwd \
38621    gethostname \
38622    getpid \
38623    gettimeofday \
38624    setpgid \
38625    setpgrp \
38626    setsid \
38627    signal \
38628    strerror \
38629    strncmp \
38630    strncpy \
38631    vfprintf \
38632
38633 do
38634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38638   echo $ECHO_N "(cached) $ECHO_C" >&6
38639 else
38640   cat >conftest.$ac_ext <<_ACEOF
38641 /* confdefs.h.  */
38642 _ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h.  */
38646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38648 #define $ac_func innocuous_$ac_func
38649
38650 /* System header to define __stub macros and hopefully few prototypes,
38651     which can conflict with char $ac_func (); below.
38652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38653     <limits.h> exists even on freestanding compilers.  */
38654
38655 #ifdef __STDC__
38656 # include <limits.h>
38657 #else
38658 # include <assert.h>
38659 #endif
38660
38661 #undef $ac_func
38662
38663 /* Override any GCC internal prototype to avoid an error.
38664    Use char because int might match the return type of a GCC
38665    builtin and then its argument prototype would still apply.  */
38666 #ifdef __cplusplus
38667 extern "C"
38668 #endif
38669 char $ac_func ();
38670 /* The GNU C library defines this for functions which it implements
38671     to always fail with ENOSYS.  Some functions are actually named
38672     something starting with __ and the normal name is an alias.  */
38673 #if defined __stub_$ac_func || defined __stub___$ac_func
38674 choke me
38675 #endif
38676
38677 int
38678 main ()
38679 {
38680 return $ac_func ();
38681   ;
38682   return 0;
38683 }
38684 _ACEOF
38685 rm -f conftest.$ac_objext conftest$ac_exeext
38686 if { (ac_try="$ac_link"
38687 case "(($ac_try" in
38688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38689   *) ac_try_echo=$ac_try;;
38690 esac
38691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38692   (eval "$ac_link") 2>conftest.er1
38693   ac_status=$?
38694   grep -v '^ *+' conftest.er1 >conftest.err
38695   rm -f conftest.er1
38696   cat conftest.err >&5
38697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698   (exit $ac_status); } && {
38699          test -z "$ac_c_werror_flag" ||
38700          test ! -s conftest.err
38701        } && test -s conftest$ac_exeext &&
38702        $as_test_x conftest$ac_exeext; then
38703   eval "$as_ac_var=yes"
38704 else
38705   echo "$as_me: failed program was:" >&5
38706 sed 's/^/| /' conftest.$ac_ext >&5
38707
38708         eval "$as_ac_var=no"
38709 fi
38710
38711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38712       conftest$ac_exeext conftest.$ac_ext
38713 fi
38714 ac_res=`eval echo '${'$as_ac_var'}'`
38715                { echo "$as_me:$LINENO: result: $ac_res" >&5
38716 echo "${ECHO_T}$ac_res" >&6; }
38717 if test `eval echo '${'$as_ac_var'}'` = yes; then
38718   cat >>confdefs.h <<_ACEOF
38719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38720 _ACEOF
38721
38722 else
38723   echo 'configure: cannot find needed function.'; exit 1
38724
38725 fi
38726 done
38727
38728
38729
38730 for ac_func in fchdir
38731 do
38732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38736   echo $ECHO_N "(cached) $ECHO_C" >&6
38737 else
38738   cat >conftest.$ac_ext <<_ACEOF
38739 /* confdefs.h.  */
38740 _ACEOF
38741 cat confdefs.h >>conftest.$ac_ext
38742 cat >>conftest.$ac_ext <<_ACEOF
38743 /* end confdefs.h.  */
38744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38746 #define $ac_func innocuous_$ac_func
38747
38748 /* System header to define __stub macros and hopefully few prototypes,
38749     which can conflict with char $ac_func (); below.
38750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38751     <limits.h> exists even on freestanding compilers.  */
38752
38753 #ifdef __STDC__
38754 # include <limits.h>
38755 #else
38756 # include <assert.h>
38757 #endif
38758
38759 #undef $ac_func
38760
38761 /* Override any GCC internal prototype to avoid an error.
38762    Use char because int might match the return type of a GCC
38763    builtin and then its argument prototype would still apply.  */
38764 #ifdef __cplusplus
38765 extern "C"
38766 #endif
38767 char $ac_func ();
38768 /* The GNU C library defines this for functions which it implements
38769     to always fail with ENOSYS.  Some functions are actually named
38770     something starting with __ and the normal name is an alias.  */
38771 #if defined __stub_$ac_func || defined __stub___$ac_func
38772 choke me
38773 #endif
38774
38775 int
38776 main ()
38777 {
38778 return $ac_func ();
38779   ;
38780   return 0;
38781 }
38782 _ACEOF
38783 rm -f conftest.$ac_objext conftest$ac_exeext
38784 if { (ac_try="$ac_link"
38785 case "(($ac_try" in
38786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38787   *) ac_try_echo=$ac_try;;
38788 esac
38789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38790   (eval "$ac_link") 2>conftest.er1
38791   ac_status=$?
38792   grep -v '^ *+' conftest.er1 >conftest.err
38793   rm -f conftest.er1
38794   cat conftest.err >&5
38795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796   (exit $ac_status); } && {
38797          test -z "$ac_c_werror_flag" ||
38798          test ! -s conftest.err
38799        } && test -s conftest$ac_exeext &&
38800        $as_test_x conftest$ac_exeext; then
38801   eval "$as_ac_var=yes"
38802 else
38803   echo "$as_me: failed program was:" >&5
38804 sed 's/^/| /' conftest.$ac_ext >&5
38805
38806         eval "$as_ac_var=no"
38807 fi
38808
38809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38810       conftest$ac_exeext conftest.$ac_ext
38811 fi
38812 ac_res=`eval echo '${'$as_ac_var'}'`
38813                { echo "$as_me:$LINENO: result: $ac_res" >&5
38814 echo "${ECHO_T}$ac_res" >&6; }
38815 if test `eval echo '${'$as_ac_var'}'` = yes; then
38816   cat >>confdefs.h <<_ACEOF
38817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38818 _ACEOF
38819  cat >>confdefs.h <<\_ACEOF
38820 #define HAVE_FCHDIR 1
38821 _ACEOF
38822
38823 fi
38824 done
38825
38826
38827 for ac_func in strtoll
38828 do
38829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38833   echo $ECHO_N "(cached) $ECHO_C" >&6
38834 else
38835   cat >conftest.$ac_ext <<_ACEOF
38836 /* confdefs.h.  */
38837 _ACEOF
38838 cat confdefs.h >>conftest.$ac_ext
38839 cat >>conftest.$ac_ext <<_ACEOF
38840 /* end confdefs.h.  */
38841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38843 #define $ac_func innocuous_$ac_func
38844
38845 /* System header to define __stub macros and hopefully few prototypes,
38846     which can conflict with char $ac_func (); below.
38847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38848     <limits.h> exists even on freestanding compilers.  */
38849
38850 #ifdef __STDC__
38851 # include <limits.h>
38852 #else
38853 # include <assert.h>
38854 #endif
38855
38856 #undef $ac_func
38857
38858 /* Override any GCC internal prototype to avoid an error.
38859    Use char because int might match the return type of a GCC
38860    builtin and then its argument prototype would still apply.  */
38861 #ifdef __cplusplus
38862 extern "C"
38863 #endif
38864 char $ac_func ();
38865 /* The GNU C library defines this for functions which it implements
38866     to always fail with ENOSYS.  Some functions are actually named
38867     something starting with __ and the normal name is an alias.  */
38868 #if defined __stub_$ac_func || defined __stub___$ac_func
38869 choke me
38870 #endif
38871
38872 int
38873 main ()
38874 {
38875 return $ac_func ();
38876   ;
38877   return 0;
38878 }
38879 _ACEOF
38880 rm -f conftest.$ac_objext conftest$ac_exeext
38881 if { (ac_try="$ac_link"
38882 case "(($ac_try" in
38883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38884   *) ac_try_echo=$ac_try;;
38885 esac
38886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38887   (eval "$ac_link") 2>conftest.er1
38888   ac_status=$?
38889   grep -v '^ *+' conftest.er1 >conftest.err
38890   rm -f conftest.er1
38891   cat conftest.err >&5
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); } && {
38894          test -z "$ac_c_werror_flag" ||
38895          test ! -s conftest.err
38896        } && test -s conftest$ac_exeext &&
38897        $as_test_x conftest$ac_exeext; then
38898   eval "$as_ac_var=yes"
38899 else
38900   echo "$as_me: failed program was:" >&5
38901 sed 's/^/| /' conftest.$ac_ext >&5
38902
38903         eval "$as_ac_var=no"
38904 fi
38905
38906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38907       conftest$ac_exeext conftest.$ac_ext
38908 fi
38909 ac_res=`eval echo '${'$as_ac_var'}'`
38910                { echo "$as_me:$LINENO: result: $ac_res" >&5
38911 echo "${ECHO_T}$ac_res" >&6; }
38912 if test `eval echo '${'$as_ac_var'}'` = yes; then
38913   cat >>confdefs.h <<_ACEOF
38914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38915 _ACEOF
38916  cat >>confdefs.h <<\_ACEOF
38917 #define HAVE_STRTOLL 1
38918 _ACEOF
38919
38920 fi
38921 done
38922
38923
38924 for ac_func in posix_fadvise
38925 do
38926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38930   echo $ECHO_N "(cached) $ECHO_C" >&6
38931 else
38932   cat >conftest.$ac_ext <<_ACEOF
38933 /* confdefs.h.  */
38934 _ACEOF
38935 cat confdefs.h >>conftest.$ac_ext
38936 cat >>conftest.$ac_ext <<_ACEOF
38937 /* end confdefs.h.  */
38938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38940 #define $ac_func innocuous_$ac_func
38941
38942 /* System header to define __stub macros and hopefully few prototypes,
38943     which can conflict with char $ac_func (); below.
38944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38945     <limits.h> exists even on freestanding compilers.  */
38946
38947 #ifdef __STDC__
38948 # include <limits.h>
38949 #else
38950 # include <assert.h>
38951 #endif
38952
38953 #undef $ac_func
38954
38955 /* Override any GCC internal prototype to avoid an error.
38956    Use char because int might match the return type of a GCC
38957    builtin and then its argument prototype would still apply.  */
38958 #ifdef __cplusplus
38959 extern "C"
38960 #endif
38961 char $ac_func ();
38962 /* The GNU C library defines this for functions which it implements
38963     to always fail with ENOSYS.  Some functions are actually named
38964     something starting with __ and the normal name is an alias.  */
38965 #if defined __stub_$ac_func || defined __stub___$ac_func
38966 choke me
38967 #endif
38968
38969 int
38970 main ()
38971 {
38972 return $ac_func ();
38973   ;
38974   return 0;
38975 }
38976 _ACEOF
38977 rm -f conftest.$ac_objext conftest$ac_exeext
38978 if { (ac_try="$ac_link"
38979 case "(($ac_try" in
38980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38981   *) ac_try_echo=$ac_try;;
38982 esac
38983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38984   (eval "$ac_link") 2>conftest.er1
38985   ac_status=$?
38986   grep -v '^ *+' conftest.er1 >conftest.err
38987   rm -f conftest.er1
38988   cat conftest.err >&5
38989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38990   (exit $ac_status); } && {
38991          test -z "$ac_c_werror_flag" ||
38992          test ! -s conftest.err
38993        } && test -s conftest$ac_exeext &&
38994        $as_test_x conftest$ac_exeext; then
38995   eval "$as_ac_var=yes"
38996 else
38997   echo "$as_me: failed program was:" >&5
38998 sed 's/^/| /' conftest.$ac_ext >&5
38999
39000         eval "$as_ac_var=no"
39001 fi
39002
39003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39004       conftest$ac_exeext conftest.$ac_ext
39005 fi
39006 ac_res=`eval echo '${'$as_ac_var'}'`
39007                { echo "$as_me:$LINENO: result: $ac_res" >&5
39008 echo "${ECHO_T}$ac_res" >&6; }
39009 if test `eval echo '${'$as_ac_var'}'` = yes; then
39010   cat >>confdefs.h <<_ACEOF
39011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39012 _ACEOF
39013
39014 fi
39015 done
39016
39017
39018 for ac_func in fdatasync
39019 do
39020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39024   echo $ECHO_N "(cached) $ECHO_C" >&6
39025 else
39026   cat >conftest.$ac_ext <<_ACEOF
39027 /* confdefs.h.  */
39028 _ACEOF
39029 cat confdefs.h >>conftest.$ac_ext
39030 cat >>conftest.$ac_ext <<_ACEOF
39031 /* end confdefs.h.  */
39032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39034 #define $ac_func innocuous_$ac_func
39035
39036 /* System header to define __stub macros and hopefully few prototypes,
39037     which can conflict with char $ac_func (); below.
39038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39039     <limits.h> exists even on freestanding compilers.  */
39040
39041 #ifdef __STDC__
39042 # include <limits.h>
39043 #else
39044 # include <assert.h>
39045 #endif
39046
39047 #undef $ac_func
39048
39049 /* Override any GCC internal prototype to avoid an error.
39050    Use char because int might match the return type of a GCC
39051    builtin and then its argument prototype would still apply.  */
39052 #ifdef __cplusplus
39053 extern "C"
39054 #endif
39055 char $ac_func ();
39056 /* The GNU C library defines this for functions which it implements
39057     to always fail with ENOSYS.  Some functions are actually named
39058     something starting with __ and the normal name is an alias.  */
39059 #if defined __stub_$ac_func || defined __stub___$ac_func
39060 choke me
39061 #endif
39062
39063 int
39064 main ()
39065 {
39066 return $ac_func ();
39067   ;
39068   return 0;
39069 }
39070 _ACEOF
39071 rm -f conftest.$ac_objext conftest$ac_exeext
39072 if { (ac_try="$ac_link"
39073 case "(($ac_try" in
39074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39075   *) ac_try_echo=$ac_try;;
39076 esac
39077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39078   (eval "$ac_link") 2>conftest.er1
39079   ac_status=$?
39080   grep -v '^ *+' conftest.er1 >conftest.err
39081   rm -f conftest.er1
39082   cat conftest.err >&5
39083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084   (exit $ac_status); } && {
39085          test -z "$ac_c_werror_flag" ||
39086          test ! -s conftest.err
39087        } && test -s conftest$ac_exeext &&
39088        $as_test_x conftest$ac_exeext; then
39089   eval "$as_ac_var=yes"
39090 else
39091   echo "$as_me: failed program was:" >&5
39092 sed 's/^/| /' conftest.$ac_ext >&5
39093
39094         eval "$as_ac_var=no"
39095 fi
39096
39097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39098       conftest$ac_exeext conftest.$ac_ext
39099 fi
39100 ac_res=`eval echo '${'$as_ac_var'}'`
39101                { echo "$as_me:$LINENO: result: $ac_res" >&5
39102 echo "${ECHO_T}$ac_res" >&6; }
39103 if test `eval echo '${'$as_ac_var'}'` = yes; then
39104   cat >>confdefs.h <<_ACEOF
39105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39106 _ACEOF
39107
39108 fi
39109 done
39110
39111
39112
39113 for ac_func in chflags
39114 do
39115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39119   echo $ECHO_N "(cached) $ECHO_C" >&6
39120 else
39121   cat >conftest.$ac_ext <<_ACEOF
39122 /* confdefs.h.  */
39123 _ACEOF
39124 cat confdefs.h >>conftest.$ac_ext
39125 cat >>conftest.$ac_ext <<_ACEOF
39126 /* end confdefs.h.  */
39127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39129 #define $ac_func innocuous_$ac_func
39130
39131 /* System header to define __stub macros and hopefully few prototypes,
39132     which can conflict with char $ac_func (); below.
39133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39134     <limits.h> exists even on freestanding compilers.  */
39135
39136 #ifdef __STDC__
39137 # include <limits.h>
39138 #else
39139 # include <assert.h>
39140 #endif
39141
39142 #undef $ac_func
39143
39144 /* Override any GCC internal prototype to avoid an error.
39145    Use char because int might match the return type of a GCC
39146    builtin and then its argument prototype would still apply.  */
39147 #ifdef __cplusplus
39148 extern "C"
39149 #endif
39150 char $ac_func ();
39151 /* The GNU C library defines this for functions which it implements
39152     to always fail with ENOSYS.  Some functions are actually named
39153     something starting with __ and the normal name is an alias.  */
39154 #if defined __stub_$ac_func || defined __stub___$ac_func
39155 choke me
39156 #endif
39157
39158 int
39159 main ()
39160 {
39161 return $ac_func ();
39162   ;
39163   return 0;
39164 }
39165 _ACEOF
39166 rm -f conftest.$ac_objext conftest$ac_exeext
39167 if { (ac_try="$ac_link"
39168 case "(($ac_try" in
39169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39170   *) ac_try_echo=$ac_try;;
39171 esac
39172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39173   (eval "$ac_link") 2>conftest.er1
39174   ac_status=$?
39175   grep -v '^ *+' conftest.er1 >conftest.err
39176   rm -f conftest.er1
39177   cat conftest.err >&5
39178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179   (exit $ac_status); } && {
39180          test -z "$ac_c_werror_flag" ||
39181          test ! -s conftest.err
39182        } && test -s conftest$ac_exeext &&
39183        $as_test_x conftest$ac_exeext; then
39184   eval "$as_ac_var=yes"
39185 else
39186   echo "$as_me: failed program was:" >&5
39187 sed 's/^/| /' conftest.$ac_ext >&5
39188
39189         eval "$as_ac_var=no"
39190 fi
39191
39192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39193       conftest$ac_exeext conftest.$ac_ext
39194 fi
39195 ac_res=`eval echo '${'$as_ac_var'}'`
39196                { echo "$as_me:$LINENO: result: $ac_res" >&5
39197 echo "${ECHO_T}$ac_res" >&6; }
39198 if test `eval echo '${'$as_ac_var'}'` = yes; then
39199   cat >>confdefs.h <<_ACEOF
39200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39201 _ACEOF
39202
39203 fi
39204 done
39205
39206
39207
39208
39209
39210
39211 for ac_func in snprintf vsnprintf gethostid fseeko
39212 do
39213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39217   echo $ECHO_N "(cached) $ECHO_C" >&6
39218 else
39219   cat >conftest.$ac_ext <<_ACEOF
39220 /* confdefs.h.  */
39221 _ACEOF
39222 cat confdefs.h >>conftest.$ac_ext
39223 cat >>conftest.$ac_ext <<_ACEOF
39224 /* end confdefs.h.  */
39225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39227 #define $ac_func innocuous_$ac_func
39228
39229 /* System header to define __stub macros and hopefully few prototypes,
39230     which can conflict with char $ac_func (); below.
39231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39232     <limits.h> exists even on freestanding compilers.  */
39233
39234 #ifdef __STDC__
39235 # include <limits.h>
39236 #else
39237 # include <assert.h>
39238 #endif
39239
39240 #undef $ac_func
39241
39242 /* Override any GCC internal prototype to avoid an error.
39243    Use char because int might match the return type of a GCC
39244    builtin and then its argument prototype would still apply.  */
39245 #ifdef __cplusplus
39246 extern "C"
39247 #endif
39248 char $ac_func ();
39249 /* The GNU C library defines this for functions which it implements
39250     to always fail with ENOSYS.  Some functions are actually named
39251     something starting with __ and the normal name is an alias.  */
39252 #if defined __stub_$ac_func || defined __stub___$ac_func
39253 choke me
39254 #endif
39255
39256 int
39257 main ()
39258 {
39259 return $ac_func ();
39260   ;
39261   return 0;
39262 }
39263 _ACEOF
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (ac_try="$ac_link"
39266 case "(($ac_try" in
39267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268   *) ac_try_echo=$ac_try;;
39269 esac
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271   (eval "$ac_link") 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } && {
39278          test -z "$ac_c_werror_flag" ||
39279          test ! -s conftest.err
39280        } && test -s conftest$ac_exeext &&
39281        $as_test_x conftest$ac_exeext; then
39282   eval "$as_ac_var=yes"
39283 else
39284   echo "$as_me: failed program was:" >&5
39285 sed 's/^/| /' conftest.$ac_ext >&5
39286
39287         eval "$as_ac_var=no"
39288 fi
39289
39290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39291       conftest$ac_exeext conftest.$ac_ext
39292 fi
39293 ac_res=`eval echo '${'$as_ac_var'}'`
39294                { echo "$as_me:$LINENO: result: $ac_res" >&5
39295 echo "${ECHO_T}$ac_res" >&6; }
39296 if test `eval echo '${'$as_ac_var'}'` = yes; then
39297   cat >>confdefs.h <<_ACEOF
39298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39299 _ACEOF
39300
39301 fi
39302 done
39303
39304
39305 { echo "$as_me:$LINENO: checking for va_copy" >&5
39306 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39307 if test "${ba_cv_va_copy+set}" = set; then
39308   echo $ECHO_N "(cached) $ECHO_C" >&6
39309 else
39310
39311        cat >conftest.$ac_ext <<_ACEOF
39312 /* confdefs.h.  */
39313 _ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h.  */
39317
39318               #include <stdarg.h>
39319               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39320               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39321
39322 int
39323 main ()
39324 {
39325
39326               call_use_va_copy(1,2,3)
39327
39328   ;
39329   return 0;
39330 }
39331 _ACEOF
39332 rm -f conftest.$ac_objext conftest$ac_exeext
39333 if { (ac_try="$ac_link"
39334 case "(($ac_try" in
39335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39336   *) ac_try_echo=$ac_try;;
39337 esac
39338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39339   (eval "$ac_link") 2>conftest.er1
39340   ac_status=$?
39341   grep -v '^ *+' conftest.er1 >conftest.err
39342   rm -f conftest.er1
39343   cat conftest.err >&5
39344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345   (exit $ac_status); } && {
39346          test -z "$ac_c_werror_flag" ||
39347          test ! -s conftest.err
39348        } && test -s conftest$ac_exeext &&
39349        $as_test_x conftest$ac_exeext; then
39350
39351               ba_cv_va_copy=yes,
39352
39353 else
39354   echo "$as_me: failed program was:" >&5
39355 sed 's/^/| /' conftest.$ac_ext >&5
39356
39357
39358               ba_cv_va_copy=no
39359
39360
39361 fi
39362
39363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39364       conftest$ac_exeext conftest.$ac_ext
39365
39366
39367 fi
39368 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39369 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39370 test $ba_cv_va_copy = yes &&
39371 cat >>confdefs.h <<\_ACEOF
39372 #define HAVE_VA_COPY 1
39373 _ACEOF
39374
39375
39376
39377
39378
39379
39380 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39381 do
39382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39386   echo $ECHO_N "(cached) $ECHO_C" >&6
39387 else
39388   cat >conftest.$ac_ext <<_ACEOF
39389 /* confdefs.h.  */
39390 _ACEOF
39391 cat confdefs.h >>conftest.$ac_ext
39392 cat >>conftest.$ac_ext <<_ACEOF
39393 /* end confdefs.h.  */
39394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39396 #define $ac_func innocuous_$ac_func
39397
39398 /* System header to define __stub macros and hopefully few prototypes,
39399     which can conflict with char $ac_func (); below.
39400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39401     <limits.h> exists even on freestanding compilers.  */
39402
39403 #ifdef __STDC__
39404 # include <limits.h>
39405 #else
39406 # include <assert.h>
39407 #endif
39408
39409 #undef $ac_func
39410
39411 /* Override any GCC internal prototype to avoid an error.
39412    Use char because int might match the return type of a GCC
39413    builtin and then its argument prototype would still apply.  */
39414 #ifdef __cplusplus
39415 extern "C"
39416 #endif
39417 char $ac_func ();
39418 /* The GNU C library defines this for functions which it implements
39419     to always fail with ENOSYS.  Some functions are actually named
39420     something starting with __ and the normal name is an alias.  */
39421 #if defined __stub_$ac_func || defined __stub___$ac_func
39422 choke me
39423 #endif
39424
39425 int
39426 main ()
39427 {
39428 return $ac_func ();
39429   ;
39430   return 0;
39431 }
39432 _ACEOF
39433 rm -f conftest.$ac_objext conftest$ac_exeext
39434 if { (ac_try="$ac_link"
39435 case "(($ac_try" in
39436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39437   *) ac_try_echo=$ac_try;;
39438 esac
39439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39440   (eval "$ac_link") 2>conftest.er1
39441   ac_status=$?
39442   grep -v '^ *+' conftest.er1 >conftest.err
39443   rm -f conftest.er1
39444   cat conftest.err >&5
39445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446   (exit $ac_status); } && {
39447          test -z "$ac_c_werror_flag" ||
39448          test ! -s conftest.err
39449        } && test -s conftest$ac_exeext &&
39450        $as_test_x conftest$ac_exeext; then
39451   eval "$as_ac_var=yes"
39452 else
39453   echo "$as_me: failed program was:" >&5
39454 sed 's/^/| /' conftest.$ac_ext >&5
39455
39456         eval "$as_ac_var=no"
39457 fi
39458
39459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39460       conftest$ac_exeext conftest.$ac_ext
39461 fi
39462 ac_res=`eval echo '${'$as_ac_var'}'`
39463                { echo "$as_me:$LINENO: result: $ac_res" >&5
39464 echo "${ECHO_T}$ac_res" >&6; }
39465 if test `eval echo '${'$as_ac_var'}'` = yes; then
39466   cat >>confdefs.h <<_ACEOF
39467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39468 _ACEOF
39469
39470 fi
39471 done
39472
39473
39474 # If resolver functions are not in libc check for -lnsl or -lresolv.
39475 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39476 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39477 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39478   echo $ECHO_N "(cached) $ECHO_C" >&6
39479 else
39480   cat >conftest.$ac_ext <<_ACEOF
39481 /* confdefs.h.  */
39482 _ACEOF
39483 cat confdefs.h >>conftest.$ac_ext
39484 cat >>conftest.$ac_ext <<_ACEOF
39485 /* end confdefs.h.  */
39486 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39488 #define gethostbyname_r innocuous_gethostbyname_r
39489
39490 /* System header to define __stub macros and hopefully few prototypes,
39491     which can conflict with char gethostbyname_r (); below.
39492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39493     <limits.h> exists even on freestanding compilers.  */
39494
39495 #ifdef __STDC__
39496 # include <limits.h>
39497 #else
39498 # include <assert.h>
39499 #endif
39500
39501 #undef gethostbyname_r
39502
39503 /* Override any GCC internal prototype to avoid an error.
39504    Use char because int might match the return type of a GCC
39505    builtin and then its argument prototype would still apply.  */
39506 #ifdef __cplusplus
39507 extern "C"
39508 #endif
39509 char gethostbyname_r ();
39510 /* The GNU C library defines this for functions which it implements
39511     to always fail with ENOSYS.  Some functions are actually named
39512     something starting with __ and the normal name is an alias.  */
39513 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39514 choke me
39515 #endif
39516
39517 int
39518 main ()
39519 {
39520 return gethostbyname_r ();
39521   ;
39522   return 0;
39523 }
39524 _ACEOF
39525 rm -f conftest.$ac_objext conftest$ac_exeext
39526 if { (ac_try="$ac_link"
39527 case "(($ac_try" in
39528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39529   *) ac_try_echo=$ac_try;;
39530 esac
39531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39532   (eval "$ac_link") 2>conftest.er1
39533   ac_status=$?
39534   grep -v '^ *+' conftest.er1 >conftest.err
39535   rm -f conftest.er1
39536   cat conftest.err >&5
39537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538   (exit $ac_status); } && {
39539          test -z "$ac_c_werror_flag" ||
39540          test ! -s conftest.err
39541        } && test -s conftest$ac_exeext &&
39542        $as_test_x conftest$ac_exeext; then
39543   ac_cv_func_gethostbyname_r=yes
39544 else
39545   echo "$as_me: failed program was:" >&5
39546 sed 's/^/| /' conftest.$ac_ext >&5
39547
39548         ac_cv_func_gethostbyname_r=no
39549 fi
39550
39551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39552       conftest$ac_exeext conftest.$ac_ext
39553 fi
39554 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39555 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39556 if test $ac_cv_func_gethostbyname_r = yes; then
39557   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39558 echo "${ECHO_T}using libc's resolver" >&6; }
39559 else
39560
39561 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39562 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39563 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39564   echo $ECHO_N "(cached) $ECHO_C" >&6
39565 else
39566   ac_check_lib_save_LIBS=$LIBS
39567 LIBS="-lnsl  $LIBS"
39568 cat >conftest.$ac_ext <<_ACEOF
39569 /* confdefs.h.  */
39570 _ACEOF
39571 cat confdefs.h >>conftest.$ac_ext
39572 cat >>conftest.$ac_ext <<_ACEOF
39573 /* end confdefs.h.  */
39574
39575 /* Override any GCC internal prototype to avoid an error.
39576    Use char because int might match the return type of a GCC
39577    builtin and then its argument prototype would still apply.  */
39578 #ifdef __cplusplus
39579 extern "C"
39580 #endif
39581 char gethostbyname_r ();
39582 int
39583 main ()
39584 {
39585 return gethostbyname_r ();
39586   ;
39587   return 0;
39588 }
39589 _ACEOF
39590 rm -f conftest.$ac_objext conftest$ac_exeext
39591 if { (ac_try="$ac_link"
39592 case "(($ac_try" in
39593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39594   *) ac_try_echo=$ac_try;;
39595 esac
39596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39597   (eval "$ac_link") 2>conftest.er1
39598   ac_status=$?
39599   grep -v '^ *+' conftest.er1 >conftest.err
39600   rm -f conftest.er1
39601   cat conftest.err >&5
39602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603   (exit $ac_status); } && {
39604          test -z "$ac_c_werror_flag" ||
39605          test ! -s conftest.err
39606        } && test -s conftest$ac_exeext &&
39607        $as_test_x conftest$ac_exeext; then
39608   ac_cv_lib_nsl_gethostbyname_r=yes
39609 else
39610   echo "$as_me: failed program was:" >&5
39611 sed 's/^/| /' conftest.$ac_ext >&5
39612
39613         ac_cv_lib_nsl_gethostbyname_r=no
39614 fi
39615
39616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39617       conftest$ac_exeext conftest.$ac_ext
39618 LIBS=$ac_check_lib_save_LIBS
39619 fi
39620 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39621 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39622 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39623   cat >>confdefs.h <<_ACEOF
39624 #define HAVE_LIBNSL 1
39625 _ACEOF
39626
39627   LIBS="-lnsl $LIBS"
39628
39629 fi
39630
39631
39632 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39633 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39634 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39635   echo $ECHO_N "(cached) $ECHO_C" >&6
39636 else
39637   ac_check_lib_save_LIBS=$LIBS
39638 LIBS="-lresolv  $LIBS"
39639 cat >conftest.$ac_ext <<_ACEOF
39640 /* confdefs.h.  */
39641 _ACEOF
39642 cat confdefs.h >>conftest.$ac_ext
39643 cat >>conftest.$ac_ext <<_ACEOF
39644 /* end confdefs.h.  */
39645
39646 /* Override any GCC internal prototype to avoid an error.
39647    Use char because int might match the return type of a GCC
39648    builtin and then its argument prototype would still apply.  */
39649 #ifdef __cplusplus
39650 extern "C"
39651 #endif
39652 char gethostbyname_r ();
39653 int
39654 main ()
39655 {
39656 return gethostbyname_r ();
39657   ;
39658   return 0;
39659 }
39660 _ACEOF
39661 rm -f conftest.$ac_objext conftest$ac_exeext
39662 if { (ac_try="$ac_link"
39663 case "(($ac_try" in
39664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39665   *) ac_try_echo=$ac_try;;
39666 esac
39667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39668   (eval "$ac_link") 2>conftest.er1
39669   ac_status=$?
39670   grep -v '^ *+' conftest.er1 >conftest.err
39671   rm -f conftest.er1
39672   cat conftest.err >&5
39673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674   (exit $ac_status); } && {
39675          test -z "$ac_c_werror_flag" ||
39676          test ! -s conftest.err
39677        } && test -s conftest$ac_exeext &&
39678        $as_test_x conftest$ac_exeext; then
39679   ac_cv_lib_resolv_gethostbyname_r=yes
39680 else
39681   echo "$as_me: failed program was:" >&5
39682 sed 's/^/| /' conftest.$ac_ext >&5
39683
39684         ac_cv_lib_resolv_gethostbyname_r=no
39685 fi
39686
39687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39688       conftest$ac_exeext conftest.$ac_ext
39689 LIBS=$ac_check_lib_save_LIBS
39690 fi
39691 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39692 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39693 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39694   cat >>confdefs.h <<_ACEOF
39695 #define HAVE_LIBRESOLV 1
39696 _ACEOF
39697
39698   LIBS="-lresolv $LIBS"
39699
39700 fi
39701
39702 fi
39703
39704
39705
39706 for ac_func in inet_pton
39707 do
39708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39712   echo $ECHO_N "(cached) $ECHO_C" >&6
39713 else
39714   cat >conftest.$ac_ext <<_ACEOF
39715 /* confdefs.h.  */
39716 _ACEOF
39717 cat confdefs.h >>conftest.$ac_ext
39718 cat >>conftest.$ac_ext <<_ACEOF
39719 /* end confdefs.h.  */
39720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39722 #define $ac_func innocuous_$ac_func
39723
39724 /* System header to define __stub macros and hopefully few prototypes,
39725     which can conflict with char $ac_func (); below.
39726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39727     <limits.h> exists even on freestanding compilers.  */
39728
39729 #ifdef __STDC__
39730 # include <limits.h>
39731 #else
39732 # include <assert.h>
39733 #endif
39734
39735 #undef $ac_func
39736
39737 /* Override any GCC internal prototype to avoid an error.
39738    Use char because int might match the return type of a GCC
39739    builtin and then its argument prototype would still apply.  */
39740 #ifdef __cplusplus
39741 extern "C"
39742 #endif
39743 char $ac_func ();
39744 /* The GNU C library defines this for functions which it implements
39745     to always fail with ENOSYS.  Some functions are actually named
39746     something starting with __ and the normal name is an alias.  */
39747 #if defined __stub_$ac_func || defined __stub___$ac_func
39748 choke me
39749 #endif
39750
39751 int
39752 main ()
39753 {
39754 return $ac_func ();
39755   ;
39756   return 0;
39757 }
39758 _ACEOF
39759 rm -f conftest.$ac_objext conftest$ac_exeext
39760 if { (ac_try="$ac_link"
39761 case "(($ac_try" in
39762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39763   *) ac_try_echo=$ac_try;;
39764 esac
39765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39766   (eval "$ac_link") 2>conftest.er1
39767   ac_status=$?
39768   grep -v '^ *+' conftest.er1 >conftest.err
39769   rm -f conftest.er1
39770   cat conftest.err >&5
39771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772   (exit $ac_status); } && {
39773          test -z "$ac_c_werror_flag" ||
39774          test ! -s conftest.err
39775        } && test -s conftest$ac_exeext &&
39776        $as_test_x conftest$ac_exeext; then
39777   eval "$as_ac_var=yes"
39778 else
39779   echo "$as_me: failed program was:" >&5
39780 sed 's/^/| /' conftest.$ac_ext >&5
39781
39782         eval "$as_ac_var=no"
39783 fi
39784
39785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39786       conftest$ac_exeext conftest.$ac_ext
39787 fi
39788 ac_res=`eval echo '${'$as_ac_var'}'`
39789                { echo "$as_me:$LINENO: result: $ac_res" >&5
39790 echo "${ECHO_T}$ac_res" >&6; }
39791 if test `eval echo '${'$as_ac_var'}'` = yes; then
39792   cat >>confdefs.h <<_ACEOF
39793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39794 _ACEOF
39795  cat >>confdefs.h <<\_ACEOF
39796 #define HAVE_INET_PTON 1
39797 _ACEOF
39798
39799 fi
39800 done
39801
39802
39803 for ac_func in inet_ntop
39804 do
39805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39809   echo $ECHO_N "(cached) $ECHO_C" >&6
39810 else
39811   cat >conftest.$ac_ext <<_ACEOF
39812 /* confdefs.h.  */
39813 _ACEOF
39814 cat confdefs.h >>conftest.$ac_ext
39815 cat >>conftest.$ac_ext <<_ACEOF
39816 /* end confdefs.h.  */
39817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39819 #define $ac_func innocuous_$ac_func
39820
39821 /* System header to define __stub macros and hopefully few prototypes,
39822     which can conflict with char $ac_func (); below.
39823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39824     <limits.h> exists even on freestanding compilers.  */
39825
39826 #ifdef __STDC__
39827 # include <limits.h>
39828 #else
39829 # include <assert.h>
39830 #endif
39831
39832 #undef $ac_func
39833
39834 /* Override any GCC internal prototype to avoid an error.
39835    Use char because int might match the return type of a GCC
39836    builtin and then its argument prototype would still apply.  */
39837 #ifdef __cplusplus
39838 extern "C"
39839 #endif
39840 char $ac_func ();
39841 /* The GNU C library defines this for functions which it implements
39842     to always fail with ENOSYS.  Some functions are actually named
39843     something starting with __ and the normal name is an alias.  */
39844 #if defined __stub_$ac_func || defined __stub___$ac_func
39845 choke me
39846 #endif
39847
39848 int
39849 main ()
39850 {
39851 return $ac_func ();
39852   ;
39853   return 0;
39854 }
39855 _ACEOF
39856 rm -f conftest.$ac_objext conftest$ac_exeext
39857 if { (ac_try="$ac_link"
39858 case "(($ac_try" in
39859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39860   *) ac_try_echo=$ac_try;;
39861 esac
39862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39863   (eval "$ac_link") 2>conftest.er1
39864   ac_status=$?
39865   grep -v '^ *+' conftest.er1 >conftest.err
39866   rm -f conftest.er1
39867   cat conftest.err >&5
39868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869   (exit $ac_status); } && {
39870          test -z "$ac_c_werror_flag" ||
39871          test ! -s conftest.err
39872        } && test -s conftest$ac_exeext &&
39873        $as_test_x conftest$ac_exeext; then
39874   eval "$as_ac_var=yes"
39875 else
39876   echo "$as_me: failed program was:" >&5
39877 sed 's/^/| /' conftest.$ac_ext >&5
39878
39879         eval "$as_ac_var=no"
39880 fi
39881
39882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39883       conftest$ac_exeext conftest.$ac_ext
39884 fi
39885 ac_res=`eval echo '${'$as_ac_var'}'`
39886                { echo "$as_me:$LINENO: result: $ac_res" >&5
39887 echo "${ECHO_T}$ac_res" >&6; }
39888 if test `eval echo '${'$as_ac_var'}'` = yes; then
39889   cat >>confdefs.h <<_ACEOF
39890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39891 _ACEOF
39892  cat >>confdefs.h <<\_ACEOF
39893 #define HAVE_INET_NTOP 1
39894 _ACEOF
39895
39896 fi
39897 done
39898
39899
39900 for ac_func in gethostbyname2
39901 do
39902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39906   echo $ECHO_N "(cached) $ECHO_C" >&6
39907 else
39908   cat >conftest.$ac_ext <<_ACEOF
39909 /* confdefs.h.  */
39910 _ACEOF
39911 cat confdefs.h >>conftest.$ac_ext
39912 cat >>conftest.$ac_ext <<_ACEOF
39913 /* end confdefs.h.  */
39914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39916 #define $ac_func innocuous_$ac_func
39917
39918 /* System header to define __stub macros and hopefully few prototypes,
39919     which can conflict with char $ac_func (); below.
39920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39921     <limits.h> exists even on freestanding compilers.  */
39922
39923 #ifdef __STDC__
39924 # include <limits.h>
39925 #else
39926 # include <assert.h>
39927 #endif
39928
39929 #undef $ac_func
39930
39931 /* Override any GCC internal prototype to avoid an error.
39932    Use char because int might match the return type of a GCC
39933    builtin and then its argument prototype would still apply.  */
39934 #ifdef __cplusplus
39935 extern "C"
39936 #endif
39937 char $ac_func ();
39938 /* The GNU C library defines this for functions which it implements
39939     to always fail with ENOSYS.  Some functions are actually named
39940     something starting with __ and the normal name is an alias.  */
39941 #if defined __stub_$ac_func || defined __stub___$ac_func
39942 choke me
39943 #endif
39944
39945 int
39946 main ()
39947 {
39948 return $ac_func ();
39949   ;
39950   return 0;
39951 }
39952 _ACEOF
39953 rm -f conftest.$ac_objext conftest$ac_exeext
39954 if { (ac_try="$ac_link"
39955 case "(($ac_try" in
39956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957   *) ac_try_echo=$ac_try;;
39958 esac
39959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39960   (eval "$ac_link") 2>conftest.er1
39961   ac_status=$?
39962   grep -v '^ *+' conftest.er1 >conftest.err
39963   rm -f conftest.er1
39964   cat conftest.err >&5
39965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966   (exit $ac_status); } && {
39967          test -z "$ac_c_werror_flag" ||
39968          test ! -s conftest.err
39969        } && test -s conftest$ac_exeext &&
39970        $as_test_x conftest$ac_exeext; then
39971   eval "$as_ac_var=yes"
39972 else
39973   echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39975
39976         eval "$as_ac_var=no"
39977 fi
39978
39979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39980       conftest$ac_exeext conftest.$ac_ext
39981 fi
39982 ac_res=`eval echo '${'$as_ac_var'}'`
39983                { echo "$as_me:$LINENO: result: $ac_res" >&5
39984 echo "${ECHO_T}$ac_res" >&6; }
39985 if test `eval echo '${'$as_ac_var'}'` = yes; then
39986   cat >>confdefs.h <<_ACEOF
39987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39988 _ACEOF
39989  cat >>confdefs.h <<\_ACEOF
39990 #define HAVE_GETHOSTBYNAME2 1
39991 _ACEOF
39992
39993 fi
39994 done
39995
39996
39997 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39998 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39999 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
40000   echo $ECHO_N "(cached) $ECHO_C" >&6
40001 else
40002
40003        cat >conftest.$ac_ext <<_ACEOF
40004 /* confdefs.h.  */
40005 _ACEOF
40006 cat confdefs.h >>conftest.$ac_ext
40007 cat >>conftest.$ac_ext <<_ACEOF
40008 /* end confdefs.h.  */
40009
40010               #include <sys/socket.h>
40011
40012 int
40013 main ()
40014 {
40015
40016               struct sockaddr s; s.sa_len;
40017
40018   ;
40019   return 0;
40020 }
40021 _ACEOF
40022 rm -f conftest.$ac_objext
40023 if { (ac_try="$ac_compile"
40024 case "(($ac_try" in
40025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40026   *) ac_try_echo=$ac_try;;
40027 esac
40028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40029   (eval "$ac_compile") 2>conftest.er1
40030   ac_status=$?
40031   grep -v '^ *+' conftest.er1 >conftest.err
40032   rm -f conftest.er1
40033   cat conftest.err >&5
40034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035   (exit $ac_status); } && {
40036          test -z "$ac_c_werror_flag" ||
40037          test ! -s conftest.err
40038        } && test -s conftest.$ac_objext; then
40039
40040              ac_cv_struct_sockaddr_sa_len=yes
40041
40042 else
40043   echo "$as_me: failed program was:" >&5
40044 sed 's/^/| /' conftest.$ac_ext >&5
40045
40046         ac_cv_struct_sockaddr_sa_len=no
40047
40048
40049 fi
40050
40051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40052
40053
40054 fi
40055 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
40056 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
40057
40058 if test $ac_cv_struct_sockaddr_sa_len = yes; then
40059
40060 cat >>confdefs.h <<\_ACEOF
40061 #define HAVE_SA_LEN 1
40062 _ACEOF
40063
40064 fi
40065
40066
40067 for ac_func in strftime
40068 do
40069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40073   echo $ECHO_N "(cached) $ECHO_C" >&6
40074 else
40075   cat >conftest.$ac_ext <<_ACEOF
40076 /* confdefs.h.  */
40077 _ACEOF
40078 cat confdefs.h >>conftest.$ac_ext
40079 cat >>conftest.$ac_ext <<_ACEOF
40080 /* end confdefs.h.  */
40081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40083 #define $ac_func innocuous_$ac_func
40084
40085 /* System header to define __stub macros and hopefully few prototypes,
40086     which can conflict with char $ac_func (); below.
40087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40088     <limits.h> exists even on freestanding compilers.  */
40089
40090 #ifdef __STDC__
40091 # include <limits.h>
40092 #else
40093 # include <assert.h>
40094 #endif
40095
40096 #undef $ac_func
40097
40098 /* Override any GCC internal prototype to avoid an error.
40099    Use char because int might match the return type of a GCC
40100    builtin and then its argument prototype would still apply.  */
40101 #ifdef __cplusplus
40102 extern "C"
40103 #endif
40104 char $ac_func ();
40105 /* The GNU C library defines this for functions which it implements
40106     to always fail with ENOSYS.  Some functions are actually named
40107     something starting with __ and the normal name is an alias.  */
40108 #if defined __stub_$ac_func || defined __stub___$ac_func
40109 choke me
40110 #endif
40111
40112 int
40113 main ()
40114 {
40115 return $ac_func ();
40116   ;
40117   return 0;
40118 }
40119 _ACEOF
40120 rm -f conftest.$ac_objext conftest$ac_exeext
40121 if { (ac_try="$ac_link"
40122 case "(($ac_try" in
40123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40124   *) ac_try_echo=$ac_try;;
40125 esac
40126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40127   (eval "$ac_link") 2>conftest.er1
40128   ac_status=$?
40129   grep -v '^ *+' conftest.er1 >conftest.err
40130   rm -f conftest.er1
40131   cat conftest.err >&5
40132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40133   (exit $ac_status); } && {
40134          test -z "$ac_c_werror_flag" ||
40135          test ! -s conftest.err
40136        } && test -s conftest$ac_exeext &&
40137        $as_test_x conftest$ac_exeext; then
40138   eval "$as_ac_var=yes"
40139 else
40140   echo "$as_me: failed program was:" >&5
40141 sed 's/^/| /' conftest.$ac_ext >&5
40142
40143         eval "$as_ac_var=no"
40144 fi
40145
40146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40147       conftest$ac_exeext conftest.$ac_ext
40148 fi
40149 ac_res=`eval echo '${'$as_ac_var'}'`
40150                { echo "$as_me:$LINENO: result: $ac_res" >&5
40151 echo "${ECHO_T}$ac_res" >&6; }
40152 if test `eval echo '${'$as_ac_var'}'` = yes; then
40153   cat >>confdefs.h <<_ACEOF
40154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40155 _ACEOF
40156
40157 else
40158   # strftime is in -lintl on SCO UNIX.
40159 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40160 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
40161 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40162   echo $ECHO_N "(cached) $ECHO_C" >&6
40163 else
40164   ac_check_lib_save_LIBS=$LIBS
40165 LIBS="-lintl  $LIBS"
40166 cat >conftest.$ac_ext <<_ACEOF
40167 /* confdefs.h.  */
40168 _ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h.  */
40172
40173 /* Override any GCC internal prototype to avoid an error.
40174    Use char because int might match the return type of a GCC
40175    builtin and then its argument prototype would still apply.  */
40176 #ifdef __cplusplus
40177 extern "C"
40178 #endif
40179 char strftime ();
40180 int
40181 main ()
40182 {
40183 return strftime ();
40184   ;
40185   return 0;
40186 }
40187 _ACEOF
40188 rm -f conftest.$ac_objext conftest$ac_exeext
40189 if { (ac_try="$ac_link"
40190 case "(($ac_try" in
40191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40192   *) ac_try_echo=$ac_try;;
40193 esac
40194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40195   (eval "$ac_link") 2>conftest.er1
40196   ac_status=$?
40197   grep -v '^ *+' conftest.er1 >conftest.err
40198   rm -f conftest.er1
40199   cat conftest.err >&5
40200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201   (exit $ac_status); } && {
40202          test -z "$ac_c_werror_flag" ||
40203          test ! -s conftest.err
40204        } && test -s conftest$ac_exeext &&
40205        $as_test_x conftest$ac_exeext; then
40206   ac_cv_lib_intl_strftime=yes
40207 else
40208   echo "$as_me: failed program was:" >&5
40209 sed 's/^/| /' conftest.$ac_ext >&5
40210
40211         ac_cv_lib_intl_strftime=no
40212 fi
40213
40214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40215       conftest$ac_exeext conftest.$ac_ext
40216 LIBS=$ac_check_lib_save_LIBS
40217 fi
40218 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40219 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
40220 if test $ac_cv_lib_intl_strftime = yes; then
40221   cat >>confdefs.h <<\_ACEOF
40222 #define HAVE_STRFTIME 1
40223 _ACEOF
40224
40225 LIBS="-lintl $LIBS"
40226 fi
40227
40228 fi
40229 done
40230
40231
40232 for ac_func in vprintf
40233 do
40234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40238   echo $ECHO_N "(cached) $ECHO_C" >&6
40239 else
40240   cat >conftest.$ac_ext <<_ACEOF
40241 /* confdefs.h.  */
40242 _ACEOF
40243 cat confdefs.h >>conftest.$ac_ext
40244 cat >>conftest.$ac_ext <<_ACEOF
40245 /* end confdefs.h.  */
40246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40248 #define $ac_func innocuous_$ac_func
40249
40250 /* System header to define __stub macros and hopefully few prototypes,
40251     which can conflict with char $ac_func (); below.
40252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40253     <limits.h> exists even on freestanding compilers.  */
40254
40255 #ifdef __STDC__
40256 # include <limits.h>
40257 #else
40258 # include <assert.h>
40259 #endif
40260
40261 #undef $ac_func
40262
40263 /* Override any GCC internal prototype to avoid an error.
40264    Use char because int might match the return type of a GCC
40265    builtin and then its argument prototype would still apply.  */
40266 #ifdef __cplusplus
40267 extern "C"
40268 #endif
40269 char $ac_func ();
40270 /* The GNU C library defines this for functions which it implements
40271     to always fail with ENOSYS.  Some functions are actually named
40272     something starting with __ and the normal name is an alias.  */
40273 #if defined __stub_$ac_func || defined __stub___$ac_func
40274 choke me
40275 #endif
40276
40277 int
40278 main ()
40279 {
40280 return $ac_func ();
40281   ;
40282   return 0;
40283 }
40284 _ACEOF
40285 rm -f conftest.$ac_objext conftest$ac_exeext
40286 if { (ac_try="$ac_link"
40287 case "(($ac_try" in
40288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40289   *) ac_try_echo=$ac_try;;
40290 esac
40291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40292   (eval "$ac_link") 2>conftest.er1
40293   ac_status=$?
40294   grep -v '^ *+' conftest.er1 >conftest.err
40295   rm -f conftest.er1
40296   cat conftest.err >&5
40297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298   (exit $ac_status); } && {
40299          test -z "$ac_c_werror_flag" ||
40300          test ! -s conftest.err
40301        } && test -s conftest$ac_exeext &&
40302        $as_test_x conftest$ac_exeext; then
40303   eval "$as_ac_var=yes"
40304 else
40305   echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40307
40308         eval "$as_ac_var=no"
40309 fi
40310
40311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40312       conftest$ac_exeext conftest.$ac_ext
40313 fi
40314 ac_res=`eval echo '${'$as_ac_var'}'`
40315                { echo "$as_me:$LINENO: result: $ac_res" >&5
40316 echo "${ECHO_T}$ac_res" >&6; }
40317 if test `eval echo '${'$as_ac_var'}'` = yes; then
40318   cat >>confdefs.h <<_ACEOF
40319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40320 _ACEOF
40321
40322 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40323 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40324 if test "${ac_cv_func__doprnt+set}" = set; then
40325   echo $ECHO_N "(cached) $ECHO_C" >&6
40326 else
40327   cat >conftest.$ac_ext <<_ACEOF
40328 /* confdefs.h.  */
40329 _ACEOF
40330 cat confdefs.h >>conftest.$ac_ext
40331 cat >>conftest.$ac_ext <<_ACEOF
40332 /* end confdefs.h.  */
40333 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40335 #define _doprnt innocuous__doprnt
40336
40337 /* System header to define __stub macros and hopefully few prototypes,
40338     which can conflict with char _doprnt (); below.
40339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40340     <limits.h> exists even on freestanding compilers.  */
40341
40342 #ifdef __STDC__
40343 # include <limits.h>
40344 #else
40345 # include <assert.h>
40346 #endif
40347
40348 #undef _doprnt
40349
40350 /* Override any GCC internal prototype to avoid an error.
40351    Use char because int might match the return type of a GCC
40352    builtin and then its argument prototype would still apply.  */
40353 #ifdef __cplusplus
40354 extern "C"
40355 #endif
40356 char _doprnt ();
40357 /* The GNU C library defines this for functions which it implements
40358     to always fail with ENOSYS.  Some functions are actually named
40359     something starting with __ and the normal name is an alias.  */
40360 #if defined __stub__doprnt || defined __stub____doprnt
40361 choke me
40362 #endif
40363
40364 int
40365 main ()
40366 {
40367 return _doprnt ();
40368   ;
40369   return 0;
40370 }
40371 _ACEOF
40372 rm -f conftest.$ac_objext conftest$ac_exeext
40373 if { (ac_try="$ac_link"
40374 case "(($ac_try" in
40375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40376   *) ac_try_echo=$ac_try;;
40377 esac
40378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40379   (eval "$ac_link") 2>conftest.er1
40380   ac_status=$?
40381   grep -v '^ *+' conftest.er1 >conftest.err
40382   rm -f conftest.er1
40383   cat conftest.err >&5
40384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385   (exit $ac_status); } && {
40386          test -z "$ac_c_werror_flag" ||
40387          test ! -s conftest.err
40388        } && test -s conftest$ac_exeext &&
40389        $as_test_x conftest$ac_exeext; then
40390   ac_cv_func__doprnt=yes
40391 else
40392   echo "$as_me: failed program was:" >&5
40393 sed 's/^/| /' conftest.$ac_ext >&5
40394
40395         ac_cv_func__doprnt=no
40396 fi
40397
40398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40399       conftest$ac_exeext conftest.$ac_ext
40400 fi
40401 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40402 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40403 if test $ac_cv_func__doprnt = yes; then
40404
40405 cat >>confdefs.h <<\_ACEOF
40406 #define HAVE_DOPRNT 1
40407 _ACEOF
40408
40409 fi
40410
40411 fi
40412 done
40413
40414
40415 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40416 # for constant arguments.  Useless!
40417 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40418 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40419 if test "${ac_cv_working_alloca_h+set}" = set; then
40420   echo $ECHO_N "(cached) $ECHO_C" >&6
40421 else
40422   cat >conftest.$ac_ext <<_ACEOF
40423 /* confdefs.h.  */
40424 _ACEOF
40425 cat confdefs.h >>conftest.$ac_ext
40426 cat >>conftest.$ac_ext <<_ACEOF
40427 /* end confdefs.h.  */
40428 #include <alloca.h>
40429 int
40430 main ()
40431 {
40432 char *p = (char *) alloca (2 * sizeof (int));
40433                           if (p) return 0;
40434   ;
40435   return 0;
40436 }
40437 _ACEOF
40438 rm -f conftest.$ac_objext conftest$ac_exeext
40439 if { (ac_try="$ac_link"
40440 case "(($ac_try" in
40441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442   *) ac_try_echo=$ac_try;;
40443 esac
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445   (eval "$ac_link") 2>conftest.er1
40446   ac_status=$?
40447   grep -v '^ *+' conftest.er1 >conftest.err
40448   rm -f conftest.er1
40449   cat conftest.err >&5
40450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451   (exit $ac_status); } && {
40452          test -z "$ac_c_werror_flag" ||
40453          test ! -s conftest.err
40454        } && test -s conftest$ac_exeext &&
40455        $as_test_x conftest$ac_exeext; then
40456   ac_cv_working_alloca_h=yes
40457 else
40458   echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40460
40461         ac_cv_working_alloca_h=no
40462 fi
40463
40464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40465       conftest$ac_exeext conftest.$ac_ext
40466 fi
40467 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40468 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40469 if test $ac_cv_working_alloca_h = yes; then
40470
40471 cat >>confdefs.h <<\_ACEOF
40472 #define HAVE_ALLOCA_H 1
40473 _ACEOF
40474
40475 fi
40476
40477 { echo "$as_me:$LINENO: checking for alloca" >&5
40478 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40479 if test "${ac_cv_func_alloca_works+set}" = set; then
40480   echo $ECHO_N "(cached) $ECHO_C" >&6
40481 else
40482   cat >conftest.$ac_ext <<_ACEOF
40483 /* confdefs.h.  */
40484 _ACEOF
40485 cat confdefs.h >>conftest.$ac_ext
40486 cat >>conftest.$ac_ext <<_ACEOF
40487 /* end confdefs.h.  */
40488 #ifdef __GNUC__
40489 # define alloca __builtin_alloca
40490 #else
40491 # ifdef _MSC_VER
40492 #  include <malloc.h>
40493 #  define alloca _alloca
40494 # else
40495 #  ifdef HAVE_ALLOCA_H
40496 #   include <alloca.h>
40497 #  else
40498 #   ifdef _AIX
40499  #pragma alloca
40500 #   else
40501 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40502 char *alloca ();
40503 #    endif
40504 #   endif
40505 #  endif
40506 # endif
40507 #endif
40508
40509 int
40510 main ()
40511 {
40512 char *p = (char *) alloca (1);
40513                                     if (p) return 0;
40514   ;
40515   return 0;
40516 }
40517 _ACEOF
40518 rm -f conftest.$ac_objext conftest$ac_exeext
40519 if { (ac_try="$ac_link"
40520 case "(($ac_try" in
40521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40522   *) ac_try_echo=$ac_try;;
40523 esac
40524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40525   (eval "$ac_link") 2>conftest.er1
40526   ac_status=$?
40527   grep -v '^ *+' conftest.er1 >conftest.err
40528   rm -f conftest.er1
40529   cat conftest.err >&5
40530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531   (exit $ac_status); } && {
40532          test -z "$ac_c_werror_flag" ||
40533          test ! -s conftest.err
40534        } && test -s conftest$ac_exeext &&
40535        $as_test_x conftest$ac_exeext; then
40536   ac_cv_func_alloca_works=yes
40537 else
40538   echo "$as_me: failed program was:" >&5
40539 sed 's/^/| /' conftest.$ac_ext >&5
40540
40541         ac_cv_func_alloca_works=no
40542 fi
40543
40544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40545       conftest$ac_exeext conftest.$ac_ext
40546 fi
40547 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40548 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40549
40550 if test $ac_cv_func_alloca_works = yes; then
40551
40552 cat >>confdefs.h <<\_ACEOF
40553 #define HAVE_ALLOCA 1
40554 _ACEOF
40555
40556 else
40557   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40558 # that cause trouble.  Some versions do not even contain alloca or
40559 # contain a buggy version.  If you still want to use their alloca,
40560 # use ar to extract alloca.o from them instead of compiling alloca.c.
40561
40562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40563
40564 cat >>confdefs.h <<\_ACEOF
40565 #define C_ALLOCA 1
40566 _ACEOF
40567
40568
40569 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40570 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40571 if test "${ac_cv_os_cray+set}" = set; then
40572   echo $ECHO_N "(cached) $ECHO_C" >&6
40573 else
40574   cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580 #if defined CRAY && ! defined CRAY2
40581 webecray
40582 #else
40583 wenotbecray
40584 #endif
40585
40586 _ACEOF
40587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40588   $EGREP "webecray" >/dev/null 2>&1; then
40589   ac_cv_os_cray=yes
40590 else
40591   ac_cv_os_cray=no
40592 fi
40593 rm -f conftest*
40594
40595 fi
40596 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40597 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40598 if test $ac_cv_os_cray = yes; then
40599   for ac_func in _getb67 GETB67 getb67; do
40600     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40604   echo $ECHO_N "(cached) $ECHO_C" >&6
40605 else
40606   cat >conftest.$ac_ext <<_ACEOF
40607 /* confdefs.h.  */
40608 _ACEOF
40609 cat confdefs.h >>conftest.$ac_ext
40610 cat >>conftest.$ac_ext <<_ACEOF
40611 /* end confdefs.h.  */
40612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40614 #define $ac_func innocuous_$ac_func
40615
40616 /* System header to define __stub macros and hopefully few prototypes,
40617     which can conflict with char $ac_func (); below.
40618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40619     <limits.h> exists even on freestanding compilers.  */
40620
40621 #ifdef __STDC__
40622 # include <limits.h>
40623 #else
40624 # include <assert.h>
40625 #endif
40626
40627 #undef $ac_func
40628
40629 /* Override any GCC internal prototype to avoid an error.
40630    Use char because int might match the return type of a GCC
40631    builtin and then its argument prototype would still apply.  */
40632 #ifdef __cplusplus
40633 extern "C"
40634 #endif
40635 char $ac_func ();
40636 /* The GNU C library defines this for functions which it implements
40637     to always fail with ENOSYS.  Some functions are actually named
40638     something starting with __ and the normal name is an alias.  */
40639 #if defined __stub_$ac_func || defined __stub___$ac_func
40640 choke me
40641 #endif
40642
40643 int
40644 main ()
40645 {
40646 return $ac_func ();
40647   ;
40648   return 0;
40649 }
40650 _ACEOF
40651 rm -f conftest.$ac_objext conftest$ac_exeext
40652 if { (ac_try="$ac_link"
40653 case "(($ac_try" in
40654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40655   *) ac_try_echo=$ac_try;;
40656 esac
40657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40658   (eval "$ac_link") 2>conftest.er1
40659   ac_status=$?
40660   grep -v '^ *+' conftest.er1 >conftest.err
40661   rm -f conftest.er1
40662   cat conftest.err >&5
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); } && {
40665          test -z "$ac_c_werror_flag" ||
40666          test ! -s conftest.err
40667        } && test -s conftest$ac_exeext &&
40668        $as_test_x conftest$ac_exeext; then
40669   eval "$as_ac_var=yes"
40670 else
40671   echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40673
40674         eval "$as_ac_var=no"
40675 fi
40676
40677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40678       conftest$ac_exeext conftest.$ac_ext
40679 fi
40680 ac_res=`eval echo '${'$as_ac_var'}'`
40681                { echo "$as_me:$LINENO: result: $ac_res" >&5
40682 echo "${ECHO_T}$ac_res" >&6; }
40683 if test `eval echo '${'$as_ac_var'}'` = yes; then
40684
40685 cat >>confdefs.h <<_ACEOF
40686 #define CRAY_STACKSEG_END $ac_func
40687 _ACEOF
40688
40689     break
40690 fi
40691
40692   done
40693 fi
40694
40695 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40696 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40697 if test "${ac_cv_c_stack_direction+set}" = set; then
40698   echo $ECHO_N "(cached) $ECHO_C" >&6
40699 else
40700   if test "$cross_compiling" = yes; then
40701   ac_cv_c_stack_direction=0
40702 else
40703   cat >conftest.$ac_ext <<_ACEOF
40704 /* confdefs.h.  */
40705 _ACEOF
40706 cat confdefs.h >>conftest.$ac_ext
40707 cat >>conftest.$ac_ext <<_ACEOF
40708 /* end confdefs.h.  */
40709 $ac_includes_default
40710 int
40711 find_stack_direction ()
40712 {
40713   static char *addr = 0;
40714   auto char dummy;
40715   if (addr == 0)
40716     {
40717       addr = &dummy;
40718       return find_stack_direction ();
40719     }
40720   else
40721     return (&dummy > addr) ? 1 : -1;
40722 }
40723
40724 int
40725 main ()
40726 {
40727   return find_stack_direction () < 0;
40728 }
40729 _ACEOF
40730 rm -f conftest$ac_exeext
40731 if { (ac_try="$ac_link"
40732 case "(($ac_try" in
40733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40734   *) ac_try_echo=$ac_try;;
40735 esac
40736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40737   (eval "$ac_link") 2>&5
40738   ac_status=$?
40739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40741   { (case "(($ac_try" in
40742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40743   *) ac_try_echo=$ac_try;;
40744 esac
40745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40746   (eval "$ac_try") 2>&5
40747   ac_status=$?
40748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40749   (exit $ac_status); }; }; then
40750   ac_cv_c_stack_direction=1
40751 else
40752   echo "$as_me: program exited with status $ac_status" >&5
40753 echo "$as_me: failed program was:" >&5
40754 sed 's/^/| /' conftest.$ac_ext >&5
40755
40756 ( exit $ac_status )
40757 ac_cv_c_stack_direction=-1
40758 fi
40759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40760 fi
40761
40762
40763 fi
40764 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40765 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40766
40767 cat >>confdefs.h <<_ACEOF
40768 #define STACK_DIRECTION $ac_cv_c_stack_direction
40769 _ACEOF
40770
40771
40772 fi
40773
40774 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40775 # -lseq on Dynix/PTX, -lgen on Unixware.
40776 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40777 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40778 if test "${ac_cv_search_getmntent+set}" = set; then
40779   echo $ECHO_N "(cached) $ECHO_C" >&6
40780 else
40781   ac_func_search_save_LIBS=$LIBS
40782 cat >conftest.$ac_ext <<_ACEOF
40783 /* confdefs.h.  */
40784 _ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h.  */
40788
40789 /* Override any GCC internal prototype to avoid an error.
40790    Use char because int might match the return type of a GCC
40791    builtin and then its argument prototype would still apply.  */
40792 #ifdef __cplusplus
40793 extern "C"
40794 #endif
40795 char getmntent ();
40796 int
40797 main ()
40798 {
40799 return getmntent ();
40800   ;
40801   return 0;
40802 }
40803 _ACEOF
40804 for ac_lib in '' sun seq gen; do
40805   if test -z "$ac_lib"; then
40806     ac_res="none required"
40807   else
40808     ac_res=-l$ac_lib
40809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40810   fi
40811   rm -f conftest.$ac_objext conftest$ac_exeext
40812 if { (ac_try="$ac_link"
40813 case "(($ac_try" in
40814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40815   *) ac_try_echo=$ac_try;;
40816 esac
40817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40818   (eval "$ac_link") 2>conftest.er1
40819   ac_status=$?
40820   grep -v '^ *+' conftest.er1 >conftest.err
40821   rm -f conftest.er1
40822   cat conftest.err >&5
40823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824   (exit $ac_status); } && {
40825          test -z "$ac_c_werror_flag" ||
40826          test ! -s conftest.err
40827        } && test -s conftest$ac_exeext &&
40828        $as_test_x conftest$ac_exeext; then
40829   ac_cv_search_getmntent=$ac_res
40830 else
40831   echo "$as_me: failed program was:" >&5
40832 sed 's/^/| /' conftest.$ac_ext >&5
40833
40834
40835 fi
40836
40837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40838       conftest$ac_exeext
40839   if test "${ac_cv_search_getmntent+set}" = set; then
40840   break
40841 fi
40842 done
40843 if test "${ac_cv_search_getmntent+set}" = set; then
40844   :
40845 else
40846   ac_cv_search_getmntent=no
40847 fi
40848 rm conftest.$ac_ext
40849 LIBS=$ac_func_search_save_LIBS
40850 fi
40851 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40852 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40853 ac_res=$ac_cv_search_getmntent
40854 if test "$ac_res" != no; then
40855   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40856   ac_cv_func_getmntent=yes
40857
40858 cat >>confdefs.h <<\_ACEOF
40859 #define HAVE_GETMNTENT 1
40860 _ACEOF
40861
40862 else
40863   ac_cv_func_getmntent=no
40864 fi
40865
40866
40867
40868 for ac_func in getmntinfo
40869 do
40870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40874   echo $ECHO_N "(cached) $ECHO_C" >&6
40875 else
40876   cat >conftest.$ac_ext <<_ACEOF
40877 /* confdefs.h.  */
40878 _ACEOF
40879 cat confdefs.h >>conftest.$ac_ext
40880 cat >>conftest.$ac_ext <<_ACEOF
40881 /* end confdefs.h.  */
40882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40884 #define $ac_func innocuous_$ac_func
40885
40886 /* System header to define __stub macros and hopefully few prototypes,
40887     which can conflict with char $ac_func (); below.
40888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40889     <limits.h> exists even on freestanding compilers.  */
40890
40891 #ifdef __STDC__
40892 # include <limits.h>
40893 #else
40894 # include <assert.h>
40895 #endif
40896
40897 #undef $ac_func
40898
40899 /* Override any GCC internal prototype to avoid an error.
40900    Use char because int might match the return type of a GCC
40901    builtin and then its argument prototype would still apply.  */
40902 #ifdef __cplusplus
40903 extern "C"
40904 #endif
40905 char $ac_func ();
40906 /* The GNU C library defines this for functions which it implements
40907     to always fail with ENOSYS.  Some functions are actually named
40908     something starting with __ and the normal name is an alias.  */
40909 #if defined __stub_$ac_func || defined __stub___$ac_func
40910 choke me
40911 #endif
40912
40913 int
40914 main ()
40915 {
40916 return $ac_func ();
40917   ;
40918   return 0;
40919 }
40920 _ACEOF
40921 rm -f conftest.$ac_objext conftest$ac_exeext
40922 if { (ac_try="$ac_link"
40923 case "(($ac_try" in
40924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40925   *) ac_try_echo=$ac_try;;
40926 esac
40927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40928   (eval "$ac_link") 2>conftest.er1
40929   ac_status=$?
40930   grep -v '^ *+' conftest.er1 >conftest.err
40931   rm -f conftest.er1
40932   cat conftest.err >&5
40933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40934   (exit $ac_status); } && {
40935          test -z "$ac_c_werror_flag" ||
40936          test ! -s conftest.err
40937        } && test -s conftest$ac_exeext &&
40938        $as_test_x conftest$ac_exeext; then
40939   eval "$as_ac_var=yes"
40940 else
40941   echo "$as_me: failed program was:" >&5
40942 sed 's/^/| /' conftest.$ac_ext >&5
40943
40944         eval "$as_ac_var=no"
40945 fi
40946
40947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40948       conftest$ac_exeext conftest.$ac_ext
40949 fi
40950 ac_res=`eval echo '${'$as_ac_var'}'`
40951                { echo "$as_me:$LINENO: result: $ac_res" >&5
40952 echo "${ECHO_T}$ac_res" >&6; }
40953 if test `eval echo '${'$as_ac_var'}'` = yes; then
40954   cat >>confdefs.h <<_ACEOF
40955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40956 _ACEOF
40957  cat >>confdefs.h <<\_ACEOF
40958 #define HAVE_GETMNTINFO 1
40959 _ACEOF
40960
40961 fi
40962 done
40963
40964 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40965 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40966 if test "${ac_cv_func_closedir_void+set}" = set; then
40967   echo $ECHO_N "(cached) $ECHO_C" >&6
40968 else
40969   if test "$cross_compiling" = yes; then
40970   ac_cv_func_closedir_void=yes
40971 else
40972   cat >conftest.$ac_ext <<_ACEOF
40973 /* confdefs.h.  */
40974 _ACEOF
40975 cat confdefs.h >>conftest.$ac_ext
40976 cat >>conftest.$ac_ext <<_ACEOF
40977 /* end confdefs.h.  */
40978 $ac_includes_default
40979 #include <$ac_header_dirent>
40980 #ifndef __cplusplus
40981 int closedir ();
40982 #endif
40983
40984 int
40985 main ()
40986 {
40987 return closedir (opendir (".")) != 0;
40988   ;
40989   return 0;
40990 }
40991 _ACEOF
40992 rm -f conftest$ac_exeext
40993 if { (ac_try="$ac_link"
40994 case "(($ac_try" in
40995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40996   *) ac_try_echo=$ac_try;;
40997 esac
40998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40999   (eval "$ac_link") 2>&5
41000   ac_status=$?
41001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41003   { (case "(($ac_try" in
41004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41005   *) ac_try_echo=$ac_try;;
41006 esac
41007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41008   (eval "$ac_try") 2>&5
41009   ac_status=$?
41010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41011   (exit $ac_status); }; }; then
41012   ac_cv_func_closedir_void=no
41013 else
41014   echo "$as_me: program exited with status $ac_status" >&5
41015 echo "$as_me: failed program was:" >&5
41016 sed 's/^/| /' conftest.$ac_ext >&5
41017
41018 ( exit $ac_status )
41019 ac_cv_func_closedir_void=yes
41020 fi
41021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41022 fi
41023
41024
41025 fi
41026 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
41027 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
41028 if test $ac_cv_func_closedir_void = yes; then
41029
41030 cat >>confdefs.h <<\_ACEOF
41031 #define CLOSEDIR_VOID 1
41032 _ACEOF
41033
41034 fi
41035
41036 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
41037 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
41038 if test "${ac_cv_func_setpgrp_void+set}" = set; then
41039   echo $ECHO_N "(cached) $ECHO_C" >&6
41040 else
41041   if test "$cross_compiling" = yes; then
41042   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
41043 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
41044    { (exit 1); exit 1; }; }
41045 else
41046   cat >conftest.$ac_ext <<_ACEOF
41047 /* confdefs.h.  */
41048 _ACEOF
41049 cat confdefs.h >>conftest.$ac_ext
41050 cat >>conftest.$ac_ext <<_ACEOF
41051 /* end confdefs.h.  */
41052 $ac_includes_default
41053 int
41054 main ()
41055 {
41056 /* If this system has a BSD-style setpgrp which takes arguments,
41057   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
41058   exit successfully. */
41059   return setpgrp (1,1) != -1;
41060   ;
41061   return 0;
41062 }
41063 _ACEOF
41064 rm -f conftest$ac_exeext
41065 if { (ac_try="$ac_link"
41066 case "(($ac_try" in
41067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41068   *) ac_try_echo=$ac_try;;
41069 esac
41070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41071   (eval "$ac_link") 2>&5
41072   ac_status=$?
41073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41075   { (case "(($ac_try" in
41076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41077   *) ac_try_echo=$ac_try;;
41078 esac
41079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41080   (eval "$ac_try") 2>&5
41081   ac_status=$?
41082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41083   (exit $ac_status); }; }; then
41084   ac_cv_func_setpgrp_void=no
41085 else
41086   echo "$as_me: program exited with status $ac_status" >&5
41087 echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41089
41090 ( exit $ac_status )
41091 ac_cv_func_setpgrp_void=yes
41092 fi
41093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41094 fi
41095
41096
41097 fi
41098 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
41099 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
41100 if test $ac_cv_func_setpgrp_void = yes; then
41101
41102 cat >>confdefs.h <<\_ACEOF
41103 #define SETPGRP_VOID 1
41104 _ACEOF
41105
41106 fi
41107             # AC_FUNC_FNMATCH    dnl use local version
41108
41109 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
41110 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
41111 if test "${ac_cv_lib_intl_gettext+set}" = set; then
41112   echo $ECHO_N "(cached) $ECHO_C" >&6
41113 else
41114   ac_check_lib_save_LIBS=$LIBS
41115 LIBS="-lintl  $LIBS"
41116 cat >conftest.$ac_ext <<_ACEOF
41117 /* confdefs.h.  */
41118 _ACEOF
41119 cat confdefs.h >>conftest.$ac_ext
41120 cat >>conftest.$ac_ext <<_ACEOF
41121 /* end confdefs.h.  */
41122
41123 /* Override any GCC internal prototype to avoid an error.
41124    Use char because int might match the return type of a GCC
41125    builtin and then its argument prototype would still apply.  */
41126 #ifdef __cplusplus
41127 extern "C"
41128 #endif
41129 char gettext ();
41130 int
41131 main ()
41132 {
41133 return gettext ();
41134   ;
41135   return 0;
41136 }
41137 _ACEOF
41138 rm -f conftest.$ac_objext conftest$ac_exeext
41139 if { (ac_try="$ac_link"
41140 case "(($ac_try" in
41141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41142   *) ac_try_echo=$ac_try;;
41143 esac
41144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41145   (eval "$ac_link") 2>conftest.er1
41146   ac_status=$?
41147   grep -v '^ *+' conftest.er1 >conftest.err
41148   rm -f conftest.er1
41149   cat conftest.err >&5
41150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151   (exit $ac_status); } && {
41152          test -z "$ac_c_werror_flag" ||
41153          test ! -s conftest.err
41154        } && test -s conftest$ac_exeext &&
41155        $as_test_x conftest$ac_exeext; then
41156   ac_cv_lib_intl_gettext=yes
41157 else
41158   echo "$as_me: failed program was:" >&5
41159 sed 's/^/| /' conftest.$ac_ext >&5
41160
41161         ac_cv_lib_intl_gettext=no
41162 fi
41163
41164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41165       conftest$ac_exeext conftest.$ac_ext
41166 LIBS=$ac_check_lib_save_LIBS
41167 fi
41168 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
41169 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
41170 if test $ac_cv_lib_intl_gettext = yes; then
41171   LIBS="$LIBS -lintl"
41172 fi
41173
41174
41175
41176 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
41177 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
41178 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
41179   echo $ECHO_N "(cached) $ECHO_C" >&6
41180 else
41181   ac_check_lib_save_LIBS=$LIBS
41182 LIBS="-lsun  $LIBS"
41183 cat >conftest.$ac_ext <<_ACEOF
41184 /* confdefs.h.  */
41185 _ACEOF
41186 cat confdefs.h >>conftest.$ac_ext
41187 cat >>conftest.$ac_ext <<_ACEOF
41188 /* end confdefs.h.  */
41189
41190 /* Override any GCC internal prototype to avoid an error.
41191    Use char because int might match the return type of a GCC
41192    builtin and then its argument prototype would still apply.  */
41193 #ifdef __cplusplus
41194 extern "C"
41195 #endif
41196 char getpwnam ();
41197 int
41198 main ()
41199 {
41200 return getpwnam ();
41201   ;
41202   return 0;
41203 }
41204 _ACEOF
41205 rm -f conftest.$ac_objext conftest$ac_exeext
41206 if { (ac_try="$ac_link"
41207 case "(($ac_try" in
41208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41209   *) ac_try_echo=$ac_try;;
41210 esac
41211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41212   (eval "$ac_link") 2>conftest.er1
41213   ac_status=$?
41214   grep -v '^ *+' conftest.er1 >conftest.err
41215   rm -f conftest.er1
41216   cat conftest.err >&5
41217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41218   (exit $ac_status); } && {
41219          test -z "$ac_c_werror_flag" ||
41220          test ! -s conftest.err
41221        } && test -s conftest$ac_exeext &&
41222        $as_test_x conftest$ac_exeext; then
41223   ac_cv_lib_sun_getpwnam=yes
41224 else
41225   echo "$as_me: failed program was:" >&5
41226 sed 's/^/| /' conftest.$ac_ext >&5
41227
41228         ac_cv_lib_sun_getpwnam=no
41229 fi
41230
41231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41232       conftest$ac_exeext conftest.$ac_ext
41233 LIBS=$ac_check_lib_save_LIBS
41234 fi
41235 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
41236 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
41237 if test $ac_cv_lib_sun_getpwnam = yes; then
41238   cat >>confdefs.h <<_ACEOF
41239 #define HAVE_LIBSUN 1
41240 _ACEOF
41241
41242   LIBS="-lsun $LIBS"
41243
41244 fi
41245
41246
41247
41248 for ac_header in zlib.h
41249 do
41250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41252   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41255   echo $ECHO_N "(cached) $ECHO_C" >&6
41256 fi
41257 ac_res=`eval echo '${'$as_ac_Header'}'`
41258                { echo "$as_me:$LINENO: result: $ac_res" >&5
41259 echo "${ECHO_T}$ac_res" >&6; }
41260 else
41261   # Is the header compilable?
41262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41264 cat >conftest.$ac_ext <<_ACEOF
41265 /* confdefs.h.  */
41266 _ACEOF
41267 cat confdefs.h >>conftest.$ac_ext
41268 cat >>conftest.$ac_ext <<_ACEOF
41269 /* end confdefs.h.  */
41270 $ac_includes_default
41271 #include <$ac_header>
41272 _ACEOF
41273 rm -f conftest.$ac_objext
41274 if { (ac_try="$ac_compile"
41275 case "(($ac_try" in
41276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41277   *) ac_try_echo=$ac_try;;
41278 esac
41279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41280   (eval "$ac_compile") 2>conftest.er1
41281   ac_status=$?
41282   grep -v '^ *+' conftest.er1 >conftest.err
41283   rm -f conftest.er1
41284   cat conftest.err >&5
41285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286   (exit $ac_status); } && {
41287          test -z "$ac_c_werror_flag" ||
41288          test ! -s conftest.err
41289        } && test -s conftest.$ac_objext; then
41290   ac_header_compiler=yes
41291 else
41292   echo "$as_me: failed program was:" >&5
41293 sed 's/^/| /' conftest.$ac_ext >&5
41294
41295         ac_header_compiler=no
41296 fi
41297
41298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41300 echo "${ECHO_T}$ac_header_compiler" >&6; }
41301
41302 # Is the header present?
41303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41305 cat >conftest.$ac_ext <<_ACEOF
41306 /* confdefs.h.  */
41307 _ACEOF
41308 cat confdefs.h >>conftest.$ac_ext
41309 cat >>conftest.$ac_ext <<_ACEOF
41310 /* end confdefs.h.  */
41311 #include <$ac_header>
41312 _ACEOF
41313 if { (ac_try="$ac_cpp conftest.$ac_ext"
41314 case "(($ac_try" in
41315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41316   *) ac_try_echo=$ac_try;;
41317 esac
41318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41320   ac_status=$?
41321   grep -v '^ *+' conftest.er1 >conftest.err
41322   rm -f conftest.er1
41323   cat conftest.err >&5
41324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41325   (exit $ac_status); } >/dev/null && {
41326          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41327          test ! -s conftest.err
41328        }; then
41329   ac_header_preproc=yes
41330 else
41331   echo "$as_me: failed program was:" >&5
41332 sed 's/^/| /' conftest.$ac_ext >&5
41333
41334   ac_header_preproc=no
41335 fi
41336
41337 rm -f conftest.err conftest.$ac_ext
41338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41339 echo "${ECHO_T}$ac_header_preproc" >&6; }
41340
41341 # So?  What about this header?
41342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41343   yes:no: )
41344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41348     ac_header_preproc=yes
41349     ;;
41350   no:yes:* )
41351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41363
41364     ;;
41365 esac
41366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41369   echo $ECHO_N "(cached) $ECHO_C" >&6
41370 else
41371   eval "$as_ac_Header=\$ac_header_preproc"
41372 fi
41373 ac_res=`eval echo '${'$as_ac_Header'}'`
41374                { echo "$as_me:$LINENO: result: $ac_res" >&5
41375 echo "${ECHO_T}$ac_res" >&6; }
41376
41377 fi
41378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41379   cat >>confdefs.h <<_ACEOF
41380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41381 _ACEOF
41382
41383 fi
41384
41385 done
41386
41387 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41388 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41389 if test "${ac_cv_lib_z_deflate+set}" = set; then
41390   echo $ECHO_N "(cached) $ECHO_C" >&6
41391 else
41392   ac_check_lib_save_LIBS=$LIBS
41393 LIBS="-lz  $LIBS"
41394 cat >conftest.$ac_ext <<_ACEOF
41395 /* confdefs.h.  */
41396 _ACEOF
41397 cat confdefs.h >>conftest.$ac_ext
41398 cat >>conftest.$ac_ext <<_ACEOF
41399 /* end confdefs.h.  */
41400
41401 /* Override any GCC internal prototype to avoid an error.
41402    Use char because int might match the return type of a GCC
41403    builtin and then its argument prototype would still apply.  */
41404 #ifdef __cplusplus
41405 extern "C"
41406 #endif
41407 char deflate ();
41408 int
41409 main ()
41410 {
41411 return deflate ();
41412   ;
41413   return 0;
41414 }
41415 _ACEOF
41416 rm -f conftest.$ac_objext conftest$ac_exeext
41417 if { (ac_try="$ac_link"
41418 case "(($ac_try" in
41419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41420   *) ac_try_echo=$ac_try;;
41421 esac
41422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41423   (eval "$ac_link") 2>conftest.er1
41424   ac_status=$?
41425   grep -v '^ *+' conftest.er1 >conftest.err
41426   rm -f conftest.er1
41427   cat conftest.err >&5
41428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429   (exit $ac_status); } && {
41430          test -z "$ac_c_werror_flag" ||
41431          test ! -s conftest.err
41432        } && test -s conftest$ac_exeext &&
41433        $as_test_x conftest$ac_exeext; then
41434   ac_cv_lib_z_deflate=yes
41435 else
41436   echo "$as_me: failed program was:" >&5
41437 sed 's/^/| /' conftest.$ac_ext >&5
41438
41439         ac_cv_lib_z_deflate=no
41440 fi
41441
41442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41443       conftest$ac_exeext conftest.$ac_ext
41444 LIBS=$ac_check_lib_save_LIBS
41445 fi
41446 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41447 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41448 if test $ac_cv_lib_z_deflate = yes; then
41449   ZLIBS="-lz"
41450 fi
41451
41452 have_zlib=no
41453 if test x$ZLIBS = x-lz; then
41454    cat >>confdefs.h <<\_ACEOF
41455 #define HAVE_LIBZ 1
41456 _ACEOF
41457
41458    have_zlib=yes
41459 fi
41460
41461
41462 AFS_CFLAGS=""
41463 AFS_LIBS=""
41464 support_afs=auto
41465 # Check whether --enable-afs was given.
41466 if test "${enable_afs+set}" = set; then
41467   enableval=$enable_afs;
41468        if test x$enableval = xyes; then
41469           support_afs=yes
41470        elif test x$enableval = xno; then
41471           support_afs=no
41472        fi
41473
41474
41475 fi
41476
41477
41478 have_afs=no
41479 if test x$support_afs = xyes -o x$support_afs = xauto; then
41480
41481 # Check whether --with-afsdir was given.
41482 if test "${with_afsdir+set}" = set; then
41483   withval=$with_afsdir; with_afsdir=$withval
41484
41485 fi
41486
41487
41488             if test x$with_afsdir = x; then
41489       for root in /usr /usr/local; do
41490          if test -d ${root}/include/afs/ ; then
41491             with_afsdir=${root}
41492             break
41493          fi
41494       done
41495    fi
41496
41497    AFS_CFLAGS="-I${with_afsdir}/include"
41498
41499    saved_CFLAGS="${CFLAGS}"
41500    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
41501
41502
41503 for ac_header in afs/stds.h
41504 do
41505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41507   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41510   echo $ECHO_N "(cached) $ECHO_C" >&6
41511 fi
41512 ac_res=`eval echo '${'$as_ac_Header'}'`
41513                { echo "$as_me:$LINENO: result: $ac_res" >&5
41514 echo "${ECHO_T}$ac_res" >&6; }
41515 else
41516   # Is the header compilable?
41517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41519 cat >conftest.$ac_ext <<_ACEOF
41520 /* confdefs.h.  */
41521 _ACEOF
41522 cat confdefs.h >>conftest.$ac_ext
41523 cat >>conftest.$ac_ext <<_ACEOF
41524 /* end confdefs.h.  */
41525 $ac_includes_default
41526 #include <$ac_header>
41527 _ACEOF
41528 rm -f conftest.$ac_objext
41529 if { (ac_try="$ac_compile"
41530 case "(($ac_try" in
41531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41532   *) ac_try_echo=$ac_try;;
41533 esac
41534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41535   (eval "$ac_compile") 2>conftest.er1
41536   ac_status=$?
41537   grep -v '^ *+' conftest.er1 >conftest.err
41538   rm -f conftest.er1
41539   cat conftest.err >&5
41540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541   (exit $ac_status); } && {
41542          test -z "$ac_c_werror_flag" ||
41543          test ! -s conftest.err
41544        } && test -s conftest.$ac_objext; then
41545   ac_header_compiler=yes
41546 else
41547   echo "$as_me: failed program was:" >&5
41548 sed 's/^/| /' conftest.$ac_ext >&5
41549
41550         ac_header_compiler=no
41551 fi
41552
41553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41555 echo "${ECHO_T}$ac_header_compiler" >&6; }
41556
41557 # Is the header present?
41558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41560 cat >conftest.$ac_ext <<_ACEOF
41561 /* confdefs.h.  */
41562 _ACEOF
41563 cat confdefs.h >>conftest.$ac_ext
41564 cat >>conftest.$ac_ext <<_ACEOF
41565 /* end confdefs.h.  */
41566 #include <$ac_header>
41567 _ACEOF
41568 if { (ac_try="$ac_cpp conftest.$ac_ext"
41569 case "(($ac_try" in
41570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41571   *) ac_try_echo=$ac_try;;
41572 esac
41573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41575   ac_status=$?
41576   grep -v '^ *+' conftest.er1 >conftest.err
41577   rm -f conftest.er1
41578   cat conftest.err >&5
41579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580   (exit $ac_status); } >/dev/null && {
41581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41582          test ! -s conftest.err
41583        }; then
41584   ac_header_preproc=yes
41585 else
41586   echo "$as_me: failed program was:" >&5
41587 sed 's/^/| /' conftest.$ac_ext >&5
41588
41589   ac_header_preproc=no
41590 fi
41591
41592 rm -f conftest.err conftest.$ac_ext
41593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41594 echo "${ECHO_T}$ac_header_preproc" >&6; }
41595
41596 # So?  What about this header?
41597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41598   yes:no: )
41599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41603     ac_header_preproc=yes
41604     ;;
41605   no:yes:* )
41606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41618
41619     ;;
41620 esac
41621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41624   echo $ECHO_N "(cached) $ECHO_C" >&6
41625 else
41626   eval "$as_ac_Header=\$ac_header_preproc"
41627 fi
41628 ac_res=`eval echo '${'$as_ac_Header'}'`
41629                { echo "$as_me:$LINENO: result: $ac_res" >&5
41630 echo "${ECHO_T}$ac_res" >&6; }
41631
41632 fi
41633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41634   cat >>confdefs.h <<_ACEOF
41635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41636 _ACEOF
41637
41638 fi
41639
41640 done
41641
41642
41643    CFLAGS="${saved_CFLAGS}"
41644
41645             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
41646    do
41647       for arch_type in .a .so
41648       do
41649          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
41650          pkg=$?
41651          if test $pkg = 0; then
41652             have_afs=yes
41653             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
41654             break
41655          fi
41656       done
41657    done
41658
41659    if test x$support_afs = xyes -a $have_afs != yes; then
41660       { { echo "$as_me:$LINENO: error: afs support explicitly enabled but no supported afs implementation found,
41661   please either load the afs libraries or rerun configure without --enable-afs" >&5
41662 echo "$as_me: error: afs support explicitly enabled but no supported afs implementation found,
41663   please either load the afs libraries or rerun configure without --enable-afs" >&2;}
41664    { (exit 1); exit 1; }; }
41665    else
41666       if test $have_afs = yes; then
41667
41668 cat >>confdefs.h <<\_ACEOF
41669 #define HAVE_AFS 1
41670 _ACEOF
41671
41672
41673 cat >>confdefs.h <<\_ACEOF
41674 #define HAVE_AFS_ACL 1
41675 _ACEOF
41676
41677       fi
41678    fi
41679 fi
41680
41681
41682
41683
41684 support_acl=auto
41685 # Check whether --enable-acl was given.
41686 if test "${enable_acl+set}" = set; then
41687   enableval=$enable_acl;
41688        if test x$enableval = xyes; then
41689           support_acl=yes
41690        elif test x$enableval = xno; then
41691           support_acl=no
41692        fi
41693
41694
41695 fi
41696
41697
41698 have_acl=no
41699 have_extended_acl=no
41700 if test x$support_acl = xyes -o x$support_acl = xauto; then
41701    if test "${ac_cv_header_sys_acl_h+set}" = set; then
41702   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41703 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41704 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41705   echo $ECHO_N "(cached) $ECHO_C" >&6
41706 fi
41707 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41708 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41709 else
41710   # Is the header compilable?
41711 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41712 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41713 cat >conftest.$ac_ext <<_ACEOF
41714 /* confdefs.h.  */
41715 _ACEOF
41716 cat confdefs.h >>conftest.$ac_ext
41717 cat >>conftest.$ac_ext <<_ACEOF
41718 /* end confdefs.h.  */
41719 $ac_includes_default
41720 #include <sys/acl.h>
41721 _ACEOF
41722 rm -f conftest.$ac_objext
41723 if { (ac_try="$ac_compile"
41724 case "(($ac_try" in
41725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41726   *) ac_try_echo=$ac_try;;
41727 esac
41728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41729   (eval "$ac_compile") 2>conftest.er1
41730   ac_status=$?
41731   grep -v '^ *+' conftest.er1 >conftest.err
41732   rm -f conftest.er1
41733   cat conftest.err >&5
41734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735   (exit $ac_status); } && {
41736          test -z "$ac_c_werror_flag" ||
41737          test ! -s conftest.err
41738        } && test -s conftest.$ac_objext; then
41739   ac_header_compiler=yes
41740 else
41741   echo "$as_me: failed program was:" >&5
41742 sed 's/^/| /' conftest.$ac_ext >&5
41743
41744         ac_header_compiler=no
41745 fi
41746
41747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41749 echo "${ECHO_T}$ac_header_compiler" >&6; }
41750
41751 # Is the header present?
41752 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41753 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41754 cat >conftest.$ac_ext <<_ACEOF
41755 /* confdefs.h.  */
41756 _ACEOF
41757 cat confdefs.h >>conftest.$ac_ext
41758 cat >>conftest.$ac_ext <<_ACEOF
41759 /* end confdefs.h.  */
41760 #include <sys/acl.h>
41761 _ACEOF
41762 if { (ac_try="$ac_cpp conftest.$ac_ext"
41763 case "(($ac_try" in
41764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41765   *) ac_try_echo=$ac_try;;
41766 esac
41767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41769   ac_status=$?
41770   grep -v '^ *+' conftest.er1 >conftest.err
41771   rm -f conftest.er1
41772   cat conftest.err >&5
41773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41774   (exit $ac_status); } >/dev/null && {
41775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41776          test ! -s conftest.err
41777        }; then
41778   ac_header_preproc=yes
41779 else
41780   echo "$as_me: failed program was:" >&5
41781 sed 's/^/| /' conftest.$ac_ext >&5
41782
41783   ac_header_preproc=no
41784 fi
41785
41786 rm -f conftest.err conftest.$ac_ext
41787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41788 echo "${ECHO_T}$ac_header_preproc" >&6; }
41789
41790 # So?  What about this header?
41791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41792   yes:no: )
41793     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41794 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41795     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41796 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41797     ac_header_preproc=yes
41798     ;;
41799   no:yes:* )
41800     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41801 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41802     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
41803 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41804     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41805 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41806     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41807 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41808     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41809 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41810     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41811 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41812
41813     ;;
41814 esac
41815 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41816 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41817 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41818   echo $ECHO_N "(cached) $ECHO_C" >&6
41819 else
41820   ac_cv_header_sys_acl_h=$ac_header_preproc
41821 fi
41822 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41823 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41824
41825 fi
41826 if test $ac_cv_header_sys_acl_h = yes; then
41827
41828 cat >>confdefs.h <<\_ACEOF
41829 #define HAVE_SYS_ACL_H 1
41830 _ACEOF
41831
41832 fi
41833
41834
41835    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41836 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41837 if test "${ac_cv_func_acl_get_file+set}" = set; then
41838   echo $ECHO_N "(cached) $ECHO_C" >&6
41839 else
41840   cat >conftest.$ac_ext <<_ACEOF
41841 /* confdefs.h.  */
41842 _ACEOF
41843 cat confdefs.h >>conftest.$ac_ext
41844 cat >>conftest.$ac_ext <<_ACEOF
41845 /* end confdefs.h.  */
41846 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41848 #define acl_get_file innocuous_acl_get_file
41849
41850 /* System header to define __stub macros and hopefully few prototypes,
41851     which can conflict with char acl_get_file (); below.
41852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41853     <limits.h> exists even on freestanding compilers.  */
41854
41855 #ifdef __STDC__
41856 # include <limits.h>
41857 #else
41858 # include <assert.h>
41859 #endif
41860
41861 #undef acl_get_file
41862
41863 /* Override any GCC internal prototype to avoid an error.
41864    Use char because int might match the return type of a GCC
41865    builtin and then its argument prototype would still apply.  */
41866 #ifdef __cplusplus
41867 extern "C"
41868 #endif
41869 char acl_get_file ();
41870 /* The GNU C library defines this for functions which it implements
41871     to always fail with ENOSYS.  Some functions are actually named
41872     something starting with __ and the normal name is an alias.  */
41873 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41874 choke me
41875 #endif
41876
41877 int
41878 main ()
41879 {
41880 return acl_get_file ();
41881   ;
41882   return 0;
41883 }
41884 _ACEOF
41885 rm -f conftest.$ac_objext conftest$ac_exeext
41886 if { (ac_try="$ac_link"
41887 case "(($ac_try" in
41888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41889   *) ac_try_echo=$ac_try;;
41890 esac
41891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41892   (eval "$ac_link") 2>conftest.er1
41893   ac_status=$?
41894   grep -v '^ *+' conftest.er1 >conftest.err
41895   rm -f conftest.er1
41896   cat conftest.err >&5
41897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898   (exit $ac_status); } && {
41899          test -z "$ac_c_werror_flag" ||
41900          test ! -s conftest.err
41901        } && test -s conftest$ac_exeext &&
41902        $as_test_x conftest$ac_exeext; then
41903   ac_cv_func_acl_get_file=yes
41904 else
41905   echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41907
41908         ac_cv_func_acl_get_file=no
41909 fi
41910
41911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41912       conftest$ac_exeext conftest.$ac_ext
41913 fi
41914 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41915 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41916 if test $ac_cv_func_acl_get_file = yes; then
41917
41918           have_acl=yes
41919
41920 else
41921
41922           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41923 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41924 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41925   echo $ECHO_N "(cached) $ECHO_C" >&6
41926 else
41927   ac_check_lib_save_LIBS=$LIBS
41928 LIBS="-lacl  $LIBS"
41929 cat >conftest.$ac_ext <<_ACEOF
41930 /* confdefs.h.  */
41931 _ACEOF
41932 cat confdefs.h >>conftest.$ac_ext
41933 cat >>conftest.$ac_ext <<_ACEOF
41934 /* end confdefs.h.  */
41935
41936 /* Override any GCC internal prototype to avoid an error.
41937    Use char because int might match the return type of a GCC
41938    builtin and then its argument prototype would still apply.  */
41939 #ifdef __cplusplus
41940 extern "C"
41941 #endif
41942 char acl_get_file ();
41943 int
41944 main ()
41945 {
41946 return acl_get_file ();
41947   ;
41948   return 0;
41949 }
41950 _ACEOF
41951 rm -f conftest.$ac_objext conftest$ac_exeext
41952 if { (ac_try="$ac_link"
41953 case "(($ac_try" in
41954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41955   *) ac_try_echo=$ac_try;;
41956 esac
41957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41958   (eval "$ac_link") 2>conftest.er1
41959   ac_status=$?
41960   grep -v '^ *+' conftest.er1 >conftest.err
41961   rm -f conftest.er1
41962   cat conftest.err >&5
41963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964   (exit $ac_status); } && {
41965          test -z "$ac_c_werror_flag" ||
41966          test ! -s conftest.err
41967        } && test -s conftest$ac_exeext &&
41968        $as_test_x conftest$ac_exeext; then
41969   ac_cv_lib_acl_acl_get_file=yes
41970 else
41971   echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41973
41974         ac_cv_lib_acl_acl_get_file=no
41975 fi
41976
41977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41978       conftest$ac_exeext conftest.$ac_ext
41979 LIBS=$ac_check_lib_save_LIBS
41980 fi
41981 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41982 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41983 if test $ac_cv_lib_acl_acl_get_file = yes; then
41984
41985                  have_acl=yes;
41986                  if test $have_afs = yes; then
41987                                                                     if test -d /usr/lib64/; then
41988                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
41989                     else
41990                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
41991                     fi
41992                  else
41993                     FDLIBS="-lacl $FDLIBS"
41994                  fi
41995
41996 else
41997
41998                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41999 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
42000 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
42001   echo $ECHO_N "(cached) $ECHO_C" >&6
42002 else
42003   ac_check_lib_save_LIBS=$LIBS
42004 LIBS="-lpacl  $LIBS"
42005 cat >conftest.$ac_ext <<_ACEOF
42006 /* confdefs.h.  */
42007 _ACEOF
42008 cat confdefs.h >>conftest.$ac_ext
42009 cat >>conftest.$ac_ext <<_ACEOF
42010 /* end confdefs.h.  */
42011
42012 /* Override any GCC internal prototype to avoid an error.
42013    Use char because int might match the return type of a GCC
42014    builtin and then its argument prototype would still apply.  */
42015 #ifdef __cplusplus
42016 extern "C"
42017 #endif
42018 char acl_get_file ();
42019 int
42020 main ()
42021 {
42022 return acl_get_file ();
42023   ;
42024   return 0;
42025 }
42026 _ACEOF
42027 rm -f conftest.$ac_objext conftest$ac_exeext
42028 if { (ac_try="$ac_link"
42029 case "(($ac_try" in
42030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42031   *) ac_try_echo=$ac_try;;
42032 esac
42033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42034   (eval "$ac_link") 2>conftest.er1
42035   ac_status=$?
42036   grep -v '^ *+' conftest.er1 >conftest.err
42037   rm -f conftest.er1
42038   cat conftest.err >&5
42039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040   (exit $ac_status); } && {
42041          test -z "$ac_c_werror_flag" ||
42042          test ! -s conftest.err
42043        } && test -s conftest$ac_exeext &&
42044        $as_test_x conftest$ac_exeext; then
42045   ac_cv_lib_pacl_acl_get_file=yes
42046 else
42047   echo "$as_me: failed program was:" >&5
42048 sed 's/^/| /' conftest.$ac_ext >&5
42049
42050         ac_cv_lib_pacl_acl_get_file=no
42051 fi
42052
42053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42054       conftest$ac_exeext conftest.$ac_ext
42055 LIBS=$ac_check_lib_save_LIBS
42056 fi
42057 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
42058 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
42059 if test $ac_cv_lib_pacl_acl_get_file = yes; then
42060
42061                         have_acl=yes;
42062                         FDLIBS="-lpacl $FDLIBS"
42063
42064 else
42065
42066                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
42067 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
42068 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
42069   echo $ECHO_N "(cached) $ECHO_C" >&6
42070 else
42071   ac_check_lib_save_LIBS=$LIBS
42072 LIBS="-lsec  $LIBS"
42073 cat >conftest.$ac_ext <<_ACEOF
42074 /* confdefs.h.  */
42075 _ACEOF
42076 cat confdefs.h >>conftest.$ac_ext
42077 cat >>conftest.$ac_ext <<_ACEOF
42078 /* end confdefs.h.  */
42079
42080 /* Override any GCC internal prototype to avoid an error.
42081    Use char because int might match the return type of a GCC
42082    builtin and then its argument prototype would still apply.  */
42083 #ifdef __cplusplus
42084 extern "C"
42085 #endif
42086 char acltotext ();
42087 int
42088 main ()
42089 {
42090 return acltotext ();
42091   ;
42092   return 0;
42093 }
42094 _ACEOF
42095 rm -f conftest.$ac_objext conftest$ac_exeext
42096 if { (ac_try="$ac_link"
42097 case "(($ac_try" in
42098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42099   *) ac_try_echo=$ac_try;;
42100 esac
42101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42102   (eval "$ac_link") 2>conftest.er1
42103   ac_status=$?
42104   grep -v '^ *+' conftest.er1 >conftest.err
42105   rm -f conftest.er1
42106   cat conftest.err >&5
42107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42108   (exit $ac_status); } && {
42109          test -z "$ac_c_werror_flag" ||
42110          test ! -s conftest.err
42111        } && test -s conftest$ac_exeext &&
42112        $as_test_x conftest$ac_exeext; then
42113   ac_cv_lib_sec_acltotext=yes
42114 else
42115   echo "$as_me: failed program was:" >&5
42116 sed 's/^/| /' conftest.$ac_ext >&5
42117
42118         ac_cv_lib_sec_acltotext=no
42119 fi
42120
42121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42122       conftest$ac_exeext conftest.$ac_ext
42123 LIBS=$ac_check_lib_save_LIBS
42124 fi
42125 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
42126 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
42127 if test $ac_cv_lib_sec_acltotext = yes; then
42128
42129                                have_acl=yes;
42130                                FDLIBS="-lsec $FDLIBS"
42131
42132                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
42133 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
42134 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
42135   echo $ECHO_N "(cached) $ECHO_C" >&6
42136 else
42137   ac_check_lib_save_LIBS=$LIBS
42138 LIBS="-lsec  $LIBS"
42139 cat >conftest.$ac_ext <<_ACEOF
42140 /* confdefs.h.  */
42141 _ACEOF
42142 cat confdefs.h >>conftest.$ac_ext
42143 cat >>conftest.$ac_ext <<_ACEOF
42144 /* end confdefs.h.  */
42145
42146 /* Override any GCC internal prototype to avoid an error.
42147    Use char because int might match the return type of a GCC
42148    builtin and then its argument prototype would still apply.  */
42149 #ifdef __cplusplus
42150 extern "C"
42151 #endif
42152 char acl_totext ();
42153 int
42154 main ()
42155 {
42156 return acl_totext ();
42157   ;
42158   return 0;
42159 }
42160 _ACEOF
42161 rm -f conftest.$ac_objext conftest$ac_exeext
42162 if { (ac_try="$ac_link"
42163 case "(($ac_try" in
42164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42165   *) ac_try_echo=$ac_try;;
42166 esac
42167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42168   (eval "$ac_link") 2>conftest.er1
42169   ac_status=$?
42170   grep -v '^ *+' conftest.er1 >conftest.err
42171   rm -f conftest.er1
42172   cat conftest.err >&5
42173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174   (exit $ac_status); } && {
42175          test -z "$ac_c_werror_flag" ||
42176          test ! -s conftest.err
42177        } && test -s conftest$ac_exeext &&
42178        $as_test_x conftest$ac_exeext; then
42179   ac_cv_lib_sec_acl_totext=yes
42180 else
42181   echo "$as_me: failed program was:" >&5
42182 sed 's/^/| /' conftest.$ac_ext >&5
42183
42184         ac_cv_lib_sec_acl_totext=no
42185 fi
42186
42187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42188       conftest$ac_exeext conftest.$ac_ext
42189 LIBS=$ac_check_lib_save_LIBS
42190 fi
42191 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
42192 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
42193 if test $ac_cv_lib_sec_acl_totext = yes; then
42194
42195                                       have_extended_acl=yes
42196
42197
42198 fi
42199
42200
42201
42202 fi
42203
42204
42205
42206 fi
42207
42208
42209
42210 fi
42211
42212
42213
42214 fi
42215
42216
42217    if test x$support_acl = xyes -a $have_acl != yes; then
42218       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
42219   please either load the acl libraries or rerun configure without --enable-acl" >&5
42220 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
42221   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
42222    { (exit 1); exit 1; }; }
42223    else
42224       if test $have_acl = yes; then
42225
42226 cat >>confdefs.h <<\_ACEOF
42227 #define HAVE_ACL 1
42228 _ACEOF
42229
42230       fi
42231
42232       if test $have_extended_acl = yes; then
42233
42234 cat >>confdefs.h <<\_ACEOF
42235 #define HAVE_EXTENDED_ACL 1
42236 _ACEOF
42237
42238       fi
42239    fi
42240 fi
42241
42242 support_xattr=auto
42243 # Check whether --enable-xattr was given.
42244 if test "${enable_xattr+set}" = set; then
42245   enableval=$enable_xattr;
42246        if test x$enableval = xyes; then
42247           support_xattr=yes
42248        elif test x$enableval = xno; then
42249           support_xattr=no
42250        fi
42251
42252
42253 fi
42254
42255
42256 have_xattr=no
42257 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
42258             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42259   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42260 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42261 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42262   echo $ECHO_N "(cached) $ECHO_C" >&6
42263 fi
42264 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42265 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42266 else
42267   # Is the header compilable?
42268 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42269 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
42270 cat >conftest.$ac_ext <<_ACEOF
42271 /* confdefs.h.  */
42272 _ACEOF
42273 cat confdefs.h >>conftest.$ac_ext
42274 cat >>conftest.$ac_ext <<_ACEOF
42275 /* end confdefs.h.  */
42276 $ac_includes_default
42277 #include <sys/extattr.h>
42278 _ACEOF
42279 rm -f conftest.$ac_objext
42280 if { (ac_try="$ac_compile"
42281 case "(($ac_try" in
42282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42283   *) ac_try_echo=$ac_try;;
42284 esac
42285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42286   (eval "$ac_compile") 2>conftest.er1
42287   ac_status=$?
42288   grep -v '^ *+' conftest.er1 >conftest.err
42289   rm -f conftest.er1
42290   cat conftest.err >&5
42291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292   (exit $ac_status); } && {
42293          test -z "$ac_c_werror_flag" ||
42294          test ! -s conftest.err
42295        } && test -s conftest.$ac_objext; then
42296   ac_header_compiler=yes
42297 else
42298   echo "$as_me: failed program was:" >&5
42299 sed 's/^/| /' conftest.$ac_ext >&5
42300
42301         ac_header_compiler=no
42302 fi
42303
42304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42306 echo "${ECHO_T}$ac_header_compiler" >&6; }
42307
42308 # Is the header present?
42309 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42310 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
42311 cat >conftest.$ac_ext <<_ACEOF
42312 /* confdefs.h.  */
42313 _ACEOF
42314 cat confdefs.h >>conftest.$ac_ext
42315 cat >>conftest.$ac_ext <<_ACEOF
42316 /* end confdefs.h.  */
42317 #include <sys/extattr.h>
42318 _ACEOF
42319 if { (ac_try="$ac_cpp conftest.$ac_ext"
42320 case "(($ac_try" in
42321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42322   *) ac_try_echo=$ac_try;;
42323 esac
42324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42326   ac_status=$?
42327   grep -v '^ *+' conftest.er1 >conftest.err
42328   rm -f conftest.er1
42329   cat conftest.err >&5
42330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42331   (exit $ac_status); } >/dev/null && {
42332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42333          test ! -s conftest.err
42334        }; then
42335   ac_header_preproc=yes
42336 else
42337   echo "$as_me: failed program was:" >&5
42338 sed 's/^/| /' conftest.$ac_ext >&5
42339
42340   ac_header_preproc=no
42341 fi
42342
42343 rm -f conftest.err conftest.$ac_ext
42344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42345 echo "${ECHO_T}$ac_header_preproc" >&6; }
42346
42347 # So?  What about this header?
42348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42349   yes:no: )
42350     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42351 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42352     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
42353 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
42354     ac_header_preproc=yes
42355     ;;
42356   no:yes:* )
42357     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
42358 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
42359     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
42360 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
42361     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
42362 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
42363     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42364 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42365     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
42366 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
42367     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
42368 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
42369
42370     ;;
42371 esac
42372 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42373 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42374 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42375   echo $ECHO_N "(cached) $ECHO_C" >&6
42376 else
42377   ac_cv_header_sys_extattr_h=$ac_header_preproc
42378 fi
42379 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42380 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42381
42382 fi
42383 if test $ac_cv_header_sys_extattr_h = yes; then
42384
42385 cat >>confdefs.h <<\_ACEOF
42386 #define HAVE_SYS_EXTATTR_H 1
42387 _ACEOF
42388
42389 fi
42390
42391
42392    if test "${ac_cv_header_libutil_h+set}" = set; then
42393   { echo "$as_me:$LINENO: checking for libutil.h" >&5
42394 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42395 if test "${ac_cv_header_libutil_h+set}" = set; then
42396   echo $ECHO_N "(cached) $ECHO_C" >&6
42397 fi
42398 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42399 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42400 else
42401   # Is the header compilable?
42402 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
42403 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
42404 cat >conftest.$ac_ext <<_ACEOF
42405 /* confdefs.h.  */
42406 _ACEOF
42407 cat confdefs.h >>conftest.$ac_ext
42408 cat >>conftest.$ac_ext <<_ACEOF
42409 /* end confdefs.h.  */
42410 $ac_includes_default
42411 #include <libutil.h>
42412 _ACEOF
42413 rm -f conftest.$ac_objext
42414 if { (ac_try="$ac_compile"
42415 case "(($ac_try" in
42416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42417   *) ac_try_echo=$ac_try;;
42418 esac
42419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42420   (eval "$ac_compile") 2>conftest.er1
42421   ac_status=$?
42422   grep -v '^ *+' conftest.er1 >conftest.err
42423   rm -f conftest.er1
42424   cat conftest.err >&5
42425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426   (exit $ac_status); } && {
42427          test -z "$ac_c_werror_flag" ||
42428          test ! -s conftest.err
42429        } && test -s conftest.$ac_objext; then
42430   ac_header_compiler=yes
42431 else
42432   echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42434
42435         ac_header_compiler=no
42436 fi
42437
42438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42440 echo "${ECHO_T}$ac_header_compiler" >&6; }
42441
42442 # Is the header present?
42443 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
42444 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
42445 cat >conftest.$ac_ext <<_ACEOF
42446 /* confdefs.h.  */
42447 _ACEOF
42448 cat confdefs.h >>conftest.$ac_ext
42449 cat >>conftest.$ac_ext <<_ACEOF
42450 /* end confdefs.h.  */
42451 #include <libutil.h>
42452 _ACEOF
42453 if { (ac_try="$ac_cpp conftest.$ac_ext"
42454 case "(($ac_try" in
42455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42456   *) ac_try_echo=$ac_try;;
42457 esac
42458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42460   ac_status=$?
42461   grep -v '^ *+' conftest.er1 >conftest.err
42462   rm -f conftest.er1
42463   cat conftest.err >&5
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); } >/dev/null && {
42466          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42467          test ! -s conftest.err
42468        }; then
42469   ac_header_preproc=yes
42470 else
42471   echo "$as_me: failed program was:" >&5
42472 sed 's/^/| /' conftest.$ac_ext >&5
42473
42474   ac_header_preproc=no
42475 fi
42476
42477 rm -f conftest.err conftest.$ac_ext
42478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42479 echo "${ECHO_T}$ac_header_preproc" >&6; }
42480
42481 # So?  What about this header?
42482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42483   yes:no: )
42484     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
42485 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42486     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
42487 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
42488     ac_header_preproc=yes
42489     ;;
42490   no:yes:* )
42491     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
42492 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
42493     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
42494 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
42495     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
42496 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
42497     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
42498 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42499     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
42500 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
42501     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
42502 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
42503
42504     ;;
42505 esac
42506 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42507 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42508 if test "${ac_cv_header_libutil_h+set}" = set; then
42509   echo $ECHO_N "(cached) $ECHO_C" >&6
42510 else
42511   ac_cv_header_libutil_h=$ac_header_preproc
42512 fi
42513 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42514 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42515
42516 fi
42517 if test $ac_cv_header_libutil_h = yes; then
42518
42519 cat >>confdefs.h <<\_ACEOF
42520 #define HAVE_LIBUTIL_H 1
42521 _ACEOF
42522
42523 fi
42524
42525
42526
42527
42528
42529 for ac_func in extattr_get_link extattr_set_link extattr_list_link
42530 do
42531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42535   echo $ECHO_N "(cached) $ECHO_C" >&6
42536 else
42537   cat >conftest.$ac_ext <<_ACEOF
42538 /* confdefs.h.  */
42539 _ACEOF
42540 cat confdefs.h >>conftest.$ac_ext
42541 cat >>conftest.$ac_ext <<_ACEOF
42542 /* end confdefs.h.  */
42543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42545 #define $ac_func innocuous_$ac_func
42546
42547 /* System header to define __stub macros and hopefully few prototypes,
42548     which can conflict with char $ac_func (); below.
42549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42550     <limits.h> exists even on freestanding compilers.  */
42551
42552 #ifdef __STDC__
42553 # include <limits.h>
42554 #else
42555 # include <assert.h>
42556 #endif
42557
42558 #undef $ac_func
42559
42560 /* Override any GCC internal prototype to avoid an error.
42561    Use char because int might match the return type of a GCC
42562    builtin and then its argument prototype would still apply.  */
42563 #ifdef __cplusplus
42564 extern "C"
42565 #endif
42566 char $ac_func ();
42567 /* The GNU C library defines this for functions which it implements
42568     to always fail with ENOSYS.  Some functions are actually named
42569     something starting with __ and the normal name is an alias.  */
42570 #if defined __stub_$ac_func || defined __stub___$ac_func
42571 choke me
42572 #endif
42573
42574 int
42575 main ()
42576 {
42577 return $ac_func ();
42578   ;
42579   return 0;
42580 }
42581 _ACEOF
42582 rm -f conftest.$ac_objext conftest$ac_exeext
42583 if { (ac_try="$ac_link"
42584 case "(($ac_try" in
42585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42586   *) ac_try_echo=$ac_try;;
42587 esac
42588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42589   (eval "$ac_link") 2>conftest.er1
42590   ac_status=$?
42591   grep -v '^ *+' conftest.er1 >conftest.err
42592   rm -f conftest.er1
42593   cat conftest.err >&5
42594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595   (exit $ac_status); } && {
42596          test -z "$ac_c_werror_flag" ||
42597          test ! -s conftest.err
42598        } && test -s conftest$ac_exeext &&
42599        $as_test_x conftest$ac_exeext; then
42600   eval "$as_ac_var=yes"
42601 else
42602   echo "$as_me: failed program was:" >&5
42603 sed 's/^/| /' conftest.$ac_ext >&5
42604
42605         eval "$as_ac_var=no"
42606 fi
42607
42608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42609       conftest$ac_exeext conftest.$ac_ext
42610 fi
42611 ac_res=`eval echo '${'$as_ac_var'}'`
42612                { echo "$as_me:$LINENO: result: $ac_res" >&5
42613 echo "${ECHO_T}$ac_res" >&6; }
42614 if test `eval echo '${'$as_ac_var'}'` = yes; then
42615   cat >>confdefs.h <<_ACEOF
42616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42617 _ACEOF
42618
42619           have_xattr=yes
42620
42621 cat >>confdefs.h <<\_ACEOF
42622 #define HAVE_EXTATTR_GET_LINK 1
42623 _ACEOF
42624
42625
42626 cat >>confdefs.h <<\_ACEOF
42627 #define HAVE_EXTATTR_SET_LINK 1
42628 _ACEOF
42629
42630
42631 cat >>confdefs.h <<\_ACEOF
42632 #define HAVE_EXTATTR_LIST_LINK 1
42633 _ACEOF
42634
42635
42636
42637 fi
42638 done
42639
42640
42641    if test $have_xattr = no; then
42642
42643
42644
42645 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42646 do
42647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42651   echo $ECHO_N "(cached) $ECHO_C" >&6
42652 else
42653   cat >conftest.$ac_ext <<_ACEOF
42654 /* confdefs.h.  */
42655 _ACEOF
42656 cat confdefs.h >>conftest.$ac_ext
42657 cat >>conftest.$ac_ext <<_ACEOF
42658 /* end confdefs.h.  */
42659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42661 #define $ac_func innocuous_$ac_func
42662
42663 /* System header to define __stub macros and hopefully few prototypes,
42664     which can conflict with char $ac_func (); below.
42665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42666     <limits.h> exists even on freestanding compilers.  */
42667
42668 #ifdef __STDC__
42669 # include <limits.h>
42670 #else
42671 # include <assert.h>
42672 #endif
42673
42674 #undef $ac_func
42675
42676 /* Override any GCC internal prototype to avoid an error.
42677    Use char because int might match the return type of a GCC
42678    builtin and then its argument prototype would still apply.  */
42679 #ifdef __cplusplus
42680 extern "C"
42681 #endif
42682 char $ac_func ();
42683 /* The GNU C library defines this for functions which it implements
42684     to always fail with ENOSYS.  Some functions are actually named
42685     something starting with __ and the normal name is an alias.  */
42686 #if defined __stub_$ac_func || defined __stub___$ac_func
42687 choke me
42688 #endif
42689
42690 int
42691 main ()
42692 {
42693 return $ac_func ();
42694   ;
42695   return 0;
42696 }
42697 _ACEOF
42698 rm -f conftest.$ac_objext conftest$ac_exeext
42699 if { (ac_try="$ac_link"
42700 case "(($ac_try" in
42701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42702   *) ac_try_echo=$ac_try;;
42703 esac
42704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42705   (eval "$ac_link") 2>conftest.er1
42706   ac_status=$?
42707   grep -v '^ *+' conftest.er1 >conftest.err
42708   rm -f conftest.er1
42709   cat conftest.err >&5
42710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42711   (exit $ac_status); } && {
42712          test -z "$ac_c_werror_flag" ||
42713          test ! -s conftest.err
42714        } && test -s conftest$ac_exeext &&
42715        $as_test_x conftest$ac_exeext; then
42716   eval "$as_ac_var=yes"
42717 else
42718   echo "$as_me: failed program was:" >&5
42719 sed 's/^/| /' conftest.$ac_ext >&5
42720
42721         eval "$as_ac_var=no"
42722 fi
42723
42724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42725       conftest$ac_exeext conftest.$ac_ext
42726 fi
42727 ac_res=`eval echo '${'$as_ac_var'}'`
42728                { echo "$as_me:$LINENO: result: $ac_res" >&5
42729 echo "${ECHO_T}$ac_res" >&6; }
42730 if test `eval echo '${'$as_ac_var'}'` = yes; then
42731   cat >>confdefs.h <<_ACEOF
42732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42733 _ACEOF
42734
42735              have_xattr=yes
42736
42737 cat >>confdefs.h <<\_ACEOF
42738 #define HAVE_EXTATTR_GET_FILE 1
42739 _ACEOF
42740
42741
42742 cat >>confdefs.h <<\_ACEOF
42743 #define HAVE_EXTATTR_SET_FILE 1
42744 _ACEOF
42745
42746
42747 cat >>confdefs.h <<\_ACEOF
42748 #define HAVE_EXTATTR_LIST_FILE 1
42749 _ACEOF
42750
42751
42752
42753 fi
42754 done
42755
42756    fi
42757
42758    if test $have_xattr = yes; then
42759       have_extattr_string_in_libc=no
42760
42761
42762 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42763 do
42764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42768   echo $ECHO_N "(cached) $ECHO_C" >&6
42769 else
42770   cat >conftest.$ac_ext <<_ACEOF
42771 /* confdefs.h.  */
42772 _ACEOF
42773 cat confdefs.h >>conftest.$ac_ext
42774 cat >>conftest.$ac_ext <<_ACEOF
42775 /* end confdefs.h.  */
42776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42778 #define $ac_func innocuous_$ac_func
42779
42780 /* System header to define __stub macros and hopefully few prototypes,
42781     which can conflict with char $ac_func (); below.
42782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42783     <limits.h> exists even on freestanding compilers.  */
42784
42785 #ifdef __STDC__
42786 # include <limits.h>
42787 #else
42788 # include <assert.h>
42789 #endif
42790
42791 #undef $ac_func
42792
42793 /* Override any GCC internal prototype to avoid an error.
42794    Use char because int might match the return type of a GCC
42795    builtin and then its argument prototype would still apply.  */
42796 #ifdef __cplusplus
42797 extern "C"
42798 #endif
42799 char $ac_func ();
42800 /* The GNU C library defines this for functions which it implements
42801     to always fail with ENOSYS.  Some functions are actually named
42802     something starting with __ and the normal name is an alias.  */
42803 #if defined __stub_$ac_func || defined __stub___$ac_func
42804 choke me
42805 #endif
42806
42807 int
42808 main ()
42809 {
42810 return $ac_func ();
42811   ;
42812   return 0;
42813 }
42814 _ACEOF
42815 rm -f conftest.$ac_objext conftest$ac_exeext
42816 if { (ac_try="$ac_link"
42817 case "(($ac_try" in
42818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42819   *) ac_try_echo=$ac_try;;
42820 esac
42821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42822   (eval "$ac_link") 2>conftest.er1
42823   ac_status=$?
42824   grep -v '^ *+' conftest.er1 >conftest.err
42825   rm -f conftest.er1
42826   cat conftest.err >&5
42827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828   (exit $ac_status); } && {
42829          test -z "$ac_c_werror_flag" ||
42830          test ! -s conftest.err
42831        } && test -s conftest$ac_exeext &&
42832        $as_test_x conftest$ac_exeext; then
42833   eval "$as_ac_var=yes"
42834 else
42835   echo "$as_me: failed program was:" >&5
42836 sed 's/^/| /' conftest.$ac_ext >&5
42837
42838         eval "$as_ac_var=no"
42839 fi
42840
42841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42842       conftest$ac_exeext conftest.$ac_ext
42843 fi
42844 ac_res=`eval echo '${'$as_ac_var'}'`
42845                { echo "$as_me:$LINENO: result: $ac_res" >&5
42846 echo "${ECHO_T}$ac_res" >&6; }
42847 if test `eval echo '${'$as_ac_var'}'` = yes; then
42848   cat >>confdefs.h <<_ACEOF
42849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42850 _ACEOF
42851
42852              have_extattr_string_in_libc=yes
42853
42854 cat >>confdefs.h <<\_ACEOF
42855 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42856 _ACEOF
42857
42858
42859 cat >>confdefs.h <<\_ACEOF
42860 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42861 _ACEOF
42862
42863
42864
42865 fi
42866 done
42867
42868
42869                         if test $have_extattr_string_in_libc = no; then
42870          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42871 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42872 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42873   echo $ECHO_N "(cached) $ECHO_C" >&6
42874 else
42875   ac_check_lib_save_LIBS=$LIBS
42876 LIBS="-lutil  $LIBS"
42877 cat >conftest.$ac_ext <<_ACEOF
42878 /* confdefs.h.  */
42879 _ACEOF
42880 cat confdefs.h >>conftest.$ac_ext
42881 cat >>conftest.$ac_ext <<_ACEOF
42882 /* end confdefs.h.  */
42883
42884 /* Override any GCC internal prototype to avoid an error.
42885    Use char because int might match the return type of a GCC
42886    builtin and then its argument prototype would still apply.  */
42887 #ifdef __cplusplus
42888 extern "C"
42889 #endif
42890 char extattr_namespace_to_string extattr_string_to_namespace ();
42891 int
42892 main ()
42893 {
42894 return extattr_namespace_to_string extattr_string_to_namespace ();
42895   ;
42896   return 0;
42897 }
42898 _ACEOF
42899 rm -f conftest.$ac_objext conftest$ac_exeext
42900 if { (ac_try="$ac_link"
42901 case "(($ac_try" in
42902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42903   *) ac_try_echo=$ac_try;;
42904 esac
42905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42906   (eval "$ac_link") 2>conftest.er1
42907   ac_status=$?
42908   grep -v '^ *+' conftest.er1 >conftest.err
42909   rm -f conftest.er1
42910   cat conftest.err >&5
42911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42912   (exit $ac_status); } && {
42913          test -z "$ac_c_werror_flag" ||
42914          test ! -s conftest.err
42915        } && test -s conftest$ac_exeext &&
42916        $as_test_x conftest$ac_exeext; then
42917   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42918 else
42919   echo "$as_me: failed program was:" >&5
42920 sed 's/^/| /' conftest.$ac_ext >&5
42921
42922         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42923 fi
42924
42925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42926       conftest$ac_exeext conftest.$ac_ext
42927 LIBS=$ac_check_lib_save_LIBS
42928 fi
42929 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42930 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42931 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42932
42933
42934 cat >>confdefs.h <<\_ACEOF
42935 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42936 _ACEOF
42937
42938
42939 cat >>confdefs.h <<\_ACEOF
42940 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42941 _ACEOF
42942
42943                 FDLIBS="-lutil $FDLIBS"
42944
42945
42946 fi
42947
42948       fi
42949    fi
42950
42951             if test $have_xattr = no; then
42952       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42953   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42954 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42955 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42956   echo $ECHO_N "(cached) $ECHO_C" >&6
42957 fi
42958 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42959 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42960 else
42961   # Is the header compilable?
42962 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42963 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42964 cat >conftest.$ac_ext <<_ACEOF
42965 /* confdefs.h.  */
42966 _ACEOF
42967 cat confdefs.h >>conftest.$ac_ext
42968 cat >>conftest.$ac_ext <<_ACEOF
42969 /* end confdefs.h.  */
42970 $ac_includes_default
42971 #include <sys/xattr.h>
42972 _ACEOF
42973 rm -f conftest.$ac_objext
42974 if { (ac_try="$ac_compile"
42975 case "(($ac_try" in
42976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42977   *) ac_try_echo=$ac_try;;
42978 esac
42979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42980   (eval "$ac_compile") 2>conftest.er1
42981   ac_status=$?
42982   grep -v '^ *+' conftest.er1 >conftest.err
42983   rm -f conftest.er1
42984   cat conftest.err >&5
42985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986   (exit $ac_status); } && {
42987          test -z "$ac_c_werror_flag" ||
42988          test ! -s conftest.err
42989        } && test -s conftest.$ac_objext; then
42990   ac_header_compiler=yes
42991 else
42992   echo "$as_me: failed program was:" >&5
42993 sed 's/^/| /' conftest.$ac_ext >&5
42994
42995         ac_header_compiler=no
42996 fi
42997
42998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43000 echo "${ECHO_T}$ac_header_compiler" >&6; }
43001
43002 # Is the header present?
43003 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
43004 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
43005 cat >conftest.$ac_ext <<_ACEOF
43006 /* confdefs.h.  */
43007 _ACEOF
43008 cat confdefs.h >>conftest.$ac_ext
43009 cat >>conftest.$ac_ext <<_ACEOF
43010 /* end confdefs.h.  */
43011 #include <sys/xattr.h>
43012 _ACEOF
43013 if { (ac_try="$ac_cpp conftest.$ac_ext"
43014 case "(($ac_try" in
43015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43016   *) ac_try_echo=$ac_try;;
43017 esac
43018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43020   ac_status=$?
43021   grep -v '^ *+' conftest.er1 >conftest.err
43022   rm -f conftest.er1
43023   cat conftest.err >&5
43024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43025   (exit $ac_status); } >/dev/null && {
43026          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43027          test ! -s conftest.err
43028        }; then
43029   ac_header_preproc=yes
43030 else
43031   echo "$as_me: failed program was:" >&5
43032 sed 's/^/| /' conftest.$ac_ext >&5
43033
43034   ac_header_preproc=no
43035 fi
43036
43037 rm -f conftest.err conftest.$ac_ext
43038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43039 echo "${ECHO_T}$ac_header_preproc" >&6; }
43040
43041 # So?  What about this header?
43042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43043   yes:no: )
43044     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43045 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43046     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
43047 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
43048     ac_header_preproc=yes
43049     ;;
43050   no:yes:* )
43051     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
43052 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
43053     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
43054 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
43055     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
43056 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
43057     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
43058 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43059     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
43060 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
43061     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
43062 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
43063
43064     ;;
43065 esac
43066 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43067 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
43068 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43069   echo $ECHO_N "(cached) $ECHO_C" >&6
43070 else
43071   ac_cv_header_sys_xattr_h=$ac_header_preproc
43072 fi
43073 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43074 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
43075
43076 fi
43077 if test $ac_cv_header_sys_xattr_h = yes; then
43078
43079 cat >>confdefs.h <<\_ACEOF
43080 #define HAVE_SYS_XATTR_H 1
43081 _ACEOF
43082
43083 fi
43084
43085
43086
43087
43088
43089 for ac_func in llistxattr lgetxattr lsetxattr
43090 do
43091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43095   echo $ECHO_N "(cached) $ECHO_C" >&6
43096 else
43097   cat >conftest.$ac_ext <<_ACEOF
43098 /* confdefs.h.  */
43099 _ACEOF
43100 cat confdefs.h >>conftest.$ac_ext
43101 cat >>conftest.$ac_ext <<_ACEOF
43102 /* end confdefs.h.  */
43103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43105 #define $ac_func innocuous_$ac_func
43106
43107 /* System header to define __stub macros and hopefully few prototypes,
43108     which can conflict with char $ac_func (); below.
43109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43110     <limits.h> exists even on freestanding compilers.  */
43111
43112 #ifdef __STDC__
43113 # include <limits.h>
43114 #else
43115 # include <assert.h>
43116 #endif
43117
43118 #undef $ac_func
43119
43120 /* Override any GCC internal prototype to avoid an error.
43121    Use char because int might match the return type of a GCC
43122    builtin and then its argument prototype would still apply.  */
43123 #ifdef __cplusplus
43124 extern "C"
43125 #endif
43126 char $ac_func ();
43127 /* The GNU C library defines this for functions which it implements
43128     to always fail with ENOSYS.  Some functions are actually named
43129     something starting with __ and the normal name is an alias.  */
43130 #if defined __stub_$ac_func || defined __stub___$ac_func
43131 choke me
43132 #endif
43133
43134 int
43135 main ()
43136 {
43137 return $ac_func ();
43138   ;
43139   return 0;
43140 }
43141 _ACEOF
43142 rm -f conftest.$ac_objext conftest$ac_exeext
43143 if { (ac_try="$ac_link"
43144 case "(($ac_try" in
43145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43146   *) ac_try_echo=$ac_try;;
43147 esac
43148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43149   (eval "$ac_link") 2>conftest.er1
43150   ac_status=$?
43151   grep -v '^ *+' conftest.er1 >conftest.err
43152   rm -f conftest.er1
43153   cat conftest.err >&5
43154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43155   (exit $ac_status); } && {
43156          test -z "$ac_c_werror_flag" ||
43157          test ! -s conftest.err
43158        } && test -s conftest$ac_exeext &&
43159        $as_test_x conftest$ac_exeext; then
43160   eval "$as_ac_var=yes"
43161 else
43162   echo "$as_me: failed program was:" >&5
43163 sed 's/^/| /' conftest.$ac_ext >&5
43164
43165         eval "$as_ac_var=no"
43166 fi
43167
43168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43169       conftest$ac_exeext conftest.$ac_ext
43170 fi
43171 ac_res=`eval echo '${'$as_ac_var'}'`
43172                { echo "$as_me:$LINENO: result: $ac_res" >&5
43173 echo "${ECHO_T}$ac_res" >&6; }
43174 if test `eval echo '${'$as_ac_var'}'` = yes; then
43175   cat >>confdefs.h <<_ACEOF
43176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43177 _ACEOF
43178
43179              have_xattr=yes
43180
43181 cat >>confdefs.h <<\_ACEOF
43182 #define HAVE_LLISTXATTR 1
43183 _ACEOF
43184
43185
43186 cat >>confdefs.h <<\_ACEOF
43187 #define HAVE_LGETXATTR 1
43188 _ACEOF
43189
43190
43191 cat >>confdefs.h <<\_ACEOF
43192 #define HAVE_LSETXATTR 1
43193 _ACEOF
43194
43195
43196
43197 fi
43198 done
43199
43200
43201       if test $have_xattr = no; then
43202
43203
43204
43205 for ac_func in listxattr getxattr setxattr
43206 do
43207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43211   echo $ECHO_N "(cached) $ECHO_C" >&6
43212 else
43213   cat >conftest.$ac_ext <<_ACEOF
43214 /* confdefs.h.  */
43215 _ACEOF
43216 cat confdefs.h >>conftest.$ac_ext
43217 cat >>conftest.$ac_ext <<_ACEOF
43218 /* end confdefs.h.  */
43219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43221 #define $ac_func innocuous_$ac_func
43222
43223 /* System header to define __stub macros and hopefully few prototypes,
43224     which can conflict with char $ac_func (); below.
43225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43226     <limits.h> exists even on freestanding compilers.  */
43227
43228 #ifdef __STDC__
43229 # include <limits.h>
43230 #else
43231 # include <assert.h>
43232 #endif
43233
43234 #undef $ac_func
43235
43236 /* Override any GCC internal prototype to avoid an error.
43237    Use char because int might match the return type of a GCC
43238    builtin and then its argument prototype would still apply.  */
43239 #ifdef __cplusplus
43240 extern "C"
43241 #endif
43242 char $ac_func ();
43243 /* The GNU C library defines this for functions which it implements
43244     to always fail with ENOSYS.  Some functions are actually named
43245     something starting with __ and the normal name is an alias.  */
43246 #if defined __stub_$ac_func || defined __stub___$ac_func
43247 choke me
43248 #endif
43249
43250 int
43251 main ()
43252 {
43253 return $ac_func ();
43254   ;
43255   return 0;
43256 }
43257 _ACEOF
43258 rm -f conftest.$ac_objext conftest$ac_exeext
43259 if { (ac_try="$ac_link"
43260 case "(($ac_try" in
43261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43262   *) ac_try_echo=$ac_try;;
43263 esac
43264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43265   (eval "$ac_link") 2>conftest.er1
43266   ac_status=$?
43267   grep -v '^ *+' conftest.er1 >conftest.err
43268   rm -f conftest.er1
43269   cat conftest.err >&5
43270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43271   (exit $ac_status); } && {
43272          test -z "$ac_c_werror_flag" ||
43273          test ! -s conftest.err
43274        } && test -s conftest$ac_exeext &&
43275        $as_test_x conftest$ac_exeext; then
43276   eval "$as_ac_var=yes"
43277 else
43278   echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43280
43281         eval "$as_ac_var=no"
43282 fi
43283
43284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43285       conftest$ac_exeext conftest.$ac_ext
43286 fi
43287 ac_res=`eval echo '${'$as_ac_var'}'`
43288                { echo "$as_me:$LINENO: result: $ac_res" >&5
43289 echo "${ECHO_T}$ac_res" >&6; }
43290 if test `eval echo '${'$as_ac_var'}'` = yes; then
43291   cat >>confdefs.h <<_ACEOF
43292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43293 _ACEOF
43294
43295                 have_xattr=yes
43296
43297 cat >>confdefs.h <<\_ACEOF
43298 #define HAVE_LISTXATTR 1
43299 _ACEOF
43300
43301
43302 cat >>confdefs.h <<\_ACEOF
43303 #define HAVE_GETXATTR 1
43304 _ACEOF
43305
43306
43307 cat >>confdefs.h <<\_ACEOF
43308 #define HAVE_SETXATTR 1
43309 _ACEOF
43310
43311
43312
43313 fi
43314 done
43315
43316       fi
43317    fi
43318
43319             if test $have_xattr = no -a `uname -s` = SunOS; then
43320       if test "${ac_cv_header_sys_attr_h+set}" = set; then
43321   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43322 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43323 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43324   echo $ECHO_N "(cached) $ECHO_C" >&6
43325 fi
43326 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43327 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43328 else
43329   # Is the header compilable?
43330 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
43331 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
43332 cat >conftest.$ac_ext <<_ACEOF
43333 /* confdefs.h.  */
43334 _ACEOF
43335 cat confdefs.h >>conftest.$ac_ext
43336 cat >>conftest.$ac_ext <<_ACEOF
43337 /* end confdefs.h.  */
43338 $ac_includes_default
43339 #include <sys/attr.h>
43340 _ACEOF
43341 rm -f conftest.$ac_objext
43342 if { (ac_try="$ac_compile"
43343 case "(($ac_try" in
43344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43345   *) ac_try_echo=$ac_try;;
43346 esac
43347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43348   (eval "$ac_compile") 2>conftest.er1
43349   ac_status=$?
43350   grep -v '^ *+' conftest.er1 >conftest.err
43351   rm -f conftest.er1
43352   cat conftest.err >&5
43353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354   (exit $ac_status); } && {
43355          test -z "$ac_c_werror_flag" ||
43356          test ! -s conftest.err
43357        } && test -s conftest.$ac_objext; then
43358   ac_header_compiler=yes
43359 else
43360   echo "$as_me: failed program was:" >&5
43361 sed 's/^/| /' conftest.$ac_ext >&5
43362
43363         ac_header_compiler=no
43364 fi
43365
43366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43368 echo "${ECHO_T}$ac_header_compiler" >&6; }
43369
43370 # Is the header present?
43371 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
43372 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
43373 cat >conftest.$ac_ext <<_ACEOF
43374 /* confdefs.h.  */
43375 _ACEOF
43376 cat confdefs.h >>conftest.$ac_ext
43377 cat >>conftest.$ac_ext <<_ACEOF
43378 /* end confdefs.h.  */
43379 #include <sys/attr.h>
43380 _ACEOF
43381 if { (ac_try="$ac_cpp conftest.$ac_ext"
43382 case "(($ac_try" in
43383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43384   *) ac_try_echo=$ac_try;;
43385 esac
43386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43388   ac_status=$?
43389   grep -v '^ *+' conftest.er1 >conftest.err
43390   rm -f conftest.er1
43391   cat conftest.err >&5
43392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393   (exit $ac_status); } >/dev/null && {
43394          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43395          test ! -s conftest.err
43396        }; then
43397   ac_header_preproc=yes
43398 else
43399   echo "$as_me: failed program was:" >&5
43400 sed 's/^/| /' conftest.$ac_ext >&5
43401
43402   ac_header_preproc=no
43403 fi
43404
43405 rm -f conftest.err conftest.$ac_ext
43406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43407 echo "${ECHO_T}$ac_header_preproc" >&6; }
43408
43409 # So?  What about this header?
43410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43411   yes:no: )
43412     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43413 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43414     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
43415 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
43416     ac_header_preproc=yes
43417     ;;
43418   no:yes:* )
43419     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
43420 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
43421     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
43422 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
43423     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
43424 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
43425     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43426 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43427     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
43428 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
43429     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
43430 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
43431
43432     ;;
43433 esac
43434 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43435 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43436 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43437   echo $ECHO_N "(cached) $ECHO_C" >&6
43438 else
43439   ac_cv_header_sys_attr_h=$ac_header_preproc
43440 fi
43441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43442 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43443
43444 fi
43445 if test $ac_cv_header_sys_attr_h = yes; then
43446
43447 cat >>confdefs.h <<\_ACEOF
43448 #define HAVE_SYS_ATTR_H 1
43449 _ACEOF
43450
43451 fi
43452
43453
43454       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43455   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43456 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43457 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43458   echo $ECHO_N "(cached) $ECHO_C" >&6
43459 fi
43460 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43461 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43462 else
43463   # Is the header compilable?
43464 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
43465 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
43466 cat >conftest.$ac_ext <<_ACEOF
43467 /* confdefs.h.  */
43468 _ACEOF
43469 cat confdefs.h >>conftest.$ac_ext
43470 cat >>conftest.$ac_ext <<_ACEOF
43471 /* end confdefs.h.  */
43472 $ac_includes_default
43473 #include <sys/nvpair.h>
43474 _ACEOF
43475 rm -f conftest.$ac_objext
43476 if { (ac_try="$ac_compile"
43477 case "(($ac_try" in
43478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43479   *) ac_try_echo=$ac_try;;
43480 esac
43481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43482   (eval "$ac_compile") 2>conftest.er1
43483   ac_status=$?
43484   grep -v '^ *+' conftest.er1 >conftest.err
43485   rm -f conftest.er1
43486   cat conftest.err >&5
43487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488   (exit $ac_status); } && {
43489          test -z "$ac_c_werror_flag" ||
43490          test ! -s conftest.err
43491        } && test -s conftest.$ac_objext; then
43492   ac_header_compiler=yes
43493 else
43494   echo "$as_me: failed program was:" >&5
43495 sed 's/^/| /' conftest.$ac_ext >&5
43496
43497         ac_header_compiler=no
43498 fi
43499
43500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43502 echo "${ECHO_T}$ac_header_compiler" >&6; }
43503
43504 # Is the header present?
43505 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
43506 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
43507 cat >conftest.$ac_ext <<_ACEOF
43508 /* confdefs.h.  */
43509 _ACEOF
43510 cat confdefs.h >>conftest.$ac_ext
43511 cat >>conftest.$ac_ext <<_ACEOF
43512 /* end confdefs.h.  */
43513 #include <sys/nvpair.h>
43514 _ACEOF
43515 if { (ac_try="$ac_cpp conftest.$ac_ext"
43516 case "(($ac_try" in
43517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43518   *) ac_try_echo=$ac_try;;
43519 esac
43520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43522   ac_status=$?
43523   grep -v '^ *+' conftest.er1 >conftest.err
43524   rm -f conftest.er1
43525   cat conftest.err >&5
43526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43527   (exit $ac_status); } >/dev/null && {
43528          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43529          test ! -s conftest.err
43530        }; then
43531   ac_header_preproc=yes
43532 else
43533   echo "$as_me: failed program was:" >&5
43534 sed 's/^/| /' conftest.$ac_ext >&5
43535
43536   ac_header_preproc=no
43537 fi
43538
43539 rm -f conftest.err conftest.$ac_ext
43540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43541 echo "${ECHO_T}$ac_header_preproc" >&6; }
43542
43543 # So?  What about this header?
43544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43545   yes:no: )
43546     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
43547 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43548     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
43549 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
43550     ac_header_preproc=yes
43551     ;;
43552   no:yes:* )
43553     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
43554 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
43555     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
43556 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
43557     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
43558 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
43559     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
43560 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43561     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
43562 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
43563     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
43564 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
43565
43566     ;;
43567 esac
43568 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43569 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43570 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43571   echo $ECHO_N "(cached) $ECHO_C" >&6
43572 else
43573   ac_cv_header_sys_nvpair_h=$ac_header_preproc
43574 fi
43575 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43576 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43577
43578 fi
43579 if test $ac_cv_header_sys_nvpair_h = yes; then
43580
43581 cat >>confdefs.h <<\_ACEOF
43582 #define HAVE_SYS_NVPAIR_H 1
43583 _ACEOF
43584
43585 fi
43586
43587
43588       if test "${ac_cv_header_attr_h+set}" = set; then
43589   { echo "$as_me:$LINENO: checking for attr.h" >&5
43590 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43591 if test "${ac_cv_header_attr_h+set}" = set; then
43592   echo $ECHO_N "(cached) $ECHO_C" >&6
43593 fi
43594 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43595 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43596 else
43597   # Is the header compilable?
43598 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43599 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43600 cat >conftest.$ac_ext <<_ACEOF
43601 /* confdefs.h.  */
43602 _ACEOF
43603 cat confdefs.h >>conftest.$ac_ext
43604 cat >>conftest.$ac_ext <<_ACEOF
43605 /* end confdefs.h.  */
43606 $ac_includes_default
43607 #include <attr.h>
43608 _ACEOF
43609 rm -f conftest.$ac_objext
43610 if { (ac_try="$ac_compile"
43611 case "(($ac_try" in
43612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43613   *) ac_try_echo=$ac_try;;
43614 esac
43615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43616   (eval "$ac_compile") 2>conftest.er1
43617   ac_status=$?
43618   grep -v '^ *+' conftest.er1 >conftest.err
43619   rm -f conftest.er1
43620   cat conftest.err >&5
43621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622   (exit $ac_status); } && {
43623          test -z "$ac_c_werror_flag" ||
43624          test ! -s conftest.err
43625        } && test -s conftest.$ac_objext; then
43626   ac_header_compiler=yes
43627 else
43628   echo "$as_me: failed program was:" >&5
43629 sed 's/^/| /' conftest.$ac_ext >&5
43630
43631         ac_header_compiler=no
43632 fi
43633
43634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43636 echo "${ECHO_T}$ac_header_compiler" >&6; }
43637
43638 # Is the header present?
43639 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43640 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43641 cat >conftest.$ac_ext <<_ACEOF
43642 /* confdefs.h.  */
43643 _ACEOF
43644 cat confdefs.h >>conftest.$ac_ext
43645 cat >>conftest.$ac_ext <<_ACEOF
43646 /* end confdefs.h.  */
43647 #include <attr.h>
43648 _ACEOF
43649 if { (ac_try="$ac_cpp conftest.$ac_ext"
43650 case "(($ac_try" in
43651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652   *) ac_try_echo=$ac_try;;
43653 esac
43654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43656   ac_status=$?
43657   grep -v '^ *+' conftest.er1 >conftest.err
43658   rm -f conftest.er1
43659   cat conftest.err >&5
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); } >/dev/null && {
43662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43663          test ! -s conftest.err
43664        }; then
43665   ac_header_preproc=yes
43666 else
43667   echo "$as_me: failed program was:" >&5
43668 sed 's/^/| /' conftest.$ac_ext >&5
43669
43670   ac_header_preproc=no
43671 fi
43672
43673 rm -f conftest.err conftest.$ac_ext
43674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43675 echo "${ECHO_T}$ac_header_preproc" >&6; }
43676
43677 # So?  What about this header?
43678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43679   yes:no: )
43680     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43681 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43682     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43683 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43684     ac_header_preproc=yes
43685     ;;
43686   no:yes:* )
43687     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43688 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43689     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
43690 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
43691     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43692 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43693     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43694 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43695     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43696 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43697     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43698 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43699
43700     ;;
43701 esac
43702 { echo "$as_me:$LINENO: checking for attr.h" >&5
43703 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43704 if test "${ac_cv_header_attr_h+set}" = set; then
43705   echo $ECHO_N "(cached) $ECHO_C" >&6
43706 else
43707   ac_cv_header_attr_h=$ac_header_preproc
43708 fi
43709 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43710 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43711
43712 fi
43713 if test $ac_cv_header_attr_h = yes; then
43714
43715 cat >>confdefs.h <<\_ACEOF
43716 #define HAVE_ATTR_H 1
43717 _ACEOF
43718
43719 fi
43720
43721
43722
43723
43724
43725
43726
43727
43728 for ac_func in openat fstatat unlinkat fchownat futimesat
43729 do
43730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43734   echo $ECHO_N "(cached) $ECHO_C" >&6
43735 else
43736   cat >conftest.$ac_ext <<_ACEOF
43737 /* confdefs.h.  */
43738 _ACEOF
43739 cat confdefs.h >>conftest.$ac_ext
43740 cat >>conftest.$ac_ext <<_ACEOF
43741 /* end confdefs.h.  */
43742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43744 #define $ac_func innocuous_$ac_func
43745
43746 /* System header to define __stub macros and hopefully few prototypes,
43747     which can conflict with char $ac_func (); below.
43748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43749     <limits.h> exists even on freestanding compilers.  */
43750
43751 #ifdef __STDC__
43752 # include <limits.h>
43753 #else
43754 # include <assert.h>
43755 #endif
43756
43757 #undef $ac_func
43758
43759 /* Override any GCC internal prototype to avoid an error.
43760    Use char because int might match the return type of a GCC
43761    builtin and then its argument prototype would still apply.  */
43762 #ifdef __cplusplus
43763 extern "C"
43764 #endif
43765 char $ac_func ();
43766 /* The GNU C library defines this for functions which it implements
43767     to always fail with ENOSYS.  Some functions are actually named
43768     something starting with __ and the normal name is an alias.  */
43769 #if defined __stub_$ac_func || defined __stub___$ac_func
43770 choke me
43771 #endif
43772
43773 int
43774 main ()
43775 {
43776 return $ac_func ();
43777   ;
43778   return 0;
43779 }
43780 _ACEOF
43781 rm -f conftest.$ac_objext conftest$ac_exeext
43782 if { (ac_try="$ac_link"
43783 case "(($ac_try" in
43784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43785   *) ac_try_echo=$ac_try;;
43786 esac
43787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43788   (eval "$ac_link") 2>conftest.er1
43789   ac_status=$?
43790   grep -v '^ *+' conftest.er1 >conftest.err
43791   rm -f conftest.er1
43792   cat conftest.err >&5
43793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794   (exit $ac_status); } && {
43795          test -z "$ac_c_werror_flag" ||
43796          test ! -s conftest.err
43797        } && test -s conftest$ac_exeext &&
43798        $as_test_x conftest$ac_exeext; then
43799   eval "$as_ac_var=yes"
43800 else
43801   echo "$as_me: failed program was:" >&5
43802 sed 's/^/| /' conftest.$ac_ext >&5
43803
43804         eval "$as_ac_var=no"
43805 fi
43806
43807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43808       conftest$ac_exeext conftest.$ac_ext
43809 fi
43810 ac_res=`eval echo '${'$as_ac_var'}'`
43811                { echo "$as_me:$LINENO: result: $ac_res" >&5
43812 echo "${ECHO_T}$ac_res" >&6; }
43813 if test `eval echo '${'$as_ac_var'}'` = yes; then
43814   cat >>confdefs.h <<_ACEOF
43815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43816 _ACEOF
43817
43818              have_xattr=yes
43819
43820 cat >>confdefs.h <<\_ACEOF
43821 #define HAVE_OPENAT 1
43822 _ACEOF
43823
43824
43825 cat >>confdefs.h <<\_ACEOF
43826 #define HAVE_FSTATAT 1
43827 _ACEOF
43828
43829
43830 cat >>confdefs.h <<\_ACEOF
43831 #define HAVE_UNLINKAT 1
43832 _ACEOF
43833
43834
43835 cat >>confdefs.h <<\_ACEOF
43836 #define HAVE_FCHOWNAT 1
43837 _ACEOF
43838
43839
43840 cat >>confdefs.h <<\_ACEOF
43841 #define HAVE_FUTIMESAT 1
43842 _ACEOF
43843
43844
43845
43846 fi
43847 done
43848
43849
43850       if test $have_xattr = yes; then
43851          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43852 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43853 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43854   echo $ECHO_N "(cached) $ECHO_C" >&6
43855 else
43856   ac_check_lib_save_LIBS=$LIBS
43857 LIBS="-lnvpair  $LIBS"
43858 cat >conftest.$ac_ext <<_ACEOF
43859 /* confdefs.h.  */
43860 _ACEOF
43861 cat confdefs.h >>conftest.$ac_ext
43862 cat >>conftest.$ac_ext <<_ACEOF
43863 /* end confdefs.h.  */
43864
43865 /* Override any GCC internal prototype to avoid an error.
43866    Use char because int might match the return type of a GCC
43867    builtin and then its argument prototype would still apply.  */
43868 #ifdef __cplusplus
43869 extern "C"
43870 #endif
43871 char nvlist_next_nvpair ();
43872 int
43873 main ()
43874 {
43875 return nvlist_next_nvpair ();
43876   ;
43877   return 0;
43878 }
43879 _ACEOF
43880 rm -f conftest.$ac_objext conftest$ac_exeext
43881 if { (ac_try="$ac_link"
43882 case "(($ac_try" in
43883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43884   *) ac_try_echo=$ac_try;;
43885 esac
43886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43887   (eval "$ac_link") 2>conftest.er1
43888   ac_status=$?
43889   grep -v '^ *+' conftest.er1 >conftest.err
43890   rm -f conftest.er1
43891   cat conftest.err >&5
43892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43893   (exit $ac_status); } && {
43894          test -z "$ac_c_werror_flag" ||
43895          test ! -s conftest.err
43896        } && test -s conftest$ac_exeext &&
43897        $as_test_x conftest$ac_exeext; then
43898   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43899 else
43900   echo "$as_me: failed program was:" >&5
43901 sed 's/^/| /' conftest.$ac_ext >&5
43902
43903         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43904 fi
43905
43906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43907       conftest$ac_exeext conftest.$ac_ext
43908 LIBS=$ac_check_lib_save_LIBS
43909 fi
43910 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43911 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43912 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43913
43914
43915 cat >>confdefs.h <<\_ACEOF
43916 #define HAVE_NVLIST_NEXT_NVPAIR 1
43917 _ACEOF
43918
43919                 FDLIBS="-lnvpair $FDLIBS"
43920
43921
43922 fi
43923
43924       fi
43925    fi
43926
43927    if test x$support_xattr = xyes -a $have_xattr != yes; then
43928       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43929   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43930 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43931   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43932    { (exit 1); exit 1; }; }
43933    else
43934       if test $have_xattr = yes; then
43935
43936 cat >>confdefs.h <<\_ACEOF
43937 #define HAVE_XATTR 1
43938 _ACEOF
43939
43940       fi
43941    fi
43942 fi
43943
43944 PTHREAD_LIB=""
43945 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43946 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43947 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43948   echo $ECHO_N "(cached) $ECHO_C" >&6
43949 else
43950   ac_check_lib_save_LIBS=$LIBS
43951 LIBS="-lpthread  $LIBS"
43952 cat >conftest.$ac_ext <<_ACEOF
43953 /* confdefs.h.  */
43954 _ACEOF
43955 cat confdefs.h >>conftest.$ac_ext
43956 cat >>conftest.$ac_ext <<_ACEOF
43957 /* end confdefs.h.  */
43958
43959 /* Override any GCC internal prototype to avoid an error.
43960    Use char because int might match the return type of a GCC
43961    builtin and then its argument prototype would still apply.  */
43962 #ifdef __cplusplus
43963 extern "C"
43964 #endif
43965 char pthread_create ();
43966 int
43967 main ()
43968 {
43969 return pthread_create ();
43970   ;
43971   return 0;
43972 }
43973 _ACEOF
43974 rm -f conftest.$ac_objext conftest$ac_exeext
43975 if { (ac_try="$ac_link"
43976 case "(($ac_try" in
43977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43978   *) ac_try_echo=$ac_try;;
43979 esac
43980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43981   (eval "$ac_link") 2>conftest.er1
43982   ac_status=$?
43983   grep -v '^ *+' conftest.er1 >conftest.err
43984   rm -f conftest.er1
43985   cat conftest.err >&5
43986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987   (exit $ac_status); } && {
43988          test -z "$ac_c_werror_flag" ||
43989          test ! -s conftest.err
43990        } && test -s conftest$ac_exeext &&
43991        $as_test_x conftest$ac_exeext; then
43992   ac_cv_lib_pthread_pthread_create=yes
43993 else
43994   echo "$as_me: failed program was:" >&5
43995 sed 's/^/| /' conftest.$ac_ext >&5
43996
43997         ac_cv_lib_pthread_pthread_create=no
43998 fi
43999
44000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44001       conftest$ac_exeext conftest.$ac_ext
44002 LIBS=$ac_check_lib_save_LIBS
44003 fi
44004 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
44005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
44006 if test $ac_cv_lib_pthread_pthread_create = yes; then
44007   PTHREAD_LIB="-lpthread"
44008 else
44009
44010        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
44011 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
44012 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
44013   echo $ECHO_N "(cached) $ECHO_C" >&6
44014 else
44015   ac_check_lib_save_LIBS=$LIBS
44016 LIBS="-lpthreads  $LIBS"
44017 cat >conftest.$ac_ext <<_ACEOF
44018 /* confdefs.h.  */
44019 _ACEOF
44020 cat confdefs.h >>conftest.$ac_ext
44021 cat >>conftest.$ac_ext <<_ACEOF
44022 /* end confdefs.h.  */
44023
44024 /* Override any GCC internal prototype to avoid an error.
44025    Use char because int might match the return type of a GCC
44026    builtin and then its argument prototype would still apply.  */
44027 #ifdef __cplusplus
44028 extern "C"
44029 #endif
44030 char pthread_create ();
44031 int
44032 main ()
44033 {
44034 return pthread_create ();
44035   ;
44036   return 0;
44037 }
44038 _ACEOF
44039 rm -f conftest.$ac_objext conftest$ac_exeext
44040 if { (ac_try="$ac_link"
44041 case "(($ac_try" in
44042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44043   *) ac_try_echo=$ac_try;;
44044 esac
44045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44046   (eval "$ac_link") 2>conftest.er1
44047   ac_status=$?
44048   grep -v '^ *+' conftest.er1 >conftest.err
44049   rm -f conftest.er1
44050   cat conftest.err >&5
44051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052   (exit $ac_status); } && {
44053          test -z "$ac_c_werror_flag" ||
44054          test ! -s conftest.err
44055        } && test -s conftest$ac_exeext &&
44056        $as_test_x conftest$ac_exeext; then
44057   ac_cv_lib_pthreads_pthread_create=yes
44058 else
44059   echo "$as_me: failed program was:" >&5
44060 sed 's/^/| /' conftest.$ac_ext >&5
44061
44062         ac_cv_lib_pthreads_pthread_create=no
44063 fi
44064
44065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44066       conftest$ac_exeext conftest.$ac_ext
44067 LIBS=$ac_check_lib_save_LIBS
44068 fi
44069 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
44070 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
44071 if test $ac_cv_lib_pthreads_pthread_create = yes; then
44072   PTHREAD_LIB="-lpthreads"
44073 else
44074
44075               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
44076 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
44077 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
44078   echo $ECHO_N "(cached) $ECHO_C" >&6
44079 else
44080   ac_check_lib_save_LIBS=$LIBS
44081 LIBS="-lc_r  $LIBS"
44082 cat >conftest.$ac_ext <<_ACEOF
44083 /* confdefs.h.  */
44084 _ACEOF
44085 cat confdefs.h >>conftest.$ac_ext
44086 cat >>conftest.$ac_ext <<_ACEOF
44087 /* end confdefs.h.  */
44088
44089 /* Override any GCC internal prototype to avoid an error.
44090    Use char because int might match the return type of a GCC
44091    builtin and then its argument prototype would still apply.  */
44092 #ifdef __cplusplus
44093 extern "C"
44094 #endif
44095 char pthread_create ();
44096 int
44097 main ()
44098 {
44099 return pthread_create ();
44100   ;
44101   return 0;
44102 }
44103 _ACEOF
44104 rm -f conftest.$ac_objext conftest$ac_exeext
44105 if { (ac_try="$ac_link"
44106 case "(($ac_try" in
44107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44108   *) ac_try_echo=$ac_try;;
44109 esac
44110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44111   (eval "$ac_link") 2>conftest.er1
44112   ac_status=$?
44113   grep -v '^ *+' conftest.er1 >conftest.err
44114   rm -f conftest.er1
44115   cat conftest.err >&5
44116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44117   (exit $ac_status); } && {
44118          test -z "$ac_c_werror_flag" ||
44119          test ! -s conftest.err
44120        } && test -s conftest$ac_exeext &&
44121        $as_test_x conftest$ac_exeext; then
44122   ac_cv_lib_c_r_pthread_create=yes
44123 else
44124   echo "$as_me: failed program was:" >&5
44125 sed 's/^/| /' conftest.$ac_ext >&5
44126
44127         ac_cv_lib_c_r_pthread_create=no
44128 fi
44129
44130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44131       conftest$ac_exeext conftest.$ac_ext
44132 LIBS=$ac_check_lib_save_LIBS
44133 fi
44134 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
44135 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
44136 if test $ac_cv_lib_c_r_pthread_create = yes; then
44137   PTHREAD_LIB="-lc_r"
44138 else
44139
44140                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
44141 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
44142 if test "${ac_cv_func_pthread_create+set}" = set; then
44143   echo $ECHO_N "(cached) $ECHO_C" >&6
44144 else
44145   cat >conftest.$ac_ext <<_ACEOF
44146 /* confdefs.h.  */
44147 _ACEOF
44148 cat confdefs.h >>conftest.$ac_ext
44149 cat >>conftest.$ac_ext <<_ACEOF
44150 /* end confdefs.h.  */
44151 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
44152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44153 #define pthread_create innocuous_pthread_create
44154
44155 /* System header to define __stub macros and hopefully few prototypes,
44156     which can conflict with char pthread_create (); below.
44157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44158     <limits.h> exists even on freestanding compilers.  */
44159
44160 #ifdef __STDC__
44161 # include <limits.h>
44162 #else
44163 # include <assert.h>
44164 #endif
44165
44166 #undef pthread_create
44167
44168 /* Override any GCC internal prototype to avoid an error.
44169    Use char because int might match the return type of a GCC
44170    builtin and then its argument prototype would still apply.  */
44171 #ifdef __cplusplus
44172 extern "C"
44173 #endif
44174 char pthread_create ();
44175 /* The GNU C library defines this for functions which it implements
44176     to always fail with ENOSYS.  Some functions are actually named
44177     something starting with __ and the normal name is an alias.  */
44178 #if defined __stub_pthread_create || defined __stub___pthread_create
44179 choke me
44180 #endif
44181
44182 int
44183 main ()
44184 {
44185 return pthread_create ();
44186   ;
44187   return 0;
44188 }
44189 _ACEOF
44190 rm -f conftest.$ac_objext conftest$ac_exeext
44191 if { (ac_try="$ac_link"
44192 case "(($ac_try" in
44193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44194   *) ac_try_echo=$ac_try;;
44195 esac
44196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44197   (eval "$ac_link") 2>conftest.er1
44198   ac_status=$?
44199   grep -v '^ *+' conftest.er1 >conftest.err
44200   rm -f conftest.er1
44201   cat conftest.err >&5
44202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44203   (exit $ac_status); } && {
44204          test -z "$ac_c_werror_flag" ||
44205          test ! -s conftest.err
44206        } && test -s conftest$ac_exeext &&
44207        $as_test_x conftest$ac_exeext; then
44208   ac_cv_func_pthread_create=yes
44209 else
44210   echo "$as_me: failed program was:" >&5
44211 sed 's/^/| /' conftest.$ac_ext >&5
44212
44213         ac_cv_func_pthread_create=no
44214 fi
44215
44216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44217       conftest$ac_exeext conftest.$ac_ext
44218 fi
44219 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
44220 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
44221
44222
44223
44224 fi
44225
44226
44227
44228 fi
44229
44230
44231
44232 fi
44233
44234
44235
44236
44237 for ac_header in sys/prctl.h sys/capability.h
44238 do
44239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44241   { echo "$as_me:$LINENO: checking for $ac_header" >&5
44242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44244   echo $ECHO_N "(cached) $ECHO_C" >&6
44245 fi
44246 ac_res=`eval echo '${'$as_ac_Header'}'`
44247                { echo "$as_me:$LINENO: result: $ac_res" >&5
44248 echo "${ECHO_T}$ac_res" >&6; }
44249 else
44250   # Is the header compilable?
44251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44253 cat >conftest.$ac_ext <<_ACEOF
44254 /* confdefs.h.  */
44255 _ACEOF
44256 cat confdefs.h >>conftest.$ac_ext
44257 cat >>conftest.$ac_ext <<_ACEOF
44258 /* end confdefs.h.  */
44259 $ac_includes_default
44260 #include <$ac_header>
44261 _ACEOF
44262 rm -f conftest.$ac_objext
44263 if { (ac_try="$ac_compile"
44264 case "(($ac_try" in
44265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44266   *) ac_try_echo=$ac_try;;
44267 esac
44268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44269   (eval "$ac_compile") 2>conftest.er1
44270   ac_status=$?
44271   grep -v '^ *+' conftest.er1 >conftest.err
44272   rm -f conftest.er1
44273   cat conftest.err >&5
44274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44275   (exit $ac_status); } && {
44276          test -z "$ac_c_werror_flag" ||
44277          test ! -s conftest.err
44278        } && test -s conftest.$ac_objext; then
44279   ac_header_compiler=yes
44280 else
44281   echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44283
44284         ac_header_compiler=no
44285 fi
44286
44287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44289 echo "${ECHO_T}$ac_header_compiler" >&6; }
44290
44291 # Is the header present?
44292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44294 cat >conftest.$ac_ext <<_ACEOF
44295 /* confdefs.h.  */
44296 _ACEOF
44297 cat confdefs.h >>conftest.$ac_ext
44298 cat >>conftest.$ac_ext <<_ACEOF
44299 /* end confdefs.h.  */
44300 #include <$ac_header>
44301 _ACEOF
44302 if { (ac_try="$ac_cpp conftest.$ac_ext"
44303 case "(($ac_try" in
44304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44305   *) ac_try_echo=$ac_try;;
44306 esac
44307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44309   ac_status=$?
44310   grep -v '^ *+' conftest.er1 >conftest.err
44311   rm -f conftest.er1
44312   cat conftest.err >&5
44313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44314   (exit $ac_status); } >/dev/null && {
44315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44316          test ! -s conftest.err
44317        }; then
44318   ac_header_preproc=yes
44319 else
44320   echo "$as_me: failed program was:" >&5
44321 sed 's/^/| /' conftest.$ac_ext >&5
44322
44323   ac_header_preproc=no
44324 fi
44325
44326 rm -f conftest.err conftest.$ac_ext
44327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44328 echo "${ECHO_T}$ac_header_preproc" >&6; }
44329
44330 # So?  What about this header?
44331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44332   yes:no: )
44333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44337     ac_header_preproc=yes
44338     ;;
44339   no:yes:* )
44340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44352
44353     ;;
44354 esac
44355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44358   echo $ECHO_N "(cached) $ECHO_C" >&6
44359 else
44360   eval "$as_ac_Header=\$ac_header_preproc"
44361 fi
44362 ac_res=`eval echo '${'$as_ac_Header'}'`
44363                { echo "$as_me:$LINENO: result: $ac_res" >&5
44364 echo "${ECHO_T}$ac_res" >&6; }
44365
44366 fi
44367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44368   cat >>confdefs.h <<_ACEOF
44369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44370 _ACEOF
44371
44372 fi
44373
44374 done
44375
44376
44377
44378 for ac_func in prctl setreuid
44379 do
44380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44384   echo $ECHO_N "(cached) $ECHO_C" >&6
44385 else
44386   cat >conftest.$ac_ext <<_ACEOF
44387 /* confdefs.h.  */
44388 _ACEOF
44389 cat confdefs.h >>conftest.$ac_ext
44390 cat >>conftest.$ac_ext <<_ACEOF
44391 /* end confdefs.h.  */
44392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44394 #define $ac_func innocuous_$ac_func
44395
44396 /* System header to define __stub macros and hopefully few prototypes,
44397     which can conflict with char $ac_func (); below.
44398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44399     <limits.h> exists even on freestanding compilers.  */
44400
44401 #ifdef __STDC__
44402 # include <limits.h>
44403 #else
44404 # include <assert.h>
44405 #endif
44406
44407 #undef $ac_func
44408
44409 /* Override any GCC internal prototype to avoid an error.
44410    Use char because int might match the return type of a GCC
44411    builtin and then its argument prototype would still apply.  */
44412 #ifdef __cplusplus
44413 extern "C"
44414 #endif
44415 char $ac_func ();
44416 /* The GNU C library defines this for functions which it implements
44417     to always fail with ENOSYS.  Some functions are actually named
44418     something starting with __ and the normal name is an alias.  */
44419 #if defined __stub_$ac_func || defined __stub___$ac_func
44420 choke me
44421 #endif
44422
44423 int
44424 main ()
44425 {
44426 return $ac_func ();
44427   ;
44428   return 0;
44429 }
44430 _ACEOF
44431 rm -f conftest.$ac_objext conftest$ac_exeext
44432 if { (ac_try="$ac_link"
44433 case "(($ac_try" in
44434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44435   *) ac_try_echo=$ac_try;;
44436 esac
44437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44438   (eval "$ac_link") 2>conftest.er1
44439   ac_status=$?
44440   grep -v '^ *+' conftest.er1 >conftest.err
44441   rm -f conftest.er1
44442   cat conftest.err >&5
44443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444   (exit $ac_status); } && {
44445          test -z "$ac_c_werror_flag" ||
44446          test ! -s conftest.err
44447        } && test -s conftest$ac_exeext &&
44448        $as_test_x conftest$ac_exeext; then
44449   eval "$as_ac_var=yes"
44450 else
44451   echo "$as_me: failed program was:" >&5
44452 sed 's/^/| /' conftest.$ac_ext >&5
44453
44454         eval "$as_ac_var=no"
44455 fi
44456
44457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44458       conftest$ac_exeext conftest.$ac_ext
44459 fi
44460 ac_res=`eval echo '${'$as_ac_var'}'`
44461                { echo "$as_me:$LINENO: result: $ac_res" >&5
44462 echo "${ECHO_T}$ac_res" >&6; }
44463 if test `eval echo '${'$as_ac_var'}'` = yes; then
44464   cat >>confdefs.h <<_ACEOF
44465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44466 _ACEOF
44467
44468 fi
44469 done
44470
44471 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
44472 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
44473 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
44474   echo $ECHO_N "(cached) $ECHO_C" >&6
44475 else
44476   ac_check_lib_save_LIBS=$LIBS
44477 LIBS="-lcap  $LIBS"
44478 cat >conftest.$ac_ext <<_ACEOF
44479 /* confdefs.h.  */
44480 _ACEOF
44481 cat confdefs.h >>conftest.$ac_ext
44482 cat >>conftest.$ac_ext <<_ACEOF
44483 /* end confdefs.h.  */
44484
44485 /* Override any GCC internal prototype to avoid an error.
44486    Use char because int might match the return type of a GCC
44487    builtin and then its argument prototype would still apply.  */
44488 #ifdef __cplusplus
44489 extern "C"
44490 #endif
44491 char cap_set_proc ();
44492 int
44493 main ()
44494 {
44495 return cap_set_proc ();
44496   ;
44497   return 0;
44498 }
44499 _ACEOF
44500 rm -f conftest.$ac_objext conftest$ac_exeext
44501 if { (ac_try="$ac_link"
44502 case "(($ac_try" in
44503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44504   *) ac_try_echo=$ac_try;;
44505 esac
44506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44507   (eval "$ac_link") 2>conftest.er1
44508   ac_status=$?
44509   grep -v '^ *+' conftest.er1 >conftest.err
44510   rm -f conftest.er1
44511   cat conftest.err >&5
44512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44513   (exit $ac_status); } && {
44514          test -z "$ac_c_werror_flag" ||
44515          test ! -s conftest.err
44516        } && test -s conftest$ac_exeext &&
44517        $as_test_x conftest$ac_exeext; then
44518   ac_cv_lib_cap_cap_set_proc=yes
44519 else
44520   echo "$as_me: failed program was:" >&5
44521 sed 's/^/| /' conftest.$ac_ext >&5
44522
44523         ac_cv_lib_cap_cap_set_proc=no
44524 fi
44525
44526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44527       conftest$ac_exeext conftest.$ac_ext
44528 LIBS=$ac_check_lib_save_LIBS
44529 fi
44530 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
44531 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
44532 if test $ac_cv_lib_cap_cap_set_proc = yes; then
44533   CAP_LIBS="-lcap"
44534 else
44535   CAP_LIBS=
44536 fi
44537
44538 if test x$CAP_LIBS = x-lcap; then
44539
44540 cat >>confdefs.h <<\_ACEOF
44541 #define HAVE_LIBCAP 1
44542 _ACEOF
44543
44544 fi
44545
44546
44547
44548 cat >>confdefs.h <<\_ACEOF
44549 #define FDLIBS 1
44550 _ACEOF
44551
44552
44553 CFLAGS=${CFLAGS--O}
44554
44555 if test x$have_gcc = xyes ; then
44556    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44557    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44558 fi
44559 LDFLAGS=${LDFLAGS--O}
44560 DB_LIBS="${SQL_LFLAGS}"
44561 CPPFLAGS="$CPPFLAGS"
44562 CFLAGS="$CFLAGS"
44563
44564
44565
44566
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579 OBJLIST=
44580
44581
44582 lld="lld"
44583 llu="llu"
44584
44585 WCFLAGS=
44586 WLDFLAGS=
44587
44588 PFILES="platforms/Makefile"
44589 PSCMD="ps -e"
44590 WIN32=
44591 MACOSX=
44592
44593 hostname=`uname -n | cut -d '.' -f 1`
44594 if test x${hostname} = x ; then
44595    hostname="localhost"
44596 fi
44597 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44598 if test ! $? = 0; then
44599   hostname="localhost"
44600 fi
44601
44602 case "$DISTNAME" in
44603 aix)
44604    DISTVER=`uname -r`
44605    PSCMD="ps -e -o pid,comm"
44606    PFILES="${PFILES} \
44607       platforms/aix/Makefile"
44608    TAPEDRIVE="/dev/rmt0.1"
44609   ;;
44610 alpha)
44611    DISTVER=`uname -r`
44612    PTHREAD_LIB="-lpthread -lexc"
44613    if test "${CC}" = "gcc" ; then
44614       lld="lld"
44615       llu="llu"
44616    else
44617       lld="ld"
44618       llu="lu"
44619    fi
44620    TAPEDRIVE="/dev/nrmt0"
44621   ;;
44622 bsdi)
44623    DISTVER=`uname -a |awk '{print $3}'`
44624    TAPEDRIVE="/dev/nrmt0"
44625    PTHREAD_LIB="-pthread"
44626    CFLAGS="${CFLAGS} -pthread"
44627    PSCMD="ps -ax -o pid,command"
44628    lld="qd"
44629    llu="qu"
44630    PFILES="${PFILES} \
44631        platforms/bsdi/Makefile \
44632        platforms/bsdi/bacula-fd \
44633        platforms/bsdi/bacula-sd \
44634        platforms/bsdi/bacula-dir"
44635    largefile_support="yes"
44636   ;;
44637 cygwin)
44638    DISTVER=`uname -a |awk '{print $3}'`
44639    TAPEDRIVE="/dev/nrst0"
44640    WIN32=win32
44641    WCFLAGS="-mwindows"
44642    WLDFLAGS="-mwindows"
44643   ;;
44644 darwin)
44645    DISTVER=`uname -r`
44646    TAPEDRIVE="/dev/nst0"
44647    PSCMD="ps -e -o pid,command"
44648    MACOSX=macosx
44649    PFILES="${PFILES} \
44650       platforms/darwin/Makefile"
44651   ;;
44652 osx)
44653    DISTVER=`uname -r`
44654    TAPEDRIVE="/dev/nst0"
44655    PSCMD="ps -e -o pid,command"
44656    MACOSX=macosx
44657    PFILES="${PFILES} \
44658       platforms/osx/Makefile"
44659   ;;
44660 debian)
44661    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44662       DISTNAME="ubuntu"
44663    fi
44664    DISTVER=`cat /etc/debian_version`
44665    if test -f /etc/lsb-release ; then
44666       . /etc/lsb-release
44667       if test "x$DISTRIB_ID" != "x" ; then
44668          DISTNAME=$DISTRIB_ID
44669       fi
44670       if test "x$DISTRIB_RELEASE" != "x" ; then
44671          DISTVER=$DISTRIB_RELEASE
44672       fi
44673    fi
44674    if test "$DISTNAME" = "Ubuntu" ; then
44675       DISTNAME="ubuntu"
44676    fi
44677    TAPEDRIVE="/dev/nst0"
44678    PSCMD="ps -e -o pid,command"
44679    if test "$DISTNAME" = "ubuntu" ; then
44680       PFILES="${PFILES} \
44681          platforms/ubuntu/Makefile \
44682          platforms/ubuntu/bacula-fd \
44683          platforms/ubuntu/bacula-sd \
44684          platforms/ubuntu/bacula-dir"
44685    else
44686       PFILES="${PFILES} \
44687          platforms/debian/Makefile \
44688          platforms/debian/bacula-fd \
44689          platforms/debian/bacula-sd \
44690          platforms/debian/bacula-dir"
44691    fi
44692   ;;
44693 freebsd)
44694    DISTVER=`uname -a |awk '{print $3}'`
44695    VER=`echo $DISTVER | cut -c 1`
44696    if test x$VER = x4 ; then
44697       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44698       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44699    fi
44700    lld="qd"
44701    llu="qu"
44702    TAPEDRIVE="/dev/nrsa0"
44703    PSCMD="ps -ax -o pid,command"
44704    PFILES="${PFILES} \
44705        platforms/freebsd/Makefile \
44706        platforms/freebsd/bacula-fd \
44707        platforms/freebsd/bacula-sd \
44708        platforms/freebsd/bacula-dir"
44709    largefile_support="yes"
44710   ;;
44711 hpux)
44712    PSCMD="UNIX95=1; ps -e -o pid,comm"
44713    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44714    DISTVER=`uname -r`
44715    TAPEDRIVE="/dev/rmt/0hnb"
44716    PTHREAD_LIB="-lpthread"
44717    cat >>confdefs.h <<\_ACEOF
44718 #define _INCLUDE_LONGLONG 1
44719 _ACEOF
44720
44721   ;;
44722 irix)
44723    DISTVER=`uname -r`
44724    TAPEDRIVE="/dev/rmt/0cbn"
44725    PSCMD="ps -e -o pid,comm"
44726    PFILES="${PFILES} \
44727        platforms/irix/Makefile \
44728        platforms/irix/bacula-fd \
44729        platforms/irix/bacula-sd \
44730        platforms/irix/bacula-dir"
44731   ;;
44732 netbsd)
44733    DISTVER=`uname -a |awk '{print $3}'`
44734    lld="qd"
44735    llu="qu"
44736    TAPEDRIVE="/dev/nrst0"
44737    PSCMD="ps -ax -o pid,command"
44738    PTHREAD_LIB="-pthread"
44739    CFLAGS="${CFLAGS} -pthread"
44740   ;;
44741 openbsd)
44742    DISTVER=`uname -a |awk '{print $3}'`
44743    lld="qd"
44744    llu="qu"
44745    TAPEDRIVE="/dev/nrst0"
44746    PSCMD="ps -ax -o pid,command"
44747    PTHREAD_LIB="-pthread"
44748    CFLAGS="${CFLAGS} -pthread"
44749    PFILES="${PFILES} \
44750        platforms/openbsd/Makefile \
44751        platforms/openbsd/bacula-fd \
44752        platforms/openbsd/bacula-sd \
44753        platforms/openbsd/bacula-dir"
44754   ;;
44755 redhat)
44756    if test -f /etc/whitebox-release ; then
44757       f=/etc/whitebox-release
44758    else
44759       f=/etc/redhat-release
44760    fi
44761    if test `cat $f | grep release |\
44762          cut -f 3 -d ' '`x = "Enterprise"x ; then
44763       DISTVER="Enterprise "`cat $f | grep release |\
44764           cut -f 6 -d ' '`
44765    else
44766        DISTVER=`cat /etc/redhat-release | grep release |\
44767            cut -f 5 -d ' '`
44768    fi
44769    TAPEDRIVE="/dev/nst0"
44770    PSCMD="ps -e -o pid,command"
44771    PFILES="${PFILES} \
44772        platforms/redhat/Makefile \
44773        platforms/redhat/bacula-fd \
44774        platforms/redhat/bacula-sd \
44775        platforms/redhat/bacula-dir
44776        "
44777   ;;
44778 mandrake)
44779    DISTVER=`cat /etc/mandrake-release | grep release |\
44780       cut -f 5 -d ' '`
44781    TAPEDRIVE="/dev/nst0"
44782    PSCMD="ps -e -o pid,command"
44783    PFILES="${PFILES} \
44784        platforms/mandrake/Makefile \
44785        platforms/mandrake/bacula-fd \
44786        platforms/mandrake/bacula-sd \
44787        platforms/mandrake/bacula-dir \
44788        "
44789   ;;
44790 gentoo)
44791    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44792    TAPEDRIVE="/dev/nst0"
44793    PSCMD="ps -e -o pid,command"
44794    PFILES="${PFILES} \
44795        platforms/gentoo/Makefile \
44796     platforms/gentoo/bacula-init \
44797        platforms/gentoo/bacula-fd \
44798        platforms/gentoo/bacula-sd \
44799        platforms/gentoo/bacula-dir"
44800   ;;
44801 slackware)
44802    DISTVER=`cat /etc/slackware-version`
44803    TAPEDRIVE="/dev/nst0"
44804    PSCMD="ps -e -o pid,command"
44805    PFILES="${PFILES} \
44806        platforms/slackware/Makefile \
44807        platforms/slackware/rc.bacula-fd \
44808        platforms/slackware/rc.bacula-sd \
44809        platforms/slackware/rc.bacula-dir\
44810        platforms/slackware/functions.bacula"
44811   ;;
44812 solaris)
44813    DISTVER=`uname -r`
44814    TAPEDRIVE="/dev/rmt/0cbn"
44815    PSCMD="ps -e -o pid,comm"
44816    PFILES="${PFILES} \
44817        platforms/solaris/Makefile \
44818        platforms/solaris/bacula-fd \
44819        platforms/solaris/bacula-sd \
44820        platforms/solaris/bacula-dir"
44821    if test x$DISTVER = x5.6 ; then
44822        cat >>confdefs.h <<\_ACEOF
44823 #define HAVE_OLD_SOCKOPT 1
44824 _ACEOF
44825
44826    fi
44827    LIBS="$LIBS -lresolv -lrt"
44828   ;;
44829 suse)
44830    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44831        cut -f 3 -d ' '`
44832    TAPEDRIVE="/dev/nst0"
44833    PSCMD="ps -e -o pid,command"
44834    PFILES="${PFILES} \
44835        platforms/suse/Makefile \
44836        platforms/suse/bacula-fd \
44837        platforms/suse/bacula-sd \
44838        platforms/suse/bacula-dir \
44839        platforms/suse/bacula"
44840   ;;
44841 suse5)
44842    DISTNAME=suse
44843    DISTVER=5.x
44844    TAPEDRIVE="/dev/nst0"
44845    PSCMD="ps -e -o pid,command"
44846    PFILES="${PFILES} \
44847        platforms/suse/Makefile \
44848        platforms/suse/bacula-fd \
44849        platforms/suse/bacula-sd \
44850        platforms/suse/bacula-dir"
44851   ;;
44852 unknown)
44853    DISTVER=unknown
44854    TAPEDRIVE="/dev/nst0"
44855   ;;
44856 *)
44857   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44858   ;;
44859 esac
44860
44861
44862
44863 LIBS="$PTHREAD_LIB $LIBS"
44864
44865 cat >>confdefs.h <<_ACEOF
44866 #define lld "$lld"
44867 _ACEOF
44868
44869 cat >>confdefs.h <<_ACEOF
44870 #define llu "$llu"
44871 _ACEOF
44872
44873
44874
44875
44876
44877
44878
44879
44880 MCOMMON=./autoconf/Make.common
44881
44882
44883 if test "x${subsysdir}" = "x${sbindir}" ; then
44884    echo " "
44885    echo " "
44886    echo "You have set both --sbindir and --with-subsys-dir"
44887    echo "  equal to: ${subsysdir} "
44888    echo "This is not permitted. Please reconfigure."
44889    echo " "
44890    echo "Aborting configuration ..."
44891    echo " "
44892    echo " "
44893    exit 1
44894 fi
44895
44896 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/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.pl 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_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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql 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 src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
44897
44898 ac_config_commands="$ac_config_commands default"
44899
44900 cat >confcache <<\_ACEOF
44901 # This file is a shell script that caches the results of configure
44902 # tests run on this system so they can be shared between configure
44903 # scripts and configure runs, see configure's option --config-cache.
44904 # It is not useful on other systems.  If it contains results you don't
44905 # want to keep, you may remove or edit it.
44906 #
44907 # config.status only pays attention to the cache file if you give it
44908 # the --recheck option to rerun configure.
44909 #
44910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44912 # following values.
44913
44914 _ACEOF
44915
44916 # The following way of writing the cache mishandles newlines in values,
44917 # but we know of no workaround that is simple, portable, and efficient.
44918 # So, we kill variables containing newlines.
44919 # Ultrix sh set writes to stderr and can't be redirected directly,
44920 # and sets the high bit in the cache file unless we assign to the vars.
44921 (
44922   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44923     eval ac_val=\$$ac_var
44924     case $ac_val in #(
44925     *${as_nl}*)
44926       case $ac_var in #(
44927       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44928 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44929       esac
44930       case $ac_var in #(
44931       _ | IFS | as_nl) ;; #(
44932       *) $as_unset $ac_var ;;
44933       esac ;;
44934     esac
44935   done
44936
44937   (set) 2>&1 |
44938     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44939     *${as_nl}ac_space=\ *)
44940       # `set' does not quote correctly, so add quotes (double-quote
44941       # substitution turns \\\\ into \\, and sed turns \\ into \).
44942       sed -n \
44943         "s/'/'\\\\''/g;
44944           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44945       ;; #(
44946     *)
44947       # `set' quotes correctly as required by POSIX, so do not add quotes.
44948       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44949       ;;
44950     esac |
44951     sort
44952 ) |
44953   sed '
44954      /^ac_cv_env_/b end
44955      t clear
44956      :clear
44957      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44958      t end
44959      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44960      :end' >>confcache
44961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44962   if test -w "$cache_file"; then
44963     test "x$cache_file" != "x/dev/null" &&
44964       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44965 echo "$as_me: updating cache $cache_file" >&6;}
44966     cat confcache >$cache_file
44967   else
44968     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44969 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44970   fi
44971 fi
44972 rm -f confcache
44973
44974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44975 # Let make expand exec_prefix.
44976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44977
44978 DEFS=-DHAVE_CONFIG_H
44979
44980 ac_libobjs=
44981 ac_ltlibobjs=
44982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44983   # 1. Remove the extension, and $U if already installed.
44984   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44985   ac_i=`echo "$ac_i" | sed "$ac_script"`
44986   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44987   #    will be set to the directory where LIBOBJS objects are built.
44988   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44989   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44990 done
44991 LIBOBJS=$ac_libobjs
44992
44993 LTLIBOBJS=$ac_ltlibobjs
44994
44995
44996
44997 : ${CONFIG_STATUS=./config.status}
44998 ac_clean_files_save=$ac_clean_files
44999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45000 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45001 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45002 cat >$CONFIG_STATUS <<_ACEOF
45003 #! $SHELL
45004 # Generated by $as_me.
45005 # Run this file to recreate the current configuration.
45006 # Compiler output produced by configure, useful for debugging
45007 # configure, is in config.log if it exists.
45008
45009 debug=false
45010 ac_cs_recheck=false
45011 ac_cs_silent=false
45012 SHELL=\${CONFIG_SHELL-$SHELL}
45013 _ACEOF
45014
45015 cat >>$CONFIG_STATUS <<\_ACEOF
45016 ## --------------------- ##
45017 ## M4sh Initialization.  ##
45018 ## --------------------- ##
45019
45020 # Be more Bourne compatible
45021 DUALCASE=1; export DUALCASE # for MKS sh
45022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45023   emulate sh
45024   NULLCMD=:
45025   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45026   # is contrary to our usage.  Disable this feature.
45027   alias -g '${1+"$@"}'='"$@"'
45028   setopt NO_GLOB_SUBST
45029 else
45030   case `(set -o) 2>/dev/null` in
45031   *posix*) set -o posix ;;
45032 esac
45033
45034 fi
45035
45036
45037
45038
45039 # PATH needs CR
45040 # Avoid depending upon Character Ranges.
45041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45044 as_cr_digits='0123456789'
45045 as_cr_alnum=$as_cr_Letters$as_cr_digits
45046
45047 # The user is always right.
45048 if test "${PATH_SEPARATOR+set}" != set; then
45049   echo "#! /bin/sh" >conf$$.sh
45050   echo  "exit 0"   >>conf$$.sh
45051   chmod +x conf$$.sh
45052   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45053     PATH_SEPARATOR=';'
45054   else
45055     PATH_SEPARATOR=:
45056   fi
45057   rm -f conf$$.sh
45058 fi
45059
45060 # Support unset when possible.
45061 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45062   as_unset=unset
45063 else
45064   as_unset=false
45065 fi
45066
45067
45068 # IFS
45069 # We need space, tab and new line, in precisely that order.  Quoting is
45070 # there to prevent editors from complaining about space-tab.
45071 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45072 # splitting by setting IFS to empty value.)
45073 as_nl='
45074 '
45075 IFS=" ""        $as_nl"
45076
45077 # Find who we are.  Look in the path if we contain no directory separator.
45078 case $0 in
45079   *[\\/]* ) as_myself=$0 ;;
45080   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45081 for as_dir in $PATH
45082 do
45083   IFS=$as_save_IFS
45084   test -z "$as_dir" && as_dir=.
45085   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45086 done
45087 IFS=$as_save_IFS
45088
45089      ;;
45090 esac
45091 # We did not find ourselves, most probably we were run as `sh COMMAND'
45092 # in which case we are not to be found in the path.
45093 if test "x$as_myself" = x; then
45094   as_myself=$0
45095 fi
45096 if test ! -f "$as_myself"; then
45097   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45098   { (exit 1); exit 1; }
45099 fi
45100
45101 # Work around bugs in pre-3.0 UWIN ksh.
45102 for as_var in ENV MAIL MAILPATH
45103 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45104 done
45105 PS1='$ '
45106 PS2='> '
45107 PS4='+ '
45108
45109 # NLS nuisances.
45110 for as_var in \
45111   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45112   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45113   LC_TELEPHONE LC_TIME
45114 do
45115   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45116     eval $as_var=C; export $as_var
45117   else
45118     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
45119   fi
45120 done
45121
45122 # Required to use basename.
45123 if expr a : '\(a\)' >/dev/null 2>&1 &&
45124    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45125   as_expr=expr
45126 else
45127   as_expr=false
45128 fi
45129
45130 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45131   as_basename=basename
45132 else
45133   as_basename=false
45134 fi
45135
45136
45137 # Name of the executable.
45138 as_me=`$as_basename -- "$0" ||
45139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45140          X"$0" : 'X\(//\)$' \| \
45141          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45142 echo X/"$0" |
45143     sed '/^.*\/\([^/][^/]*\)\/*$/{
45144             s//\1/
45145             q
45146           }
45147           /^X\/\(\/\/\)$/{
45148             s//\1/
45149             q
45150           }
45151           /^X\/\(\/\).*/{
45152             s//\1/
45153             q
45154           }
45155           s/.*/./; q'`
45156
45157 # CDPATH.
45158 $as_unset CDPATH
45159
45160
45161
45162   as_lineno_1=$LINENO
45163   as_lineno_2=$LINENO
45164   test "x$as_lineno_1" != "x$as_lineno_2" &&
45165   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
45166
45167   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45168   # uniformly replaced by the line number.  The first 'sed' inserts a
45169   # line-number line after each line using $LINENO; the second 'sed'
45170   # does the real work.  The second script uses 'N' to pair each
45171   # line-number line with the line containing $LINENO, and appends
45172   # trailing '-' during substitution so that $LINENO is not a special
45173   # case at line end.
45174   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45175   # scripts with optimization help from Paolo Bonzini.  Blame Lee
45176   # E. McMahon (1931-1989) for sed's syntax.  :-)
45177   sed -n '
45178     p
45179     /[$]LINENO/=
45180   ' <$as_myself |
45181     sed '
45182       s/[$]LINENO.*/&-/
45183       t lineno
45184       b
45185       :lineno
45186       N
45187       :loop
45188       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45189       t loop
45190       s/-\n.*//
45191     ' >$as_me.lineno &&
45192   chmod +x "$as_me.lineno" ||
45193     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
45194    { (exit 1); exit 1; }; }
45195
45196   # Don't try to exec as it changes $[0], causing all sort of problems
45197   # (the dirname of $[0] is not the place where we might find the
45198   # original and so on.  Autoconf is especially sensitive to this).
45199   . "./$as_me.lineno"
45200   # Exit status is that of the last command.
45201   exit
45202 }
45203
45204
45205 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45206   as_dirname=dirname
45207 else
45208   as_dirname=false
45209 fi
45210
45211 ECHO_C= ECHO_N= ECHO_T=
45212 case `echo -n x` in
45213 -n*)
45214   case `echo 'x\c'` in
45215   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45216   *)   ECHO_C='\c';;
45217   esac;;
45218 *)
45219   ECHO_N='-n';;
45220 esac
45221
45222 if expr a : '\(a\)' >/dev/null 2>&1 &&
45223    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45224   as_expr=expr
45225 else
45226   as_expr=false
45227 fi
45228
45229 rm -f conf$$ conf$$.exe conf$$.file
45230 if test -d conf$$.dir; then
45231   rm -f conf$$.dir/conf$$.file
45232 else
45233   rm -f conf$$.dir
45234   mkdir conf$$.dir
45235 fi
45236 echo >conf$$.file
45237 if ln -s conf$$.file conf$$ 2>/dev/null; then
45238   as_ln_s='ln -s'
45239   # ... but there are two gotchas:
45240   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45241   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45242   # In both cases, we have to default to `cp -p'.
45243   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45244     as_ln_s='cp -p'
45245 elif ln conf$$.file conf$$ 2>/dev/null; then
45246   as_ln_s=ln
45247 else
45248   as_ln_s='cp -p'
45249 fi
45250 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45251 rmdir conf$$.dir 2>/dev/null
45252
45253 if mkdir -p . 2>/dev/null; then
45254   as_mkdir_p=:
45255 else
45256   test -d ./-p && rmdir ./-p
45257   as_mkdir_p=false
45258 fi
45259
45260 if test -x / >/dev/null 2>&1; then
45261   as_test_x='test -x'
45262 else
45263   if ls -dL / >/dev/null 2>&1; then
45264     as_ls_L_option=L
45265   else
45266     as_ls_L_option=
45267   fi
45268   as_test_x='
45269     eval sh -c '\''
45270       if test -d "$1"; then
45271         test -d "$1/.";
45272       else
45273         case $1 in
45274         -*)set "./$1";;
45275         esac;
45276         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
45277         ???[sx]*):;;*)false;;esac;fi
45278     '\'' sh
45279   '
45280 fi
45281 as_executable_p=$as_test_x
45282
45283 # Sed expression to map a string onto a valid CPP name.
45284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45285
45286 # Sed expression to map a string onto a valid variable name.
45287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45288
45289
45290 exec 6>&1
45291
45292 # Save the log message, to keep $[0] and so on meaningful, and to
45293 # report actual input values of CONFIG_FILES etc. instead of their
45294 # values after options handling.
45295 ac_log="
45296 This file was extended by $as_me, which was
45297 generated by GNU Autoconf 2.61.  Invocation command line was
45298
45299   CONFIG_FILES    = $CONFIG_FILES
45300   CONFIG_HEADERS  = $CONFIG_HEADERS
45301   CONFIG_LINKS    = $CONFIG_LINKS
45302   CONFIG_COMMANDS = $CONFIG_COMMANDS
45303   $ $0 $@
45304
45305 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45306 "
45307
45308 _ACEOF
45309
45310 cat >>$CONFIG_STATUS <<_ACEOF
45311 # Files that config.status was made for.
45312 config_files="$ac_config_files"
45313 config_headers="$ac_config_headers"
45314 config_commands="$ac_config_commands"
45315
45316 _ACEOF
45317
45318 cat >>$CONFIG_STATUS <<\_ACEOF
45319 ac_cs_usage="\
45320 \`$as_me' instantiates files from templates according to the
45321 current configuration.
45322
45323 Usage: $0 [OPTIONS] [FILE]...
45324
45325   -h, --help       print this help, then exit
45326   -V, --version    print version number and configuration settings, then exit
45327   -q, --quiet      do not print progress messages
45328   -d, --debug      don't remove temporary files
45329       --recheck    update $as_me by reconfiguring in the same conditions
45330   --file=FILE[:TEMPLATE]
45331                    instantiate the configuration file FILE
45332   --header=FILE[:TEMPLATE]
45333                    instantiate the configuration header FILE
45334
45335 Configuration files:
45336 $config_files
45337
45338 Configuration headers:
45339 $config_headers
45340
45341 Configuration commands:
45342 $config_commands
45343
45344 Report bugs to <bug-autoconf@gnu.org>."
45345
45346 _ACEOF
45347 cat >>$CONFIG_STATUS <<_ACEOF
45348 ac_cs_version="\\
45349 config.status
45350 configured by $0, generated by GNU Autoconf 2.61,
45351   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45352
45353 Copyright (C) 2006 Free Software Foundation, Inc.
45354 This config.status script is free software; the Free Software Foundation
45355 gives unlimited permission to copy, distribute and modify it."
45356
45357 ac_pwd='$ac_pwd'
45358 srcdir='$srcdir'
45359 INSTALL='$INSTALL'
45360 _ACEOF
45361
45362 cat >>$CONFIG_STATUS <<\_ACEOF
45363 # If no file are specified by the user, then we need to provide default
45364 # value.  By we need to know if files were specified by the user.
45365 ac_need_defaults=:
45366 while test $# != 0
45367 do
45368   case $1 in
45369   --*=*)
45370     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45371     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45372     ac_shift=:
45373     ;;
45374   *)
45375     ac_option=$1
45376     ac_optarg=$2
45377     ac_shift=shift
45378     ;;
45379   esac
45380
45381   case $ac_option in
45382   # Handling of the options.
45383   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45384     ac_cs_recheck=: ;;
45385   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45386     echo "$ac_cs_version"; exit ;;
45387   --debug | --debu | --deb | --de | --d | -d )
45388     debug=: ;;
45389   --file | --fil | --fi | --f )
45390     $ac_shift
45391     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45392     ac_need_defaults=false;;
45393   --header | --heade | --head | --hea )
45394     $ac_shift
45395     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45396     ac_need_defaults=false;;
45397   --he | --h)
45398     # Conflict between --help and --header
45399     { echo "$as_me: error: ambiguous option: $1
45400 Try \`$0 --help' for more information." >&2
45401    { (exit 1); exit 1; }; };;
45402   --help | --hel | -h )
45403     echo "$ac_cs_usage"; exit ;;
45404   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45405   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45406     ac_cs_silent=: ;;
45407
45408   # This is an error.
45409   -*) { echo "$as_me: error: unrecognized option: $1
45410 Try \`$0 --help' for more information." >&2
45411    { (exit 1); exit 1; }; } ;;
45412
45413   *) ac_config_targets="$ac_config_targets $1"
45414      ac_need_defaults=false ;;
45415
45416   esac
45417   shift
45418 done
45419
45420 ac_configure_extra_args=
45421
45422 if $ac_cs_silent; then
45423   exec 6>/dev/null
45424   ac_configure_extra_args="$ac_configure_extra_args --silent"
45425 fi
45426
45427 _ACEOF
45428 cat >>$CONFIG_STATUS <<_ACEOF
45429 if \$ac_cs_recheck; then
45430   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45431   CONFIG_SHELL=$SHELL
45432   export CONFIG_SHELL
45433   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45434 fi
45435
45436 _ACEOF
45437 cat >>$CONFIG_STATUS <<\_ACEOF
45438 exec 5>>config.log
45439 {
45440   echo
45441   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45442 ## Running $as_me. ##
45443 _ASBOX
45444   echo "$ac_log"
45445 } >&5
45446
45447 _ACEOF
45448 cat >>$CONFIG_STATUS <<_ACEOF
45449 #
45450 # INIT-COMMANDS
45451 #
45452
45453
45454 # The HP-UX ksh and POSIX shell print the target directory to stdout
45455 # if CDPATH is set.
45456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45457
45458 sed_quote_subst='$sed_quote_subst'
45459 double_quote_subst='$double_quote_subst'
45460 delay_variable_subst='$delay_variable_subst'
45461 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
45462 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
45463 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
45464 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
45465 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
45466 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
45467 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
45468 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
45469 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
45470 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
45471 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
45472 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
45473 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
45474 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
45475 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
45476 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
45477 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
45478 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
45479 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
45480 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
45481 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
45482 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
45483 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
45484 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
45485 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
45486 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
45487 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
45488 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45489 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
45490 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
45491 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
45492 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
45493 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45494 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
45495 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
45496 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45497 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45498 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45499 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
45500 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45501 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
45502 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
45503 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
45504 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
45505 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"`'
45506 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"`'
45507 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
45508 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
45509 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
45510 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
45511 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
45512 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
45513 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
45514 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
45515 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
45516 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
45517 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
45518 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
45519 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
45520 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45521 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
45522 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
45523 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45524 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45525 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
45526 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
45527 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45528 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45529 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
45530 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45531 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45532 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45533 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45534 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45535 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45536 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
45537 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45538 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45539 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45540 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
45541 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
45542 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
45543 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
45544 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
45545 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45546 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
45547 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
45548 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
45549 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
45550 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
45551 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45552 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45553 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45554 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45555 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
45556 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
45557 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45558 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
45559 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
45560 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45561 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45562 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
45563 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45564 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
45565 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45566 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45567 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45568 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45569 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
45570 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
45571 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45572 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45573 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
45574 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
45575 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
45576 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
45577 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
45578 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
45579 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
45580 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45581 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45582 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
45583 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
45584 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
45585 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45586 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45587 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45588 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45589 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45590 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45591 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45592 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45593 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45594 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45595 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45596 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45597 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45598 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45599 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45600 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45601 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45602 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45603 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45604 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45605 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45606 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45607 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45608 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45609 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45610 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45611 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45612 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45613 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45614 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45615 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45616 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45617 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45618 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45619 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45620 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45621 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45622 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45623 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45624 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45625 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45626 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45627 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45628 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45629 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45630 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45631 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45632
45633 LTCC='$LTCC'
45634 LTCFLAGS='$LTCFLAGS'
45635 compiler='$compiler_DEFAULT'
45636
45637 # Quote evaled strings.
45638 for var in SED \
45639 GREP \
45640 EGREP \
45641 FGREP \
45642 LD \
45643 NM \
45644 LN_S \
45645 lt_SP2NL \
45646 lt_NL2SP \
45647 reload_flag \
45648 OBJDUMP \
45649 deplibs_check_method \
45650 file_magic_cmd \
45651 AR \
45652 AR_FLAGS \
45653 STRIP \
45654 RANLIB \
45655 CC \
45656 CFLAGS \
45657 compiler \
45658 lt_cv_sys_global_symbol_pipe \
45659 lt_cv_sys_global_symbol_to_cdecl \
45660 lt_cv_sys_global_symbol_to_c_name_address \
45661 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45662 SHELL \
45663 ECHO \
45664 lt_prog_compiler_no_builtin_flag \
45665 lt_prog_compiler_wl \
45666 lt_prog_compiler_pic \
45667 lt_prog_compiler_static \
45668 lt_cv_prog_compiler_c_o \
45669 need_locks \
45670 DSYMUTIL \
45671 NMEDIT \
45672 LIPO \
45673 OTOOL \
45674 OTOOL64 \
45675 shrext_cmds \
45676 export_dynamic_flag_spec \
45677 whole_archive_flag_spec \
45678 compiler_needs_object \
45679 with_gnu_ld \
45680 allow_undefined_flag \
45681 no_undefined_flag \
45682 hardcode_libdir_flag_spec \
45683 hardcode_libdir_flag_spec_ld \
45684 hardcode_libdir_separator \
45685 fix_srcfile_path \
45686 exclude_expsyms \
45687 include_expsyms \
45688 file_list_spec \
45689 variables_saved_for_relink \
45690 libname_spec \
45691 library_names_spec \
45692 soname_spec \
45693 finish_eval \
45694 old_striplib \
45695 striplib \
45696 compiler_lib_search_dirs \
45697 predep_objects \
45698 postdep_objects \
45699 predeps \
45700 postdeps \
45701 compiler_lib_search_path \
45702 LD_CXX \
45703 compiler_CXX \
45704 lt_prog_compiler_no_builtin_flag_CXX \
45705 lt_prog_compiler_wl_CXX \
45706 lt_prog_compiler_pic_CXX \
45707 lt_prog_compiler_static_CXX \
45708 lt_cv_prog_compiler_c_o_CXX \
45709 export_dynamic_flag_spec_CXX \
45710 whole_archive_flag_spec_CXX \
45711 compiler_needs_object_CXX \
45712 with_gnu_ld_CXX \
45713 allow_undefined_flag_CXX \
45714 no_undefined_flag_CXX \
45715 hardcode_libdir_flag_spec_CXX \
45716 hardcode_libdir_flag_spec_ld_CXX \
45717 hardcode_libdir_separator_CXX \
45718 fix_srcfile_path_CXX \
45719 exclude_expsyms_CXX \
45720 include_expsyms_CXX \
45721 file_list_spec_CXX \
45722 compiler_lib_search_dirs_CXX \
45723 predep_objects_CXX \
45724 postdep_objects_CXX \
45725 predeps_CXX \
45726 postdeps_CXX \
45727 compiler_lib_search_path_CXX; do
45728     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45729     *[\\\\\\\`\\"\\\$]*)
45730       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45731       ;;
45732     *)
45733       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45734       ;;
45735     esac
45736 done
45737
45738 # Double-quote double-evaled strings.
45739 for var in reload_cmds \
45740 old_postinstall_cmds \
45741 old_postuninstall_cmds \
45742 old_archive_cmds \
45743 extract_expsyms_cmds \
45744 old_archive_from_new_cmds \
45745 old_archive_from_expsyms_cmds \
45746 archive_cmds \
45747 archive_expsym_cmds \
45748 module_cmds \
45749 module_expsym_cmds \
45750 export_symbols_cmds \
45751 prelink_cmds \
45752 postinstall_cmds \
45753 postuninstall_cmds \
45754 finish_cmds \
45755 sys_lib_search_path_spec \
45756 sys_lib_dlsearch_path_spec \
45757 old_archive_cmds_CXX \
45758 old_archive_from_new_cmds_CXX \
45759 old_archive_from_expsyms_cmds_CXX \
45760 archive_cmds_CXX \
45761 archive_expsym_cmds_CXX \
45762 module_cmds_CXX \
45763 module_expsym_cmds_CXX \
45764 export_symbols_cmds_CXX \
45765 prelink_cmds_CXX; do
45766     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45767     *[\\\\\\\`\\"\\\$]*)
45768       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45769       ;;
45770     *)
45771       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45772       ;;
45773     esac
45774 done
45775
45776 # Fix-up fallback echo if it was mangled by the above quoting rules.
45777 case \$lt_ECHO in
45778 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45779   ;;
45780 esac
45781
45782 ac_aux_dir='$ac_aux_dir'
45783 xsi_shell='$xsi_shell'
45784 lt_shell_append='$lt_shell_append'
45785
45786 # See if we are running on zsh, and set the options which allow our
45787 # commands through without removal of \ escapes INIT.
45788 if test -n "\${ZSH_VERSION+set}" ; then
45789    setopt NO_GLOB_SUBST
45790 fi
45791
45792
45793     PACKAGE='$PACKAGE'
45794     VERSION='$VERSION'
45795     TIMESTAMP='$TIMESTAMP'
45796     RM='$RM'
45797     ofile='$ofile'
45798
45799
45800
45801
45802
45803 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45804     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45805     # from automake.
45806     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45807     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45808     LINGUAS="${LINGUAS-%UNSET%}"
45809
45810
45811 _ACEOF
45812
45813 cat >>$CONFIG_STATUS <<\_ACEOF
45814
45815 # Handling of arguments.
45816 for ac_config_target in $ac_config_targets
45817 do
45818   case $ac_config_target in
45819     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45820     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45821     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45822     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45823     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45824     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45825     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45826     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45827     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45828     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45829     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45830     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45831     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45832     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45833     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45834     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45835     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45836     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45837     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45838     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45839     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45840     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45841     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45842     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45843     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45844     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45845     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45846     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45847     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45848     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45849     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45850     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45851     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45852     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45853     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45854     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45855     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45856     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45857     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45858     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45859     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45860     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45861     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45862     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45863     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45864     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45865     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45866     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45867     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45868     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45869     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45870     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45871     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45872     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45873     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45874     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45875     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45876     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45877     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45878     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45879     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45880     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45881     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45882     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45883     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45884     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45885     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45886     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45887     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45888     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45889     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45890     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45891     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45892     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45893     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45894     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45895     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45896     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45897     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45898     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45899     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45900     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45901     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45902     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45903     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45904     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45905     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45906     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45907     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45908     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45909     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45910     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45911     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45912     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45913     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45914     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45915     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45916     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45917     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45918     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45919     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45920     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45921     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45922     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45923     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45924     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45925     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45926     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45927     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45928     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
45929     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
45930     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
45931     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45932     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45933     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45934
45935   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45937    { (exit 1); exit 1; }; };;
45938   esac
45939 done
45940
45941
45942 # If the user did not use the arguments to specify the items to instantiate,
45943 # then the envvar interface is used.  Set only those that are not.
45944 # We use the long form for the default assignment because of an extremely
45945 # bizarre bug on SunOS 4.1.3.
45946 if $ac_need_defaults; then
45947   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45948   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45949   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45950 fi
45951
45952 # Have a temporary directory for convenience.  Make it in the build tree
45953 # simply because there is no reason against having it here, and in addition,
45954 # creating and moving files from /tmp can sometimes cause problems.
45955 # Hook for its removal unless debugging.
45956 # Note that there is a small window in which the directory will not be cleaned:
45957 # after its creation but before its name has been assigned to `$tmp'.
45958 $debug ||
45959 {
45960   tmp=
45961   trap 'exit_status=$?
45962   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45963 ' 0
45964   trap '{ (exit 1); exit 1; }' 1 2 13 15
45965 }
45966 # Create a (secure) tmp directory for tmp files.
45967
45968 {
45969   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45970   test -n "$tmp" && test -d "$tmp"
45971 }  ||
45972 {
45973   tmp=./conf$$-$RANDOM
45974   (umask 077 && mkdir "$tmp")
45975 } ||
45976 {
45977    echo "$me: cannot create a temporary directory in ." >&2
45978    { (exit 1); exit 1; }
45979 }
45980
45981 #
45982 # Set up the sed scripts for CONFIG_FILES section.
45983 #
45984
45985 # No need to generate the scripts if there are no CONFIG_FILES.
45986 # This happens for instance when ./config.status config.h
45987 if test -n "$CONFIG_FILES"; then
45988
45989 _ACEOF
45990
45991 # Create sed commands to just substitute file output variables.
45992
45993 # Remaining file output variables are in a fragment that also has non-file
45994 # output varibles.
45995
45996
45997
45998 ac_delim='%!_!# '
45999 for ac_last_try in false false false false false :; do
46000   cat >conf$$subs.sed <<_ACEOF
46001 SHELL!$SHELL$ac_delim
46002 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
46003 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
46004 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
46005 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
46006 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
46007 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
46008 exec_prefix!$exec_prefix$ac_delim
46009 prefix!$prefix$ac_delim
46010 program_transform_name!$program_transform_name$ac_delim
46011 bindir!$bindir$ac_delim
46012 sbindir!$sbindir$ac_delim
46013 libexecdir!$libexecdir$ac_delim
46014 datarootdir!$datarootdir$ac_delim
46015 datadir!$datadir$ac_delim
46016 sysconfdir!$sysconfdir$ac_delim
46017 sharedstatedir!$sharedstatedir$ac_delim
46018 localstatedir!$localstatedir$ac_delim
46019 includedir!$includedir$ac_delim
46020 oldincludedir!$oldincludedir$ac_delim
46021 docdir!$docdir$ac_delim
46022 infodir!$infodir$ac_delim
46023 htmldir!$htmldir$ac_delim
46024 dvidir!$dvidir$ac_delim
46025 pdfdir!$pdfdir$ac_delim
46026 psdir!$psdir$ac_delim
46027 libdir!$libdir$ac_delim
46028 localedir!$localedir$ac_delim
46029 mandir!$mandir$ac_delim
46030 DEFS!$DEFS$ac_delim
46031 ECHO_C!$ECHO_C$ac_delim
46032 ECHO_N!$ECHO_N$ac_delim
46033 ECHO_T!$ECHO_T$ac_delim
46034 LIBS!$LIBS$ac_delim
46035 build_alias!$build_alias$ac_delim
46036 host_alias!$host_alias$ac_delim
46037 target_alias!$target_alias$ac_delim
46038 BUILD_DIR!$BUILD_DIR$ac_delim
46039 TOP_DIR!$TOP_DIR$ac_delim
46040 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
46041 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
46042 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
46043 TRUEPRG!$TRUEPRG$ac_delim
46044 FALSEPRG!$FALSEPRG$ac_delim
46045 VERSION!$VERSION$ac_delim
46046 DATE!$DATE$ac_delim
46047 LSMDATE!$LSMDATE$ac_delim
46048 BACULA!$BACULA$ac_delim
46049 post_host!$post_host$ac_delim
46050 BDB_VERSION!$BDB_VERSION$ac_delim
46051 LIBBAC_LT_RELEASE!$LIBBAC_LT_RELEASE$ac_delim
46052 LIBBACCFG_LT_RELEASE!$LIBBACCFG_LT_RELEASE$ac_delim
46053 LIBBACPY_LT_RELEASE!$LIBBACPY_LT_RELEASE$ac_delim
46054 LIBBACSQL_LT_RELEASE!$LIBBACSQL_LT_RELEASE$ac_delim
46055 LIBBACFIND_LT_RELEASE!$LIBBACFIND_LT_RELEASE$ac_delim
46056 CC!$CC$ac_delim
46057 CFLAGS!$CFLAGS$ac_delim
46058 LDFLAGS!$LDFLAGS$ac_delim
46059 CPPFLAGS!$CPPFLAGS$ac_delim
46060 ac_ct_CC!$ac_ct_CC$ac_delim
46061 EXEEXT!$EXEEXT$ac_delim
46062 OBJEXT!$OBJEXT$ac_delim
46063 CXX!$CXX$ac_delim
46064 CXXFLAGS!$CXXFLAGS$ac_delim
46065 ac_ct_CXX!$ac_ct_CXX$ac_delim
46066 CPP!$CPP$ac_delim
46067 GREP!$GREP$ac_delim
46068 EGREP!$EGREP$ac_delim
46069 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
46070 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
46071 INSTALL_DATA!$INSTALL_DATA$ac_delim
46072 MV!$MV$ac_delim
46073 REMOVE!$REMOVE$ac_delim
46074 CP!$CP$ac_delim
46075 SED!$SED$ac_delim
46076 ECHO!$ECHO$ac_delim
46077 CMP!$CMP$ac_delim
46078 TBL!$TBL$ac_delim
46079 AR!$AR$ac_delim
46080 OPENSSL!$OPENSSL$ac_delim
46081 MTX!$MTX$ac_delim
46082 DD!$DD$ac_delim
46083 MKISOFS!$MKISOFS$ac_delim
46084 PYTHON!$PYTHON$ac_delim
46085 GROWISOFS!$GROWISOFS$ac_delim
46086 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
46087 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
46088 PKGCONFIG!$PKGCONFIG$ac_delim
46089 QMAKE!$QMAKE$ac_delim
46090 GMAKE!$GMAKE$ac_delim
46091 WXCONFIG!$WXCONFIG$ac_delim
46092 WXFLAGS!$WXFLAGS$ac_delim
46093 CDRECORD!$CDRECORD$ac_delim
46094 PIDOF!$PIDOF$ac_delim
46095 _ACEOF
46096
46097   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
46098     break
46099   elif $ac_last_try; then
46100     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46101 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46102    { (exit 1); exit 1; }; }
46103   else
46104     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46105   fi
46106 done
46107
46108 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46109 if test -n "$ac_eof"; then
46110   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46111   ac_eof=`expr $ac_eof + 1`
46112 fi
46113
46114 cat >>$CONFIG_STATUS <<_ACEOF
46115 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
46116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46117 /^[      ]*@MCOMMON@[    ]*$/{
46118 r $MCOMMON
46119 d
46120 }
46121 _ACEOF
46122 sed '
46123 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46124 s/^/s,@/; s/!/@,|#_!!_#|/
46125 :n
46126 t n
46127 s/'"$ac_delim"'$/,g/; t
46128 s/$/\\/; p
46129 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46130 ' >>$CONFIG_STATUS <conf$$subs.sed
46131 rm -f conf$$subs.sed
46132 cat >>$CONFIG_STATUS <<_ACEOF
46133 CEOF$ac_eof
46134 _ACEOF
46135
46136
46137 ac_delim='%!_!# '
46138 for ac_last_try in false false false false false :; do
46139   cat >conf$$subs.sed <<_ACEOF
46140 AWK!$AWK$ac_delim
46141 ARFLAGS!$ARFLAGS$ac_delim
46142 MAKE_SHELL!$MAKE_SHELL$ac_delim
46143 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
46144 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
46145 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
46146 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
46147 LIBTOOL!$LIBTOOL$ac_delim
46148 build!$build$ac_delim
46149 build_cpu!$build_cpu$ac_delim
46150 build_vendor!$build_vendor$ac_delim
46151 build_os!$build_os$ac_delim
46152 host!$host$ac_delim
46153 host_cpu!$host_cpu$ac_delim
46154 host_vendor!$host_vendor$ac_delim
46155 host_os!$host_os$ac_delim
46156 FGREP!$FGREP$ac_delim
46157 LD!$LD$ac_delim
46158 DUMPBIN!$DUMPBIN$ac_delim
46159 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
46160 NM!$NM$ac_delim
46161 LN_S!$LN_S$ac_delim
46162 OBJDUMP!$OBJDUMP$ac_delim
46163 STRIP!$STRIP$ac_delim
46164 RANLIB!$RANLIB$ac_delim
46165 lt_ECHO!$lt_ECHO$ac_delim
46166 DSYMUTIL!$DSYMUTIL$ac_delim
46167 NMEDIT!$NMEDIT$ac_delim
46168 LIPO!$LIPO$ac_delim
46169 OTOOL!$OTOOL$ac_delim
46170 OTOOL64!$OTOOL64$ac_delim
46171 CXXCPP!$CXXCPP$ac_delim
46172 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
46173 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
46174 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
46175 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
46176 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
46177 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
46178 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
46179 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
46180 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
46181 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
46182 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
46183 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
46184 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
46185 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
46186 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
46187 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
46188 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
46189 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
46190 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
46191 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
46192 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
46193 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
46194 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
46195 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
46196 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
46197 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
46198 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
46199 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
46200 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
46201 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
46202 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
46203 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
46204 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
46205 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
46206 SET_MAKE!$SET_MAKE$ac_delim
46207 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
46208 USE_NLS!$USE_NLS$ac_delim
46209 MSGFMT!$MSGFMT$ac_delim
46210 GMSGFMT!$GMSGFMT$ac_delim
46211 XGETTEXT!$XGETTEXT$ac_delim
46212 MSGMERGE!$MSGMERGE$ac_delim
46213 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
46214 LIBICONV!$LIBICONV$ac_delim
46215 LTLIBICONV!$LTLIBICONV$ac_delim
46216 INTLLIBS!$INTLLIBS$ac_delim
46217 LIBINTL!$LIBINTL$ac_delim
46218 LTLIBINTL!$LTLIBINTL$ac_delim
46219 POSUB!$POSUB$ac_delim
46220 GLIBC2!$GLIBC2$ac_delim
46221 ALLOCA!$ALLOCA$ac_delim
46222 GLIBC21!$GLIBC21$ac_delim
46223 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
46224 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
46225 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
46226 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
46227 INTLBISON!$INTLBISON$ac_delim
46228 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
46229 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
46230 CATOBJEXT!$CATOBJEXT$ac_delim
46231 DATADIRNAME!$DATADIRNAME$ac_delim
46232 INSTOBJEXT!$INSTOBJEXT$ac_delim
46233 GENCAT!$GENCAT$ac_delim
46234 INTLOBJS!$INTLOBJS$ac_delim
46235 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
46236 BAT_DIR!$BAT_DIR$ac_delim
46237 _ACEOF
46238
46239   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
46240     break
46241   elif $ac_last_try; then
46242     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46244    { (exit 1); exit 1; }; }
46245   else
46246     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46247   fi
46248 done
46249
46250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46251 if test -n "$ac_eof"; then
46252   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46253   ac_eof=`expr $ac_eof + 1`
46254 fi
46255
46256 cat >>$CONFIG_STATUS <<_ACEOF
46257 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
46258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46259 _ACEOF
46260 sed '
46261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46262 s/^/s,@/; s/!/@,|#_!!_#|/
46263 :n
46264 t n
46265 s/'"$ac_delim"'$/,g/; t
46266 s/$/\\/; p
46267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46268 ' >>$CONFIG_STATUS <conf$$subs.sed
46269 rm -f conf$$subs.sed
46270 cat >>$CONFIG_STATUS <<_ACEOF
46271 CEOF$ac_eof
46272 _ACEOF
46273
46274
46275 ac_delim='%!_!# '
46276 for ac_last_try in false false false false false :; do
46277   cat >conf$$subs.sed <<_ACEOF
46278 QWT_INC!$QWT_INC$ac_delim
46279 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
46280 QWT_LIB!$QWT_LIB$ac_delim
46281 QWT!$QWT$ac_delim
46282 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
46283 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
46284 WX_DIR!$WX_DIR$ac_delim
46285 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
46286 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
46287 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
46288 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
46289 STATIC_FD!$STATIC_FD$ac_delim
46290 STATIC_SD!$STATIC_SD$ac_delim
46291 STATIC_DIR!$STATIC_DIR$ac_delim
46292 STATIC_CONS!$STATIC_CONS$ac_delim
46293 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
46294 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
46295 ALL_DIRS!$ALL_DIRS$ac_delim
46296 DIRD_DIR!$DIRD_DIR$ac_delim
46297 DIR_TOOLS!$DIR_TOOLS$ac_delim
46298 STORED_DIR!$STORED_DIR$ac_delim
46299 CONS_INC!$CONS_INC$ac_delim
46300 CONS_OBJ!$CONS_OBJ$ac_delim
46301 CONS_SRC!$CONS_SRC$ac_delim
46302 CONS_LIBS!$CONS_LIBS$ac_delim
46303 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
46304 READLINE_SRC!$READLINE_SRC$ac_delim
46305 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
46306 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
46307 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
46308 OPENSSL_INC!$OPENSSL_INC$ac_delim
46309 working_dir!$working_dir$ac_delim
46310 archivedir!$archivedir$ac_delim
46311 basename!$basename$ac_delim
46312 hostname!$hostname$ac_delim
46313 scriptdir!$scriptdir$ac_delim
46314 bsrdir!$bsrdir$ac_delim
46315 logdir!$logdir$ac_delim
46316 plugindir!$plugindir$ac_delim
46317 dump_email!$dump_email$ac_delim
46318 job_email!$job_email$ac_delim
46319 smtp_host!$smtp_host$ac_delim
46320 piddir!$piddir$ac_delim
46321 subsysdir!$subsysdir$ac_delim
46322 baseport!$baseport$ac_delim
46323 dir_port!$dir_port$ac_delim
46324 fd_port!$fd_port$ac_delim
46325 sd_port!$sd_port$ac_delim
46326 dir_password!$dir_password$ac_delim
46327 fd_password!$fd_password$ac_delim
46328 sd_password!$sd_password$ac_delim
46329 mon_dir_password!$mon_dir_password$ac_delim
46330 mon_fd_password!$mon_fd_password$ac_delim
46331 mon_sd_password!$mon_sd_password$ac_delim
46332 db_name!$db_name$ac_delim
46333 db_user!$db_user$ac_delim
46334 db_password!$db_password$ac_delim
46335 db_port!$db_port$ac_delim
46336 dir_user!$dir_user$ac_delim
46337 dir_group!$dir_group$ac_delim
46338 sd_user!$sd_user$ac_delim
46339 sd_group!$sd_group$ac_delim
46340 fd_user!$fd_user$ac_delim
46341 fd_group!$fd_group$ac_delim
46342 SBINPERM!$SBINPERM$ac_delim
46343 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
46344 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
46345 SQL_BINDIR!$SQL_BINDIR$ac_delim
46346 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
46347 uncomment_dbi!$uncomment_dbi$ac_delim
46348 DB_PROG!$DB_PROG$ac_delim
46349 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
46350 cats!$cats$ac_delim
46351 DB_TYPE!$DB_TYPE$ac_delim
46352 GETCONF!$GETCONF$ac_delim
46353 XMKMF!$XMKMF$ac_delim
46354 X_CFLAGS!$X_CFLAGS$ac_delim
46355 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
46356 X_LIBS!$X_LIBS$ac_delim
46357 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
46358 LIBOBJS!$LIBOBJS$ac_delim
46359 ZLIBS!$ZLIBS$ac_delim
46360 AFS_CFLAGS!$AFS_CFLAGS$ac_delim
46361 AFS_LIBS!$AFS_LIBS$ac_delim
46362 CAP_LIBS!$CAP_LIBS$ac_delim
46363 FDLIBS!$FDLIBS$ac_delim
46364 DEBUG!$DEBUG$ac_delim
46365 DINCLUDE!$DINCLUDE$ac_delim
46366 DLIB!$DLIB$ac_delim
46367 DB_LIBS!$DB_LIBS$ac_delim
46368 WCFLAGS!$WCFLAGS$ac_delim
46369 WLDFLAGS!$WLDFLAGS$ac_delim
46370 WRAPLIBS!$WRAPLIBS$ac_delim
46371 OBJLIST!$OBJLIST$ac_delim
46372 TAPEDRIVE!$TAPEDRIVE$ac_delim
46373 PSCMD!$PSCMD$ac_delim
46374 WIN32!$WIN32$ac_delim
46375 _ACEOF
46376
46377   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
46378     break
46379   elif $ac_last_try; then
46380     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46381 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46382    { (exit 1); exit 1; }; }
46383   else
46384     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46385   fi
46386 done
46387
46388 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46389 if test -n "$ac_eof"; then
46390   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46391   ac_eof=`expr $ac_eof + 1`
46392 fi
46393
46394 cat >>$CONFIG_STATUS <<_ACEOF
46395 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
46396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46397 _ACEOF
46398 sed '
46399 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46400 s/^/s,@/; s/!/@,|#_!!_#|/
46401 :n
46402 t n
46403 s/'"$ac_delim"'$/,g/; t
46404 s/$/\\/; p
46405 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46406 ' >>$CONFIG_STATUS <conf$$subs.sed
46407 rm -f conf$$subs.sed
46408 cat >>$CONFIG_STATUS <<_ACEOF
46409 CEOF$ac_eof
46410 _ACEOF
46411
46412
46413 ac_delim='%!_!# '
46414 for ac_last_try in false false false false false :; do
46415   cat >conf$$subs.sed <<_ACEOF
46416 MACOSX!$MACOSX$ac_delim
46417 DISTNAME!$DISTNAME$ac_delim
46418 DISTVER!$DISTVER$ac_delim
46419 LTLIBOBJS!$LTLIBOBJS$ac_delim
46420 _ACEOF
46421
46422   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
46423     break
46424   elif $ac_last_try; then
46425     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46426 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46427    { (exit 1); exit 1; }; }
46428   else
46429     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46430   fi
46431 done
46432
46433 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46434 if test -n "$ac_eof"; then
46435   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46436   ac_eof=`expr $ac_eof + 1`
46437 fi
46438
46439 cat >>$CONFIG_STATUS <<_ACEOF
46440 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
46441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46442 _ACEOF
46443 sed '
46444 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46445 s/^/s,@/; s/!/@,|#_!!_#|/
46446 :n
46447 t n
46448 s/'"$ac_delim"'$/,g/; t
46449 s/$/\\/; p
46450 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46451 ' >>$CONFIG_STATUS <conf$$subs.sed
46452 rm -f conf$$subs.sed
46453 cat >>$CONFIG_STATUS <<_ACEOF
46454 :end
46455 s/|#_!!_#|//g
46456 CEOF$ac_eof
46457 _ACEOF
46458
46459
46460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46462 # trailing colons and then remove the whole line if VPATH becomes empty
46463 # (actually we leave an empty line to preserve line numbers).
46464 if test "x$srcdir" = x.; then
46465   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46466 s/:*\$(srcdir):*/:/
46467 s/:*\${srcdir}:*/:/
46468 s/:*@srcdir@:*/:/
46469 s/^\([^=]*=[     ]*\):*/\1/
46470 s/:*$//
46471 s/^[^=]*=[       ]*$//
46472 }'
46473 fi
46474
46475 cat >>$CONFIG_STATUS <<\_ACEOF
46476 fi # test -n "$CONFIG_FILES"
46477
46478
46479 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
46480 do
46481   case $ac_tag in
46482   :[FHLC]) ac_mode=$ac_tag; continue;;
46483   esac
46484   case $ac_mode$ac_tag in
46485   :[FHL]*:*);;
46486   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46487 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46488    { (exit 1); exit 1; }; };;
46489   :[FH]-) ac_tag=-:-;;
46490   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46491   esac
46492   ac_save_IFS=$IFS
46493   IFS=:
46494   set x $ac_tag
46495   IFS=$ac_save_IFS
46496   shift
46497   ac_file=$1
46498   shift
46499
46500   case $ac_mode in
46501   :L) ac_source=$1;;
46502   :[FH])
46503     ac_file_inputs=
46504     for ac_f
46505     do
46506       case $ac_f in
46507       -) ac_f="$tmp/stdin";;
46508       *) # Look for the file first in the build tree, then in the source tree
46509          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46510          # because $ac_f cannot contain `:'.
46511          test -f "$ac_f" ||
46512            case $ac_f in
46513            [\\/$]*) false;;
46514            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46515            esac ||
46516            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46517 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46518    { (exit 1); exit 1; }; };;
46519       esac
46520       ac_file_inputs="$ac_file_inputs $ac_f"
46521     done
46522
46523     # Let's still pretend it is `configure' which instantiates (i.e., don't
46524     # use $as_me), people would be surprised to read:
46525     #    /* config.h.  Generated by config.status.  */
46526     configure_input="Generated from "`IFS=:
46527           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46528     if test x"$ac_file" != x-; then
46529       configure_input="$ac_file.  $configure_input"
46530       { echo "$as_me:$LINENO: creating $ac_file" >&5
46531 echo "$as_me: creating $ac_file" >&6;}
46532     fi
46533
46534     case $ac_tag in
46535     *:-:* | *:-) cat >"$tmp/stdin";;
46536     esac
46537     ;;
46538   esac
46539
46540   ac_dir=`$as_dirname -- "$ac_file" ||
46541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46542          X"$ac_file" : 'X\(//\)[^/]' \| \
46543          X"$ac_file" : 'X\(//\)$' \| \
46544          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46545 echo X"$ac_file" |
46546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46547             s//\1/
46548             q
46549           }
46550           /^X\(\/\/\)[^/].*/{
46551             s//\1/
46552             q
46553           }
46554           /^X\(\/\/\)$/{
46555             s//\1/
46556             q
46557           }
46558           /^X\(\/\).*/{
46559             s//\1/
46560             q
46561           }
46562           s/.*/./; q'`
46563   { as_dir="$ac_dir"
46564   case $as_dir in #(
46565   -*) as_dir=./$as_dir;;
46566   esac
46567   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46568     as_dirs=
46569     while :; do
46570       case $as_dir in #(
46571       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46572       *) as_qdir=$as_dir;;
46573       esac
46574       as_dirs="'$as_qdir' $as_dirs"
46575       as_dir=`$as_dirname -- "$as_dir" ||
46576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46577          X"$as_dir" : 'X\(//\)[^/]' \| \
46578          X"$as_dir" : 'X\(//\)$' \| \
46579          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46580 echo X"$as_dir" |
46581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46582             s//\1/
46583             q
46584           }
46585           /^X\(\/\/\)[^/].*/{
46586             s//\1/
46587             q
46588           }
46589           /^X\(\/\/\)$/{
46590             s//\1/
46591             q
46592           }
46593           /^X\(\/\).*/{
46594             s//\1/
46595             q
46596           }
46597           s/.*/./; q'`
46598       test -d "$as_dir" && break
46599     done
46600     test -z "$as_dirs" || eval "mkdir $as_dirs"
46601   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46602 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46603    { (exit 1); exit 1; }; }; }
46604   ac_builddir=.
46605
46606 case "$ac_dir" in
46607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46608 *)
46609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46610   # A ".." for each directory in $ac_dir_suffix.
46611   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46612   case $ac_top_builddir_sub in
46613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46615   esac ;;
46616 esac
46617 ac_abs_top_builddir=$ac_pwd
46618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46619 # for backward compatibility:
46620 ac_top_builddir=$ac_top_build_prefix
46621
46622 case $srcdir in
46623   .)  # We are building in place.
46624     ac_srcdir=.
46625     ac_top_srcdir=$ac_top_builddir_sub
46626     ac_abs_top_srcdir=$ac_pwd ;;
46627   [\\/]* | ?:[\\/]* )  # Absolute name.
46628     ac_srcdir=$srcdir$ac_dir_suffix;
46629     ac_top_srcdir=$srcdir
46630     ac_abs_top_srcdir=$srcdir ;;
46631   *) # Relative name.
46632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46633     ac_top_srcdir=$ac_top_build_prefix$srcdir
46634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46635 esac
46636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46637
46638
46639   case $ac_mode in
46640   :F)
46641   #
46642   # CONFIG_FILE
46643   #
46644
46645   case $INSTALL in
46646   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46647   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46648   esac
46649 _ACEOF
46650
46651 cat >>$CONFIG_STATUS <<\_ACEOF
46652 # If the template does not know about datarootdir, expand it.
46653 # FIXME: This hack should be removed a few years after 2.60.
46654 ac_datarootdir_hack=; ac_datarootdir_seen=
46655
46656 case `sed -n '/datarootdir/ {
46657   p
46658   q
46659 }
46660 /@datadir@/p
46661 /@docdir@/p
46662 /@infodir@/p
46663 /@localedir@/p
46664 /@mandir@/p
46665 ' $ac_file_inputs` in
46666 *datarootdir*) ac_datarootdir_seen=yes;;
46667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46668   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46669 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46670 _ACEOF
46671 cat >>$CONFIG_STATUS <<_ACEOF
46672   ac_datarootdir_hack='
46673   s&@datadir@&$datadir&g
46674   s&@docdir@&$docdir&g
46675   s&@infodir@&$infodir&g
46676   s&@localedir@&$localedir&g
46677   s&@mandir@&$mandir&g
46678     s&\\\${datarootdir}&$datarootdir&g' ;;
46679 esac
46680 _ACEOF
46681
46682 # Neutralize VPATH when `$srcdir' = `.'.
46683 # Shell code in configure.ac might set extrasub.
46684 # FIXME: do we really want to maintain this feature?
46685 cat >>$CONFIG_STATUS <<_ACEOF
46686   sed "$ac_vpsub
46687 $extrasub
46688 _ACEOF
46689 cat >>$CONFIG_STATUS <<\_ACEOF
46690 :t
46691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46692 s&@configure_input@&$configure_input&;t t
46693 s&@top_builddir@&$ac_top_builddir_sub&;t t
46694 s&@srcdir@&$ac_srcdir&;t t
46695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46696 s&@top_srcdir@&$ac_top_srcdir&;t t
46697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46698 s&@builddir@&$ac_builddir&;t t
46699 s&@abs_builddir@&$ac_abs_builddir&;t t
46700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46701 s&@INSTALL@&$ac_INSTALL&;t t
46702 $ac_datarootdir_hack
46703 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
46704
46705 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46706   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46707   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46708   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46709 which seems to be undefined.  Please make sure it is defined." >&5
46710 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46711 which seems to be undefined.  Please make sure it is defined." >&2;}
46712
46713   rm -f "$tmp/stdin"
46714   case $ac_file in
46715   -) cat "$tmp/out"; rm -f "$tmp/out";;
46716   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46717   esac
46718  ;;
46719   :H)
46720   #
46721   # CONFIG_HEADER
46722   #
46723 _ACEOF
46724
46725 # Transform confdefs.h into a sed script `conftest.defines', that
46726 # substitutes the proper values into config.h.in to produce config.h.
46727 rm -f conftest.defines conftest.tail
46728 # First, append a space to every undef/define line, to ease matching.
46729 echo 's/$/ /' >conftest.defines
46730 # Then, protect against being on the right side of a sed subst, or in
46731 # an unquoted here document, in config.status.  If some macros were
46732 # called several times there might be several #defines for the same
46733 # symbol, which is useless.  But do not sort them, since the last
46734 # AC_DEFINE must be honored.
46735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46736 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46737 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46738 # PARAMS is the parameter list in the macro definition--in most cases, it's
46739 # just an empty string.
46740 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
46741 ac_dB='\\)[      (].*,\\1define\\2'
46742 ac_dC=' '
46743 ac_dD=' ,'
46744
46745 uniq confdefs.h |
46746   sed -n '
46747         t rset
46748         :rset
46749         s/^[     ]*#[    ]*define[       ][      ]*//
46750         t ok
46751         d
46752         :ok
46753         s/[\\&,]/\\&/g
46754         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46755         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46756   ' >>conftest.defines
46757
46758 # Remove the space that was appended to ease matching.
46759 # Then replace #undef with comments.  This is necessary, for
46760 # example, in the case of _POSIX_SOURCE, which is predefined and required
46761 # on some systems where configure will not decide to define it.
46762 # (The regexp can be short, since the line contains either #define or #undef.)
46763 echo 's/ $//
46764 s,^[     #]*u.*,/* & */,' >>conftest.defines
46765
46766 # Break up conftest.defines:
46767 ac_max_sed_lines=50
46768
46769 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46770 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46771 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46772 # et cetera.
46773 ac_in='$ac_file_inputs'
46774 ac_out='"$tmp/out1"'
46775 ac_nxt='"$tmp/out2"'
46776
46777 while :
46778 do
46779   # Write a here document:
46780     cat >>$CONFIG_STATUS <<_ACEOF
46781     # First, check the format of the line:
46782     cat >"\$tmp/defines.sed" <<\\CEOF
46783 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
46784 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
46785 b
46786 :def
46787 _ACEOF
46788   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46789   echo 'CEOF
46790     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46791   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46792   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46793   grep . conftest.tail >/dev/null || break
46794   rm -f conftest.defines
46795   mv conftest.tail conftest.defines
46796 done
46797 rm -f conftest.defines conftest.tail
46798
46799 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46800 cat >>$CONFIG_STATUS <<\_ACEOF
46801   if test x"$ac_file" != x-; then
46802     echo "/* $configure_input  */" >"$tmp/config.h"
46803     cat "$ac_result" >>"$tmp/config.h"
46804     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46805       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46806 echo "$as_me: $ac_file is unchanged" >&6;}
46807     else
46808       rm -f $ac_file
46809       mv "$tmp/config.h" $ac_file
46810     fi
46811   else
46812     echo "/* $configure_input  */"
46813     cat "$ac_result"
46814   fi
46815   rm -f "$tmp/out12"
46816  ;;
46817
46818   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46819 echo "$as_me: executing $ac_file commands" >&6;}
46820  ;;
46821   esac
46822
46823
46824   case $ac_file$ac_mode in
46825     "libtool":C)
46826
46827     # See if we are running on zsh, and set the options which allow our
46828     # commands through without removal of \ escapes.
46829     if test -n "${ZSH_VERSION+set}" ; then
46830       setopt NO_GLOB_SUBST
46831     fi
46832
46833     cfgfile="${ofile}T"
46834     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46835     $RM "$cfgfile"
46836
46837     cat <<_LT_EOF >> "$cfgfile"
46838 #! $SHELL
46839
46840 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46841 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46843 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46844 #
46845 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46846 #                 2006, 2007, 2008 Free Software Foundation, Inc.
46847 #   Written by Gordon Matzigkeit, 1996
46848 #
46849 #   This file is part of GNU Libtool.
46850 #
46851 # GNU Libtool is free software; you can redistribute it and/or
46852 # modify it under the terms of the GNU General Public License as
46853 # published by the Free Software Foundation; either version 2 of
46854 # the License, or (at your option) any later version.
46855 #
46856 # As a special exception to the GNU General Public License,
46857 # if you distribute this file as part of a program or library that
46858 # is built using GNU Libtool, you may include this file under the
46859 # same distribution terms that you use for the rest of that program.
46860 #
46861 # GNU Libtool is distributed in the hope that it will be useful,
46862 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46863 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46864 # GNU General Public License for more details.
46865 #
46866 # You should have received a copy of the GNU General Public License
46867 # along with GNU Libtool; see the file COPYING.  If not, a copy
46868 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46869 # obtained by writing to the Free Software Foundation, Inc.,
46870 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46871
46872
46873 # The names of the tagged configurations supported by this script.
46874 available_tags="CXX "
46875
46876 # ### BEGIN LIBTOOL CONFIG
46877
46878 # Which release of libtool.m4 was used?
46879 macro_version=$macro_version
46880 macro_revision=$macro_revision
46881
46882 # Whether or not to build shared libraries.
46883 build_libtool_libs=$enable_shared
46884
46885 # Whether or not to build static libraries.
46886 build_old_libs=$enable_static
46887
46888 # What type of objects to build.
46889 pic_mode=$pic_mode
46890
46891 # Whether or not to optimize for fast installation.
46892 fast_install=$enable_fast_install
46893
46894 # The host system.
46895 host_alias=$host_alias
46896 host=$host
46897 host_os=$host_os
46898
46899 # The build system.
46900 build_alias=$build_alias
46901 build=$build
46902 build_os=$build_os
46903
46904 # A sed program that does not truncate output.
46905 SED=$lt_SED
46906
46907 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46908 Xsed="\$SED -e 1s/^X//"
46909
46910 # A grep program that handles long lines.
46911 GREP=$lt_GREP
46912
46913 # An ERE matcher.
46914 EGREP=$lt_EGREP
46915
46916 # A literal string matcher.
46917 FGREP=$lt_FGREP
46918
46919 # A BSD- or MS-compatible name lister.
46920 NM=$lt_NM
46921
46922 # Whether we need soft or hard links.
46923 LN_S=$lt_LN_S
46924
46925 # What is the maximum length of a command?
46926 max_cmd_len=$max_cmd_len
46927
46928 # Object file suffix (normally "o").
46929 objext=$ac_objext
46930
46931 # Executable file suffix (normally "").
46932 exeext=$exeext
46933
46934 # whether the shell understands "unset".
46935 lt_unset=$lt_unset
46936
46937 # turn spaces into newlines.
46938 SP2NL=$lt_lt_SP2NL
46939
46940 # turn newlines into spaces.
46941 NL2SP=$lt_lt_NL2SP
46942
46943 # How to create reloadable object files.
46944 reload_flag=$lt_reload_flag
46945 reload_cmds=$lt_reload_cmds
46946
46947 # An object symbol dumper.
46948 OBJDUMP=$lt_OBJDUMP
46949
46950 # Method to check whether dependent libraries are shared objects.
46951 deplibs_check_method=$lt_deplibs_check_method
46952
46953 # Command to use when deplibs_check_method == "file_magic".
46954 file_magic_cmd=$lt_file_magic_cmd
46955
46956 # The archiver.
46957 AR=$lt_AR
46958 AR_FLAGS=$lt_AR_FLAGS
46959
46960 # A symbol stripping program.
46961 STRIP=$lt_STRIP
46962
46963 # Commands used to install an old-style archive.
46964 RANLIB=$lt_RANLIB
46965 old_postinstall_cmds=$lt_old_postinstall_cmds
46966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46967
46968 # A C compiler.
46969 LTCC=$lt_CC
46970
46971 # LTCC compiler flags.
46972 LTCFLAGS=$lt_CFLAGS
46973
46974 # Take the output of nm and produce a listing of raw symbols and C names.
46975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46976
46977 # Transform the output of nm in a proper C declaration.
46978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46979
46980 # Transform the output of nm in a C name address pair.
46981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46982
46983 # Transform the output of nm in a C name address pair when lib prefix is needed.
46984 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46985
46986 # The name of the directory that contains temporary libtool files.
46987 objdir=$objdir
46988
46989 # Shell to use when invoking shell scripts.
46990 SHELL=$lt_SHELL
46991
46992 # An echo program that does not interpret backslashes.
46993 ECHO=$lt_ECHO
46994
46995 # Used to examine libraries when file_magic_cmd begins with "file".
46996 MAGIC_CMD=$MAGIC_CMD
46997
46998 # Must we lock files when doing compilation?
46999 need_locks=$lt_need_locks
47000
47001 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47002 DSYMUTIL=$lt_DSYMUTIL
47003
47004 # Tool to change global to local symbols on Mac OS X.
47005 NMEDIT=$lt_NMEDIT
47006
47007 # Tool to manipulate fat objects and archives on Mac OS X.
47008 LIPO=$lt_LIPO
47009
47010 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47011 OTOOL=$lt_OTOOL
47012
47013 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47014 OTOOL64=$lt_OTOOL64
47015
47016 # Old archive suffix (normally "a").
47017 libext=$libext
47018
47019 # Shared library suffix (normally ".so").
47020 shrext_cmds=$lt_shrext_cmds
47021
47022 # The commands to extract the exported symbol list from a shared archive.
47023 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47024
47025 # Variables whose values should be saved in libtool wrapper scripts and
47026 # restored at link time.
47027 variables_saved_for_relink=$lt_variables_saved_for_relink
47028
47029 # Do we need the "lib" prefix for modules?
47030 need_lib_prefix=$need_lib_prefix
47031
47032 # Do we need a version for libraries?
47033 need_version=$need_version
47034
47035 # Library versioning type.
47036 version_type=$version_type
47037
47038 # Shared library runtime path variable.
47039 runpath_var=$runpath_var
47040
47041 # Shared library path variable.
47042 shlibpath_var=$shlibpath_var
47043
47044 # Is shlibpath searched before the hard-coded library search path?
47045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47046
47047 # Format of library name prefix.
47048 libname_spec=$lt_libname_spec
47049
47050 # List of archive names.  First name is the real one, the rest are links.
47051 # The last name is the one that the linker finds with -lNAME
47052 library_names_spec=$lt_library_names_spec
47053
47054 # The coded name of the library, if different from the real name.
47055 soname_spec=$lt_soname_spec
47056
47057 # Command to use after installation of a shared archive.
47058 postinstall_cmds=$lt_postinstall_cmds
47059
47060 # Command to use after uninstallation of a shared archive.
47061 postuninstall_cmds=$lt_postuninstall_cmds
47062
47063 # Commands used to finish a libtool library installation in a directory.
47064 finish_cmds=$lt_finish_cmds
47065
47066 # As "finish_cmds", except a single script fragment to be evaled but
47067 # not shown.
47068 finish_eval=$lt_finish_eval
47069
47070 # Whether we should hardcode library paths into libraries.
47071 hardcode_into_libs=$hardcode_into_libs
47072
47073 # Compile-time system search path for libraries.
47074 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47075
47076 # Run-time system search path for libraries.
47077 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47078
47079 # Whether dlopen is supported.
47080 dlopen_support=$enable_dlopen
47081
47082 # Whether dlopen of programs is supported.
47083 dlopen_self=$enable_dlopen_self
47084
47085 # Whether dlopen of statically linked programs is supported.
47086 dlopen_self_static=$enable_dlopen_self_static
47087
47088 # Commands to strip libraries.
47089 old_striplib=$lt_old_striplib
47090 striplib=$lt_striplib
47091
47092
47093 # The linker used to build libraries.
47094 LD=$lt_LD
47095
47096 # Commands used to build an old-style archive.
47097 old_archive_cmds=$lt_old_archive_cmds
47098
47099 # A language specific compiler.
47100 CC=$lt_compiler
47101
47102 # Is the compiler the GNU compiler?
47103 with_gcc=$GCC
47104
47105 # Compiler flag to turn off builtin functions.
47106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47107
47108 # How to pass a linker flag through the compiler.
47109 wl=$lt_lt_prog_compiler_wl
47110
47111 # Additional compiler flags for building library objects.
47112 pic_flag=$lt_lt_prog_compiler_pic
47113
47114 # Compiler flag to prevent dynamic linking.
47115 link_static_flag=$lt_lt_prog_compiler_static
47116
47117 # Does compiler simultaneously support -c and -o options?
47118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47119
47120 # Whether or not to add -lc for building shared libraries.
47121 build_libtool_need_lc=$archive_cmds_need_lc
47122
47123 # Whether or not to disallow shared libs when runtime libs are static.
47124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47125
47126 # Compiler flag to allow reflexive dlopens.
47127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47128
47129 # Compiler flag to generate shared objects directly from archives.
47130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47131
47132 # Whether the compiler copes with passing no objects directly.
47133 compiler_needs_object=$lt_compiler_needs_object
47134
47135 # Create an old-style archive from a shared archive.
47136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47137
47138 # Create a temporary old-style archive to link instead of a shared archive.
47139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47140
47141 # Commands used to build a shared archive.
47142 archive_cmds=$lt_archive_cmds
47143 archive_expsym_cmds=$lt_archive_expsym_cmds
47144
47145 # Commands used to build a loadable module if different from building
47146 # a shared archive.
47147 module_cmds=$lt_module_cmds
47148 module_expsym_cmds=$lt_module_expsym_cmds
47149
47150 # Whether we are building with GNU ld or not.
47151 with_gnu_ld=$lt_with_gnu_ld
47152
47153 # Flag that allows shared libraries with undefined symbols to be built.
47154 allow_undefined_flag=$lt_allow_undefined_flag
47155
47156 # Flag that enforces no undefined symbols.
47157 no_undefined_flag=$lt_no_undefined_flag
47158
47159 # Flag to hardcode \$libdir into a binary during linking.
47160 # This must work even if \$libdir does not exist
47161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47162
47163 # If ld is used when linking, flag to hardcode \$libdir into a binary
47164 # during linking.  This must work even if \$libdir does not exist.
47165 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47166
47167 # Whether we need a single "-rpath" flag with a separated argument.
47168 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47169
47170 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47171 # DIR into the resulting binary.
47172 hardcode_direct=$hardcode_direct
47173
47174 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47175 # DIR into the resulting binary and the resulting library dependency is
47176 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47177 # library is relocated.
47178 hardcode_direct_absolute=$hardcode_direct_absolute
47179
47180 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47181 # into the resulting binary.
47182 hardcode_minus_L=$hardcode_minus_L
47183
47184 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47185 # into the resulting binary.
47186 hardcode_shlibpath_var=$hardcode_shlibpath_var
47187
47188 # Set to "yes" if building a shared library automatically hardcodes DIR
47189 # into the library and all subsequent libraries and executables linked
47190 # against it.
47191 hardcode_automatic=$hardcode_automatic
47192
47193 # Set to yes if linker adds runtime paths of dependent libraries
47194 # to runtime path list.
47195 inherit_rpath=$inherit_rpath
47196
47197 # Whether libtool must link a program against all its dependency libraries.
47198 link_all_deplibs=$link_all_deplibs
47199
47200 # Fix the shell variable \$srcfile for the compiler.
47201 fix_srcfile_path=$lt_fix_srcfile_path
47202
47203 # Set to "yes" if exported symbols are required.
47204 always_export_symbols=$always_export_symbols
47205
47206 # The commands to list exported symbols.
47207 export_symbols_cmds=$lt_export_symbols_cmds
47208
47209 # Symbols that should not be listed in the preloaded symbols.
47210 exclude_expsyms=$lt_exclude_expsyms
47211
47212 # Symbols that must always be exported.
47213 include_expsyms=$lt_include_expsyms
47214
47215 # Commands necessary for linking programs (against libraries) with templates.
47216 prelink_cmds=$lt_prelink_cmds
47217
47218 # Specify filename containing input files.
47219 file_list_spec=$lt_file_list_spec
47220
47221 # How to hardcode a shared library path into an executable.
47222 hardcode_action=$hardcode_action
47223
47224 # The directories searched by this compiler when creating a shared library.
47225 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
47226
47227 # Dependencies to place before and after the objects being linked to
47228 # create a shared library.
47229 predep_objects=$lt_predep_objects
47230 postdep_objects=$lt_postdep_objects
47231 predeps=$lt_predeps
47232 postdeps=$lt_postdeps
47233
47234 # The library search path used internally by the compiler when linking
47235 # a shared library.
47236 compiler_lib_search_path=$lt_compiler_lib_search_path
47237
47238 # ### END LIBTOOL CONFIG
47239
47240 _LT_EOF
47241
47242   case $host_os in
47243   aix3*)
47244     cat <<\_LT_EOF >> "$cfgfile"
47245 # AIX sometimes has problems with the GCC collect2 program.  For some
47246 # reason, if we set the COLLECT_NAMES environment variable, the problems
47247 # vanish in a puff of smoke.
47248 if test "X${COLLECT_NAMES+set}" != Xset; then
47249   COLLECT_NAMES=
47250   export COLLECT_NAMES
47251 fi
47252 _LT_EOF
47253     ;;
47254   esac
47255
47256
47257 ltmain="$ac_aux_dir/ltmain.sh"
47258
47259
47260   # We use sed instead of cat because bash on DJGPP gets confused if
47261   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47262   # text mode, it properly converts lines to CR/LF.  This bash problem
47263   # is reportedly fixed, but why not run on old versions too?
47264   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47265     || (rm -f "$cfgfile"; exit 1)
47266
47267   case $xsi_shell in
47268   yes)
47269     cat << \_LT_EOF >> "$cfgfile"
47270
47271 # func_dirname file append nondir_replacement
47272 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47273 # otherwise set result to NONDIR_REPLACEMENT.
47274 func_dirname ()
47275 {
47276   case ${1} in
47277     */*) func_dirname_result="${1%/*}${2}" ;;
47278     *  ) func_dirname_result="${3}" ;;
47279   esac
47280 }
47281
47282 # func_basename file
47283 func_basename ()
47284 {
47285   func_basename_result="${1##*/}"
47286 }
47287
47288 # func_dirname_and_basename file append nondir_replacement
47289 # perform func_basename and func_dirname in a single function
47290 # call:
47291 #   dirname:  Compute the dirname of FILE.  If nonempty,
47292 #             add APPEND to the result, otherwise set result
47293 #             to NONDIR_REPLACEMENT.
47294 #             value returned in "$func_dirname_result"
47295 #   basename: Compute filename of FILE.
47296 #             value retuned in "$func_basename_result"
47297 # Implementation must be kept synchronized with func_dirname
47298 # and func_basename. For efficiency, we do not delegate to
47299 # those functions but instead duplicate the functionality here.
47300 func_dirname_and_basename ()
47301 {
47302   case ${1} in
47303     */*) func_dirname_result="${1%/*}${2}" ;;
47304     *  ) func_dirname_result="${3}" ;;
47305   esac
47306   func_basename_result="${1##*/}"
47307 }
47308
47309 # func_stripname prefix suffix name
47310 # strip PREFIX and SUFFIX off of NAME.
47311 # PREFIX and SUFFIX must not contain globbing or regex special
47312 # characters, hashes, percent signs, but SUFFIX may contain a leading
47313 # dot (in which case that matches only a dot).
47314 func_stripname ()
47315 {
47316   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47317   # positional parameters, so assign one to ordinary parameter first.
47318   func_stripname_result=${3}
47319   func_stripname_result=${func_stripname_result#"${1}"}
47320   func_stripname_result=${func_stripname_result%"${2}"}
47321 }
47322
47323 # func_opt_split
47324 func_opt_split ()
47325 {
47326   func_opt_split_opt=${1%%=*}
47327   func_opt_split_arg=${1#*=}
47328 }
47329
47330 # func_lo2o object
47331 func_lo2o ()
47332 {
47333   case ${1} in
47334     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47335     *)    func_lo2o_result=${1} ;;
47336   esac
47337 }
47338
47339 # func_xform libobj-or-source
47340 func_xform ()
47341 {
47342   func_xform_result=${1%.*}.lo
47343 }
47344
47345 # func_arith arithmetic-term...
47346 func_arith ()
47347 {
47348   func_arith_result=$(( $* ))
47349 }
47350
47351 # func_len string
47352 # STRING may not start with a hyphen.
47353 func_len ()
47354 {
47355   func_len_result=${#1}
47356 }
47357
47358 _LT_EOF
47359     ;;
47360   *) # Bourne compatible functions.
47361     cat << \_LT_EOF >> "$cfgfile"
47362
47363 # func_dirname file append nondir_replacement
47364 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47365 # otherwise set result to NONDIR_REPLACEMENT.
47366 func_dirname ()
47367 {
47368   # Extract subdirectory from the argument.
47369   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47370   if test "X$func_dirname_result" = "X${1}"; then
47371     func_dirname_result="${3}"
47372   else
47373     func_dirname_result="$func_dirname_result${2}"
47374   fi
47375 }
47376
47377 # func_basename file
47378 func_basename ()
47379 {
47380   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47381 }
47382
47383
47384 # func_stripname prefix suffix name
47385 # strip PREFIX and SUFFIX off of NAME.
47386 # PREFIX and SUFFIX must not contain globbing or regex special
47387 # characters, hashes, percent signs, but SUFFIX may contain a leading
47388 # dot (in which case that matches only a dot).
47389 # func_strip_suffix prefix name
47390 func_stripname ()
47391 {
47392   case ${2} in
47393     .*) func_stripname_result=`$ECHO "X${3}" \
47394            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47395     *)  func_stripname_result=`$ECHO "X${3}" \
47396            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47397   esac
47398 }
47399
47400 # sed scripts:
47401 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47402 my_sed_long_arg='1s/^-[^=]*=//'
47403
47404 # func_opt_split
47405 func_opt_split ()
47406 {
47407   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47408   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47409 }
47410
47411 # func_lo2o object
47412 func_lo2o ()
47413 {
47414   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47415 }
47416
47417 # func_xform libobj-or-source
47418 func_xform ()
47419 {
47420   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47421 }
47422
47423 # func_arith arithmetic-term...
47424 func_arith ()
47425 {
47426   func_arith_result=`expr "$@"`
47427 }
47428
47429 # func_len string
47430 # STRING may not start with a hyphen.
47431 func_len ()
47432 {
47433   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47434 }
47435
47436 _LT_EOF
47437 esac
47438
47439 case $lt_shell_append in
47440   yes)
47441     cat << \_LT_EOF >> "$cfgfile"
47442
47443 # func_append var value
47444 # Append VALUE to the end of shell variable VAR.
47445 func_append ()
47446 {
47447   eval "$1+=\$2"
47448 }
47449 _LT_EOF
47450     ;;
47451   *)
47452     cat << \_LT_EOF >> "$cfgfile"
47453
47454 # func_append var value
47455 # Append VALUE to the end of shell variable VAR.
47456 func_append ()
47457 {
47458   eval "$1=\$$1\$2"
47459 }
47460
47461 _LT_EOF
47462     ;;
47463   esac
47464
47465
47466   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
47467     || (rm -f "$cfgfile"; exit 1)
47468
47469   mv -f "$cfgfile" "$ofile" ||
47470     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47471   chmod +x "$ofile"
47472
47473
47474     cat <<_LT_EOF >> "$ofile"
47475
47476 # ### BEGIN LIBTOOL TAG CONFIG: CXX
47477
47478 # The linker used to build libraries.
47479 LD=$lt_LD_CXX
47480
47481 # Commands used to build an old-style archive.
47482 old_archive_cmds=$lt_old_archive_cmds_CXX
47483
47484 # A language specific compiler.
47485 CC=$lt_compiler_CXX
47486
47487 # Is the compiler the GNU compiler?
47488 with_gcc=$GCC_CXX
47489
47490 # Compiler flag to turn off builtin functions.
47491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
47492
47493 # How to pass a linker flag through the compiler.
47494 wl=$lt_lt_prog_compiler_wl_CXX
47495
47496 # Additional compiler flags for building library objects.
47497 pic_flag=$lt_lt_prog_compiler_pic_CXX
47498
47499 # Compiler flag to prevent dynamic linking.
47500 link_static_flag=$lt_lt_prog_compiler_static_CXX
47501
47502 # Does compiler simultaneously support -c and -o options?
47503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
47504
47505 # Whether or not to add -lc for building shared libraries.
47506 build_libtool_need_lc=$archive_cmds_need_lc_CXX
47507
47508 # Whether or not to disallow shared libs when runtime libs are static.
47509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
47510
47511 # Compiler flag to allow reflexive dlopens.
47512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
47513
47514 # Compiler flag to generate shared objects directly from archives.
47515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
47516
47517 # Whether the compiler copes with passing no objects directly.
47518 compiler_needs_object=$lt_compiler_needs_object_CXX
47519
47520 # Create an old-style archive from a shared archive.
47521 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
47522
47523 # Create a temporary old-style archive to link instead of a shared archive.
47524 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
47525
47526 # Commands used to build a shared archive.
47527 archive_cmds=$lt_archive_cmds_CXX
47528 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
47529
47530 # Commands used to build a loadable module if different from building
47531 # a shared archive.
47532 module_cmds=$lt_module_cmds_CXX
47533 module_expsym_cmds=$lt_module_expsym_cmds_CXX
47534
47535 # Whether we are building with GNU ld or not.
47536 with_gnu_ld=$lt_with_gnu_ld_CXX
47537
47538 # Flag that allows shared libraries with undefined symbols to be built.
47539 allow_undefined_flag=$lt_allow_undefined_flag_CXX
47540
47541 # Flag that enforces no undefined symbols.
47542 no_undefined_flag=$lt_no_undefined_flag_CXX
47543
47544 # Flag to hardcode \$libdir into a binary during linking.
47545 # This must work even if \$libdir does not exist
47546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
47547
47548 # If ld is used when linking, flag to hardcode \$libdir into a binary
47549 # during linking.  This must work even if \$libdir does not exist.
47550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
47551
47552 # Whether we need a single "-rpath" flag with a separated argument.
47553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
47554
47555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47556 # DIR into the resulting binary.
47557 hardcode_direct=$hardcode_direct_CXX
47558
47559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47560 # DIR into the resulting binary and the resulting library dependency is
47561 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47562 # library is relocated.
47563 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
47564
47565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47566 # into the resulting binary.
47567 hardcode_minus_L=$hardcode_minus_L_CXX
47568
47569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47570 # into the resulting binary.
47571 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
47572
47573 # Set to "yes" if building a shared library automatically hardcodes DIR
47574 # into the library and all subsequent libraries and executables linked
47575 # against it.
47576 hardcode_automatic=$hardcode_automatic_CXX
47577
47578 # Set to yes if linker adds runtime paths of dependent libraries
47579 # to runtime path list.
47580 inherit_rpath=$inherit_rpath_CXX
47581
47582 # Whether libtool must link a program against all its dependency libraries.
47583 link_all_deplibs=$link_all_deplibs_CXX
47584
47585 # Fix the shell variable \$srcfile for the compiler.
47586 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47587
47588 # Set to "yes" if exported symbols are required.
47589 always_export_symbols=$always_export_symbols_CXX
47590
47591 # The commands to list exported symbols.
47592 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47593
47594 # Symbols that should not be listed in the preloaded symbols.
47595 exclude_expsyms=$lt_exclude_expsyms_CXX
47596
47597 # Symbols that must always be exported.
47598 include_expsyms=$lt_include_expsyms_CXX
47599
47600 # Commands necessary for linking programs (against libraries) with templates.
47601 prelink_cmds=$lt_prelink_cmds_CXX
47602
47603 # Specify filename containing input files.
47604 file_list_spec=$lt_file_list_spec_CXX
47605
47606 # How to hardcode a shared library path into an executable.
47607 hardcode_action=$hardcode_action_CXX
47608
47609 # The directories searched by this compiler when creating a shared library.
47610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47611
47612 # Dependencies to place before and after the objects being linked to
47613 # create a shared library.
47614 predep_objects=$lt_predep_objects_CXX
47615 postdep_objects=$lt_postdep_objects_CXX
47616 predeps=$lt_predeps_CXX
47617 postdeps=$lt_postdeps_CXX
47618
47619 # The library search path used internally by the compiler when linking
47620 # a shared library.
47621 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47622
47623 # ### END LIBTOOL TAG CONFIG: CXX
47624 _LT_EOF
47625
47626  ;;
47627     "default-1":C)
47628     for ac_file in $CONFIG_FILES; do
47629       # Support "outfile[:infile[:infile...]]"
47630       case "$ac_file" in
47631         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47632       esac
47633       # PO directories have a Makefile.in generated from Makefile.in.in.
47634       case "$ac_file" in */Makefile.in)
47635         # Adjust a relative srcdir.
47636         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47637         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47638         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47639         # In autoconf-2.13 it is called $ac_given_srcdir.
47640         # In autoconf-2.50 it is called $srcdir.
47641         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47642         case "$ac_given_srcdir" in
47643           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47644           /*) top_srcdir="$ac_given_srcdir" ;;
47645           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
47646         esac
47647         # Treat a directory as a PO directory if and only if it has a
47648         # POTFILES.in file. This allows packages to have multiple PO
47649         # directories under different names or in different locations.
47650         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47651           rm -f "$ac_dir/POTFILES"
47652           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47653           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47654           POMAKEFILEDEPS="POTFILES.in"
47655           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47656           # on $ac_dir but don't depend on user-specified configuration
47657           # parameters.
47658           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47659             # The LINGUAS file contains the set of available languages.
47660             if test -n "$OBSOLETE_ALL_LINGUAS"; then
47661               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47662             fi
47663             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47664             # Hide the ALL_LINGUAS assigment from automake.
47665             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47666             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47667           else
47668             # The set of available languages was given in configure.in.
47669             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47670           fi
47671           # Compute POFILES
47672           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47673           # Compute UPDATEPOFILES
47674           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47675           # Compute DUMMYPOFILES
47676           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47677           # Compute GMOFILES
47678           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47679           case "$ac_given_srcdir" in
47680             .) srcdirpre= ;;
47681             *) srcdirpre='$(srcdir)/' ;;
47682           esac
47683           POFILES=
47684           UPDATEPOFILES=
47685           DUMMYPOFILES=
47686           GMOFILES=
47687           for lang in $ALL_LINGUAS; do
47688             POFILES="$POFILES $srcdirpre$lang.po"
47689             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47690             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47691             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47692           done
47693           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47694           # environment variable.
47695           INST_LINGUAS=
47696           if test -n "$ALL_LINGUAS"; then
47697             for presentlang in $ALL_LINGUAS; do
47698               useit=no
47699               if test "%UNSET%" != "$LINGUAS"; then
47700                 desiredlanguages="$LINGUAS"
47701               else
47702                 desiredlanguages="$ALL_LINGUAS"
47703               fi
47704               for desiredlang in $desiredlanguages; do
47705                 # Use the presentlang catalog if desiredlang is
47706                 #   a. equal to presentlang, or
47707                 #   b. a variant of presentlang (because in this case,
47708                 #      presentlang can be used as a fallback for messages
47709                 #      which are not translated in the desiredlang catalog).
47710                 case "$desiredlang" in
47711                   "$presentlang"*) useit=yes;;
47712                 esac
47713               done
47714               if test $useit = yes; then
47715                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47716               fi
47717             done
47718           fi
47719           CATALOGS=
47720           if test -n "$INST_LINGUAS"; then
47721             for lang in $INST_LINGUAS; do
47722               CATALOGS="$CATALOGS $lang.gmo"
47723             done
47724           fi
47725           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47726           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"
47727           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47728             if test -f "$f"; then
47729               case "$f" in
47730                 *.orig | *.bak | *~) ;;
47731                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47732               esac
47733             fi
47734           done
47735         fi
47736         ;;
47737       esac
47738     done ;;
47739     "default":C)
47740  ;;
47741
47742   esac
47743 done # for ac_tag
47744
47745
47746 { (exit 0); exit 0; }
47747 _ACEOF
47748 chmod +x $CONFIG_STATUS
47749 ac_clean_files=$ac_clean_files_save
47750
47751
47752 # configure is writing to config.log, and then calls config.status.
47753 # config.status does its own redirection, appending to config.log.
47754 # Unfortunately, on DOS this fails, as config.log is still kept open
47755 # by configure, so config.status won't be able to write to it; its
47756 # output is simply discarded.  So we exec the FD to /dev/null,
47757 # effectively closing config.log, so it can be properly (re)opened and
47758 # appended to by config.status.  When coming back to configure, we
47759 # need to make the FD available again.
47760 if test "$no_create" != yes; then
47761   ac_cs_success=:
47762   ac_config_status_args=
47763   test "$silent" = yes &&
47764     ac_config_status_args="$ac_config_status_args --quiet"
47765   exec 5>/dev/null
47766   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47767   exec 5>>config.log
47768   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47769   # would make configure fail if this is the last instruction.
47770   $ac_cs_success || { (exit 1); exit 1; }
47771 fi
47772
47773
47774 if test "${support_bat}" = "yes" ; then
47775    if test "x$QMAKE" = "xnone"; then
47776       { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47777 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47778    { (exit 1); exit 1; }; }
47779    fi
47780
47781    QMAKEBIN="qmake"
47782    cd src/qt-console
47783    echo "Creating bat Makefile"
47784    touch bat
47785    chmod 755 bat
47786    rm -f Makefile
47787    $QMAKEBIN
47788    ${MAKE:-make} clean
47789    cd ${BUILD_DIR}
47790 fi
47791
47792 if test X"$GCC" = "Xyes" ; then
47793   echo "Doing make of dependencies"
47794   ${MAKE:-make} depend
47795 fi
47796
47797 cd src/qt-console
47798 chmod 755 install_conf_file build-depkgs-qt-console
47799 cd ${BUILD_DIR}
47800
47801 cd scripts
47802 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47803 chmod 755 dvd-handler dvd-simulator
47804 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47805 cd ..
47806
47807 c=updatedb
47808 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
47809 chmod 755 $c/update_postgresql_tables_10_to_11
47810 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
47811 chmod 755 $c/update_postgresql_tables_11_to_12
47812
47813
47814 c=src/cats
47815
47816 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
47817 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
47818
47819 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
47820 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
47821
47822 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
47823 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
47824
47825 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
47826 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
47827
47828 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
47829 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
47830
47831
47832 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
47833 chmod 755 $c/sqlite
47834 chmod 755 $c/mysql
47835
47836 chmod 755 src/win32/build-depkgs-mingw32
47837
47838 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47839    largefile_support="yes"
47840 fi
47841
47842 if test X"$GCC" = "Xyes" ; then
47843                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47844    if test "x${CCVERSION}" = "x" ; then
47845       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47846    fi
47847    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47848    if test x"${CXXVERSION}" = x ; then
47849       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47850    fi
47851 fi
47852
47853 # clean up any old junk
47854 echo " "
47855 echo "Cleaning up"
47856 echo " "
47857 ${MAKE:-make} clean
47858
47859 if test "x${db_type}" = "xInternal" ; then
47860    echo " "
47861    echo " "
47862    echo "You have not specified either --enable-client-only or one of the"
47863    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47864    echo "  This is not permitted. Please reconfigure."
47865    echo " "
47866    echo "Aborting the configuration ..."
47867    echo " "
47868    echo " "
47869    exit 1
47870 fi
47871
47872 echo "
47873 Configuration on `date`:
47874
47875    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47876    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47877    Source code location:    ${srcdir}
47878    Install binaries:        ${sbindir}
47879    Install libraries:       ${libdir}
47880    Install config files:    ${sysconfdir}
47881    Scripts directory:       ${scriptdir}
47882    Archive directory:       ${archivedir}
47883    Working directory:       ${working_dir}
47884    PID directory:           ${piddir}
47885    Subsys directory:        ${subsysdir}
47886    Man directory:           ${mandir}
47887    Data directory:          ${datarootdir}
47888    Plugin directory:        ${plugindir}
47889    C Compiler:              ${CC} ${CCVERSION}
47890    C++ Compiler:            ${CXX} ${CXXVERSION}
47891    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47892    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47893    Libraries:               ${LIBS}
47894    Statically Linked Tools: ${support_static_tools}
47895    Statically Linked FD:    ${support_static_fd}
47896    Statically Linked SD:    ${support_static_sd}
47897    Statically Linked DIR:   ${support_static_dir}
47898    Statically Linked CONS:  ${support_static_cons}
47899    Database type:           ${db_type}
47900    Database port:           ${db_port}
47901    Database lib:            ${DB_LIBS}
47902    Database name:           ${db_name}
47903    Database user:           ${db_user}
47904
47905    Job Output Email:        ${job_email}
47906    Traceback Email:         ${dump_email}
47907    SMTP Host Address:       ${smtp_host}
47908
47909    Director Port:           ${dir_port}
47910    File daemon Port:        ${fd_port}
47911    Storage daemon Port:     ${sd_port}
47912
47913    Director User:           ${dir_user}
47914    Director Group:          ${dir_group}
47915    Storage Daemon User:     ${sd_user}
47916    Storage DaemonGroup:     ${sd_group}
47917    File Daemon User:        ${fd_user}
47918    File Daemon Group:       ${fd_group}
47919
47920    SQL binaries Directory   ${SQL_BINDIR}
47921
47922    Large file support:      $largefile_support
47923    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47924    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47925    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47926    TLS support:             ${support_tls}
47927    Encryption support:      ${support_crypto}
47928    ZLIB support:            ${have_zlib}
47929    enable-smartalloc:       ${support_smartalloc}
47930    enable-lockmgr:          ${support_lockmgr}
47931    bat support:             ${support_bat}
47932    enable-gnome:            ${support_gnome} ${gnome_version}
47933    enable-bwx-console:      ${support_wx_console} ${wx_version}
47934    enable-tray-monitor:     ${support_tray_monitor}
47935    client-only:             ${build_client_only}
47936    build-dird:              ${build_dird}
47937    build-stored:            ${build_stored}
47938    Plugin support:          ${have_plugins}
47939    AFS support:             ${have_afs}
47940    ACL support:             ${have_acl}
47941    XATTR support:           ${have_xattr}
47942    Python support:          ${support_python} ${PYTHON_LIBS}
47943    Batch insert enabled:    ${support_batch_insert}
47944
47945   " > config.out
47946
47947 # create a small shell script useful for support with
47948 # configure options and config.out info
47949 cat > scripts/bacula_config << EOF
47950 #!/bin/sh
47951 cat << __EOC__
47952 $ $0 $ac_configure_args
47953 EOF
47954 cat config.out >> scripts/bacula_config
47955 echo __EOC__ >> scripts/bacula_config
47956 chmod 755 scripts/bacula_config
47957
47958 cat config.out
47959
47960 # Display a warning message if postgresql client lib is <= 8.1
47961 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47962         -a x$support_batch_insert = xyes
47963 then
47964         echo "WARNING: Your PostgreSQL client library is too old to detect "
47965         echo " if it was compiled with --enable-thread-safety, consider to"
47966         echo " upgrade it in order to avoid problems with Batch insert mode"
47967         echo
47968 fi