]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
843ca9f6d06915e57cc3313f9d19d72735901e8f
[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 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 GNOME_INCLUDEDIR
950 GNOMEUI_LIBS
951 GNOME_LIBDIR
952 GNOME_LIBS
953 GNOME_DIR
954 BAT_DIR
955 QWT_INC
956 QWT_LDFLAGS
957 QWT_LIB
958 QWT
959 WXCONS_CPPFLAGS
960 WXCONS_LDFLAGS
961 WX_DIR
962 TRAY_MONITOR_CPPFLAGS
963 TRAY_MONITOR_LDFLAGS
964 TRAY_MONITOR_DIR
965 TTOOL_LDFLAGS
966 STATIC_FD
967 STATIC_SD
968 STATIC_DIR
969 STATIC_CONS
970 STATIC_GNOME_CONS
971 STATIC_WX_CONS
972 ALL_DIRS
973 DIRD_DIR
974 DIR_TOOLS
975 STORED_DIR
976 CONS_INC
977 CONS_OBJ
978 CONS_SRC
979 CONS_LIBS
980 CONS_LDFLAGS
981 READLINE_SRC
982 PYTHON_LIBS
983 PYTHON_INCDIR
984 OPENSSL_LIBS
985 OPENSSL_INC
986 working_dir
987 archivedir
988 scriptdir
989 plugindir
990 dump_email
991 job_email
992 smtp_host
993 piddir
994 subsysdir
995 baseport
996 dir_port
997 fd_port
998 sd_port
999 dir_password
1000 fd_password
1001 sd_password
1002 mon_dir_password
1003 mon_fd_password
1004 mon_sd_password
1005 db_name
1006 db_user
1007 db_password
1008 db_port
1009 dir_user
1010 dir_group
1011 sd_user
1012 sd_group
1013 fd_user
1014 fd_group
1015 SBINPERM
1016 SQL_LFLAGS
1017 SQL_INCLUDE
1018 SQL_BINDIR
1019 DBI_DBD_DRIVERDIR
1020 uncomment_dbi
1021 DB_PROG
1022 DB_PROG_LIB
1023 cats
1024 DB_TYPE
1025 GETCONF
1026 XMKMF
1027 X_CFLAGS
1028 X_PRE_LIBS
1029 X_LIBS
1030 X_EXTRA_LIBS
1031 LIBOBJS
1032 FDLIBS
1033 DEBUG
1034 DINCLUDE
1035 DLIB
1036 DB_LIBS
1037 WCFLAGS
1038 WLDFLAGS
1039 WRAPLIBS
1040 OBJLIST
1041 hostname
1042 TAPEDRIVE
1043 PSCMD
1044 WIN32
1045 MACOSX
1046 DISTNAME
1047 DISTVER
1048 LTLIBOBJS'
1049 ac_subst_files='MCOMMON'
1050       ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1053 CC
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CXX
1059 CXXFLAGS
1060 CCC
1061 CPP
1062 WXCONFIG
1063 WXFLAGS
1064 CXXCPP
1065 XMKMF'
1066
1067
1068 # Initialize some variables set by options.
1069 ac_init_help=
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1087
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1113
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1117 do
1118   # If the previous option needs an argument, assign it.
1119   if test -n "$ac_prev"; then
1120     eval $ac_prev=\$ac_option
1121     ac_prev=
1122     continue
1123   fi
1124
1125   case $ac_option in
1126   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127   *)    ac_optarg=yes ;;
1128   esac
1129
1130   # Accept the important Cygnus configure options, so we can diagnose typos.
1131
1132   case $ac_dashdash$ac_option in
1133   --)
1134     ac_dashdash=yes ;;
1135
1136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137     ac_prev=bindir ;;
1138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139     bindir=$ac_optarg ;;
1140
1141   -build | --build | --buil | --bui | --bu)
1142     ac_prev=build_alias ;;
1143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144     build_alias=$ac_optarg ;;
1145
1146   -cache-file | --cache-file | --cache-fil | --cache-fi \
1147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148     ac_prev=cache_file ;;
1149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151     cache_file=$ac_optarg ;;
1152
1153   --config-cache | -C)
1154     cache_file=config.cache ;;
1155
1156   -datadir | --datadir | --datadi | --datad)
1157     ac_prev=datadir ;;
1158   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159     datadir=$ac_optarg ;;
1160
1161   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162   | --dataroo | --dataro | --datar)
1163     ac_prev=datarootdir ;;
1164   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166     datarootdir=$ac_optarg ;;
1167
1168   -disable-* | --disable-*)
1169     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173    { (exit 1); exit 1; }; }
1174     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175     eval enable_$ac_feature=no ;;
1176
1177   -docdir | --docdir | --docdi | --doc | --do)
1178     ac_prev=docdir ;;
1179   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180     docdir=$ac_optarg ;;
1181
1182   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183     ac_prev=dvidir ;;
1184   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185     dvidir=$ac_optarg ;;
1186
1187   -enable-* | --enable-*)
1188     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192    { (exit 1); exit 1; }; }
1193     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194     eval enable_$ac_feature=\$ac_optarg ;;
1195
1196   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198   | --exec | --exe | --ex)
1199     ac_prev=exec_prefix ;;
1200   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202   | --exec=* | --exe=* | --ex=*)
1203     exec_prefix=$ac_optarg ;;
1204
1205   -gas | --gas | --ga | --g)
1206     # Obsolete; use --with-gas.
1207     with_gas=yes ;;
1208
1209   -help | --help | --hel | --he | -h)
1210     ac_init_help=long ;;
1211   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212     ac_init_help=recursive ;;
1213   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214     ac_init_help=short ;;
1215
1216   -host | --host | --hos | --ho)
1217     ac_prev=host_alias ;;
1218   -host=* | --host=* | --hos=* | --ho=*)
1219     host_alias=$ac_optarg ;;
1220
1221   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222     ac_prev=htmldir ;;
1223   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224   | --ht=*)
1225     htmldir=$ac_optarg ;;
1226
1227   -includedir | --includedir | --includedi | --included | --include \
1228   | --includ | --inclu | --incl | --inc)
1229     ac_prev=includedir ;;
1230   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231   | --includ=* | --inclu=* | --incl=* | --inc=*)
1232     includedir=$ac_optarg ;;
1233
1234   -infodir | --infodir | --infodi | --infod | --info | --inf)
1235     ac_prev=infodir ;;
1236   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237     infodir=$ac_optarg ;;
1238
1239   -libdir | --libdir | --libdi | --libd)
1240     ac_prev=libdir ;;
1241   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242     libdir=$ac_optarg ;;
1243
1244   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245   | --libexe | --libex | --libe)
1246     ac_prev=libexecdir ;;
1247   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248   | --libexe=* | --libex=* | --libe=*)
1249     libexecdir=$ac_optarg ;;
1250
1251   -localedir | --localedir | --localedi | --localed | --locale)
1252     ac_prev=localedir ;;
1253   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254     localedir=$ac_optarg ;;
1255
1256   -localstatedir | --localstatedir | --localstatedi | --localstated \
1257   | --localstate | --localstat | --localsta | --localst | --locals)
1258     ac_prev=localstatedir ;;
1259   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261     localstatedir=$ac_optarg ;;
1262
1263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264     ac_prev=mandir ;;
1265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266     mandir=$ac_optarg ;;
1267
1268   -nfp | --nfp | --nf)
1269     # Obsolete; use --without-fp.
1270     with_fp=no ;;
1271
1272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273   | --no-cr | --no-c | -n)
1274     no_create=yes ;;
1275
1276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278     no_recursion=yes ;;
1279
1280   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282   | --oldin | --oldi | --old | --ol | --o)
1283     ac_prev=oldincludedir ;;
1284   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287     oldincludedir=$ac_optarg ;;
1288
1289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290     ac_prev=prefix ;;
1291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292     prefix=$ac_optarg ;;
1293
1294   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295   | --program-pre | --program-pr | --program-p)
1296     ac_prev=program_prefix ;;
1297   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299     program_prefix=$ac_optarg ;;
1300
1301   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302   | --program-suf | --program-su | --program-s)
1303     ac_prev=program_suffix ;;
1304   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306     program_suffix=$ac_optarg ;;
1307
1308   -program-transform-name | --program-transform-name \
1309   | --program-transform-nam | --program-transform-na \
1310   | --program-transform-n | --program-transform- \
1311   | --program-transform | --program-transfor \
1312   | --program-transfo | --program-transf \
1313   | --program-trans | --program-tran \
1314   | --progr-tra | --program-tr | --program-t)
1315     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1324
1325   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326     ac_prev=pdfdir ;;
1327   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328     pdfdir=$ac_optarg ;;
1329
1330   -psdir | --psdir | --psdi | --psd | --ps)
1331     ac_prev=psdir ;;
1332   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333     psdir=$ac_optarg ;;
1334
1335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336   | -silent | --silent | --silen | --sile | --sil)
1337     silent=yes ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
1366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367   | --syscon | --sysco | --sysc | --sys | --sy)
1368     ac_prev=sysconfdir ;;
1369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371     sysconfdir=$ac_optarg ;;
1372
1373   -target | --target | --targe | --targ | --tar | --ta | --t)
1374     ac_prev=target_alias ;;
1375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376     target_alias=$ac_optarg ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
1385     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=\$ac_optarg ;;
1392
1393   -without-* | --without-*)
1394     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395     # Reject names that are not valid shell variable names.
1396     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       { echo "$as_me: error: invalid package name: $ac_package" >&2
1398    { (exit 1); exit 1; }; }
1399     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400     eval with_$ac_package=no ;;
1401
1402   --x)
1403     # Obsolete; use --with-x.
1404     with_x=yes ;;
1405
1406   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407   | --x-incl | --x-inc | --x-in | --x-i)
1408     ac_prev=x_includes ;;
1409   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411     x_includes=$ac_optarg ;;
1412
1413   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415     ac_prev=x_libraries ;;
1416   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418     x_libraries=$ac_optarg ;;
1419
1420   -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422    { (exit 1); exit 1; }; }
1423     ;;
1424
1425   *=*)
1426     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427     # Reject names that are not valid shell variable names.
1428     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430    { (exit 1); exit 1; }; }
1431     eval $ac_envvar=\$ac_optarg
1432     export $ac_envvar ;;
1433
1434   *)
1435     # FIXME: should be removed in autoconf 3.0.
1436     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1440     ;;
1441
1442   esac
1443 done
1444
1445 if test -n "$ac_prev"; then
1446   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447   { echo "$as_me: error: missing argument to $ac_option" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 # Be sure to have absolute directory names.
1452 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453                 datadir sysconfdir sharedstatedir localstatedir includedir \
1454                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455                 libdir localedir mandir
1456 do
1457   eval ac_val=\$$ac_var
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463    { (exit 1); exit 1; }; }
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used." >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   { echo "$as_me: error: Working directory cannot be determined" >&2
1494    { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   { echo "$as_me: error: pwd does not report name of working directory" >&2
1497    { (exit 1); exit 1; }; }
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$0" : 'X\(//\)[^/]' \| \
1507          X"$0" : 'X\(//\)$' \| \
1508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 echo X"$0" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542    { (exit 1); exit 1; }; }
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures this package to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR           user executables [EPREFIX/bin]
1603   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR       program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR           object code libraries [EPREFIX/lib]
1609   --includedir=DIR       C header files [PREFIX/include]
1610   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR          info documentation [DATAROOTDIR/info]
1614   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR           man documentation [DATAROOTDIR/man]
1616   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1617   --htmldir=DIR          html documentation [DOCDIR]
1618   --dvidir=DIR           dvi documentation [DOCDIR]
1619   --pdfdir=DIR           pdf documentation [DOCDIR]
1620   --psdir=DIR            ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 X features:
1626   --x-includes=DIR    X include files are in DIR
1627   --x-libraries=DIR   X library files are in DIR
1628
1629 System types:
1630   --build=BUILD     configure for building on BUILD [guessed]
1631   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632 _ACEOF
1633 fi
1634
1635 if test -n "$ac_init_help"; then
1636
1637   cat <<\_ACEOF
1638
1639 Optional Features:
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-libtool        enable building using GNU libtool [default=yes]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=no]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-includes       enable installing of include files [default=no]
1649   --disable-nls           do not use Native Language Support
1650   --disable-rpath         do not hardcode runtime library paths
1651   --enable-gnome          enable build of bgnome-console GUI [default=no]
1652   --enable-bat            enable build of bat Qt4 GUI [default=no]
1653   --enable-bwx-console    enable build of wxWidgets console [default=no]
1654   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1655                           KDE [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=no]
1671   --disable-largefile     omit support for large files
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic              try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-qwt[=DIR]        specify qwt library directory
1688   --with-readline[=DIR]   specify readline library directory
1689   --with-python[=DIR]     Include Python support. DIR is the Python base
1690                           install directory, default is to search through a
1691                           number of common places for the Python files.
1692   --with-tcp-wrappers[=DIR]
1693                           enable tcpwrappers support
1694   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1695   --with-working-dir=PATH specify path of Bacula working directory
1696   --with-archivedir=PATH  specify path of SD archive directory
1697   --with-scriptdir=PATH   specify path of Bacula scripts directory
1698   --with-plugindir=PATH   specify path of Bacula plugins directory
1699   --with-dump-email=EMAIL dump email address
1700   --with-job-email=EMAIL  job output email address
1701   --with-smtp-host=HOST   SMTP mail host address
1702   --with-pid-dir=PATH     specify location of Bacula pid files
1703   --with-subsys-dir=PATH  specify location of Bacula subsys file
1704   --with-baseport=PORT    specify base port address for daemons
1705   --with-dir-password=PASSWORD
1706                           specify Director's password
1707   --with-fd-password=PASSWORD
1708                           specify Client's password
1709   --with-sd-password=PASSWORD
1710                           specify Storage daemon's password
1711   --with-mon-dir-password=PASSWORD
1712                           specify Director's password used by the monitor
1713   --with-mon-fd-password=PASSWORD
1714                           specify Client's password used by the monitor
1715   --with-mon-sd-password=PASSWORD
1716                           specify Storage daemon's password used by the
1717                           monitor
1718   --with-db-name=DBNAME   specify database name [default=bacula]
1719   --with-db-user=UNAME    specify database user [default=bacula]
1720   --with-db-password=PWD  specify database password [default=*none*]
1721   --with-db-port=DBPORT   specify a database port [default=null]
1722   --with-dir-user=USER    specify user for Director daemon
1723   --with-dir-group=GROUP  specify group for Director daemon
1724   --with-sd-user=USER     specify user for Storage daemon
1725   --with-sd-group=GROUP   specify group for Storage daemon
1726   --with-fd-user=USER     specify user for File daemon
1727   --with-fd-group=GROUP   specify group for File daemon
1728   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1729   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1730                           base install directory, [default=/usr/local/pgsql]
1731   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1732                           directory, default is to search through a number of
1733                           common places for the MySQL files.
1734   --with-embedded-mysql[=DIR]
1735                           Include MySQL support. DIR is the MySQL base install
1736                           directory, default is to search through a number of
1737                           common places for the MySQL files.
1738   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1739                           install directory, default is to search through a
1740                           number of common places for the SQLite3 files.
1741   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite files.
1744   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1745                           directory, default is to search through a number of
1746                           common places for the DBI files.
1747   --with-dbi-driver[=DRIVER]
1748                           Suport for DBI driver. DRIVER is the one DBI driver
1749                           like Mysql, Postgresql, others. Default is to not
1750                           configure any driver.
1751   --with-x                use the X Window System
1752
1753 Some influential environment variables:
1754   CC          C compiler command
1755   CFLAGS      C compiler flags
1756   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1757               nonstandard directory <lib dir>
1758   LIBS        libraries to pass to the linker, e.g. -l<library>
1759   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760               you have headers in a nonstandard directory <include dir>
1761   CXX         C++ compiler command
1762   CXXFLAGS    C++ compiler flags
1763   CPP         C preprocessor
1764   WXCONFIG    wx-config command. On some systems, you must set it to
1765               wx-config-2.6 to use wxWidgets 2.6.
1766   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1767   CXXCPP      C++ preprocessor
1768   XMKMF       Path to xmkmf, Makefile generator for X Window System
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 _ACEOF
1774 ac_status=$?
1775 fi
1776
1777 if test "$ac_init_help" = "recursive"; then
1778   # If there are subdirs, report their specific --help.
1779   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1780     test -d "$ac_dir" || continue
1781     ac_builddir=.
1782
1783 case "$ac_dir" in
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 *)
1786   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1787   # A ".." for each directory in $ac_dir_suffix.
1788   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1789   case $ac_top_builddir_sub in
1790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792   esac ;;
1793 esac
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1798
1799 case $srcdir in
1800   .)  # We are building in place.
1801     ac_srcdir=.
1802     ac_top_srcdir=$ac_top_builddir_sub
1803     ac_abs_top_srcdir=$ac_pwd ;;
1804   [\\/]* | ?:[\\/]* )  # Absolute name.
1805     ac_srcdir=$srcdir$ac_dir_suffix;
1806     ac_top_srcdir=$srcdir
1807     ac_abs_top_srcdir=$srcdir ;;
1808   *) # Relative name.
1809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810     ac_top_srcdir=$ac_top_build_prefix$srcdir
1811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 esac
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1814
1815     cd "$ac_dir" || { ac_status=$?; continue; }
1816     # Check for guested configure.
1817     if test -f "$ac_srcdir/configure.gnu"; then
1818       echo &&
1819       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820     elif test -f "$ac_srcdir/configure"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure" --help=recursive
1823     else
1824       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825     fi || ac_status=$?
1826     cd "$ac_pwd" || { ac_status=$?; break; }
1827   done
1828 fi
1829
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1832   cat <<\_ACEOF
1833 configure
1834 generated by GNU Autoconf 2.61
1835
1836 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1837 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841   exit
1842 fi
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1846
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.61.  Invocation command line was
1849
1850   $ $0 $@
1851
1852 _ACEOF
1853 exec 5>>config.log
1854 {
1855 cat <<_ASUNAME
1856 ## --------- ##
1857 ## Platform. ##
1858 ## --------- ##
1859
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1868
1869 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1870 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1873 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1874 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1875 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1876
1877 _ASUNAME
1878
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   echo "PATH: $as_dir"
1885 done
1886 IFS=$as_save_IFS
1887
1888 } >&5
1889
1890 cat >&5 <<_ACEOF
1891
1892
1893 ## ----------- ##
1894 ## Core tests. ##
1895 ## ----------- ##
1896
1897 _ACEOF
1898
1899
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_configure_args=
1906 ac_configure_args0=
1907 ac_configure_args1=
1908 ac_must_keep_next=false
1909 for ac_pass in 1 2
1910 do
1911   for ac_arg
1912   do
1913     case $ac_arg in
1914     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916     | -silent | --silent | --silen | --sile | --sil)
1917       continue ;;
1918     *\'*)
1919       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     esac
1921     case $ac_pass in
1922     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1923     2)
1924       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1925       if test $ac_must_keep_next = true; then
1926         ac_must_keep_next=false # Got value, back to normal.
1927       else
1928         case $ac_arg in
1929           *=* | --config-cache | -C | -disable-* | --disable-* \
1930           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932           | -with-* | --with-* | -without-* | --without-* | --x)
1933             case "$ac_configure_args0 " in
1934               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1935             esac
1936             ;;
1937           -* ) ac_must_keep_next=true ;;
1938         esac
1939       fi
1940       ac_configure_args="$ac_configure_args '$ac_arg'"
1941       ;;
1942     esac
1943   done
1944 done
1945 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1946 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1947
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log.  We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954   # Save into config.log some information that might help in debugging.
1955   {
1956     echo
1957
1958     cat <<\_ASBOX
1959 ## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##
1962 _ASBOX
1963     echo
1964     # The following way of writing the cache mishandles newlines in values,
1965 (
1966   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967     eval ac_val=\$$ac_var
1968     case $ac_val in #(
1969     *${as_nl}*)
1970       case $ac_var in #(
1971       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1973       esac
1974       case $ac_var in #(
1975       _ | IFS | as_nl) ;; #(
1976       *) $as_unset $ac_var ;;
1977       esac ;;
1978     esac
1979   done
1980   (set) 2>&1 |
1981     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982     *${as_nl}ac_space=\ *)
1983       sed -n \
1984         "s/'\''/'\''\\\\'\'''\''/g;
1985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986       ;; #(
1987     *)
1988       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989       ;;
1990     esac |
1991     sort
1992 )
1993     echo
1994
1995     cat <<\_ASBOX
1996 ## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##
1999 _ASBOX
2000     echo
2001     for ac_var in $ac_subst_vars
2002     do
2003       eval ac_val=\$$ac_var
2004       case $ac_val in
2005       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006       esac
2007       echo "$ac_var='\''$ac_val'\''"
2008     done | sort
2009     echo
2010
2011     if test -n "$ac_subst_files"; then
2012       cat <<\_ASBOX
2013 ## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##
2016 _ASBOX
2017       echo
2018       for ac_var in $ac_subst_files
2019       do
2020         eval ac_val=\$$ac_var
2021         case $ac_val in
2022         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023         esac
2024         echo "$ac_var='\''$ac_val'\''"
2025       done | sort
2026       echo
2027     fi
2028
2029     if test -s confdefs.h; then
2030       cat <<\_ASBOX
2031 ## ----------- ##
2032 ## confdefs.h. ##
2033 ## ----------- ##
2034 _ASBOX
2035       echo
2036       cat confdefs.h
2037       echo
2038     fi
2039     test "$ac_signal" != 0 &&
2040       echo "$as_me: caught signal $ac_signal"
2041     echo "$as_me: exit $exit_status"
2042   } >&5
2043   rm -f core *.core core.conftest.* &&
2044     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045     exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 # Predefined preprocessor variables.
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 _ACEOF
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 _ACEOF
2075
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 _ACEOF
2080
2081
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085   set x "$CONFIG_SITE"
2086 elif test "x$prefix" != xNONE; then
2087   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2088 else
2089   set x "$ac_default_prefix/share/config.site" \
2090         "$ac_default_prefix/etc/config.site"
2091 fi
2092 shift
2093 for ac_site_file
2094 do
2095   if test -r "$ac_site_file"; then
2096     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 echo "$as_me: loading site script $ac_site_file" >&6;}
2098     sed 's/^/| /' "$ac_site_file" >&5
2099     . "$ac_site_file"
2100   fi
2101 done
2102
2103 if test -r "$cache_file"; then
2104   # Some versions of bash will fail to source /dev/null (special
2105   # files actually), so we avoid doing that.
2106   if test -f "$cache_file"; then
2107     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 echo "$as_me: loading cache $cache_file" >&6;}
2109     case $cache_file in
2110       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111       *)                      . "./$cache_file";;
2112     esac
2113   fi
2114 else
2115   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 echo "$as_me: creating cache $cache_file" >&6;}
2117   >$cache_file
2118 fi
2119
2120 # Check that the precious variables saved in the cache have kept the same
2121 # value.
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125   eval ac_new_set=\$ac_env_${ac_var}_set
2126   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127   eval ac_new_val=\$ac_env_${ac_var}_value
2128   case $ac_old_set,$ac_new_set in
2129     set,)
2130       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132       ac_cache_corrupted=: ;;
2133     ,set)
2134       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136       ac_cache_corrupted=: ;;
2137     ,);;
2138     *)
2139       if test "x$ac_old_val" != "x$ac_new_val"; then
2140         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2141 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2143 echo "$as_me:   former value:  $ac_old_val" >&2;}
2144         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2145 echo "$as_me:   current value: $ac_new_val" >&2;}
2146         ac_cache_corrupted=:
2147       fi;;
2148   esac
2149   # Pass precious variables to config.status.
2150   if test "$ac_new_set" = set; then
2151     case $ac_new_val in
2152     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153     *) ac_arg=$ac_var=$ac_new_val ;;
2154     esac
2155     case " $ac_configure_args " in
2156       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2157       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2158     esac
2159   fi
2160 done
2161 if $ac_cache_corrupted; then
2162   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2163 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2165 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191
2192 BUILD_DIR=`pwd`
2193 cd ..
2194 TOP_DIR=`pwd`
2195 cd ${BUILD_DIR}
2196
2197
2198 ac_aux_dir=
2199 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2200   if test -f "$ac_dir/install-sh"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/install-sh -c"
2203     break
2204   elif test -f "$ac_dir/install.sh"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/install.sh -c"
2207     break
2208   elif test -f "$ac_dir/shtool"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/shtool install -c"
2211     break
2212   fi
2213 done
2214 if test -z "$ac_aux_dir"; then
2215   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2216 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2217    { (exit 1); exit 1; }; }
2218 fi
2219
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2227
2228
2229 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2230
2231
2232 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2233 WIN32MAINDIR=${BUILD_DIR}
2234 WIN32TOPDIR=${TOP_DIR}
2235
2236
2237
2238
2239
2240
2241
2242 for ac_prog in true
2243 do
2244   # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   case $TRUEPRG in
2252   [\\/]* | ?:[\\/]*)
2253   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2254   ;;
2255   *)
2256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271   ;;
2272 esac
2273 fi
2274 TRUEPRG=$ac_cv_path_TRUEPRG
2275 if test -n "$TRUEPRG"; then
2276   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2277 echo "${ECHO_T}$TRUEPRG" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284   test -n "$TRUEPRG" && break
2285 done
2286 test -n "$TRUEPRG" || TRUEPRG=":"
2287
2288 for ac_prog in false
2289 do
2290   # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   case $FALSEPRG in
2298   [\\/]* | ?:[\\/]*)
2299   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2300   ;;
2301   *)
2302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317   ;;
2318 esac
2319 fi
2320 FALSEPRG=$ac_cv_path_FALSEPRG
2321 if test -n "$FALSEPRG"; then
2322   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2323 echo "${ECHO_T}$FALSEPRG" >&6; }
2324 else
2325   { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330   test -n "$FALSEPRG" && break
2331 done
2332 test -n "$FALSEPRG" || FALSEPRG=":"
2333
2334
2335
2336 post_host=
2337 if test "x$BACULA" != x; then
2338    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2339 fi
2340 BACULA=${BACULA-Bacula}
2341 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 echo "configuring for ${BACULA} $VERSION ($DATE)"
2345
2346
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$CC"; then
2361   ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382   { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$ac_cv_prog_CC"; then
2392   ac_ct_CC=$CC
2393   # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_CC"; then
2401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_ac_ct_CC="gcc"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429   if test "x$ac_ct_CC" = x; then
2430     CC=""
2431   else
2432     case $cross_compiling:$ac_tool_warned in
2433 yes:)
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     CC=$ac_ct_CC
2443   fi
2444 else
2445   CC="$ac_cv_prog_CC"
2446 fi
2447
2448 if test -z "$CC"; then
2449           if test -n "$ac_tool_prefix"; then
2450     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$CC"; then
2458   ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467     ac_cv_prog_CC="${ac_tool_prefix}cc"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 CC=$ac_cv_prog_CC
2478 if test -n "$CC"; then
2479   { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2481 else
2482   { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2484 fi
2485
2486
2487   fi
2488 fi
2489 if test -z "$CC"; then
2490   # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   if test -n "$CC"; then
2498   ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500   ac_prog_rejected=no
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509        ac_prog_rejected=yes
2510        continue
2511      fi
2512     ac_cv_prog_CC="cc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 if test $ac_prog_rejected = yes; then
2521   # We found a bogon in the path, so make sure we never use it.
2522   set dummy $ac_cv_prog_CC
2523   shift
2524   if test $# != 0; then
2525     # We chose a different compiler from the bogus one.
2526     # However, it has the same basename, so the bogon will be chosen
2527     # first if we set CC to just the basename; use the full file name.
2528     shift
2529     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530   fi
2531 fi
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536   { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 fi
2542
2543
2544 fi
2545 if test -z "$CC"; then
2546   if test -n "$ac_tool_prefix"; then
2547   for ac_prog in cl.exe
2548   do
2549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586     test -n "$CC" && break
2587   done
2588 fi
2589 if test -z "$CC"; then
2590   ac_ct_CC=$CC
2591   for ac_prog in cl.exe
2592 do
2593   # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$ac_ct_CC"; then
2601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_ac_ct_CC="$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630   test -n "$ac_ct_CC" && break
2631 done
2632
2633   if test "x$ac_ct_CC" = x; then
2634     CC=""
2635   else
2636     case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet.  If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646     CC=$ac_ct_CC
2647   fi
2648 fi
2649
2650 fi
2651
2652
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compiler --version >&5") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678   (eval "$ac_compiler -v >&5") 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2683 case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688   (eval "$ac_compiler -V >&5") 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699
2700 int
2701 main ()
2702 {
2703
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2712 # of exeext.
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716 #
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort.  b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721 #
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions.  Remove them first so a
2724 # subsequent execution test works.
2725 ac_rmfiles=
2726 for ac_file in $ac_files
2727 do
2728   case $ac_file in
2729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731   esac
2732 done
2733 rm -f $ac_rmfiles
2734
2735 if { (ac_try="$ac_link_default"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_link_default") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2749 # Autoconf.
2750 for ac_file in $ac_files ''
2751 do
2752   test -f "$ac_file" || continue
2753   case $ac_file in
2754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2755         ;;
2756     [ab].out )
2757         # We found the default executable, but exeext='' is most
2758         # certainly right.
2759         break;;
2760     *.* )
2761         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762         then :; else
2763            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764         fi
2765         # We set ac_cv_exeext here because the later test for it is not
2766         # safe: cross compilers may not add the suffix if given an `-o'
2767         # argument, so we may need to know it at that point already.
2768         # Even if this section looks crufty: it has the advantage of
2769         # actually working.
2770         break;;
2771     * )
2772         break;;
2773   esac
2774 done
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
2777 else
2778   ac_file=''
2779 fi
2780
2781 { echo "$as_me:$LINENO: result: $ac_file" >&5
2782 echo "${ECHO_T}$ac_file" >&6; }
2783 if test -z "$ac_file"; then
2784   echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791    { (exit 77); exit 77; }; }
2792 fi
2793
2794 ac_exeext=$ac_cv_exeext
2795
2796 # Check that the compiler produces executables we can run.  If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803   if { ac_try='./$ac_file'
2804   { (case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_try") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813     cross_compiling=no
2814   else
2815     if test "$cross_compiling" = maybe; then
2816         cross_compiling=yes
2817     else
2818         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&2;}
2824    { (exit 1); exit 1; }; }
2825     fi
2826   fi
2827 fi
2828 { echo "$as_me:$LINENO: result: yes" >&5
2829 echo "${ECHO_T}yes" >&6; }
2830
2831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run.  If not, either
2834 # the compiler is broken, or we cross compile.
2835 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838 echo "${ECHO_T}$cross_compiling" >&6; }
2839
2840 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842 if { (ac_try="$ac_link"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848   (eval "$ac_link") 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; then
2852   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2855 # `rm'.
2856 for ac_file in conftest.exe conftest conftest.*; do
2857   test -f "$ac_file" || continue
2858   case $ac_file in
2859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2860     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861           break;;
2862     * ) break;;
2863   esac
2864 done
2865 else
2866   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871 fi
2872
2873 rm -f conftest$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2876
2877 rm -f conftest.$ac_ext
2878 EXEEXT=$ac_cv_exeext
2879 ac_exeext=$EXEEXT
2880 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882 if test "${ac_cv_objext+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 int
2893 main ()
2894 {
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 rm -f conftest.o conftest.obj
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compile") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; then
2911   for ac_file in conftest.o conftest.obj conftest.*; do
2912   test -f "$ac_file" || continue;
2913   case $ac_file in
2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2915     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2916        break;;
2917   esac
2918 done
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&2;}
2927    { (exit 1); exit 1; }; }
2928 fi
2929
2930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931 fi
2932 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933 echo "${ECHO_T}$ac_cv_objext" >&6; }
2934 OBJEXT=$ac_cv_objext
2935 ac_objext=$OBJEXT
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951 #ifndef __GNUC__
2952        choke me
2953 #endif
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compile") 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } && {
2973          test -z "$ac_c_werror_flag" ||
2974          test ! -s conftest.err
2975        } && test -s conftest.$ac_objext; then
2976   ac_compiler_gnu=yes
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981         ac_compiler_gnu=no
2982 fi
2983
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2990 GCC=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CFLAGS=${CFLAGS+set}
2992 ac_save_CFLAGS=$CFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_g+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   ac_save_c_werror_flag=$ac_c_werror_flag
2999    ac_c_werror_flag=yes
3000    ac_cv_prog_cc_g=no
3001    CFLAGS="-g"
3002    cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && {
3031          test -z "$ac_c_werror_flag" ||
3032          test ! -s conftest.err
3033        } && test -s conftest.$ac_objext; then
3034   ac_cv_prog_cc_g=yes
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         CFLAGS=""
3040       cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046
3047 int
3048 main ()
3049 {
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compile") 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && {
3069          test -z "$ac_c_werror_flag" ||
3070          test ! -s conftest.err
3071        } && test -s conftest.$ac_objext; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_c_werror_flag=$ac_save_c_werror_flag
3078          CFLAGS="-g"
3079          cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } && {
3108          test -z "$ac_c_werror_flag" ||
3109          test ! -s conftest.err
3110        } && test -s conftest.$ac_objext; then
3111   ac_cv_prog_cc_g=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116
3117 fi
3118
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126    ac_c_werror_flag=$ac_save_c_werror_flag
3127 fi
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3130 if test "$ac_test_CFLAGS" = set; then
3131   CFLAGS=$ac_save_CFLAGS
3132 elif test $ac_cv_prog_cc_g = yes; then
3133   if test "$GCC" = yes; then
3134     CFLAGS="-g -O2"
3135   else
3136     CFLAGS="-g"
3137   fi
3138 else
3139   if test "$GCC" = yes; then
3140     CFLAGS="-O2"
3141   else
3142     CFLAGS=
3143   fi
3144 fi
3145 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3146 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_cc_c89+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   ac_cv_prog_cc_c89=no
3151 ac_save_CC=$CC
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #include <stdarg.h>
3159 #include <stdio.h>
3160 #include <sys/types.h>
3161 #include <sys/stat.h>
3162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3163 struct buf { int x; };
3164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165 static char *e (p, i)
3166      char **p;
3167      int i;
3168 {
3169   return p[i];
3170 }
3171 static char *f (char * (*g) (char **, int), char **p, ...)
3172 {
3173   char *s;
3174   va_list v;
3175   va_start (v,p);
3176   s = g (p, va_arg (v,int));
3177   va_end (v);
3178   return s;
3179 }
3180
3181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3182    function prototypes and stuff, but not '\xHH' hex character constants.
3183    These don't provoke an error unfortunately, instead are silently treated
3184    as 'x'.  The following induces an error, until -std is added to get
3185    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3186    array size at least.  It's necessary to write '\x00'==0 to get something
3187    that's true only with -std.  */
3188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
3190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191    inside strings and character constants.  */
3192 #define FOO(x) 'x'
3193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194
3195 int test (int i, double x);
3196 struct s1 {int (*f) (int a);};
3197 struct s2 {int (*f) (double a);};
3198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3199 int argc;
3200 char **argv;
3201 int
3202 main ()
3203 {
3204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3205   ;
3206   return 0;
3207 }
3208 _ACEOF
3209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 do
3212   CC="$ac_save_CC $ac_arg"
3213   rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_compile") 2>conftest.er1
3221   ac_status=$?
3222   grep -v '^ *+' conftest.er1 >conftest.err
3223   rm -f conftest.er1
3224   cat conftest.err >&5
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } && {
3227          test -z "$ac_c_werror_flag" ||
3228          test ! -s conftest.err
3229        } && test -s conftest.$ac_objext; then
3230   ac_cv_prog_cc_c89=$ac_arg
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235
3236 fi
3237
3238 rm -f core conftest.err conftest.$ac_objext
3239   test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 done
3241 rm -f conftest.$ac_ext
3242 CC=$ac_save_CC
3243
3244 fi
3245 # AC_CACHE_VAL
3246 case "x$ac_cv_prog_cc_c89" in
3247   x)
3248     { echo "$as_me:$LINENO: result: none needed" >&5
3249 echo "${ECHO_T}none needed" >&6; } ;;
3250   xno)
3251     { echo "$as_me:$LINENO: result: unsupported" >&5
3252 echo "${ECHO_T}unsupported" >&6; } ;;
3253   *)
3254     CC="$CC $ac_cv_prog_cc_c89"
3255     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3257 esac
3258
3259
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266 ac_ext=cpp
3267 ac_cpp='$CXXCPP $CPPFLAGS'
3268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3271 if test -z "$CXX"; then
3272   if test -n "$CCC"; then
3273     CXX=$CCC
3274   else
3275     if test -n "$ac_tool_prefix"; then
3276   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3277   do
3278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_CXX+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if test -n "$CXX"; then
3286   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CXX=$ac_cv_prog_CXX
3306 if test -n "$CXX"; then
3307   { echo "$as_me:$LINENO: result: $CXX" >&5
3308 echo "${ECHO_T}$CXX" >&6; }
3309 else
3310   { echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6; }
3312 fi
3313
3314
3315     test -n "$CXX" && break
3316   done
3317 fi
3318 if test -z "$CXX"; then
3319   ac_ct_CXX=$CXX
3320   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3321 do
3322   # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$ac_ct_CXX"; then
3330   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339     ac_cv_prog_ac_ct_CXX="$ac_prog"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3350 if test -n "$ac_ct_CXX"; then
3351   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3353 else
3354   { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3356 fi
3357
3358
3359   test -n "$ac_ct_CXX" && break
3360 done
3361
3362   if test "x$ac_ct_CXX" = x; then
3363     CXX="g++"
3364   else
3365     case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet.  If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&5
3370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375     CXX=$ac_ct_CXX
3376   fi
3377 fi
3378
3379   fi
3380 fi
3381 # Provide some information about the compiler.
3382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3383 ac_compiler=`set X $ac_compile; echo $2`
3384 { (ac_try="$ac_compiler --version >&5"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_compiler --version >&5") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }
3394 { (ac_try="$ac_compiler -v >&5"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400   (eval "$ac_compiler -v >&5") 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }
3404 { (ac_try="$ac_compiler -V >&5"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_compiler -V >&5") 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }
3414
3415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426
3427 int
3428 main ()
3429 {
3430 #ifndef __GNUC__
3431        choke me
3432 #endif
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_cxx_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   ac_compiler_gnu=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460         ac_compiler_gnu=no
3461 fi
3462
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3468 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3469 GXX=`test $ac_compiler_gnu = yes && echo yes`
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3473 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_cxx_g+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478    ac_cxx_werror_flag=yes
3479    ac_cv_prog_cxx_g=no
3480    CXXFLAGS="-g"
3481    cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_cxx_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   ac_cv_prog_cxx_g=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518         CXXFLAGS=""
3519       cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_compile") 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } && {
3548          test -z "$ac_cxx_werror_flag" ||
3549          test ! -s conftest.err
3550        } && test -s conftest.$ac_objext; then
3551   :
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557          CXXFLAGS="-g"
3558          cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_cxx_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   ac_cv_prog_cxx_g=yes
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595
3596 fi
3597
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3609 if test "$ac_test_CXXFLAGS" = set; then
3610   CXXFLAGS=$ac_save_CXXFLAGS
3611 elif test $ac_cv_prog_cxx_g = yes; then
3612   if test "$GXX" = yes; then
3613     CXXFLAGS="-g -O2"
3614   else
3615     CXXFLAGS="-g"
3616   fi
3617 else
3618   if test "$GXX" = yes; then
3619     CXXFLAGS="-O2"
3620   else
3621     CXXFLAGS=
3622   fi
3623 fi
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630 if test "x$CC" != xcc; then
3631   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3632 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3635 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3636 fi
3637 set dummy $CC; ac_cc=`echo $2 |
3638                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3639 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 # Make sure it works both with $CC and with simple cc.
3658 # We do the test twice because some compilers refuse to overwrite an
3659 # existing .o file with -o, though they will create one.
3660 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3661 rm -f conftest2.*
3662 if { (case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_try") 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_try") 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); };
3680 then
3681   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3682   if test "x$CC" != xcc; then
3683     # Test first that cc exists at all.
3684     if { ac_try='cc -c conftest.$ac_ext >&5'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3695       rm -f conftest2.*
3696       if { (case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701   (eval "$ac_try") 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } &&
3705          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707   *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710   (eval "$ac_try") 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); };
3714       then
3715         # cc works too.
3716         :
3717       else
3718         # cc exists but doesn't like -o.
3719         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3720       fi
3721     fi
3722   fi
3723 else
3724   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3725 fi
3726 rm -f core conftest*
3727
3728 fi
3729 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3730   { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3732 else
3733   { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3735
3736 cat >>confdefs.h <<\_ACEOF
3737 #define NO_MINUS_C_MINUS_O 1
3738 _ACEOF
3739
3740 fi
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3751   CPP=
3752 fi
3753 if test -z "$CPP"; then
3754   if test "${ac_cv_prog_CPP+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757       # Double quotes because CPP needs to be expanded
3758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759     do
3760       ac_preproc_ok=false
3761 for ac_c_preproc_warn_flag in '' yes
3762 do
3763   # Use a header file that comes with gcc, so configuring glibc
3764   # with a fresh cross-compiler works.
3765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766   # <limits.h> exists even on freestanding compilers.
3767   # On the NeXT, cc -E runs the code through the compiler's parser,
3768   # not just through cpp. "Syntax error" is here to catch this case.
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780                      Syntax error
3781 _ACEOF
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } >/dev/null && {
3795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        }; then
3798   :
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803   # Broken: fails on valid input.
3804 continue
3805 fi
3806
3807 rm -f conftest.err conftest.$ac_ext
3808
3809   # OK, works on sane cases.  Now check whether nonexistent headers
3810   # can be detected and how.
3811   cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 #include <ac_nonexistent.h>
3818 _ACEOF
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } >/dev/null && {
3832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833          test ! -s conftest.err
3834        }; then
3835   # Broken: success on invalid input.
3836 continue
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841   # Passes both tests.
3842 ac_preproc_ok=:
3843 break
3844 fi
3845
3846 rm -f conftest.err conftest.$ac_ext
3847
3848 done
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3852   break
3853 fi
3854
3855     done
3856     ac_cv_prog_CPP=$CPP
3857
3858 fi
3859   CPP=$ac_cv_prog_CPP
3860 else
3861   ac_cv_prog_CPP=$CPP
3862 fi
3863 { echo "$as_me:$LINENO: result: $CPP" >&5
3864 echo "${ECHO_T}$CPP" >&6; }
3865 ac_preproc_ok=false
3866 for ac_c_preproc_warn_flag in '' yes
3867 do
3868   # Use a header file that comes with gcc, so configuring glibc
3869   # with a fresh cross-compiler works.
3870   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871   # <limits.h> exists even on freestanding compilers.
3872   # On the NeXT, cc -E runs the code through the compiler's parser,
3873   # not just through cpp. "Syntax error" is here to catch this case.
3874   cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880 #ifdef __STDC__
3881 # include <limits.h>
3882 #else
3883 # include <assert.h>
3884 #endif
3885                      Syntax error
3886 _ACEOF
3887 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } >/dev/null && {
3900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901          test ! -s conftest.err
3902        }; then
3903   :
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908   # Broken: fails on valid input.
3909 continue
3910 fi
3911
3912 rm -f conftest.err conftest.$ac_ext
3913
3914   # OK, works on sane cases.  Now check whether nonexistent headers
3915   # can be detected and how.
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #include <ac_nonexistent.h>
3923 _ACEOF
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } >/dev/null && {
3937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938          test ! -s conftest.err
3939        }; then
3940   # Broken: success on invalid input.
3941 continue
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946   # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3949 fi
3950
3951 rm -f conftest.err conftest.$ac_ext
3952
3953 done
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then
3957   :
3958 else
3959   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
3972
3973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   # Extract the first word of "grep ggrep" to use in msg output
3979 if test -z "$GREP"; then
3980 set dummy grep ggrep; ac_prog_name=$2
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   ac_path_GREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_prog in grep ggrep; do
3992   for ac_exec_ext in '' $ac_executable_extensions; do
3993     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3994     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3995     # Check for GNU ac_path_GREP and select it if it is found.
3996   # Check for GNU $ac_path_GREP
3997 case `"$ac_path_GREP" --version 2>&1` in
3998 *GNU*)
3999   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4000 *)
4001   ac_count=0
4002   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003   while :
4004   do
4005     cat "conftest.in" "conftest.in" >"conftest.tmp"
4006     mv "conftest.tmp" "conftest.in"
4007     cp "conftest.in" "conftest.nl"
4008     echo 'GREP' >> "conftest.nl"
4009     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011     ac_count=`expr $ac_count + 1`
4012     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4013       # Best one so far, save it but keep looking for a better one
4014       ac_cv_path_GREP="$ac_path_GREP"
4015       ac_path_GREP_max=$ac_count
4016     fi
4017     # 10*(2^10) chars as input seems more than enough
4018     test $ac_count -gt 10 && break
4019   done
4020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4022
4023
4024     $ac_path_GREP_found && break 3
4025   done
4026 done
4027
4028 done
4029 IFS=$as_save_IFS
4030
4031
4032 fi
4033
4034 GREP="$ac_cv_path_GREP"
4035 if test -z "$GREP"; then
4036   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038    { (exit 1); exit 1; }; }
4039 fi
4040
4041 else
4042   ac_cv_path_GREP=$GREP
4043 fi
4044
4045
4046 fi
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4049  GREP="$ac_cv_path_GREP"
4050
4051
4052 { echo "$as_me:$LINENO: checking for egrep" >&5
4053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058    then ac_cv_path_EGREP="$GREP -E"
4059    else
4060      # Extract the first word of "egrep" to use in msg output
4061 if test -z "$EGREP"; then
4062 set dummy egrep; ac_prog_name=$2
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_prog in egrep; do
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077     # Check for GNU ac_path_EGREP and select it if it is found.
4078   # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4080 *GNU*)
4081   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 *)
4083   ac_count=0
4084   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4085   while :
4086   do
4087     cat "conftest.in" "conftest.in" >"conftest.tmp"
4088     mv "conftest.tmp" "conftest.in"
4089     cp "conftest.in" "conftest.nl"
4090     echo 'EGREP' >> "conftest.nl"
4091     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093     ac_count=`expr $ac_count + 1`
4094     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095       # Best one so far, save it but keep looking for a better one
4096       ac_cv_path_EGREP="$ac_path_EGREP"
4097       ac_path_EGREP_max=$ac_count
4098     fi
4099     # 10*(2^10) chars as input seems more than enough
4100     test $ac_count -gt 10 && break
4101   done
4102   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105
4106     $ac_path_EGREP_found && break 3
4107   done
4108 done
4109
4110 done
4111 IFS=$as_save_IFS
4112
4113
4114 fi
4115
4116 EGREP="$ac_cv_path_EGREP"
4117 if test -z "$EGREP"; then
4118   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120    { (exit 1); exit 1; }; }
4121 fi
4122
4123 else
4124   ac_cv_path_EGREP=$EGREP
4125 fi
4126
4127
4128    fi
4129 fi
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4132  EGREP="$ac_cv_path_EGREP"
4133
4134
4135 if test $ac_cv_c_compiler_gnu = yes; then
4136     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141     ac_pattern="Autoconf.*'x'"
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <sgtty.h>
4149 Autoconf TIOCGETP
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4153   ac_cv_prog_gcc_traditional=yes
4154 else
4155   ac_cv_prog_gcc_traditional=no
4156 fi
4157 rm -f conftest*
4158
4159
4160   if test $ac_cv_prog_gcc_traditional = no; then
4161     cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <termio.h>
4168 Autoconf TCGETA
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4172   ac_cv_prog_gcc_traditional=yes
4173 fi
4174 rm -f conftest*
4175
4176   fi
4177 fi
4178 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4180   if test $ac_cv_prog_gcc_traditional = yes; then
4181     CC="$CC -traditional"
4182   fi
4183 fi
4184
4185 BASECC=`basename $CC`
4186 have_gcc=no
4187 if test "x$BASECC" = xgcc; then
4188    cat >>confdefs.h <<\_ACEOF
4189 #define HAVE_GCC 1
4190 _ACEOF
4191
4192    have_gcc=yes
4193 fi
4194 # Extract the first word of "$CXX", so it can be a program name with args.
4195 set dummy $CXX; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_CXX+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $CXX in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4222   ;;
4223 esac
4224 fi
4225 CXX=$ac_cv_path_CXX
4226 if test -n "$CXX"; then
4227   { echo "$as_me:$LINENO: result: $CXX" >&5
4228 echo "${ECHO_T}$CXX" >&6; }
4229 else
4230   { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4232 fi
4233
4234
4235 if test ! -e $CXX; then
4236    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4237 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4238    { (exit 1); exit 1; }; }
4239 fi
4240
4241 # Find a good install program.  We prefer a C program (faster),
4242 # so one script is as good as another.  But avoid the broken or
4243 # incompatible versions:
4244 # SysV /etc/install, /usr/sbin/install
4245 # SunOS /usr/etc/install
4246 # IRIX /sbin/install
4247 # AIX /bin/install
4248 # AmigaOS /C/install, which installs bootblocks on floppy discs
4249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4252 # OS/2's system install, which has a completely different semantic
4253 # ./install, which can be erroneously created by make from ./install.sh.
4254 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4255 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4256 if test -z "$INSTALL"; then
4257 if test "${ac_cv_path_install+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265   # Account for people who put trailing slashes in PATH elements.
4266 case $as_dir/ in
4267   ./ | .// | /cC/* | \
4268   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4269   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4270   /usr/ucb/* ) ;;
4271   *)
4272     # OSF1 and SCO ODT 3.0 have their own names for install.
4273     # Don't use installbsd from OSF since it installs stuff as root
4274     # by default.
4275     for ac_prog in ginstall scoinst install; do
4276       for ac_exec_ext in '' $ac_executable_extensions; do
4277         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4278           if test $ac_prog = install &&
4279             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280             # AIX install.  It has an incompatible calling convention.
4281             :
4282           elif test $ac_prog = install &&
4283             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284             # program-specific install script used by HP pwplus--don't use.
4285             :
4286           else
4287             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4288             break 3
4289           fi
4290         fi
4291       done
4292     done
4293     ;;
4294 esac
4295 done
4296 IFS=$as_save_IFS
4297
4298
4299 fi
4300   if test "${ac_cv_path_install+set}" = set; then
4301     INSTALL=$ac_cv_path_install
4302   else
4303     # As a last resort, use the slow shell script.  Don't cache a
4304     # value for INSTALL within a source directory, because that will
4305     # break other packages using the cache if that directory is
4306     # removed, or if the value is a relative name.
4307     INSTALL=$ac_install_sh
4308   fi
4309 fi
4310 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4311 echo "${ECHO_T}$INSTALL" >&6; }
4312
4313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4314 # It thinks the first close brace ends the variable substitution.
4315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4316
4317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4318
4319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4320
4321 # Extract the first word of "mv", so it can be a program name with args.
4322 set dummy mv; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_path_MV+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   case $MV in
4329   [\\/]* | ?:[\\/]*)
4330   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4331   ;;
4332   *)
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_exec_ext in '' $ac_executable_extensions; do
4339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4349   ;;
4350 esac
4351 fi
4352 MV=$ac_cv_path_MV
4353 if test -n "$MV"; then
4354   { echo "$as_me:$LINENO: result: $MV" >&5
4355 echo "${ECHO_T}$MV" >&6; }
4356 else
4357   { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4359 fi
4360
4361
4362 # Extract the first word of "rm", so it can be a program name with args.
4363 set dummy rm; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_REMOVE+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   case $REMOVE in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4390   ;;
4391 esac
4392 fi
4393 REMOVE=$ac_cv_path_REMOVE
4394 if test -n "$REMOVE"; then
4395   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4396 echo "${ECHO_T}$REMOVE" >&6; }
4397 else
4398   { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4400 fi
4401
4402
4403 # Extract the first word of "cp", so it can be a program name with args.
4404 set dummy cp; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_path_CP+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   case $CP in
4411   [\\/]* | ?:[\\/]*)
4412   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4413   ;;
4414   *)
4415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420   for ac_exec_ext in '' $ac_executable_extensions; do
4421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424     break 2
4425   fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4431   ;;
4432 esac
4433 fi
4434 CP=$ac_cv_path_CP
4435 if test -n "$CP"; then
4436   { echo "$as_me:$LINENO: result: $CP" >&5
4437 echo "${ECHO_T}$CP" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy sed; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_path_SED+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   case $SED in
4452   [\\/]* | ?:[\\/]*)
4453   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4454   ;;
4455   *)
4456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4472   ;;
4473 esac
4474 fi
4475 SED=$ac_cv_path_SED
4476 if test -n "$SED"; then
4477   { echo "$as_me:$LINENO: result: $SED" >&5
4478 echo "${ECHO_T}$SED" >&6; }
4479 else
4480   { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4482 fi
4483
4484
4485 # Extract the first word of "echo", so it can be a program name with args.
4486 set dummy echo; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_ECHO+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   case $ECHO in
4493   [\\/]* | ?:[\\/]*)
4494   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4495   ;;
4496   *)
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502   for ac_exec_ext in '' $ac_executable_extensions; do
4503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4513   ;;
4514 esac
4515 fi
4516 ECHO=$ac_cv_path_ECHO
4517 if test -n "$ECHO"; then
4518   { echo "$as_me:$LINENO: result: $ECHO" >&5
4519 echo "${ECHO_T}$ECHO" >&6; }
4520 else
4521   { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4523 fi
4524
4525
4526 # Extract the first word of "cmp", so it can be a program name with args.
4527 set dummy cmp; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_CMP+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   case $CMP in
4534   [\\/]* | ?:[\\/]*)
4535   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4536   ;;
4537   *)
4538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543   for ac_exec_ext in '' $ac_executable_extensions; do
4544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547     break 2
4548   fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4554   ;;
4555 esac
4556 fi
4557 CMP=$ac_cv_path_CMP
4558 if test -n "$CMP"; then
4559   { echo "$as_me:$LINENO: result: $CMP" >&5
4560 echo "${ECHO_T}$CMP" >&6; }
4561 else
4562   { echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6; }
4564 fi
4565
4566
4567 # Extract the first word of "tbl", so it can be a program name with args.
4568 set dummy tbl; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_TBL+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   case $TBL in
4575   [\\/]* | ?:[\\/]*)
4576   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4577   ;;
4578   *)
4579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4595   ;;
4596 esac
4597 fi
4598 TBL=$ac_cv_path_TBL
4599 if test -n "$TBL"; then
4600   { echo "$as_me:$LINENO: result: $TBL" >&5
4601 echo "${ECHO_T}$TBL" >&6; }
4602 else
4603   { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4605 fi
4606
4607
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_path_AR+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   case $AR in
4616   [\\/]* | ?:[\\/]*)
4617   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4618   ;;
4619   *)
4620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4636   ;;
4637 esac
4638 fi
4639 AR=$ac_cv_path_AR
4640 if test -n "$AR"; then
4641   { echo "$as_me:$LINENO: result: $AR" >&5
4642 echo "${ECHO_T}$AR" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649 # Extract the first word of "openssl", so it can be a program name with args.
4650 set dummy openssl; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_OPENSSL+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $OPENSSL in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4677   ;;
4678 esac
4679 fi
4680 OPENSSL=$ac_cv_path_OPENSSL
4681 if test -n "$OPENSSL"; then
4682   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4683 echo "${ECHO_T}$OPENSSL" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690 # Extract the first word of "mtx", so it can be a program name with args.
4691 set dummy mtx; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_path_MTX+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   case $MTX in
4698   [\\/]* | ?:[\\/]*)
4699   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4700   ;;
4701   *)
4702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707   for ac_exec_ext in '' $ac_executable_extensions; do
4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4718   ;;
4719 esac
4720 fi
4721 MTX=$ac_cv_path_MTX
4722 if test -n "$MTX"; then
4723   { echo "$as_me:$LINENO: result: $MTX" >&5
4724 echo "${ECHO_T}$MTX" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731 # Extract the first word of "dd", so it can be a program name with args.
4732 set dummy dd; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_path_DD+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   case $DD in
4739   [\\/]* | ?:[\\/]*)
4740   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4741   ;;
4742   *)
4743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4759   ;;
4760 esac
4761 fi
4762 DD=$ac_cv_path_DD
4763 if test -n "$DD"; then
4764   { echo "$as_me:$LINENO: result: $DD" >&5
4765 echo "${ECHO_T}$DD" >&6; }
4766 else
4767   { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769 fi
4770
4771
4772 # Extract the first word of "mkisofs", so it can be a program name with args.
4773 set dummy mkisofs; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_path_MKISOFS+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   case $MKISOFS in
4780   [\\/]* | ?:[\\/]*)
4781   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4782   ;;
4783   *)
4784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4800   ;;
4801 esac
4802 fi
4803 MKISOFS=$ac_cv_path_MKISOFS
4804 if test -n "$MKISOFS"; then
4805   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4806 echo "${ECHO_T}$MKISOFS" >&6; }
4807 else
4808   { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4810 fi
4811
4812
4813 # Extract the first word of "python", so it can be a program name with args.
4814 set dummy python; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_path_PYTHON+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   case $PYTHON in
4821   [\\/]* | ?:[\\/]*)
4822   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4823   ;;
4824   *)
4825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4841   ;;
4842 esac
4843 fi
4844 PYTHON=$ac_cv_path_PYTHON
4845 if test -n "$PYTHON"; then
4846   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4847 echo "${ECHO_T}$PYTHON" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854 # Extract the first word of "growisofs", so it can be a program name with args.
4855 set dummy growisofs; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   case $GROWISOFS in
4862   [\\/]* | ?:[\\/]*)
4863   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4864   ;;
4865   *)
4866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4882   ;;
4883 esac
4884 fi
4885 GROWISOFS=$ac_cv_path_GROWISOFS
4886 if test -n "$GROWISOFS"; then
4887   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4888 echo "${ECHO_T}$GROWISOFS" >&6; }
4889 else
4890   { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4892 fi
4893
4894
4895 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4896 set dummy dvd+rw-mediainfo; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   case $DVDRWMEDIAINFO in
4903   [\\/]* | ?:[\\/]*)
4904   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4905   ;;
4906   *)
4907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920 IFS=$as_save_IFS
4921
4922   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4923   ;;
4924 esac
4925 fi
4926 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4927 if test -n "$DVDRWMEDIAINFO"; then
4928   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4929 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4930 else
4931   { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4937 set dummy dvd+rw-format; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   case $DVDRWFORMAT in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4964   ;;
4965 esac
4966 fi
4967 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4968 if test -n "$DVDRWFORMAT"; then
4969   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4970 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4971 else
4972   { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4974 fi
4975
4976
4977 # Extract the first word of "pkg-config", so it can be a program name with args.
4978 set dummy pkg-config; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $PKGCONFIG in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5005   ;;
5006 esac
5007 fi
5008 PKGCONFIG=$ac_cv_path_PKGCONFIG
5009 if test -n "$PKGCONFIG"; then
5010   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5011 echo "${ECHO_T}$PKGCONFIG" >&6; }
5012 else
5013   { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5015 fi
5016
5017
5018 # Extract the first word of "qmake", so it can be a program name with args.
5019 set dummy qmake; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_QMAKE+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   case $QMAKE in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5046   ;;
5047 esac
5048 fi
5049 QMAKE=$ac_cv_path_QMAKE
5050 if test -n "$QMAKE"; then
5051   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5052 echo "${ECHO_T}$QMAKE" >&6; }
5053 else
5054   { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5056 fi
5057
5058
5059 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5060 set dummy qmake-qt4; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $QMAKEQT4 in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5087   ;;
5088 esac
5089 fi
5090 QMAKEQT4=$ac_cv_path_QMAKEQT4
5091 if test -n "$QMAKEQT4"; then
5092   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5093 echo "${ECHO_T}$QMAKEQT4" >&6; }
5094 else
5095   { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5097 fi
5098
5099
5100 # Extract the first word of "gmake", so it can be a program name with args.
5101 set dummy gmake; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_GMAKE+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   case $GMAKE in
5108   [\\/]* | ?:[\\/]*)
5109   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5110   ;;
5111   *)
5112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5128   ;;
5129 esac
5130 fi
5131 GMAKE=$ac_cv_path_GMAKE
5132 if test -n "$GMAKE"; then
5133   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5134 echo "${ECHO_T}$GMAKE" >&6; }
5135 else
5136   { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141
5142 if test "x$WXCONFIG" = x; then
5143    WXCONFIG=wx-config
5144 fi
5145 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5146 set dummy ${WXCONFIG}; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   case $WXCONFIG in
5153   [\\/]* | ?:[\\/]*)
5154   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5155   ;;
5156   *)
5157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162   for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5173   ;;
5174 esac
5175 fi
5176 WXCONFIG=$ac_cv_path_WXCONFIG
5177 if test -n "$WXCONFIG"; then
5178   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5179 echo "${ECHO_T}$WXCONFIG" >&6; }
5180 else
5181   { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5183 fi
5184
5185
5186
5187 # Extract the first word of "cdrecord", so it can be a program name with args.
5188 set dummy cdrecord; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_CDRECORD+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   case $CDRECORD in
5195   [\\/]* | ?:[\\/]*)
5196   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5197   ;;
5198   *)
5199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   for ac_exec_ext in '' $ac_executable_extensions; do
5205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5213
5214   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5215   ;;
5216 esac
5217 fi
5218 CDRECORD=$ac_cv_path_CDRECORD
5219 if test -n "$CDRECORD"; then
5220   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5221 echo "${ECHO_T}$CDRECORD" >&6; }
5222 else
5223   { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5225 fi
5226
5227
5228 # Extract the first word of "pidof", so it can be a program name with args.
5229 set dummy pidof; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_PIDOF+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   case $PIDOF in
5236   [\\/]* | ?:[\\/]*)
5237   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5238   ;;
5239   *)
5240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5256   ;;
5257 esac
5258 fi
5259 PIDOF=$ac_cv_path_PIDOF
5260 if test -n "$PIDOF"; then
5261   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5262 echo "${ECHO_T}$PIDOF" >&6; }
5263 else
5264   { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5266 fi
5267
5268
5269 for ac_prog in gawk mawk nawk awk
5270 do
5271   # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_AWK+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$AWK"; then
5279   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288     ac_cv_prog_AWK="$ac_prog"
5289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 AWK=$ac_cv_prog_AWK
5299 if test -n "$AWK"; then
5300   { echo "$as_me:$LINENO: result: $AWK" >&5
5301 echo "${ECHO_T}$AWK" >&6; }
5302 else
5303   { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5305 fi
5306
5307
5308   test -n "$AWK" && break
5309 done
5310
5311 # Some AWK programs fail, so test it and warn the user
5312 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5313       { if ((prog == $2) || (("(" prog ")") == $2) ||
5314       (("" prog "") == $2) ||
5315       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5316 else
5317   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5318    The regex engine of $AWK is too broken to be used you
5319    might want to install GNU AWK.
5320    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5321 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322    The regex engine of $AWK is too broken to be used you
5323    might want to install GNU AWK.
5324    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327 THE_AWK=$AWK
5328 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5329 set dummy $THE_AWK; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_AWK+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   case $AWK in
5336   [\\/]* | ?:[\\/]*)
5337   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5338   ;;
5339   *)
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345   for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5356   ;;
5357 esac
5358 fi
5359 AWK=$ac_cv_path_AWK
5360 if test -n "$AWK"; then
5361   { echo "$as_me:$LINENO: result: $AWK" >&5
5362 echo "${ECHO_T}$AWK" >&6; }
5363 else
5364   { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5366 fi
5367
5368
5369
5370
5371 test -n "$ARFLAG" || ARFLAGS="cr"
5372
5373
5374 MAKE_SHELL=/bin/sh
5375
5376
5377
5378
5379
5380
5381
5382 # Check whether --enable-libtool was given.
5383 if test "${enable_libtool+set}" = set; then
5384   enableval=$enable_libtool;
5385        if test x$enableval = xno; then
5386           use_libtool=no
5387        fi
5388
5389
5390 fi
5391
5392 case `pwd` in
5393   *\ * | *\     *)
5394     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5396 esac
5397
5398
5399
5400 macro_version='2.2.6'
5401 macro_revision='1.3012'
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 ltmain="$ac_aux_dir/ltmain.sh"
5416
5417 # Make sure we can run config.sub.
5418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5419   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5420 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5421    { (exit 1); exit 1; }; }
5422
5423 { echo "$as_me:$LINENO: checking build system type" >&5
5424 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5425 if test "${ac_cv_build+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   ac_build_alias=$build_alias
5429 test "x$ac_build_alias" = x &&
5430   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5431 test "x$ac_build_alias" = x &&
5432   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5434    { (exit 1); exit 1; }; }
5435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5436   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5437 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5438    { (exit 1); exit 1; }; }
5439
5440 fi
5441 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5442 echo "${ECHO_T}$ac_cv_build" >&6; }
5443 case $ac_cv_build in
5444 *-*-*) ;;
5445 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5446 echo "$as_me: error: invalid value of canonical build" >&2;}
5447    { (exit 1); exit 1; }; };;
5448 esac
5449 build=$ac_cv_build
5450 ac_save_IFS=$IFS; IFS='-'
5451 set x $ac_cv_build
5452 shift
5453 build_cpu=$1
5454 build_vendor=$2
5455 shift; shift
5456 # Remember, the first character of IFS is used to create $*,
5457 # except with old shells:
5458 build_os=$*
5459 IFS=$ac_save_IFS
5460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5461
5462
5463 { echo "$as_me:$LINENO: checking host system type" >&5
5464 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5465 if test "${ac_cv_host+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   if test "x$host_alias" = x; then
5469   ac_cv_host=$ac_cv_build
5470 else
5471   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5472     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5473 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5474    { (exit 1); exit 1; }; }
5475 fi
5476
5477 fi
5478 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5479 echo "${ECHO_T}$ac_cv_host" >&6; }
5480 case $ac_cv_host in
5481 *-*-*) ;;
5482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5483 echo "$as_me: error: invalid value of canonical host" >&2;}
5484    { (exit 1); exit 1; }; };;
5485 esac
5486 host=$ac_cv_host
5487 ac_save_IFS=$IFS; IFS='-'
5488 set x $ac_cv_host
5489 shift
5490 host_cpu=$1
5491 host_vendor=$2
5492 shift; shift
5493 # Remember, the first character of IFS is used to create $*,
5494 # except with old shells:
5495 host_os=$*
5496 IFS=$ac_save_IFS
5497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5498
5499
5500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5502 if test "${ac_cv_path_SED+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5506      for ac_i in 1 2 3 4 5 6 7; do
5507        ac_script="$ac_script$as_nl$ac_script"
5508      done
5509      echo "$ac_script" | sed 99q >conftest.sed
5510      $as_unset ac_script || ac_script=
5511      # Extract the first word of "sed gsed" to use in msg output
5512 if test -z "$SED"; then
5513 set dummy sed gsed; ac_prog_name=$2
5514 if test "${ac_cv_path_SED+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_path_SED_found=false
5518 # Loop through the user's path and test for each of PROGNAME-LIST
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522   IFS=$as_save_IFS
5523   test -z "$as_dir" && as_dir=.
5524   for ac_prog in sed gsed; do
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5527     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5528     # Check for GNU ac_path_SED and select it if it is found.
5529   # Check for GNU $ac_path_SED
5530 case `"$ac_path_SED" --version 2>&1` in
5531 *GNU*)
5532   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5533 *)
5534   ac_count=0
5535   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5536   while :
5537   do
5538     cat "conftest.in" "conftest.in" >"conftest.tmp"
5539     mv "conftest.tmp" "conftest.in"
5540     cp "conftest.in" "conftest.nl"
5541     echo '' >> "conftest.nl"
5542     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5544     ac_count=`expr $ac_count + 1`
5545     if test $ac_count -gt ${ac_path_SED_max-0}; then
5546       # Best one so far, save it but keep looking for a better one
5547       ac_cv_path_SED="$ac_path_SED"
5548       ac_path_SED_max=$ac_count
5549     fi
5550     # 10*(2^10) chars as input seems more than enough
5551     test $ac_count -gt 10 && break
5552   done
5553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5554 esac
5555
5556
5557     $ac_path_SED_found && break 3
5558   done
5559 done
5560
5561 done
5562 IFS=$as_save_IFS
5563
5564
5565 fi
5566
5567 SED="$ac_cv_path_SED"
5568 if test -z "$SED"; then
5569   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5571    { (exit 1); exit 1; }; }
5572 fi
5573
5574 else
5575   ac_cv_path_SED=$SED
5576 fi
5577
5578 fi
5579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5581  SED="$ac_cv_path_SED"
5582   rm -f conftest.sed
5583
5584 test -z "$SED" && SED=sed
5585 Xsed="$SED -e 1s/^X//"
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 { echo "$as_me:$LINENO: checking for fgrep" >&5
5598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5599 if test "${ac_cv_path_FGREP+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603    then ac_cv_path_FGREP="$GREP -F"
5604    else
5605      # Extract the first word of "fgrep" to use in msg output
5606 if test -z "$FGREP"; then
5607 set dummy fgrep; ac_prog_name=$2
5608 if test "${ac_cv_path_FGREP+set}" = set; then
5609   echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611   ac_path_FGREP_found=false
5612 # Loop through the user's path and test for each of PROGNAME-LIST
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618   for ac_prog in fgrep; do
5619   for ac_exec_ext in '' $ac_executable_extensions; do
5620     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5621     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5622     # Check for GNU ac_path_FGREP and select it if it is found.
5623   # Check for GNU $ac_path_FGREP
5624 case `"$ac_path_FGREP" --version 2>&1` in
5625 *GNU*)
5626   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5627 *)
5628   ac_count=0
5629   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5630   while :
5631   do
5632     cat "conftest.in" "conftest.in" >"conftest.tmp"
5633     mv "conftest.tmp" "conftest.in"
5634     cp "conftest.in" "conftest.nl"
5635     echo 'FGREP' >> "conftest.nl"
5636     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5637     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5638     ac_count=`expr $ac_count + 1`
5639     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5640       # Best one so far, save it but keep looking for a better one
5641       ac_cv_path_FGREP="$ac_path_FGREP"
5642       ac_path_FGREP_max=$ac_count
5643     fi
5644     # 10*(2^10) chars as input seems more than enough
5645     test $ac_count -gt 10 && break
5646   done
5647   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5648 esac
5649
5650
5651     $ac_path_FGREP_found && break 3
5652   done
5653 done
5654
5655 done
5656 IFS=$as_save_IFS
5657
5658
5659 fi
5660
5661 FGREP="$ac_cv_path_FGREP"
5662 if test -z "$FGREP"; then
5663   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5665    { (exit 1); exit 1; }; }
5666 fi
5667
5668 else
5669   ac_cv_path_FGREP=$FGREP
5670 fi
5671
5672
5673    fi
5674 fi
5675 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5676 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5677  FGREP="$ac_cv_path_FGREP"
5678
5679
5680 test -z "$GREP" && GREP=grep
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 # Check whether --with-gnu-ld was given.
5701 if test "${with_gnu_ld+set}" = set; then
5702   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5703 else
5704   with_gnu_ld=no
5705 fi
5706
5707 ac_prog=ld
5708 if test "$GCC" = yes; then
5709   # Check if gcc -print-prog-name=ld gives a path.
5710   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5712   case $host in
5713   *-*-mingw*)
5714     # gcc leaves a trailing carriage return which upsets mingw
5715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5716   *)
5717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718   esac
5719   case $ac_prog in
5720     # Accept absolute paths.
5721     [\\/]* | ?:[\\/]*)
5722       re_direlt='/[^/][^/]*/\.\./'
5723       # Canonicalize the pathname of ld
5724       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5725       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5726         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5727       done
5728       test -z "$LD" && LD="$ac_prog"
5729       ;;
5730   "")
5731     # If it fails, then pretend we aren't using GCC.
5732     ac_prog=ld
5733     ;;
5734   *)
5735     # If it is relative, then search for the first ld in PATH.
5736     with_gnu_ld=unknown
5737     ;;
5738   esac
5739 elif test "$with_gnu_ld" = yes; then
5740   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5742 else
5743   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5745 fi
5746 if test "${lt_cv_path_LD+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   if test -z "$LD"; then
5750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751   for ac_dir in $PATH; do
5752     IFS="$lt_save_ifs"
5753     test -z "$ac_dir" && ac_dir=.
5754     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5755       lt_cv_path_LD="$ac_dir/$ac_prog"
5756       # Check to see if the program is GNU ld.  I'd rather use --version,
5757       # but apparently some variants of GNU ld only accept -v.
5758       # Break only if it was the GNU/non-GNU ld that we prefer.
5759       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5760       *GNU* | *'with BFD'*)
5761         test "$with_gnu_ld" != no && break
5762         ;;
5763       *)
5764         test "$with_gnu_ld" != yes && break
5765         ;;
5766       esac
5767     fi
5768   done
5769   IFS="$lt_save_ifs"
5770 else
5771   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5772 fi
5773 fi
5774
5775 LD="$lt_cv_path_LD"
5776 if test -n "$LD"; then
5777   { echo "$as_me:$LINENO: result: $LD" >&5
5778 echo "${ECHO_T}$LD" >&6; }
5779 else
5780   { echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6; }
5782 fi
5783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5785    { (exit 1); exit 1; }; }
5786 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792 case `$LD -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794   lt_cv_prog_gnu_ld=yes
5795   ;;
5796 *)
5797   lt_cv_prog_gnu_ld=no
5798   ;;
5799 esac
5800 fi
5801 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$lt_cv_prog_gnu_ld
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5814 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5815 if test "${lt_cv_path_NM+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$NM"; then
5819   # Let the user override the test.
5820   lt_cv_path_NM="$NM"
5821 else
5822   lt_nm_to_check="${ac_tool_prefix}nm"
5823   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824     lt_nm_to_check="$lt_nm_to_check nm"
5825   fi
5826   for lt_tmp_nm in $lt_nm_to_check; do
5827     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5829       IFS="$lt_save_ifs"
5830       test -z "$ac_dir" && ac_dir=.
5831       tmp_nm="$ac_dir/$lt_tmp_nm"
5832       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833         # Check to see if the nm accepts a BSD-compat flag.
5834         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835         #   nm: unknown option "B" ignored
5836         # Tru64's nm complains that /dev/null is an invalid object file
5837         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838         */dev/null* | *'Invalid file or object type'*)
5839           lt_cv_path_NM="$tmp_nm -B"
5840           break
5841           ;;
5842         *)
5843           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5844           */dev/null*)
5845             lt_cv_path_NM="$tmp_nm -p"
5846             break
5847             ;;
5848           *)
5849             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850             continue # so that we can try to find one that supports BSD flags
5851             ;;
5852           esac
5853           ;;
5854         esac
5855       fi
5856     done
5857     IFS="$lt_save_ifs"
5858   done
5859   : ${lt_cv_path_NM=no}
5860 fi
5861 fi
5862 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5863 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5864 if test "$lt_cv_path_NM" != "no"; then
5865   NM="$lt_cv_path_NM"
5866 else
5867   # Didn't find any BSD compatible name lister, look for dumpbin.
5868   if test -n "$ac_tool_prefix"; then
5869   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5870   do
5871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$DUMPBIN"; then
5879   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5901 echo "${ECHO_T}$DUMPBIN" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908     test -n "$DUMPBIN" && break
5909   done
5910 fi
5911 if test -z "$DUMPBIN"; then
5912   ac_ct_DUMPBIN=$DUMPBIN
5913   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5914 do
5915   # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   if test -n "$ac_ct_DUMPBIN"; then
5923   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5945 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5946 else
5947   { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5949 fi
5950
5951
5952   test -n "$ac_ct_DUMPBIN" && break
5953 done
5954
5955   if test "x$ac_ct_DUMPBIN" = x; then
5956     DUMPBIN=":"
5957   else
5958     case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet.  If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet.  If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968     DUMPBIN=$ac_ct_DUMPBIN
5969   fi
5970 fi
5971
5972
5973   if test "$DUMPBIN" != ":"; then
5974     NM="$DUMPBIN"
5975   fi
5976 fi
5977 test -z "$NM" && NM=nm
5978
5979
5980
5981
5982
5983
5984 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5985 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5986 if test "${lt_cv_nm_interface+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   lt_cv_nm_interface="BSD nm"
5990   echo "int some_variable = 0;" > conftest.$ac_ext
5991   (eval echo "\"\$as_me:5991: $ac_compile\"" >&5)
5992   (eval "$ac_compile" 2>conftest.err)
5993   cat conftest.err >&5
5994   (eval echo "\"\$as_me:5994: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5995   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5996   cat conftest.err >&5
5997   (eval echo "\"\$as_me:5997: output\"" >&5)
5998   cat conftest.out >&5
5999   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6000     lt_cv_nm_interface="MS dumpbin"
6001   fi
6002   rm -f conftest*
6003 fi
6004 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6005 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6006
6007 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6008 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6009 LN_S=$as_ln_s
6010 if test "$LN_S" = "ln -s"; then
6011   { echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6; }
6013 else
6014   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6015 echo "${ECHO_T}no, using $LN_S" >&6; }
6016 fi
6017
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024     i=0
6025   teststring="ABCD"
6026
6027   case $build_os in
6028   msdosdjgpp*)
6029     # On DJGPP, this test can blow up pretty badly due to problems in libc
6030     # (any single argument exceeding 2000 bytes causes a buffer overrun
6031     # during glob expansion).  Even if it were fixed, the result of this
6032     # check would be larger than it should be.
6033     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6034     ;;
6035
6036   gnu*)
6037     # Under GNU Hurd, this test is not required because there is
6038     # no limit to the length of command line arguments.
6039     # Libtool will interpret -1 as no limit whatsoever
6040     lt_cv_sys_max_cmd_len=-1;
6041     ;;
6042
6043   cygwin* | mingw* | cegcc*)
6044     # On Win9x/ME, this test blows up -- it succeeds, but takes
6045     # about 5 minutes as the teststring grows exponentially.
6046     # Worse, since 9x/ME are not pre-emptively multitasking,
6047     # you end up with a "frozen" computer, even though with patience
6048     # the test eventually succeeds (with a max line length of 256k).
6049     # Instead, let's just punt: use the minimum linelength reported by
6050     # all of the supported platforms: 8192 (on NT/2K/XP).
6051     lt_cv_sys_max_cmd_len=8192;
6052     ;;
6053
6054   amigaos*)
6055     # On AmigaOS with pdksh, this test takes hours, literally.
6056     # So we just punt and use a minimum line length of 8192.
6057     lt_cv_sys_max_cmd_len=8192;
6058     ;;
6059
6060   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061     # This has been around since 386BSD, at least.  Likely further.
6062     if test -x /sbin/sysctl; then
6063       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064     elif test -x /usr/sbin/sysctl; then
6065       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6066     else
6067       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6068     fi
6069     # And add a safety zone
6070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072     ;;
6073
6074   interix*)
6075     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076     lt_cv_sys_max_cmd_len=196608
6077     ;;
6078
6079   osf*)
6080     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082     # nice to cause kernel panics so lets avoid the loop below.
6083     # First set a reasonable default.
6084     lt_cv_sys_max_cmd_len=16384
6085     #
6086     if test -x /sbin/sysconfig; then
6087       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6089       esac
6090     fi
6091     ;;
6092   sco3.2v5*)
6093     lt_cv_sys_max_cmd_len=102400
6094     ;;
6095   sysv5* | sco5v6* | sysv4.2uw2*)
6096     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097     if test -n "$kargmax"; then
6098       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6099     else
6100       lt_cv_sys_max_cmd_len=32768
6101     fi
6102     ;;
6103   *)
6104     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6105     if test -n "$lt_cv_sys_max_cmd_len"; then
6106       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6108     else
6109       # Make teststring a little bigger before we do anything with it.
6110       # a 1K string should be a reasonable start.
6111       for i in 1 2 3 4 5 6 7 8 ; do
6112         teststring=$teststring$teststring
6113       done
6114       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115       # If test is not a shell built-in, we'll probably end up computing a
6116       # maximum length that is only half of the actual maximum length, but
6117       # we can't tell.
6118       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6119                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6120               test $i != 17 # 1/2 MB should be enough
6121       do
6122         i=`expr $i + 1`
6123         teststring=$teststring$teststring
6124       done
6125       # Only check the string length outside the loop.
6126       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6127       teststring=
6128       # Add a significant safety factor because C++ compilers can tack on
6129       # massive amounts of additional arguments before passing them to the
6130       # linker.  It appears as though 1/2 is a usable value.
6131       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6132     fi
6133     ;;
6134   esac
6135
6136 fi
6137
6138 if test -n $lt_cv_sys_max_cmd_len ; then
6139   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: none" >&5
6143 echo "${ECHO_T}none" >&6; }
6144 fi
6145 max_cmd_len=$lt_cv_sys_max_cmd_len
6146
6147
6148
6149
6150
6151
6152 : ${CP="cp -f"}
6153 : ${MV="mv -f"}
6154 : ${RM="rm -f"}
6155
6156 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6157 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6158 # Try some XSI features
6159 xsi_shell=no
6160 ( _lt_dummy="a/b/c"
6161   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6162       = c,a/b,, \
6163     && eval 'test $(( 1 + 1 )) -eq 2 \
6164     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6165   && xsi_shell=yes
6166 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6167 echo "${ECHO_T}$xsi_shell" >&6; }
6168
6169
6170 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6171 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6172 lt_shell_append=no
6173 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6174     >/dev/null 2>&1 \
6175   && lt_shell_append=yes
6176 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6177 echo "${ECHO_T}$lt_shell_append" >&6; }
6178
6179
6180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6181   lt_unset=unset
6182 else
6183   lt_unset=false
6184 fi
6185
6186
6187
6188
6189
6190 # test EBCDIC or ASCII
6191 case `echo X|tr X '\101'` in
6192  A) # ASCII based system
6193     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6194   lt_SP2NL='tr \040 \012'
6195   lt_NL2SP='tr \015\012 \040\040'
6196   ;;
6197  *) # EBCDIC based system
6198   lt_SP2NL='tr \100 \n'
6199   lt_NL2SP='tr \r\n \100\100'
6200   ;;
6201 esac
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6213 if test "${lt_cv_ld_reload_flag+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   lt_cv_ld_reload_flag='-r'
6217 fi
6218 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6220 reload_flag=$lt_cv_ld_reload_flag
6221 case $reload_flag in
6222 "" | " "*) ;;
6223 *) reload_flag=" $reload_flag" ;;
6224 esac
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 case $host_os in
6227   darwin*)
6228     if test "$GCC" = yes; then
6229       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6230     else
6231       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232     fi
6233     ;;
6234 esac
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   if test -n "$OBJDUMP"; then
6253   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 OBJDUMP=$ac_cv_prog_OBJDUMP
6273 if test -n "$OBJDUMP"; then
6274   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6275 echo "${ECHO_T}$OBJDUMP" >&6; }
6276 else
6277   { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_OBJDUMP"; then
6284   ac_ct_OBJDUMP=$OBJDUMP
6285   # Extract the first word of "objdump", so it can be a program name with args.
6286 set dummy objdump; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   if test -n "$ac_ct_OBJDUMP"; then
6293   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6313 if test -n "$ac_ct_OBJDUMP"; then
6314   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6315 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6316 else
6317   { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_OBJDUMP" = x; then
6322     OBJDUMP="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet.  If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet.  If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334     OBJDUMP=$ac_ct_OBJDUMP
6335   fi
6336 else
6337   OBJDUMP="$ac_cv_prog_OBJDUMP"
6338 fi
6339
6340 test -z "$OBJDUMP" && OBJDUMP=objdump
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6351 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6352 if test "${lt_cv_deplibs_check_method+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   lt_cv_file_magic_cmd='$MAGIC_CMD'
6356 lt_cv_file_magic_test_file=
6357 lt_cv_deplibs_check_method='unknown'
6358 # Need to set the preceding variable on all platforms that support
6359 # interlibrary dependencies.
6360 # 'none' -- dependencies not supported.
6361 # `unknown' -- same as none, but documents that we really don't know.
6362 # 'pass_all' -- all dependencies passed with no checks.
6363 # 'test_compile' -- check by making test program.
6364 # 'file_magic [[regex]]' -- check by looking for files in library path
6365 # which responds to the $file_magic_cmd with a given extended regex.
6366 # If you have `file' or equivalent on your system and you're not sure
6367 # whether `pass_all' will *always* work, you probably want this one.
6368
6369 case $host_os in
6370 aix[4-9]*)
6371   lt_cv_deplibs_check_method=pass_all
6372   ;;
6373
6374 beos*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 bsdi[45]*)
6379   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6380   lt_cv_file_magic_cmd='/usr/bin/file -L'
6381   lt_cv_file_magic_test_file=/shlib/libc.so
6382   ;;
6383
6384 cygwin*)
6385   # func_win32_libid is a shell function defined in ltmain.sh
6386   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387   lt_cv_file_magic_cmd='func_win32_libid'
6388   ;;
6389
6390 mingw* | pw32*)
6391   # Base MSYS/MinGW do not provide the 'file' command needed by
6392   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6393   # unless we find 'file', for example because we are cross-compiling.
6394   if ( file / ) >/dev/null 2>&1; then
6395     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396     lt_cv_file_magic_cmd='func_win32_libid'
6397   else
6398     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399     lt_cv_file_magic_cmd='$OBJDUMP -f'
6400   fi
6401   ;;
6402
6403 cegcc)
6404   # use the weaker test based on 'objdump'. See mingw*.
6405   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406   lt_cv_file_magic_cmd='$OBJDUMP -f'
6407   ;;
6408
6409 darwin* | rhapsody*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 freebsd* | dragonfly*)
6414   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415     case $host_cpu in
6416     i*86 )
6417       # Not sure whether the presence of OpenBSD here was a mistake.
6418       # Let's accept both of them until this is cleared up.
6419       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420       lt_cv_file_magic_cmd=/usr/bin/file
6421       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422       ;;
6423     esac
6424   else
6425     lt_cv_deplibs_check_method=pass_all
6426   fi
6427   ;;
6428
6429 gnu*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 hpux10.20* | hpux11*)
6434   lt_cv_file_magic_cmd=/usr/bin/file
6435   case $host_cpu in
6436   ia64*)
6437     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439     ;;
6440   hppa*64*)
6441     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]'
6442     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443     ;;
6444   *)
6445     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6446     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447     ;;
6448   esac
6449   ;;
6450
6451 interix[3-9]*)
6452   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454   ;;
6455
6456 irix5* | irix6* | nonstopux*)
6457   case $LD in
6458   *-32|*"-32 ") libmagic=32-bit;;
6459   *-n32|*"-n32 ") libmagic=N32;;
6460   *-64|*"-64 ") libmagic=64-bit;;
6461   *) libmagic=never-match;;
6462   esac
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 # This must be Linux ELF.
6467 linux* | k*bsd*-gnu)
6468   lt_cv_deplibs_check_method=pass_all
6469   ;;
6470
6471 netbsd*)
6472   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474   else
6475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476   fi
6477   ;;
6478
6479 newos6*)
6480   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481   lt_cv_file_magic_cmd=/usr/bin/file
6482   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483   ;;
6484
6485 *nto* | *qnx*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488
6489 openbsd*)
6490   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492   else
6493     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494   fi
6495   ;;
6496
6497 osf3* | osf4* | osf5*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 rdos*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 solaris*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv4 | sysv4.3*)
6514   case $host_vendor in
6515   motorola)
6516     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]'
6517     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518     ;;
6519   ncr)
6520     lt_cv_deplibs_check_method=pass_all
6521     ;;
6522   sequent)
6523     lt_cv_file_magic_cmd='/bin/file'
6524     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525     ;;
6526   sni)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529     lt_cv_file_magic_test_file=/lib/libc.so
6530     ;;
6531   siemens)
6532     lt_cv_deplibs_check_method=pass_all
6533     ;;
6534   pc)
6535     lt_cv_deplibs_check_method=pass_all
6536     ;;
6537   esac
6538   ;;
6539
6540 tpf*)
6541   lt_cv_deplibs_check_method=pass_all
6542   ;;
6543 esac
6544
6545 fi
6546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6548 file_magic_cmd=$lt_cv_file_magic_cmd
6549 deplibs_check_method=$lt_cv_deplibs_check_method
6550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ar; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_AR+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test -n "$AR"; then
6572   ac_cv_prog_AR="$AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_AR="${ac_tool_prefix}ar"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 AR=$ac_cv_prog_AR
6592 if test -n "$AR"; then
6593   { echo "$as_me:$LINENO: result: $AR" >&5
6594 echo "${ECHO_T}$AR" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_AR"; then
6603   ac_ct_AR=$AR
6604   # Extract the first word of "ar", so it can be a program name with args.
6605 set dummy ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   if test -n "$ac_ct_AR"; then
6612   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_AR="ar"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6632 if test -n "$ac_ct_AR"; then
6633   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6634 echo "${ECHO_T}$ac_ct_AR" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_AR" = x; then
6641     AR="false"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646 whose name does not start with the host triplet.  If you think this
6647 configuration is useful to you, please write to autoconf@gnu.org." >&5
6648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet.  If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651 ac_tool_warned=yes ;;
6652 esac
6653     AR=$ac_ct_AR
6654   fi
6655 else
6656   AR="$ac_cv_prog_AR"
6657 fi
6658
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_STRIP+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$STRIP"; then
6681   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702   { echo "$as_me:$LINENO: result: $STRIP" >&5
6703 echo "${ECHO_T}$STRIP" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_STRIP"; then
6712   ac_ct_STRIP=$STRIP
6713   # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$ac_ct_STRIP"; then
6721   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_ac_ct_STRIP="strip"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6743 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749   if test "x$ac_ct_STRIP" = x; then
6750     STRIP=":"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet.  If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet.  If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     STRIP=$ac_ct_STRIP
6763   fi
6764 else
6765   STRIP="$ac_cv_prog_STRIP"
6766 fi
6767
6768 test -z "$STRIP" && STRIP=:
6769
6770
6771
6772
6773
6774
6775 if test -n "$ac_tool_prefix"; then
6776   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_RANLIB+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   if test -n "$RANLIB"; then
6784   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 RANLIB=$ac_cv_prog_RANLIB
6804 if test -n "$RANLIB"; then
6805   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6806 echo "${ECHO_T}$RANLIB" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812
6813 fi
6814 if test -z "$ac_cv_prog_RANLIB"; then
6815   ac_ct_RANLIB=$RANLIB
6816   # Extract the first word of "ranlib", so it can be a program name with args.
6817 set dummy ranlib; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   if test -n "$ac_ct_RANLIB"; then
6824   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831   for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_prog_ac_ct_RANLIB="ranlib"
6834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6844 if test -n "$ac_ct_RANLIB"; then
6845   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6846 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852   if test "x$ac_ct_RANLIB" = x; then
6853     RANLIB=":"
6854   else
6855     case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet.  If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&5
6860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet.  If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865     RANLIB=$ac_ct_RANLIB
6866   fi
6867 else
6868   RANLIB="$ac_cv_prog_RANLIB"
6869 fi
6870
6871 test -z "$RANLIB" && RANLIB=:
6872
6873
6874
6875
6876
6877
6878 # Determine commands to create old-style static archives.
6879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6880 old_postinstall_cmds='chmod 644 $oldlib'
6881 old_postuninstall_cmds=
6882
6883 if test -n "$RANLIB"; then
6884   case $host_os in
6885   openbsd*)
6886     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6887     ;;
6888   *)
6889     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6890     ;;
6891   esac
6892   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6893 fi
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
6921
6922
6923
6924
6925
6926
6927
6928 # If no C compiler was specified, use CC.
6929 LTCC=${LTCC-"$CC"}
6930
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6933
6934 # Allow CC to be a program name with arguments.
6935 compiler=$CC
6936
6937
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6947
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6950
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953
6954 # Define system-specific variables.
6955 case $host_os in
6956 aix*)
6957   symcode='[BCDT]'
6958   ;;
6959 cygwin* | mingw* | pw32* | cegcc*)
6960   symcode='[ABCDGISTW]'
6961   ;;
6962 hpux*)
6963   if test "$host_cpu" = ia64; then
6964     symcode='[ABCDEGRST]'
6965   fi
6966   ;;
6967 irix* | nonstopux*)
6968   symcode='[BCDEGRST]'
6969   ;;
6970 osf*)
6971   symcode='[BCDEGQRST]'
6972   ;;
6973 solaris*)
6974   symcode='[BDRT]'
6975   ;;
6976 sco3.2v5*)
6977   symcode='[DT]'
6978   ;;
6979 sysv4.2uw2*)
6980   symcode='[DT]'
6981   ;;
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6983   symcode='[ABDT]'
6984   ;;
6985 sysv4)
6986   symcode='[DFNSTU]'
6987   ;;
6988 esac
6989
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993   symcode='[ABCDGIRSTW]' ;;
6994 esac
6995
6996 # Transform an extracted symbol line into a proper C declaration.
6997 # Some systems (esp. on ia64) link data and code symbols differently,
6998 # so use this general approach.
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7000
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7003 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'"
7004
7005 # Handle CRLF in mingw tool chain
7006 opt_cr=
7007 case $build_os in
7008 mingw*)
7009   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7010   ;;
7011 esac
7012
7013 # Try without a prefix underscore, then with it.
7014 for ac_symprfx in "" "_"; do
7015
7016   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7017   symxfrm="\\1 $ac_symprfx\\2 \\2"
7018
7019   # Write the raw and C identifiers.
7020   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7021     # Fake it for dumpbin and say T for any non-static function
7022     # and D for any global variable.
7023     # Also find C++ and __fastcall symbols from MSVC++,
7024     # which start with @ or ?.
7025     lt_cv_sys_global_symbol_pipe="$AWK '"\
7026 "     {last_section=section; section=\$ 3};"\
7027 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7028 "     \$ 0!~/External *\|/{next};"\
7029 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7030 "     {if(hide[section]) next};"\
7031 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7032 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7033 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7034 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7035 "     ' prfx=^$ac_symprfx"
7036   else
7037     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038   fi
7039
7040   # Check to see that the pipe works correctly.
7041   pipe_works=no
7042
7043   rm -f conftest*
7044   cat > conftest.$ac_ext <<_LT_EOF
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048 char nm_test_var;
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7051 #ifdef __cplusplus
7052 }
7053 #endif
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7055 _LT_EOF
7056
7057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; then
7062     # Now try to grab the symbols.
7063     nlist=conftest.nm
7064     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7065   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && test -s "$nlist"; then
7069       # Try sorting and uniquifying the output.
7070       if sort "$nlist" | uniq > "$nlist"T; then
7071         mv -f "$nlist"T "$nlist"
7072       else
7073         rm -f "$nlist"T
7074       fi
7075
7076       # Make sure that we snagged all the symbols we need.
7077       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079           cat <<_LT_EOF > conftest.$ac_ext
7080 #ifdef __cplusplus
7081 extern "C" {
7082 #endif
7083
7084 _LT_EOF
7085           # Now generate the symbol file.
7086           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7087
7088           cat <<_LT_EOF >> conftest.$ac_ext
7089
7090 /* The mapping between symbol names and symbols.  */
7091 const struct {
7092   const char *name;
7093   void       *address;
7094 }
7095 lt__PROGRAM__LTX_preloaded_symbols[] =
7096 {
7097   { "@PROGRAM@", (void *) 0 },
7098 _LT_EOF
7099           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7100           cat <<\_LT_EOF >> conftest.$ac_ext
7101   {0, (void *) 0}
7102 };
7103
7104 /* This works around a problem in FreeBSD linker */
7105 #ifdef FREEBSD_WORKAROUND
7106 static const void *lt_preloaded_setup() {
7107   return lt__PROGRAM__LTX_preloaded_symbols;
7108 }
7109 #endif
7110
7111 #ifdef __cplusplus
7112 }
7113 #endif
7114 _LT_EOF
7115           # Now try linking the two files.
7116           mv conftest.$ac_objext conftstm.$ac_objext
7117           lt_save_LIBS="$LIBS"
7118           lt_save_CFLAGS="$CFLAGS"
7119           LIBS="conftstm.$ac_objext"
7120           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7121           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122   (eval $ac_link) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7126             pipe_works=yes
7127           fi
7128           LIBS="$lt_save_LIBS"
7129           CFLAGS="$lt_save_CFLAGS"
7130         else
7131           echo "cannot find nm_test_func in $nlist" >&5
7132         fi
7133       else
7134         echo "cannot find nm_test_var in $nlist" >&5
7135       fi
7136     else
7137       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7138     fi
7139   else
7140     echo "$progname: failed program was:" >&5
7141     cat conftest.$ac_ext >&5
7142   fi
7143   rm -rf conftest* conftst*
7144
7145   # Do not use the global_symbol_pipe unless it works.
7146   if test "$pipe_works" = yes; then
7147     break
7148   else
7149     lt_cv_sys_global_symbol_pipe=
7150   fi
7151 done
7152
7153 fi
7154
7155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7156   lt_cv_sys_global_symbol_to_cdecl=
7157 fi
7158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7159   { echo "$as_me:$LINENO: result: failed" >&5
7160 echo "${ECHO_T}failed" >&6; }
7161 else
7162   { echo "$as_me:$LINENO: result: ok" >&5
7163 echo "${ECHO_T}ok" >&6; }
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 # Check whether --enable-libtool-lock was given.
7188 if test "${enable_libtool_lock+set}" = set; then
7189   enableval=$enable_libtool_lock;
7190 fi
7191
7192 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7193
7194 # Some flags need to be propagated to the compiler or linker for good
7195 # libtool support.
7196 case $host in
7197 ia64-*-hpux*)
7198   # Find out which ABI we are using.
7199   echo 'int i;' > conftest.$ac_ext
7200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; then
7205     case `/usr/bin/file conftest.$ac_objext` in
7206       *ELF-32*)
7207         HPUX_IA64_MODE="32"
7208         ;;
7209       *ELF-64*)
7210         HPUX_IA64_MODE="64"
7211         ;;
7212     esac
7213   fi
7214   rm -rf conftest*
7215   ;;
7216 *-*-irix6*)
7217   # Find out which ABI we are using.
7218   echo '#line 7218 "configure"' > conftest.$ac_ext
7219   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220   (eval $ac_compile) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; then
7224     if test "$lt_cv_prog_gnu_ld" = yes; then
7225       case `/usr/bin/file conftest.$ac_objext` in
7226         *32-bit*)
7227           LD="${LD-ld} -melf32bsmip"
7228           ;;
7229         *N32*)
7230           LD="${LD-ld} -melf32bmipn32"
7231           ;;
7232         *64-bit*)
7233           LD="${LD-ld} -melf64bmip"
7234         ;;
7235       esac
7236     else
7237       case `/usr/bin/file conftest.$ac_objext` in
7238         *32-bit*)
7239           LD="${LD-ld} -32"
7240           ;;
7241         *N32*)
7242           LD="${LD-ld} -n32"
7243           ;;
7244         *64-bit*)
7245           LD="${LD-ld} -64"
7246           ;;
7247       esac
7248     fi
7249   fi
7250   rm -rf conftest*
7251   ;;
7252
7253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7255   # Find out which ABI we are using.
7256   echo 'int i;' > conftest.$ac_ext
7257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258   (eval $ac_compile) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; then
7262     case `/usr/bin/file conftest.o` in
7263       *32-bit*)
7264         case $host in
7265           x86_64-*kfreebsd*-gnu)
7266             LD="${LD-ld} -m elf_i386_fbsd"
7267             ;;
7268           x86_64-*linux*)
7269             LD="${LD-ld} -m elf_i386"
7270             ;;
7271           ppc64-*linux*|powerpc64-*linux*)
7272             LD="${LD-ld} -m elf32ppclinux"
7273             ;;
7274           s390x-*linux*)
7275             LD="${LD-ld} -m elf_s390"
7276             ;;
7277           sparc64-*linux*)
7278             LD="${LD-ld} -m elf32_sparc"
7279             ;;
7280         esac
7281         ;;
7282       *64-bit*)
7283         case $host in
7284           x86_64-*kfreebsd*-gnu)
7285             LD="${LD-ld} -m elf_x86_64_fbsd"
7286             ;;
7287           x86_64-*linux*)
7288             LD="${LD-ld} -m elf_x86_64"
7289             ;;
7290           ppc*-*linux*|powerpc*-*linux*)
7291             LD="${LD-ld} -m elf64ppc"
7292             ;;
7293           s390*-*linux*|s390*-*tpf*)
7294             LD="${LD-ld} -m elf64_s390"
7295             ;;
7296           sparc*-*linux*)
7297             LD="${LD-ld} -m elf64_sparc"
7298             ;;
7299         esac
7300         ;;
7301     esac
7302   fi
7303   rm -rf conftest*
7304   ;;
7305
7306 *-*-sco3.2v5*)
7307   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308   SAVE_CFLAGS="$CFLAGS"
7309   CFLAGS="$CFLAGS -belf"
7310   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7312 if test "${lt_cv_cc_needs_belf+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321      cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327
7328 int
7329 main ()
7330 {
7331
7332   ;
7333   return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7338 case "(($ac_try" in
7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340   *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343   (eval "$ac_link") 2>conftest.er1
7344   ac_status=$?
7345   grep -v '^ *+' conftest.er1 >conftest.err
7346   rm -f conftest.er1
7347   cat conftest.err >&5
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } && {
7350          test -z "$ac_c_werror_flag" ||
7351          test ! -s conftest.err
7352        } && test -s conftest$ac_exeext &&
7353        $as_test_x conftest$ac_exeext; then
7354   lt_cv_cc_needs_belf=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359         lt_cv_cc_needs_belf=no
7360 fi
7361
7362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363       conftest$ac_exeext conftest.$ac_ext
7364      ac_ext=c
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369
7370 fi
7371 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7373   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7374     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7375     CFLAGS="$SAVE_CFLAGS"
7376   fi
7377   ;;
7378 sparc*-*solaris*)
7379   # Find out which ABI we are using.
7380   echo 'int i;' > conftest.$ac_ext
7381   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382   (eval $ac_compile) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; then
7386     case `/usr/bin/file conftest.o` in
7387     *64-bit*)
7388       case $lt_cv_prog_gnu_ld in
7389       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7390       *)
7391         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7392           LD="${LD-ld} -64"
7393         fi
7394         ;;
7395       esac
7396       ;;
7397     esac
7398   fi
7399   rm -rf conftest*
7400   ;;
7401 esac
7402
7403 need_locks="$enable_libtool_lock"
7404
7405
7406   case $host_os in
7407     rhapsody* | darwin*)
7408     if test -n "$ac_tool_prefix"; then
7409   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   if test -n "$DSYMUTIL"; then
7417   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424   for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7439 echo "${ECHO_T}$DSYMUTIL" >&6; }
7440 else
7441   { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443 fi
7444
7445
7446 fi
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448   ac_ct_DSYMUTIL=$DSYMUTIL
7449   # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   if test -n "$ac_ct_DSYMUTIL"; then
7457   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7479 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485   if test "x$ac_ct_DSYMUTIL" = x; then
7486     DSYMUTIL=":"
7487   else
7488     case $cross_compiling:$ac_tool_warned in
7489 yes:)
7490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7491 whose name does not start with the host triplet.  If you think this
7492 configuration is useful to you, please write to autoconf@gnu.org." >&5
7493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet.  If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     DSYMUTIL=$ac_ct_DSYMUTIL
7499   fi
7500 else
7501   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 fi
7503
7504     if test -n "$ac_tool_prefix"; then
7505   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$NMEDIT"; then
7513   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7535 echo "${ECHO_T}$NMEDIT" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542 fi
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544   ac_ct_NMEDIT=$NMEDIT
7545   # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   if test -n "$ac_ct_NMEDIT"; then
7553   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7575 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581   if test "x$ac_ct_NMEDIT" = x; then
7582     NMEDIT=":"
7583   else
7584     case $cross_compiling:$ac_tool_warned in
7585 yes:)
7586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7587 whose name does not start with the host triplet.  If you think this
7588 configuration is useful to you, please write to autoconf@gnu.org." >&5
7589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet.  If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     NMEDIT=$ac_ct_NMEDIT
7595   fi
7596 else
7597   NMEDIT="$ac_cv_prog_NMEDIT"
7598 fi
7599
7600     if test -n "$ac_tool_prefix"; then
7601   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_prog_LIPO+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   if test -n "$LIPO"; then
7609   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616   for ac_exec_ext in '' $ac_executable_extensions; do
7617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 LIPO=$ac_cv_prog_LIPO
7629 if test -n "$LIPO"; then
7630   { echo "$as_me:$LINENO: result: $LIPO" >&5
7631 echo "${ECHO_T}$LIPO" >&6; }
7632 else
7633   { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_LIPO"; then
7640   ac_ct_LIPO=$LIPO
7641   # Extract the first word of "lipo", so it can be a program name with args.
7642 set dummy lipo; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   if test -n "$ac_ct_LIPO"; then
7649   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   for ac_exec_ext in '' $ac_executable_extensions; do
7657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658     ac_cv_prog_ac_ct_LIPO="lipo"
7659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669 if test -n "$ac_ct_LIPO"; then
7670   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7671 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677   if test "x$ac_ct_LIPO" = x; then
7678     LIPO=":"
7679   else
7680     case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7683 whose name does not start with the host triplet.  If you think this
7684 configuration is useful to you, please write to autoconf@gnu.org." >&5
7685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet.  If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7688 ac_tool_warned=yes ;;
7689 esac
7690     LIPO=$ac_ct_LIPO
7691   fi
7692 else
7693   LIPO="$ac_cv_prog_LIPO"
7694 fi
7695
7696     if test -n "$ac_tool_prefix"; then
7697   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}otool; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_prog_OTOOL+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   if test -n "$OTOOL"; then
7705   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712   for ac_exec_ext in '' $ac_executable_extensions; do
7713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 OTOOL=$ac_cv_prog_OTOOL
7725 if test -n "$OTOOL"; then
7726   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7727 echo "${ECHO_T}$OTOOL" >&6; }
7728 else
7729   { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_OTOOL"; then
7736   ac_ct_OTOOL=$OTOOL
7737   # Extract the first word of "otool", so it can be a program name with args.
7738 set dummy otool; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   if test -n "$ac_ct_OTOOL"; then
7745   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754     ac_cv_prog_ac_ct_OTOOL="otool"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7765 if test -n "$ac_ct_OTOOL"; then
7766   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7767 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7768 else
7769   { echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6; }
7771 fi
7772
7773   if test "x$ac_ct_OTOOL" = x; then
7774     OTOOL=":"
7775   else
7776     case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7779 whose name does not start with the host triplet.  If you think this
7780 configuration is useful to you, please write to autoconf@gnu.org." >&5
7781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet.  If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786     OTOOL=$ac_ct_OTOOL
7787   fi
7788 else
7789   OTOOL="$ac_cv_prog_OTOOL"
7790 fi
7791
7792     if test -n "$ac_tool_prefix"; then
7793   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   if test -n "$OTOOL64"; then
7801   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808   for ac_exec_ext in '' $ac_executable_extensions; do
7809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815 done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 OTOOL64=$ac_cv_prog_OTOOL64
7821 if test -n "$OTOOL64"; then
7822   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7823 echo "${ECHO_T}$OTOOL64" >&6; }
7824 else
7825   { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7827 fi
7828
7829
7830 fi
7831 if test -z "$ac_cv_prog_OTOOL64"; then
7832   ac_ct_OTOOL64=$OTOOL64
7833   # Extract the first word of "otool64", so it can be a program name with args.
7834 set dummy otool64; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   if test -n "$ac_ct_OTOOL64"; then
7841   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848   for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_prog_ac_ct_OTOOL64="otool64"
7851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7861 if test -n "$ac_ct_OTOOL64"; then
7862   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7863 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869   if test "x$ac_ct_OTOOL64" = x; then
7870     OTOOL64=":"
7871   else
7872     case $cross_compiling:$ac_tool_warned in
7873 yes:)
7874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7875 whose name does not start with the host triplet.  If you think this
7876 configuration is useful to you, please write to autoconf@gnu.org." >&5
7877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet.  If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     OTOOL64=$ac_ct_OTOOL64
7883   fi
7884 else
7885   OTOOL64="$ac_cv_prog_OTOOL64"
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7915 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7916 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   lt_cv_apple_cc_single_mod=no
7920       if test -z "${LT_MULTI_MODULE}"; then
7921         # By default we will add the -single_module flag. You can override
7922         # by either setting the environment variable LT_MULTI_MODULE
7923         # non-empty at configure time, or by adding -multi_module to the
7924         # link flags.
7925         rm -rf libconftest.dylib*
7926         echo "int foo(void){return 1;}" > conftest.c
7927         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c" >&5
7929         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7931         _lt_result=$?
7932         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933           lt_cv_apple_cc_single_mod=yes
7934         else
7935           cat conftest.err >&5
7936         fi
7937         rm -rf libconftest.dylib*
7938         rm -f conftest.*
7939       fi
7940 fi
7941 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7942 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7943     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7944 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7945 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   lt_cv_ld_exported_symbols_list=no
7949       save_LDFLAGS=$LDFLAGS
7950       echo "_main" > conftest.sym
7951       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952       cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958
7959 int
7960 main ()
7961 {
7962
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7969 case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_link") 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } && {
7981          test -z "$ac_c_werror_flag" ||
7982          test ! -s conftest.err
7983        } && test -s conftest$ac_exeext &&
7984        $as_test_x conftest$ac_exeext; then
7985   lt_cv_ld_exported_symbols_list=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990         lt_cv_ld_exported_symbols_list=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994       conftest$ac_exeext conftest.$ac_ext
7995         LDFLAGS="$save_LDFLAGS"
7996
7997 fi
7998 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7999 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8000     case $host_os in
8001     rhapsody* | darwin1.[012])
8002       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8003     darwin1.*)
8004       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005     darwin*) # darwin 5.x on
8006       # if running on 10.5 or later, the deployment target defaults
8007       # to the OS version, if on x86, and 10.4, the deployment
8008       # target defaults to 10.4. Don't you love it?
8009       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012         10.[012]*)
8013           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8014         10.*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016       esac
8017     ;;
8018   esac
8019     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020       _lt_dar_single_mod='$single_module'
8021     fi
8022     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8024     else
8025       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8026     fi
8027     if test "$DSYMUTIL" != ":"; then
8028       _lt_dsymutil='~$DSYMUTIL $lib || :'
8029     else
8030       _lt_dsymutil=
8031     fi
8032     ;;
8033   esac
8034
8035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8037 if test "${ac_cv_header_stdc+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046 #include <stdlib.h>
8047 #include <stdarg.h>
8048 #include <string.h>
8049 #include <float.h>
8050
8051 int
8052 main ()
8053 {
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_compile") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest.$ac_objext; then
8076   ac_cv_header_stdc=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_header_stdc=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <string.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098   $EGREP "memchr" >/dev/null 2>&1; then
8099   :
8100 else
8101   ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 #include <stdlib.h>
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119   $EGREP "free" >/dev/null 2>&1; then
8120   :
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f conftest*
8125
8126 fi
8127
8128 if test $ac_cv_header_stdc = yes; then
8129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130   if test "$cross_compiling" = yes; then
8131   :
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <ctype.h>
8140 #include <stdlib.h>
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8144 #else
8145 # define ISLOWER(c) \
8146                    (('a' <= (c) && (c) <= 'i') \
8147                      || ('j' <= (c) && (c) <= 'r') \
8148                      || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #endif
8151
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 int
8154 main ()
8155 {
8156   int i;
8157   for (i = 0; i < 256; i++)
8158     if (XOR (islower (i), ISLOWER (i))
8159         || toupper (i) != TOUPPER (i))
8160       return 2;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   :
8185 else
8186   echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ( exit $ac_status )
8191 ac_cv_header_stdc=no
8192 fi
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 fi
8195
8196
8197 fi
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8205 _ACEOF
8206
8207 fi
8208
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220                   inttypes.h stdint.h unistd.h
8221 do
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235
8236 #include <$ac_header>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8240 case "(($ac_try" in
8241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242   *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245   (eval "$ac_compile") 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } && {
8252          test -z "$ac_c_werror_flag" ||
8253          test ! -s conftest.err
8254        } && test -s conftest.$ac_objext; then
8255   eval "$as_ac_Header=yes"
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260         eval "$as_ac_Header=no"
8261 fi
8262
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266                { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269   cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 _ACEOF
8272
8273 fi
8274
8275 done
8276
8277
8278
8279 for ac_header in dlfcn.h
8280 do
8281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 $ac_includes_default
8294
8295 #include <$ac_header>
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_compile") 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && {
8311          test -z "$ac_c_werror_flag" ||
8312          test ! -s conftest.err
8313        } && test -s conftest.$ac_objext; then
8314   eval "$as_ac_Header=yes"
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319         eval "$as_ac_Header=no"
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 ac_res=`eval echo '${'$as_ac_Header'}'`
8325                { echo "$as_me:$LINENO: result: $ac_res" >&5
8326 echo "${ECHO_T}$ac_res" >&6; }
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328   cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330 _ACEOF
8331
8332 fi
8333
8334 done
8335
8336
8337
8338 ac_ext=cpp
8339 ac_cpp='$CXXCPP $CPPFLAGS'
8340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8343 if test -z "$CXX"; then
8344   if test -n "$CCC"; then
8345     CXX=$CCC
8346   else
8347     if test -n "$ac_tool_prefix"; then
8348   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8349   do
8350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CXX+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   if test -n "$CXX"; then
8358   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365   for ac_exec_ext in '' $ac_executable_extensions; do
8366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 CXX=$ac_cv_prog_CXX
8378 if test -n "$CXX"; then
8379   { echo "$as_me:$LINENO: result: $CXX" >&5
8380 echo "${ECHO_T}$CXX" >&6; }
8381 else
8382   { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8384 fi
8385
8386
8387     test -n "$CXX" && break
8388   done
8389 fi
8390 if test -z "$CXX"; then
8391   ac_ct_CXX=$CXX
8392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8393 do
8394   # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   if test -n "$ac_ct_CXX"; then
8402   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409   for ac_exec_ext in '' $ac_executable_extensions; do
8410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411     ac_cv_prog_ac_ct_CXX="$ac_prog"
8412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8422 if test -n "$ac_ct_CXX"; then
8423   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8424 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8425 else
8426   { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8428 fi
8429
8430
8431   test -n "$ac_ct_CXX" && break
8432 done
8433
8434   if test "x$ac_ct_CXX" = x; then
8435     CXX="g++"
8436   else
8437     case $cross_compiling:$ac_tool_warned in
8438 yes:)
8439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8440 whose name does not start with the host triplet.  If you think this
8441 configuration is useful to you, please write to autoconf@gnu.org." >&5
8442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet.  If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8445 ac_tool_warned=yes ;;
8446 esac
8447     CXX=$ac_ct_CXX
8448   fi
8449 fi
8450
8451   fi
8452 fi
8453 # Provide some information about the compiler.
8454 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8455 ac_compiler=`set X $ac_compile; echo $2`
8456 { (ac_try="$ac_compiler --version >&5"
8457 case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_compiler --version >&5") 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }
8466 { (ac_try="$ac_compiler -v >&5"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_compiler -v >&5") 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }
8476 { (ac_try="$ac_compiler -V >&5"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_compiler -V >&5") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }
8486
8487 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8488 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 int
8500 main ()
8501 {
8502 #ifndef __GNUC__
8503        choke me
8504 #endif
8505
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_compile") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } && {
8524          test -z "$ac_cxx_werror_flag" ||
8525          test ! -s conftest.err
8526        } && test -s conftest.$ac_objext; then
8527   ac_compiler_gnu=yes
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532         ac_compiler_gnu=no
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8537
8538 fi
8539 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8540 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8541 GXX=`test $ac_compiler_gnu = yes && echo yes`
8542 ac_test_CXXFLAGS=${CXXFLAGS+set}
8543 ac_save_CXXFLAGS=$CXXFLAGS
8544 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8546 if test "${ac_cv_prog_cxx_g+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8550    ac_cxx_werror_flag=yes
8551    ac_cv_prog_cxx_g=no
8552    CXXFLAGS="-g"
8553    cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_compile") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_cxx_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest.$ac_objext; then
8585   ac_cv_prog_cxx_g=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590         CXXFLAGS=""
8591       cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597
8598 int
8599 main ()
8600 {
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_compile") 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } && {
8620          test -z "$ac_cxx_werror_flag" ||
8621          test ! -s conftest.err
8622        } && test -s conftest.$ac_objext; then
8623   :
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8629          CXXFLAGS="-g"
8630          cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_cxx_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest.$ac_objext; then
8662   ac_cv_prog_cxx_g=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8678 fi
8679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8681 if test "$ac_test_CXXFLAGS" = set; then
8682   CXXFLAGS=$ac_save_CXXFLAGS
8683 elif test $ac_cv_prog_cxx_g = yes; then
8684   if test "$GXX" = yes; then
8685     CXXFLAGS="-g -O2"
8686   else
8687     CXXFLAGS="-g"
8688   fi
8689 else
8690   if test "$GXX" = yes; then
8691     CXXFLAGS="-O2"
8692   else
8693     CXXFLAGS=
8694   fi
8695 fi
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8703     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8704     (test "X$CXX" != "Xg++"))) ; then
8705   ac_ext=cpp
8706 ac_cpp='$CXXCPP $CPPFLAGS'
8707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8710 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8711 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8712 if test -z "$CXXCPP"; then
8713   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716       # Double quotes because CXXCPP needs to be expanded
8717     for CXXCPP in "$CXX -E" "/lib/cpp"
8718     do
8719       ac_preproc_ok=false
8720 for ac_cxx_preproc_warn_flag in '' yes
8721 do
8722   # Use a header file that comes with gcc, so configuring glibc
8723   # with a fresh cross-compiler works.
8724   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725   # <limits.h> exists even on freestanding compilers.
8726   # On the NeXT, cc -E runs the code through the compiler's parser,
8727   # not just through cpp. "Syntax error" is here to catch this case.
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #ifdef __STDC__
8735 # include <limits.h>
8736 #else
8737 # include <assert.h>
8738 #endif
8739                      Syntax error
8740 _ACEOF
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } >/dev/null && {
8754          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8755          test ! -s conftest.err
8756        }; then
8757   :
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762   # Broken: fails on valid input.
8763 continue
8764 fi
8765
8766 rm -f conftest.err conftest.$ac_ext
8767
8768   # OK, works on sane cases.  Now check whether nonexistent headers
8769   # can be detected and how.
8770   cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776 #include <ac_nonexistent.h>
8777 _ACEOF
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8779 case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } >/dev/null && {
8791          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792          test ! -s conftest.err
8793        }; then
8794   # Broken: success on invalid input.
8795 continue
8796 else
8797   echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800   # Passes both tests.
8801 ac_preproc_ok=:
8802 break
8803 fi
8804
8805 rm -f conftest.err conftest.$ac_ext
8806
8807 done
8808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8809 rm -f conftest.err conftest.$ac_ext
8810 if $ac_preproc_ok; then
8811   break
8812 fi
8813
8814     done
8815     ac_cv_prog_CXXCPP=$CXXCPP
8816
8817 fi
8818   CXXCPP=$ac_cv_prog_CXXCPP
8819 else
8820   ac_cv_prog_CXXCPP=$CXXCPP
8821 fi
8822 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8823 echo "${ECHO_T}$CXXCPP" >&6; }
8824 ac_preproc_ok=false
8825 for ac_cxx_preproc_warn_flag in '' yes
8826 do
8827   # Use a header file that comes with gcc, so configuring glibc
8828   # with a fresh cross-compiler works.
8829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8830   # <limits.h> exists even on freestanding compilers.
8831   # On the NeXT, cc -E runs the code through the compiler's parser,
8832   # not just through cpp. "Syntax error" is here to catch this case.
8833   cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h.  */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h.  */
8839 #ifdef __STDC__
8840 # include <limits.h>
8841 #else
8842 # include <assert.h>
8843 #endif
8844                      Syntax error
8845 _ACEOF
8846 if { (ac_try="$ac_cpp conftest.$ac_ext"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } >/dev/null && {
8859          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8860          test ! -s conftest.err
8861        }; then
8862   :
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867   # Broken: fails on valid input.
8868 continue
8869 fi
8870
8871 rm -f conftest.err conftest.$ac_ext
8872
8873   # OK, works on sane cases.  Now check whether nonexistent headers
8874   # can be detected and how.
8875   cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881 #include <ac_nonexistent.h>
8882 _ACEOF
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } >/dev/null && {
8896          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8897          test ! -s conftest.err
8898        }; then
8899   # Broken: success on invalid input.
8900 continue
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905   # Passes both tests.
8906 ac_preproc_ok=:
8907 break
8908 fi
8909
8910 rm -f conftest.err conftest.$ac_ext
8911
8912 done
8913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8914 rm -f conftest.err conftest.$ac_ext
8915 if $ac_preproc_ok; then
8916   :
8917 else
8918   _lt_caught_CXX_error=yes
8919 fi
8920
8921 ac_ext=c
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927 else
8928   _lt_caught_CXX_error=yes
8929 fi
8930
8931
8932
8933
8934
8935 # Set options
8936 # Check whether --enable-shared was given.
8937 if test "${enable_shared+set}" = set; then
8938   enableval=$enable_shared; p=${PACKAGE-default}
8939     case $enableval in
8940     yes) enable_shared=yes ;;
8941     no) enable_shared=no ;;
8942     *)
8943       enable_shared=no
8944       # Look at the argument we got.  We use all the common list separators.
8945       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8946       for pkg in $enableval; do
8947         IFS="$lt_save_ifs"
8948         if test "X$pkg" = "X$p"; then
8949           enable_shared=yes
8950         fi
8951       done
8952       IFS="$lt_save_ifs"
8953       ;;
8954     esac
8955 else
8956   enable_shared=yes
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965 # Check whether --enable-static was given.
8966 if test "${enable_static+set}" = set; then
8967   enableval=$enable_static; p=${PACKAGE-default}
8968     case $enableval in
8969     yes) enable_static=yes ;;
8970     no) enable_static=no ;;
8971     *)
8972      enable_static=no
8973       # Look at the argument we got.  We use all the common list separators.
8974       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975       for pkg in $enableval; do
8976         IFS="$lt_save_ifs"
8977         if test "X$pkg" = "X$p"; then
8978           enable_static=yes
8979         fi
8980       done
8981       IFS="$lt_save_ifs"
8982       ;;
8983     esac
8984 else
8985   enable_static=no
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997         enable_dlopen=no
8998
8999
9000   enable_win32_dll=no
9001
9002
9003
9004
9005
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then
9008   withval=$with_pic; pic_mode="$withval"
9009 else
9010   pic_mode=default
9011 fi
9012
9013
9014 test -z "$pic_mode" && pic_mode=default
9015
9016
9017
9018
9019
9020
9021
9022   # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then
9024   enableval=$enable_fast_install; p=${PACKAGE-default}
9025     case $enableval in
9026     yes) enable_fast_install=yes ;;
9027     no) enable_fast_install=no ;;
9028     *)
9029       enable_fast_install=no
9030       # Look at the argument we got.  We use all the common list separators.
9031       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032       for pkg in $enableval; do
9033         IFS="$lt_save_ifs"
9034         if test "X$pkg" = "X$p"; then
9035           enable_fast_install=yes
9036         fi
9037       done
9038       IFS="$lt_save_ifs"
9039       ;;
9040     esac
9041 else
9042   enable_fast_install=yes
9043 fi
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9057
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085 test -z "$LN_S" && LN_S="ln -s"
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100 if test -n "${ZSH_VERSION+set}" ; then
9101    setopt NO_GLOB_SUBST
9102 fi
9103
9104 { echo "$as_me:$LINENO: checking for objdir" >&5
9105 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9106 if test "${lt_cv_objdir+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   rm -f .libs 2>/dev/null
9110 mkdir .libs 2>/dev/null
9111 if test -d .libs; then
9112   lt_cv_objdir=.libs
9113 else
9114   # MS-DOS does not allow filenames that begin with a dot.
9115   lt_cv_objdir=_libs
9116 fi
9117 rmdir .libs 2>/dev/null
9118 fi
9119 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9120 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9121 objdir=$lt_cv_objdir
9122
9123
9124
9125
9126
9127 cat >>confdefs.h <<_ACEOF
9128 #define LT_OBJDIR "$lt_cv_objdir/"
9129 _ACEOF
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 case $host_os in
9148 aix3*)
9149   # AIX sometimes has problems with the GCC collect2 program.  For some
9150   # reason, if we set the COLLECT_NAMES environment variable, the problems
9151   # vanish in a puff of smoke.
9152   if test "X${COLLECT_NAMES+set}" != Xset; then
9153     COLLECT_NAMES=
9154     export COLLECT_NAMES
9155   fi
9156   ;;
9157 esac
9158
9159 # Sed substitution that helps us do robust quoting.  It backslashifies
9160 # metacharacters that are still active within double-quoted strings.
9161 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9162
9163 # Same as above, but do not quote variable references.
9164 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9165
9166 # Sed substitution to delay expansion of an escaped shell variable in a
9167 # double_quote_subst'ed string.
9168 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9169
9170 # Sed substitution to delay expansion of an escaped single quote.
9171 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9172
9173 # Sed substitution to avoid accidental globbing in evaled expressions
9174 no_glob_subst='s/\*/\\\*/g'
9175
9176 # Global variables:
9177 ofile=libtool
9178 can_build_shared=yes
9179
9180 # All known linkers require a `.a' archive for static linking (except MSVC,
9181 # which needs '.lib').
9182 libext=a
9183
9184 with_gnu_ld="$lt_cv_prog_gnu_ld"
9185
9186 old_CC="$CC"
9187 old_CFLAGS="$CFLAGS"
9188
9189 # Set sane defaults for various variables
9190 test -z "$CC" && CC=cc
9191 test -z "$LTCC" && LTCC=$CC
9192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9193 test -z "$LD" && LD=ld
9194 test -z "$ac_objext" && ac_objext=o
9195
9196 for cc_temp in $compiler""; do
9197   case $cc_temp in
9198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9200     \-*) ;;
9201     *) break;;
9202   esac
9203 done
9204 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9205
9206
9207 # Only perform the check for file, if the check method requires it
9208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9209 case $deplibs_check_method in
9210 file_magic*)
9211   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9212     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   case $MAGIC_CMD in
9218 [\\/*] |  ?:[\\/]*)
9219   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220   ;;
9221 *)
9222   lt_save_MAGIC_CMD="$MAGIC_CMD"
9223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225   for ac_dir in $ac_dummy; do
9226     IFS="$lt_save_ifs"
9227     test -z "$ac_dir" && ac_dir=.
9228     if test -f $ac_dir/${ac_tool_prefix}file; then
9229       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9230       if test -n "$file_magic_test_file"; then
9231         case $deplibs_check_method in
9232         "file_magic "*)
9233           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236             $EGREP "$file_magic_regex" > /dev/null; then
9237             :
9238           else
9239             cat <<_LT_EOF 1>&2
9240
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such.  This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem.  Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9249
9250 _LT_EOF
9251           fi ;;
9252         esac
9253       fi
9254       break
9255     fi
9256   done
9257   IFS="$lt_save_ifs"
9258   MAGIC_CMD="$lt_save_MAGIC_CMD"
9259   ;;
9260 esac
9261 fi
9262
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9267 else
9268   { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9270 fi
9271
9272
9273
9274
9275
9276 if test -z "$lt_cv_path_MAGIC_CMD"; then
9277   if test -n "$ac_tool_prefix"; then
9278     { echo "$as_me:$LINENO: checking for file" >&5
9279 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   case $MAGIC_CMD in
9284 [\\/*] |  ?:[\\/]*)
9285   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9286   ;;
9287 *)
9288   lt_save_MAGIC_CMD="$MAGIC_CMD"
9289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9291   for ac_dir in $ac_dummy; do
9292     IFS="$lt_save_ifs"
9293     test -z "$ac_dir" && ac_dir=.
9294     if test -f $ac_dir/file; then
9295       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9296       if test -n "$file_magic_test_file"; then
9297         case $deplibs_check_method in
9298         "file_magic "*)
9299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9300           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9302             $EGREP "$file_magic_regex" > /dev/null; then
9303             :
9304           else
9305             cat <<_LT_EOF 1>&2
9306
9307 *** Warning: the command libtool uses to detect shared libraries,
9308 *** $file_magic_cmd, produces output that libtool cannot recognize.
9309 *** The result is that libtool may fail to recognize shared libraries
9310 *** as such.  This will affect the creation of libtool libraries that
9311 *** depend on shared libraries, but programs linked with such libtool
9312 *** libraries will work regardless of this problem.  Nevertheless, you
9313 *** may want to report the problem to your system manager and/or to
9314 *** bug-libtool@gnu.org
9315
9316 _LT_EOF
9317           fi ;;
9318         esac
9319       fi
9320       break
9321     fi
9322   done
9323   IFS="$lt_save_ifs"
9324   MAGIC_CMD="$lt_save_MAGIC_CMD"
9325   ;;
9326 esac
9327 fi
9328
9329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9330 if test -n "$MAGIC_CMD"; then
9331   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9332 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9333 else
9334   { echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6; }
9336 fi
9337
9338
9339   else
9340     MAGIC_CMD=:
9341   fi
9342 fi
9343
9344   fi
9345   ;;
9346 esac
9347
9348 # Use C for the default configuration in the libtool script
9349
9350 lt_save_CC="$CC"
9351 ac_ext=c
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356
9357
9358 # Source file extension for C test sources.
9359 ac_ext=c
9360
9361 # Object file extension for compiled C test sources.
9362 objext=o
9363 objext=$objext
9364
9365 # Code to be used in simple compile tests
9366 lt_simple_compile_test_code="int some_variable = 0;"
9367
9368 # Code to be used in simple link tests
9369 lt_simple_link_test_code='int main(){return(0);}'
9370
9371
9372
9373
9374
9375
9376
9377 # If no C compiler was specified, use CC.
9378 LTCC=${LTCC-"$CC"}
9379
9380 # If no C compiler flags were specified, use CFLAGS.
9381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9382
9383 # Allow CC to be a program name with arguments.
9384 compiler=$CC
9385
9386 # Save the default compiler, since it gets overwritten when the other
9387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9388 compiler_DEFAULT=$CC
9389
9390 # save warnings/boilerplate of simple test code
9391 ac_outfile=conftest.$ac_objext
9392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9394 _lt_compiler_boilerplate=`cat conftest.err`
9395 $RM conftest*
9396
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_linker_boilerplate=`cat conftest.err`
9401 $RM -r conftest*
9402
9403
9404 ## CAVEAT EMPTOR:
9405 ## There is no encapsulation within the following macros, do not change
9406 ## the running order or otherwise move them around unless you know exactly
9407 ## what you are doing...
9408 if test -n "$compiler"; then
9409
9410 lt_prog_compiler_no_builtin_flag=
9411
9412 if test "$GCC" = yes; then
9413   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9414
9415   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   lt_cv_prog_compiler_rtti_exceptions=no
9421    ac_outfile=conftest.$ac_objext
9422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423    lt_compiler_flag="-fno-rtti -fno-exceptions"
9424    # Insert the option either (1) after the last *FLAGS variable, or
9425    # (2) before a word containing "conftest.", or (3) at the end.
9426    # Note that $ac_compile itself does not contain backslashes and begins
9427    # with a dollar sign (not a hyphen), so the echo should work correctly.
9428    # The option is referenced via a variable to avoid confusing sed.
9429    lt_compile=`echo "$ac_compile" | $SED \
9430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432    -e 's:$: $lt_compiler_flag:'`
9433    (eval echo "\"\$as_me:9433: $lt_compile\"" >&5)
9434    (eval "$lt_compile" 2>conftest.err)
9435    ac_status=$?
9436    cat conftest.err >&5
9437    echo "$as_me:9437: \$? = $ac_status" >&5
9438    if (exit $ac_status) && test -s "$ac_outfile"; then
9439      # The compiler can only warn and ignore the option if not recognized
9440      # So say no if there are warnings other than the usual output.
9441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9444        lt_cv_prog_compiler_rtti_exceptions=yes
9445      fi
9446    fi
9447    $RM conftest*
9448
9449 fi
9450 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9452
9453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9454     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9455 else
9456     :
9457 fi
9458
9459 fi
9460
9461
9462
9463
9464
9465
9466   lt_prog_compiler_wl=
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_static=
9469
9470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9472
9473   if test "$GCC" = yes; then
9474     lt_prog_compiler_wl='-Wl,'
9475     lt_prog_compiler_static='-static'
9476
9477     case $host_os in
9478       aix*)
9479       # All AIX code is PIC.
9480       if test "$host_cpu" = ia64; then
9481         # AIX 5 now supports IA64 processor
9482         lt_prog_compiler_static='-Bstatic'
9483       fi
9484       ;;
9485
9486     amigaos*)
9487       case $host_cpu in
9488       powerpc)
9489             # see comment about AmigaOS4 .so support
9490             lt_prog_compiler_pic='-fPIC'
9491         ;;
9492       m68k)
9493             # FIXME: we need at least 68020 code to build shared libraries, but
9494             # adding the `-m68020' flag to GCC prevents building anything better,
9495             # like `-m68040'.
9496             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9497         ;;
9498       esac
9499       ;;
9500
9501     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502       # PIC is the default for these OSes.
9503       ;;
9504
9505     mingw* | cygwin* | pw32* | os2* | cegcc*)
9506       # This hack is so that the source file can tell whether it is being
9507       # built for inclusion in a dll (and should export symbols for example).
9508       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9509       # (--disable-auto-import) libraries
9510       lt_prog_compiler_pic='-DDLL_EXPORT'
9511       ;;
9512
9513     darwin* | rhapsody*)
9514       # PIC is the default on this platform
9515       # Common symbols not allowed in MH_DYLIB files
9516       lt_prog_compiler_pic='-fno-common'
9517       ;;
9518
9519     hpux*)
9520       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9521       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9522       # sets the default TLS model and affects inlining.
9523       case $host_cpu in
9524       hppa*64*)
9525         # +Z the default
9526         ;;
9527       *)
9528         lt_prog_compiler_pic='-fPIC'
9529         ;;
9530       esac
9531       ;;
9532
9533     interix[3-9]*)
9534       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9535       # Instead, we relocate shared libraries at runtime.
9536       ;;
9537
9538     msdosdjgpp*)
9539       # Just because we use GCC doesn't mean we suddenly get shared libraries
9540       # on systems that don't support them.
9541       lt_prog_compiler_can_build_shared=no
9542       enable_shared=no
9543       ;;
9544
9545     *nto* | *qnx*)
9546       # QNX uses GNU C++, but need to define -shared option too, otherwise
9547       # it will coredump.
9548       lt_prog_compiler_pic='-fPIC -shared'
9549       ;;
9550
9551     sysv4*MP*)
9552       if test -d /usr/nec; then
9553         lt_prog_compiler_pic=-Kconform_pic
9554       fi
9555       ;;
9556
9557     *)
9558       lt_prog_compiler_pic='-fPIC'
9559       ;;
9560     esac
9561   else
9562     # PORTME Check for flag to pass linker flags through the system compiler.
9563     case $host_os in
9564     aix*)
9565       lt_prog_compiler_wl='-Wl,'
9566       if test "$host_cpu" = ia64; then
9567         # AIX 5 now supports IA64 processor
9568         lt_prog_compiler_static='-Bstatic'
9569       else
9570         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9571       fi
9572       ;;
9573
9574     mingw* | cygwin* | pw32* | os2* | cegcc*)
9575       # This hack is so that the source file can tell whether it is being
9576       # built for inclusion in a dll (and should export symbols for example).
9577       lt_prog_compiler_pic='-DDLL_EXPORT'
9578       ;;
9579
9580     hpux9* | hpux10* | hpux11*)
9581       lt_prog_compiler_wl='-Wl,'
9582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9583       # not for PA HP-UX.
9584       case $host_cpu in
9585       hppa*64*|ia64*)
9586         # +Z the default
9587         ;;
9588       *)
9589         lt_prog_compiler_pic='+Z'
9590         ;;
9591       esac
9592       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9593       lt_prog_compiler_static='${wl}-a ${wl}archive'
9594       ;;
9595
9596     irix5* | irix6* | nonstopux*)
9597       lt_prog_compiler_wl='-Wl,'
9598       # PIC (with -KPIC) is the default.
9599       lt_prog_compiler_static='-non_shared'
9600       ;;
9601
9602     linux* | k*bsd*-gnu)
9603       case $cc_basename in
9604       # old Intel for x86_64 which still supported -KPIC.
9605       ecc*)
9606         lt_prog_compiler_wl='-Wl,'
9607         lt_prog_compiler_pic='-KPIC'
9608         lt_prog_compiler_static='-static'
9609         ;;
9610       # icc used to be incompatible with GCC.
9611       # ICC 10 doesn't accept -KPIC any more.
9612       icc* | ifort*)
9613         lt_prog_compiler_wl='-Wl,'
9614         lt_prog_compiler_pic='-fPIC'
9615         lt_prog_compiler_static='-static'
9616         ;;
9617       # Lahey Fortran 8.1.
9618       lf95*)
9619         lt_prog_compiler_wl='-Wl,'
9620         lt_prog_compiler_pic='--shared'
9621         lt_prog_compiler_static='--static'
9622         ;;
9623       pgcc* | pgf77* | pgf90* | pgf95*)
9624         # Portland Group compilers (*not* the Pentium gcc compiler,
9625         # which looks to be a dead project)
9626         lt_prog_compiler_wl='-Wl,'
9627         lt_prog_compiler_pic='-fpic'
9628         lt_prog_compiler_static='-Bstatic'
9629         ;;
9630       ccc*)
9631         lt_prog_compiler_wl='-Wl,'
9632         # All Alpha code is PIC.
9633         lt_prog_compiler_static='-non_shared'
9634         ;;
9635       xl*)
9636         # IBM XL C 8.0/Fortran 10.1 on PPC
9637         lt_prog_compiler_wl='-Wl,'
9638         lt_prog_compiler_pic='-qpic'
9639         lt_prog_compiler_static='-qstaticlink'
9640         ;;
9641       *)
9642         case `$CC -V 2>&1 | sed 5q` in
9643         *Sun\ C*)
9644           # Sun C 5.9
9645           lt_prog_compiler_pic='-KPIC'
9646           lt_prog_compiler_static='-Bstatic'
9647           lt_prog_compiler_wl='-Wl,'
9648           ;;
9649         *Sun\ F*)
9650           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9651           lt_prog_compiler_pic='-KPIC'
9652           lt_prog_compiler_static='-Bstatic'
9653           lt_prog_compiler_wl=''
9654           ;;
9655         esac
9656         ;;
9657       esac
9658       ;;
9659
9660     newsos6)
9661       lt_prog_compiler_pic='-KPIC'
9662       lt_prog_compiler_static='-Bstatic'
9663       ;;
9664
9665     *nto* | *qnx*)
9666       # QNX uses GNU C++, but need to define -shared option too, otherwise
9667       # it will coredump.
9668       lt_prog_compiler_pic='-fPIC -shared'
9669       ;;
9670
9671     osf3* | osf4* | osf5*)
9672       lt_prog_compiler_wl='-Wl,'
9673       # All OSF/1 code is PIC.
9674       lt_prog_compiler_static='-non_shared'
9675       ;;
9676
9677     rdos*)
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     solaris*)
9682       lt_prog_compiler_pic='-KPIC'
9683       lt_prog_compiler_static='-Bstatic'
9684       case $cc_basename in
9685       f77* | f90* | f95*)
9686         lt_prog_compiler_wl='-Qoption ld ';;
9687       *)
9688         lt_prog_compiler_wl='-Wl,';;
9689       esac
9690       ;;
9691
9692     sunos4*)
9693       lt_prog_compiler_wl='-Qoption ld '
9694       lt_prog_compiler_pic='-PIC'
9695       lt_prog_compiler_static='-Bstatic'
9696       ;;
9697
9698     sysv4 | sysv4.2uw2* | sysv4.3*)
9699       lt_prog_compiler_wl='-Wl,'
9700       lt_prog_compiler_pic='-KPIC'
9701       lt_prog_compiler_static='-Bstatic'
9702       ;;
9703
9704     sysv4*MP*)
9705       if test -d /usr/nec ;then
9706         lt_prog_compiler_pic='-Kconform_pic'
9707         lt_prog_compiler_static='-Bstatic'
9708       fi
9709       ;;
9710
9711     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9712       lt_prog_compiler_wl='-Wl,'
9713       lt_prog_compiler_pic='-KPIC'
9714       lt_prog_compiler_static='-Bstatic'
9715       ;;
9716
9717     unicos*)
9718       lt_prog_compiler_wl='-Wl,'
9719       lt_prog_compiler_can_build_shared=no
9720       ;;
9721
9722     uts4*)
9723       lt_prog_compiler_pic='-pic'
9724       lt_prog_compiler_static='-Bstatic'
9725       ;;
9726
9727     *)
9728       lt_prog_compiler_can_build_shared=no
9729       ;;
9730     esac
9731   fi
9732
9733 case $host_os in
9734   # For platforms which do not support PIC, -DPIC is meaningless:
9735   *djgpp*)
9736     lt_prog_compiler_pic=
9737     ;;
9738   *)
9739     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9740     ;;
9741 esac
9742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9744
9745
9746
9747
9748
9749
9750 #
9751 # Check to make sure the PIC flag actually works.
9752 #
9753 if test -n "$lt_prog_compiler_pic"; then
9754   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9756 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   lt_cv_prog_compiler_pic_works=no
9760    ac_outfile=conftest.$ac_objext
9761    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9763    # Insert the option either (1) after the last *FLAGS variable, or
9764    # (2) before a word containing "conftest.", or (3) at the end.
9765    # Note that $ac_compile itself does not contain backslashes and begins
9766    # with a dollar sign (not a hyphen), so the echo should work correctly.
9767    # The option is referenced via a variable to avoid confusing sed.
9768    lt_compile=`echo "$ac_compile" | $SED \
9769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771    -e 's:$: $lt_compiler_flag:'`
9772    (eval echo "\"\$as_me:9772: $lt_compile\"" >&5)
9773    (eval "$lt_compile" 2>conftest.err)
9774    ac_status=$?
9775    cat conftest.err >&5
9776    echo "$as_me:9776: \$? = $ac_status" >&5
9777    if (exit $ac_status) && test -s "$ac_outfile"; then
9778      # The compiler can only warn and ignore the option if not recognized
9779      # So say no if there are warnings other than the usual output.
9780      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9783        lt_cv_prog_compiler_pic_works=yes
9784      fi
9785    fi
9786    $RM conftest*
9787
9788 fi
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9791
9792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9793     case $lt_prog_compiler_pic in
9794      "" | " "*) ;;
9795      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9796      esac
9797 else
9798     lt_prog_compiler_pic=
9799      lt_prog_compiler_can_build_shared=no
9800 fi
9801
9802 fi
9803
9804
9805
9806
9807
9808
9809 #
9810 # Check to make sure the static flag actually works.
9811 #
9812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   lt_cv_prog_compiler_static_works=no
9819    save_LDFLAGS="$LDFLAGS"
9820    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9821    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823      # The linker can only warn and ignore the option if not recognized
9824      # So say no if there are warnings
9825      if test -s conftest.err; then
9826        # Append any errors to the config.log.
9827        cat conftest.err 1>&5
9828        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9829        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830        if diff conftest.exp conftest.er2 >/dev/null; then
9831          lt_cv_prog_compiler_static_works=yes
9832        fi
9833      else
9834        lt_cv_prog_compiler_static_works=yes
9835      fi
9836    fi
9837    $RM -r conftest*
9838    LDFLAGS="$save_LDFLAGS"
9839
9840 fi
9841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9843
9844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845     :
9846 else
9847     lt_prog_compiler_static=
9848 fi
9849
9850
9851
9852
9853
9854
9855
9856   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   lt_cv_prog_compiler_c_o=no
9862    $RM -r conftest 2>/dev/null
9863    mkdir conftest
9864    cd conftest
9865    mkdir out
9866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867
9868    lt_compiler_flag="-o out/conftest2.$ac_objext"
9869    # Insert the option either (1) after the last *FLAGS variable, or
9870    # (2) before a word containing "conftest.", or (3) at the end.
9871    # Note that $ac_compile itself does not contain backslashes and begins
9872    # with a dollar sign (not a hyphen), so the echo should work correctly.
9873    lt_compile=`echo "$ac_compile" | $SED \
9874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876    -e 's:$: $lt_compiler_flag:'`
9877    (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878    (eval "$lt_compile" 2>out/conftest.err)
9879    ac_status=$?
9880    cat out/conftest.err >&5
9881    echo "$as_me:9881: \$? = $ac_status" >&5
9882    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9883    then
9884      # The compiler can only warn and ignore the option if not recognized
9885      # So say no if there are warnings
9886      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889        lt_cv_prog_compiler_c_o=yes
9890      fi
9891    fi
9892    chmod u+w . 2>&5
9893    $RM conftest*
9894    # SGI C++ compiler will create directory out/ii_files/ for
9895    # template instantiation
9896    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897    $RM out/* && rmdir out
9898    cd ..
9899    $RM -r conftest
9900    $RM conftest*
9901
9902 fi
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9905
9906
9907
9908
9909
9910
9911   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   lt_cv_prog_compiler_c_o=no
9917    $RM -r conftest 2>/dev/null
9918    mkdir conftest
9919    cd conftest
9920    mkdir out
9921    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922
9923    lt_compiler_flag="-o out/conftest2.$ac_objext"
9924    # Insert the option either (1) after the last *FLAGS variable, or
9925    # (2) before a word containing "conftest.", or (3) at the end.
9926    # Note that $ac_compile itself does not contain backslashes and begins
9927    # with a dollar sign (not a hyphen), so the echo should work correctly.
9928    lt_compile=`echo "$ac_compile" | $SED \
9929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931    -e 's:$: $lt_compiler_flag:'`
9932    (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933    (eval "$lt_compile" 2>out/conftest.err)
9934    ac_status=$?
9935    cat out/conftest.err >&5
9936    echo "$as_me:9936: \$? = $ac_status" >&5
9937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9938    then
9939      # The compiler can only warn and ignore the option if not recognized
9940      # So say no if there are warnings
9941      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944        lt_cv_prog_compiler_c_o=yes
9945      fi
9946    fi
9947    chmod u+w . 2>&5
9948    $RM conftest*
9949    # SGI C++ compiler will create directory out/ii_files/ for
9950    # template instantiation
9951    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952    $RM out/* && rmdir out
9953    cd ..
9954    $RM -r conftest
9955    $RM conftest*
9956
9957 fi
9958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9960
9961
9962
9963
9964 hard_links="nottested"
9965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9966   # do not overwrite the value of need_locks provided by the user
9967   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9969   hard_links=yes
9970   $RM conftest*
9971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9972   touch conftest.a
9973   ln conftest.a conftest.b 2>&5 || hard_links=no
9974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975   { echo "$as_me:$LINENO: result: $hard_links" >&5
9976 echo "${ECHO_T}$hard_links" >&6; }
9977   if test "$hard_links" = no; then
9978     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9980     need_locks=warn
9981   fi
9982 else
9983   need_locks=no
9984 fi
9985
9986
9987
9988
9989
9990
9991   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9993
9994   runpath_var=
9995   allow_undefined_flag=
9996   always_export_symbols=no
9997   archive_cmds=
9998   archive_expsym_cmds=
9999   compiler_needs_object=no
10000   enable_shared_with_static_runtimes=no
10001   export_dynamic_flag_spec=
10002   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10003   hardcode_automatic=no
10004   hardcode_direct=no
10005   hardcode_direct_absolute=no
10006   hardcode_libdir_flag_spec=
10007   hardcode_libdir_flag_spec_ld=
10008   hardcode_libdir_separator=
10009   hardcode_minus_L=no
10010   hardcode_shlibpath_var=unsupported
10011   inherit_rpath=no
10012   link_all_deplibs=unknown
10013   module_cmds=
10014   module_expsym_cmds=
10015   old_archive_from_new_cmds=
10016   old_archive_from_expsyms_cmds=
10017   thread_safe_flag_spec=
10018   whole_archive_flag_spec=
10019   # include_expsyms should be a list of space-separated symbols to be *always*
10020   # included in the symbol list
10021   include_expsyms=
10022   # exclude_expsyms can be an extended regexp of symbols to exclude
10023   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10024   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10025   # as well as any symbol that contains `d'.
10026   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10027   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10028   # platforms (ab)use it in PIC code, but their linkers get confused if
10029   # the symbol is explicitly referenced.  Since portable code cannot
10030   # rely on this symbol name, it's probably fine to never include it in
10031   # preloaded symbol tables.
10032   # Exclude shared library initialization/finalization symbols.
10033   extract_expsyms_cmds=
10034
10035   case $host_os in
10036   cygwin* | mingw* | pw32* | cegcc*)
10037     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10038     # When not using gcc, we currently assume that we are using
10039     # Microsoft Visual C++.
10040     if test "$GCC" != yes; then
10041       with_gnu_ld=no
10042     fi
10043     ;;
10044   interix*)
10045     # we just hope/assume this is gcc and not c89 (= MSVC++)
10046     with_gnu_ld=yes
10047     ;;
10048   openbsd*)
10049     with_gnu_ld=no
10050     ;;
10051   esac
10052
10053   ld_shlibs=yes
10054   if test "$with_gnu_ld" = yes; then
10055     # If archive_cmds runs LD, not CC, wlarc should be empty
10056     wlarc='${wl}'
10057
10058     # Set some defaults for GNU ld with shared library support. These
10059     # are reset later if shared libraries are not supported. Putting them
10060     # here allows them to be overridden if necessary.
10061     runpath_var=LD_RUN_PATH
10062     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063     export_dynamic_flag_spec='${wl}--export-dynamic'
10064     # ancient GNU ld didn't support --whole-archive et. al.
10065     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10066       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10067     else
10068       whole_archive_flag_spec=
10069     fi
10070     supports_anon_versioning=no
10071     case `$LD -v 2>&1` in
10072       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10073       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10074       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10075       *\ 2.11.*) ;; # other 2.11 versions
10076       *) supports_anon_versioning=yes ;;
10077     esac
10078
10079     # See if GNU ld supports shared libraries.
10080     case $host_os in
10081     aix[3-9]*)
10082       # On AIX/PPC, the GNU linker is very broken
10083       if test "$host_cpu" != ia64; then
10084         ld_shlibs=no
10085         cat <<_LT_EOF 1>&2
10086
10087 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10088 *** to be unable to reliably create shared libraries on AIX.
10089 *** Therefore, libtool is disabling shared libraries support.  If you
10090 *** really care for shared libraries, you may want to modify your PATH
10091 *** so that a non-GNU linker is found, and then restart.
10092
10093 _LT_EOF
10094       fi
10095       ;;
10096
10097     amigaos*)
10098       case $host_cpu in
10099       powerpc)
10100             # see comment about AmigaOS4 .so support
10101             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102             archive_expsym_cmds=''
10103         ;;
10104       m68k)
10105             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)'
10106             hardcode_libdir_flag_spec='-L$libdir'
10107             hardcode_minus_L=yes
10108         ;;
10109       esac
10110       ;;
10111
10112     beos*)
10113       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10114         allow_undefined_flag=unsupported
10115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10116         # support --undefined.  This deserves some investigation.  FIXME
10117         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118       else
10119         ld_shlibs=no
10120       fi
10121       ;;
10122
10123     cygwin* | mingw* | pw32* | cegcc*)
10124       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10125       # as there is no search path for DLLs.
10126       hardcode_libdir_flag_spec='-L$libdir'
10127       allow_undefined_flag=unsupported
10128       always_export_symbols=no
10129       enable_shared_with_static_runtimes=yes
10130       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10131
10132       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10134         # If the export-symbols file already is a .def file (1st line
10135         # is EXPORTS), use it as is; otherwise, prepend...
10136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10137           cp $export_symbols $output_objdir/$soname.def;
10138         else
10139           echo EXPORTS > $output_objdir/$soname.def;
10140           cat $export_symbols >> $output_objdir/$soname.def;
10141         fi~
10142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10143       else
10144         ld_shlibs=no
10145       fi
10146       ;;
10147
10148     interix[3-9]*)
10149       hardcode_direct=no
10150       hardcode_shlibpath_var=no
10151       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152       export_dynamic_flag_spec='${wl}-E'
10153       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10154       # Instead, shared libraries are loaded at an image base (0x10000000 by
10155       # default) and relocated if they conflict, which is a slow very memory
10156       # consuming and fragmenting process.  To avoid this, we pick a random,
10157       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10158       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10159       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10160       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'
10161       ;;
10162
10163     gnu* | linux* | tpf* | k*bsd*-gnu)
10164       tmp_diet=no
10165       if test "$host_os" = linux-dietlibc; then
10166         case $cc_basename in
10167           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10168         esac
10169       fi
10170       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10171          && test "$tmp_diet" = no
10172       then
10173         tmp_addflag=
10174         tmp_sharedflag='-shared'
10175         case $cc_basename,$host_cpu in
10176         pgcc*)                          # Portland Group C compiler
10177           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'
10178           tmp_addflag=' $pic_flag'
10179           ;;
10180         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10181           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'
10182           tmp_addflag=' $pic_flag -Mnomain' ;;
10183         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10184           tmp_addflag=' -i_dynamic' ;;
10185         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10186           tmp_addflag=' -i_dynamic -nofor_main' ;;
10187         ifc* | ifort*)                  # Intel Fortran compiler
10188           tmp_addflag=' -nofor_main' ;;
10189         lf95*)                          # Lahey Fortran 8.1
10190           whole_archive_flag_spec=
10191           tmp_sharedflag='--shared' ;;
10192         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10193           tmp_sharedflag='-qmkshrobj'
10194           tmp_addflag= ;;
10195         esac
10196         case `$CC -V 2>&1 | sed 5q` in
10197         *Sun\ C*)                       # Sun C 5.9
10198           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'
10199           compiler_needs_object=yes
10200           tmp_sharedflag='-G' ;;
10201         *Sun\ F*)                       # Sun Fortran 8.3
10202           tmp_sharedflag='-G' ;;
10203         esac
10204         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205
10206         if test "x$supports_anon_versioning" = xyes; then
10207           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10208             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10209             echo "local: *; };" >> $output_objdir/$libname.ver~
10210             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10211         fi
10212
10213         case $cc_basename in
10214         xlf*)
10215           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10216           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10217           hardcode_libdir_flag_spec=
10218           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10219           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10220           if test "x$supports_anon_versioning" = xyes; then
10221             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223               echo "local: *; };" >> $output_objdir/$libname.ver~
10224               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10225           fi
10226           ;;
10227         esac
10228       else
10229         ld_shlibs=no
10230       fi
10231       ;;
10232
10233     netbsd*)
10234       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10236         wlarc=
10237       else
10238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240       fi
10241       ;;
10242
10243     solaris*)
10244       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10245         ld_shlibs=no
10246         cat <<_LT_EOF 1>&2
10247
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems.  Therefore, libtool
10250 *** is disabling shared libraries support.  We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer.  Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10254
10255 _LT_EOF
10256       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259       else
10260         ld_shlibs=no
10261       fi
10262       ;;
10263
10264     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265       case `$LD -v 2>&1` in
10266         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10272 *** is disabling shared libraries support.  We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10276
10277 _LT_EOF
10278         ;;
10279         *)
10280           # For security reasons, it is highly recommended that you always
10281           # use absolute paths for naming shared libraries, and exclude the
10282           # DT_RUNPATH tag from executables and libraries.  But doing so
10283           # requires that you compile everything twice, which is a pain.
10284           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10288           else
10289             ld_shlibs=no
10290           fi
10291         ;;
10292       esac
10293       ;;
10294
10295     sunos4*)
10296       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297       wlarc=
10298       hardcode_direct=yes
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     *)
10303       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306       else
10307         ld_shlibs=no
10308       fi
10309       ;;
10310     esac
10311
10312     if test "$ld_shlibs" = no; then
10313       runpath_var=
10314       hardcode_libdir_flag_spec=
10315       export_dynamic_flag_spec=
10316       whole_archive_flag_spec=
10317     fi
10318   else
10319     # PORTME fill in a description of your system's linker (not GNU ld)
10320     case $host_os in
10321     aix3*)
10322       allow_undefined_flag=unsupported
10323       always_export_symbols=yes
10324       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'
10325       # Note: this linker hardcodes the directories in LIBPATH if there
10326       # are no directories specified by -L.
10327       hardcode_minus_L=yes
10328       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329         # Neither direct hardcoding nor static linking is supported with a
10330         # broken collect2.
10331         hardcode_direct=unsupported
10332       fi
10333       ;;
10334
10335     aix[4-9]*)
10336       if test "$host_cpu" = ia64; then
10337         # On IA64, the linker does run time linking by default, so we don't
10338         # have to do anything special.
10339         aix_use_runtimelinking=no
10340         exp_sym_flag='-Bexport'
10341         no_entry_flag=""
10342       else
10343         # If we're using GNU nm, then we don't want the "-C" option.
10344         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10346           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'
10347         else
10348           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'
10349         fi
10350         aix_use_runtimelinking=no
10351
10352         # Test if we are trying to use run time linking or normal
10353         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10354         # need to do runtime linking.
10355         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10356           for ld_flag in $LDFLAGS; do
10357           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10358             aix_use_runtimelinking=yes
10359             break
10360           fi
10361           done
10362           ;;
10363         esac
10364
10365         exp_sym_flag='-bexport'
10366         no_entry_flag='-bnoentry'
10367       fi
10368
10369       # When large executables or shared objects are built, AIX ld can
10370       # have problems creating the table of contents.  If linking a library
10371       # or program results in "error TOC overflow" add -mminimal-toc to
10372       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10373       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10374
10375       archive_cmds=''
10376       hardcode_direct=yes
10377       hardcode_direct_absolute=yes
10378       hardcode_libdir_separator=':'
10379       link_all_deplibs=yes
10380       file_list_spec='${wl}-f,'
10381
10382       if test "$GCC" = yes; then
10383         case $host_os in aix4.[012]|aix4.[012].*)
10384         # We only want to do this on AIX 4.2 and lower, the check
10385         # below for broken collect2 doesn't work under 4.3+
10386           collect2name=`${CC} -print-prog-name=collect2`
10387           if test -f "$collect2name" &&
10388            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10389           then
10390           # We have reworked collect2
10391           :
10392           else
10393           # We have old collect2
10394           hardcode_direct=unsupported
10395           # It fails to find uninstalled libraries when the uninstalled
10396           # path is not listed in the libpath.  Setting hardcode_minus_L
10397           # to unsupported forces relinking
10398           hardcode_minus_L=yes
10399           hardcode_libdir_flag_spec='-L$libdir'
10400           hardcode_libdir_separator=
10401           fi
10402           ;;
10403         esac
10404         shared_flag='-shared'
10405         if test "$aix_use_runtimelinking" = yes; then
10406           shared_flag="$shared_flag "'${wl}-G'
10407         fi
10408       else
10409         # not using gcc
10410         if test "$host_cpu" = ia64; then
10411         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10412         # chokes on -Wl,-G. The following line is correct:
10413           shared_flag='-G'
10414         else
10415           if test "$aix_use_runtimelinking" = yes; then
10416             shared_flag='${wl}-G'
10417           else
10418             shared_flag='${wl}-bM:SRE'
10419           fi
10420         fi
10421       fi
10422
10423       export_dynamic_flag_spec='${wl}-bexpall'
10424       # It seems that -bexpall does not export symbols beginning with
10425       # underscore (_), so it is better to generate a list of symbols to export.
10426       always_export_symbols=yes
10427       if test "$aix_use_runtimelinking" = yes; then
10428         # Warning - without using the other runtime loading flags (-brtl),
10429         # -berok will link without error, but may produce a broken library.
10430         allow_undefined_flag='-berok'
10431         # Determine the default libpath from the value encoded in an
10432         # empty executable.
10433         cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439
10440 int
10441 main ()
10442 {
10443
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_link") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && {
10462          test -z "$ac_c_werror_flag" ||
10463          test ! -s conftest.err
10464        } && test -s conftest$ac_exeext &&
10465        $as_test_x conftest$ac_exeext; then
10466
10467 lt_aix_libpath_sed='
10468     /Import File Strings/,/^$/ {
10469         /^0/ {
10470             s/^0  *\(.*\)$/\1/
10471             p
10472         }
10473     }'
10474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475 # Check for a 64-bit object if we didn't find anything.
10476 if test -z "$aix_libpath"; then
10477   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 fi
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487       conftest$ac_exeext conftest.$ac_ext
10488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10489
10490         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10491         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"
10492       else
10493         if test "$host_cpu" = ia64; then
10494           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10495           allow_undefined_flag="-z nodefs"
10496           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"
10497         else
10498          # Determine the default libpath from the value encoded in an
10499          # empty executable.
10500          cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h.  */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h.  */
10506
10507 int
10508 main ()
10509 {
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_link") 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } && {
10529          test -z "$ac_c_werror_flag" ||
10530          test ! -s conftest.err
10531        } && test -s conftest$ac_exeext &&
10532        $as_test_x conftest$ac_exeext; then
10533
10534 lt_aix_libpath_sed='
10535     /Import File Strings/,/^$/ {
10536         /^0/ {
10537             s/^0  *\(.*\)$/\1/
10538             p
10539         }
10540     }'
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 fi
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554       conftest$ac_exeext conftest.$ac_ext
10555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10556
10557          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10558           # Warning - without using the other run time loading flags,
10559           # -berok will link without error, but may produce a broken library.
10560           no_undefined_flag=' ${wl}-bernotok'
10561           allow_undefined_flag=' ${wl}-berok'
10562           # Exported symbols can be pulled into shared objects from archives
10563           whole_archive_flag_spec='$convenience'
10564           archive_cmds_need_lc=yes
10565           # This is similar to how AIX traditionally builds its shared libraries.
10566           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'
10567         fi
10568       fi
10569       ;;
10570
10571     amigaos*)
10572       case $host_cpu in
10573       powerpc)
10574             # see comment about AmigaOS4 .so support
10575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576             archive_expsym_cmds=''
10577         ;;
10578       m68k)
10579             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)'
10580             hardcode_libdir_flag_spec='-L$libdir'
10581             hardcode_minus_L=yes
10582         ;;
10583       esac
10584       ;;
10585
10586     bsdi[45]*)
10587       export_dynamic_flag_spec=-rdynamic
10588       ;;
10589
10590     cygwin* | mingw* | pw32* | cegcc*)
10591       # When not using gcc, we currently assume that we are using
10592       # Microsoft Visual C++.
10593       # hardcode_libdir_flag_spec is actually meaningless, as there is
10594       # no search path for DLLs.
10595       hardcode_libdir_flag_spec=' '
10596       allow_undefined_flag=unsupported
10597       # Tell ltmain to make .lib files, not .a files.
10598       libext=lib
10599       # Tell ltmain to make .dll files, not .so files.
10600       shrext_cmds=".dll"
10601       # FIXME: Setting linknames here is a bad hack.
10602       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10603       # The linker will automatically build a .lib file if we build a DLL.
10604       old_archive_from_new_cmds='true'
10605       # FIXME: Should let the user specify the lib program.
10606       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10607       fix_srcfile_path='`cygpath -w "$srcfile"`'
10608       enable_shared_with_static_runtimes=yes
10609       ;;
10610
10611     darwin* | rhapsody*)
10612
10613
10614   archive_cmds_need_lc=no
10615   hardcode_direct=no
10616   hardcode_automatic=yes
10617   hardcode_shlibpath_var=unsupported
10618   whole_archive_flag_spec=''
10619   link_all_deplibs=yes
10620   allow_undefined_flag="$_lt_dar_allow_undefined"
10621   case $cc_basename in
10622      ifort*) _lt_dar_can_shared=yes ;;
10623      *) _lt_dar_can_shared=$GCC ;;
10624   esac
10625   if test "$_lt_dar_can_shared" = "yes"; then
10626     output_verbose_link_cmd=echo
10627     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10628     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10629     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}"
10630     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}"
10631
10632   else
10633   ld_shlibs=no
10634   fi
10635
10636       ;;
10637
10638     dgux*)
10639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640       hardcode_libdir_flag_spec='-L$libdir'
10641       hardcode_shlibpath_var=no
10642       ;;
10643
10644     freebsd1*)
10645       ld_shlibs=no
10646       ;;
10647
10648     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10649     # support.  Future versions do this automatically, but an explicit c++rt0.o
10650     # does not break anything, and helps significantly (at the cost of a little
10651     # extra space).
10652     freebsd2.2*)
10653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10654       hardcode_libdir_flag_spec='-R$libdir'
10655       hardcode_direct=yes
10656       hardcode_shlibpath_var=no
10657       ;;
10658
10659     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10660     freebsd2*)
10661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10662       hardcode_direct=yes
10663       hardcode_minus_L=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10668     freebsd* | dragonfly*)
10669       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10670       hardcode_libdir_flag_spec='-R$libdir'
10671       hardcode_direct=yes
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     hpux9*)
10676       if test "$GCC" = yes; then
10677         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'
10678       else
10679         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'
10680       fi
10681       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682       hardcode_libdir_separator=:
10683       hardcode_direct=yes
10684
10685       # hardcode_minus_L: Not really in the search PATH,
10686       # but as the default location of the library.
10687       hardcode_minus_L=yes
10688       export_dynamic_flag_spec='${wl}-E'
10689       ;;
10690
10691     hpux10*)
10692       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10693         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10694       else
10695         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10696       fi
10697       if test "$with_gnu_ld" = no; then
10698         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10699         hardcode_libdir_flag_spec_ld='+b $libdir'
10700         hardcode_libdir_separator=:
10701         hardcode_direct=yes
10702         hardcode_direct_absolute=yes
10703         export_dynamic_flag_spec='${wl}-E'
10704         # hardcode_minus_L: Not really in the search PATH,
10705         # but as the default location of the library.
10706         hardcode_minus_L=yes
10707       fi
10708       ;;
10709
10710     hpux11*)
10711       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10712         case $host_cpu in
10713         hppa*64*)
10714           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10715           ;;
10716         ia64*)
10717           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718           ;;
10719         *)
10720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         esac
10723       else
10724         case $host_cpu in
10725         hppa*64*)
10726           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727           ;;
10728         ia64*)
10729           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10730           ;;
10731         *)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         esac
10735       fi
10736       if test "$with_gnu_ld" = no; then
10737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738         hardcode_libdir_separator=:
10739
10740         case $host_cpu in
10741         hppa*64*|ia64*)
10742           hardcode_direct=no
10743           hardcode_shlibpath_var=no
10744           ;;
10745         *)
10746           hardcode_direct=yes
10747           hardcode_direct_absolute=yes
10748           export_dynamic_flag_spec='${wl}-E'
10749
10750           # hardcode_minus_L: Not really in the search PATH,
10751           # but as the default location of the library.
10752           hardcode_minus_L=yes
10753           ;;
10754         esac
10755       fi
10756       ;;
10757
10758     irix5* | irix6* | nonstopux*)
10759       if test "$GCC" = yes; then
10760         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'
10761         # Try to use the -exported_symbol ld option, if it does not
10762         # work, assume that -exports_file does not work either and
10763         # implicitly export all symbols.
10764         save_LDFLAGS="$LDFLAGS"
10765         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10766         cat >conftest.$ac_ext <<_ACEOF
10767 int foo(void) {}
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_link") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } && {
10783          test -z "$ac_c_werror_flag" ||
10784          test ! -s conftest.err
10785        } && test -s conftest$ac_exeext &&
10786        $as_test_x conftest$ac_exeext; then
10787   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'
10788
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797       conftest$ac_exeext conftest.$ac_ext
10798         LDFLAGS="$save_LDFLAGS"
10799       else
10800         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'
10801         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'
10802       fi
10803       archive_cmds_need_lc='no'
10804       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805       hardcode_libdir_separator=:
10806       inherit_rpath=yes
10807       link_all_deplibs=yes
10808       ;;
10809
10810     netbsd*)
10811       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10813       else
10814         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10815       fi
10816       hardcode_libdir_flag_spec='-R$libdir'
10817       hardcode_direct=yes
10818       hardcode_shlibpath_var=no
10819       ;;
10820
10821     newsos6)
10822       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823       hardcode_direct=yes
10824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825       hardcode_libdir_separator=:
10826       hardcode_shlibpath_var=no
10827       ;;
10828
10829     *nto* | *qnx*)
10830       ;;
10831
10832     openbsd*)
10833       if test -f /usr/libexec/ld.so; then
10834         hardcode_direct=yes
10835         hardcode_shlibpath_var=no
10836         hardcode_direct_absolute=yes
10837         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10839           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10840           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10841           export_dynamic_flag_spec='${wl}-E'
10842         else
10843           case $host_os in
10844            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10845              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10846              hardcode_libdir_flag_spec='-R$libdir'
10847              ;;
10848            *)
10849              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10851              ;;
10852           esac
10853         fi
10854       else
10855         ld_shlibs=no
10856       fi
10857       ;;
10858
10859     os2*)
10860       hardcode_libdir_flag_spec='-L$libdir'
10861       hardcode_minus_L=yes
10862       allow_undefined_flag=unsupported
10863       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'
10864       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10865       ;;
10866
10867     osf3*)
10868       if test "$GCC" = yes; then
10869         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10870         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'
10871       else
10872         allow_undefined_flag=' -expect_unresolved \*'
10873         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'
10874       fi
10875       archive_cmds_need_lc='no'
10876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877       hardcode_libdir_separator=:
10878       ;;
10879
10880     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10881       if test "$GCC" = yes; then
10882         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10883         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'
10884         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885       else
10886         allow_undefined_flag=' -expect_unresolved \*'
10887         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'
10888         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~
10889         $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'
10890
10891         # Both c and cxx compiler support -rpath directly
10892         hardcode_libdir_flag_spec='-rpath $libdir'
10893       fi
10894       archive_cmds_need_lc='no'
10895       hardcode_libdir_separator=:
10896       ;;
10897
10898     solaris*)
10899       no_undefined_flag=' -z defs'
10900       if test "$GCC" = yes; then
10901         wlarc='${wl}'
10902         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10903         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10905       else
10906         case `$CC -V 2>&1` in
10907         *"Compilers 5.0"*)
10908           wlarc=''
10909           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10912           ;;
10913         *)
10914           wlarc='${wl}'
10915           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10918           ;;
10919         esac
10920       fi
10921       hardcode_libdir_flag_spec='-R$libdir'
10922       hardcode_shlibpath_var=no
10923       case $host_os in
10924       solaris2.[0-5] | solaris2.[0-5].*) ;;
10925       *)
10926         # The compiler driver will combine and reorder linker options,
10927         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10928         # but is careful enough not to reorder.
10929         # Supported since Solaris 2.6 (maybe 2.5.1?)
10930         if test "$GCC" = yes; then
10931           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10932         else
10933           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10934         fi
10935         ;;
10936       esac
10937       link_all_deplibs=yes
10938       ;;
10939
10940     sunos4*)
10941       if test "x$host_vendor" = xsequent; then
10942         # Use $CC to link under sequent, because it throws in some extra .o
10943         # files that make .init and .fini sections work.
10944         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945       else
10946         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10947       fi
10948       hardcode_libdir_flag_spec='-L$libdir'
10949       hardcode_direct=yes
10950       hardcode_minus_L=yes
10951       hardcode_shlibpath_var=no
10952       ;;
10953
10954     sysv4)
10955       case $host_vendor in
10956         sni)
10957           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958           hardcode_direct=yes # is this really true???
10959         ;;
10960         siemens)
10961           ## LD is ld it makes a PLAMLIB
10962           ## CC just makes a GrossModule.
10963           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10964           reload_cmds='$CC -r -o $output$reload_objs'
10965           hardcode_direct=no
10966         ;;
10967         motorola)
10968           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10970         ;;
10971       esac
10972       runpath_var='LD_RUN_PATH'
10973       hardcode_shlibpath_var=no
10974       ;;
10975
10976     sysv4.3*)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_shlibpath_var=no
10979       export_dynamic_flag_spec='-Bexport'
10980       ;;
10981
10982     sysv4*MP*)
10983       if test -d /usr/nec; then
10984         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985         hardcode_shlibpath_var=no
10986         runpath_var=LD_RUN_PATH
10987         hardcode_runpath_var=yes
10988         ld_shlibs=yes
10989       fi
10990       ;;
10991
10992     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10993       no_undefined_flag='${wl}-z,text'
10994       archive_cmds_need_lc=no
10995       hardcode_shlibpath_var=no
10996       runpath_var='LD_RUN_PATH'
10997
10998       if test "$GCC" = yes; then
10999         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001       else
11002         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004       fi
11005       ;;
11006
11007     sysv5* | sco3.2v5* | sco5v6*)
11008       # Note: We can NOT use -z defs as we might desire, because we do not
11009       # link with -lc, and that would cause any symbols used from libc to
11010       # always be unresolved, which means just about no library would
11011       # ever link correctly.  If we're not using GNU ld we use -z text
11012       # though, which does catch some bad symbols but isn't as heavy-handed
11013       # as -z defs.
11014       no_undefined_flag='${wl}-z,text'
11015       allow_undefined_flag='${wl}-z,nodefs'
11016       archive_cmds_need_lc=no
11017       hardcode_shlibpath_var=no
11018       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11019       hardcode_libdir_separator=':'
11020       link_all_deplibs=yes
11021       export_dynamic_flag_spec='${wl}-Bexport'
11022       runpath_var='LD_RUN_PATH'
11023
11024       if test "$GCC" = yes; then
11025         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027       else
11028         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030       fi
11031       ;;
11032
11033     uts4*)
11034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035       hardcode_libdir_flag_spec='-L$libdir'
11036       hardcode_shlibpath_var=no
11037       ;;
11038
11039     *)
11040       ld_shlibs=no
11041       ;;
11042     esac
11043
11044     if test x$host_vendor = xsni; then
11045       case $host in
11046       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11047         export_dynamic_flag_spec='${wl}-Blargedynsym'
11048         ;;
11049       esac
11050     fi
11051   fi
11052
11053 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11054 echo "${ECHO_T}$ld_shlibs" >&6; }
11055 test "$ld_shlibs" = no && can_build_shared=no
11056
11057 with_gnu_ld=$with_gnu_ld
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 #
11074 # Do we need to explicitly link libc?
11075 #
11076 case "x$archive_cmds_need_lc" in
11077 x|xyes)
11078   # Assume -lc should be added
11079   archive_cmds_need_lc=yes
11080
11081   if test "$enable_shared" = yes && test "$GCC" = yes; then
11082     case $archive_cmds in
11083     *'~'*)
11084       # FIXME: we may have to deal with multi-command sequences.
11085       ;;
11086     '$CC '*)
11087       # Test whether the compiler implicitly links with -lc since on some
11088       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11089       # to ld, don't add -lc before -lgcc.
11090       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11092       $RM conftest*
11093       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11094
11095       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096   (eval $ac_compile) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } 2>conftest.err; then
11100         soname=conftest
11101         lib=conftest
11102         libobjs=conftest.$ac_objext
11103         deplibs=
11104         wl=$lt_prog_compiler_wl
11105         pic_flag=$lt_prog_compiler_pic
11106         compiler_flags=-v
11107         linker_flags=-v
11108         verstring=
11109         output_objdir=.
11110         libname=conftest
11111         lt_save_allow_undefined_flag=$allow_undefined_flag
11112         allow_undefined_flag=
11113         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11114   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }
11118         then
11119           archive_cmds_need_lc=no
11120         else
11121           archive_cmds_need_lc=yes
11122         fi
11123         allow_undefined_flag=$lt_save_allow_undefined_flag
11124       else
11125         cat conftest.err 1>&5
11126       fi
11127       $RM conftest*
11128       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11129 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11130       ;;
11131     esac
11132   fi
11133   ;;
11134 esac
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
11285
11286
11287
11288
11289
11290
11291
11292   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11294
11295 if test "$GCC" = yes; then
11296   case $host_os in
11297     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11298     *) lt_awk_arg="/^libraries:/" ;;
11299   esac
11300   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11301   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11302     # if the path contains ";" then we assume it to be the separator
11303     # otherwise default to the standard path separator (i.e. ":") - it is
11304     # assumed that no part of a normal pathname contains ";" but that should
11305     # okay in the real world where ";" in dirpaths is itself problematic.
11306     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11307   else
11308     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11309   fi
11310   # Ok, now we have the path, separated by spaces, we can step through it
11311   # and add multilib dir if necessary.
11312   lt_tmp_lt_search_path_spec=
11313   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11314   for lt_sys_path in $lt_search_path_spec; do
11315     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11316       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11317     else
11318       test -d "$lt_sys_path" && \
11319         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11320     fi
11321   done
11322   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11323 BEGIN {RS=" "; FS="/|\n";} {
11324   lt_foo="";
11325   lt_count=0;
11326   for (lt_i = NF; lt_i > 0; lt_i--) {
11327     if ($lt_i != "" && $lt_i != ".") {
11328       if ($lt_i == "..") {
11329         lt_count++;
11330       } else {
11331         if (lt_count == 0) {
11332           lt_foo="/" $lt_i lt_foo;
11333         } else {
11334           lt_count--;
11335         }
11336       }
11337     }
11338   }
11339   if (lt_foo != "") { lt_freq[lt_foo]++; }
11340   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11341 }'`
11342   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11343 else
11344   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11345 fi
11346 library_names_spec=
11347 libname_spec='lib$name'
11348 soname_spec=
11349 shrext_cmds=".so"
11350 postinstall_cmds=
11351 postuninstall_cmds=
11352 finish_cmds=
11353 finish_eval=
11354 shlibpath_var=
11355 shlibpath_overrides_runpath=unknown
11356 version_type=none
11357 dynamic_linker="$host_os ld.so"
11358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11359 need_lib_prefix=unknown
11360 hardcode_into_libs=no
11361
11362 # when you set need_version to no, make sure it does not cause -set_version
11363 # flags to be left without arguments
11364 need_version=unknown
11365
11366 case $host_os in
11367 aix3*)
11368   version_type=linux
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11370   shlibpath_var=LIBPATH
11371
11372   # AIX 3 has no versioning support, so we append a major version to the name.
11373   soname_spec='${libname}${release}${shared_ext}$major'
11374   ;;
11375
11376 aix[4-9]*)
11377   version_type=linux
11378   need_lib_prefix=no
11379   need_version=no
11380   hardcode_into_libs=yes
11381   if test "$host_cpu" = ia64; then
11382     # AIX 5 supports IA64
11383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11384     shlibpath_var=LD_LIBRARY_PATH
11385   else
11386     # With GCC up to 2.95.x, collect2 would create an import file
11387     # for dependence libraries.  The import file would start with
11388     # the line `#! .'.  This would cause the generated library to
11389     # depend on `.', always an invalid library.  This was fixed in
11390     # development snapshots of GCC prior to 3.0.
11391     case $host_os in
11392       aix4 | aix4.[01] | aix4.[01].*)
11393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11394            echo ' yes '
11395            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11396         :
11397       else
11398         can_build_shared=no
11399       fi
11400       ;;
11401     esac
11402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11403     # soname into executable. Probably we can add versioning support to
11404     # collect2, so additional links can be useful in future.
11405     if test "$aix_use_runtimelinking" = yes; then
11406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11407       # instead of lib<name>.a to let people know that these are not
11408       # typical AIX shared libraries.
11409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410     else
11411       # We preserve .a as extension for shared libraries through AIX4.2
11412       # and later when we are not doing run time linking.
11413       library_names_spec='${libname}${release}.a $libname.a'
11414       soname_spec='${libname}${release}${shared_ext}$major'
11415     fi
11416     shlibpath_var=LIBPATH
11417   fi
11418   ;;
11419
11420 amigaos*)
11421   case $host_cpu in
11422   powerpc)
11423     # Since July 2007 AmigaOS4 officially supports .so libraries.
11424     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426     ;;
11427   m68k)
11428     library_names_spec='$libname.ixlibrary $libname.a'
11429     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430     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'
11431     ;;
11432   esac
11433   ;;
11434
11435 beos*)
11436   library_names_spec='${libname}${shared_ext}'
11437   dynamic_linker="$host_os ld.so"
11438   shlibpath_var=LIBRARY_PATH
11439   ;;
11440
11441 bsdi[45]*)
11442   version_type=linux
11443   need_version=no
11444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445   soname_spec='${libname}${release}${shared_ext}$major'
11446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450   # the default ld.so.conf also contains /usr/contrib/lib and
11451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452   # libtool to hard-code these into programs
11453   ;;
11454
11455 cygwin* | mingw* | pw32* | cegcc*)
11456   version_type=windows
11457   shrext_cmds=".dll"
11458   need_version=no
11459   need_lib_prefix=no
11460
11461   case $GCC,$host_os in
11462   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11463     library_names_spec='$libname.dll.a'
11464     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465     postinstall_cmds='base_file=`basename \${file}`~
11466       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11467       dldir=$destdir/`dirname \$dlpath`~
11468       test -d \$dldir || mkdir -p \$dldir~
11469       $install_prog $dir/$dlname \$dldir/$dlname~
11470       chmod a+x \$dldir/$dlname~
11471       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11473       fi'
11474     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475       dlpath=$dir/\$dldll~
11476        $RM \$dlpath'
11477     shlibpath_overrides_runpath=yes
11478
11479     case $host_os in
11480     cygwin*)
11481       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11484       ;;
11485     mingw* | cegcc*)
11486       # MinGW DLLs use traditional 'lib' prefix
11487       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11489       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490         # It is most probably a Windows format PATH printed by
11491         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11492         # path with ; separators, and with drive letters. We can handle the
11493         # drive letters (cygwin fileutils understands them), so leave them,
11494         # especially as we might pass files found there to a mingw objdump,
11495         # which wouldn't understand a cygwinified path. Ahh.
11496         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11497       else
11498         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11499       fi
11500       ;;
11501     pw32*)
11502       # pw32 DLLs use 'pw' prefix rather than 'lib'
11503       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504       ;;
11505     esac
11506     ;;
11507
11508   *)
11509     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11510     ;;
11511   esac
11512   dynamic_linker='Win32 ld.exe'
11513   # FIXME: first we should search . and the directory the executable is in
11514   shlibpath_var=PATH
11515   ;;
11516
11517 darwin* | rhapsody*)
11518   dynamic_linker="$host_os dyld"
11519   version_type=darwin
11520   need_lib_prefix=no
11521   need_version=no
11522   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11523   soname_spec='${libname}${release}${major}$shared_ext'
11524   shlibpath_overrides_runpath=yes
11525   shlibpath_var=DYLD_LIBRARY_PATH
11526   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11527
11528   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11529   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11530   ;;
11531
11532 dgux*)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   ;;
11540
11541 freebsd1*)
11542   dynamic_linker=no
11543   ;;
11544
11545 freebsd* | dragonfly*)
11546   # DragonFly does not have aout.  When/if they implement a new
11547   # versioning mechanism, adjust this.
11548   if test -x /usr/bin/objformat; then
11549     objformat=`/usr/bin/objformat`
11550   else
11551     case $host_os in
11552     freebsd[123]*) objformat=aout ;;
11553     *) objformat=elf ;;
11554     esac
11555   fi
11556   version_type=freebsd-$objformat
11557   case $version_type in
11558     freebsd-elf*)
11559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11560       need_version=no
11561       need_lib_prefix=no
11562       ;;
11563     freebsd-*)
11564       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11565       need_version=yes
11566       ;;
11567   esac
11568   shlibpath_var=LD_LIBRARY_PATH
11569   case $host_os in
11570   freebsd2*)
11571     shlibpath_overrides_runpath=yes
11572     ;;
11573   freebsd3.[01]* | freebsdelf3.[01]*)
11574     shlibpath_overrides_runpath=yes
11575     hardcode_into_libs=yes
11576     ;;
11577   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11578   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11579     shlibpath_overrides_runpath=no
11580     hardcode_into_libs=yes
11581     ;;
11582   *) # from 4.6 on, and DragonFly
11583     shlibpath_overrides_runpath=yes
11584     hardcode_into_libs=yes
11585     ;;
11586   esac
11587   ;;
11588
11589 gnu*)
11590   version_type=linux
11591   need_lib_prefix=no
11592   need_version=no
11593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11594   soname_spec='${libname}${release}${shared_ext}$major'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   hardcode_into_libs=yes
11597   ;;
11598
11599 hpux9* | hpux10* | hpux11*)
11600   # Give a soname corresponding to the major version so that dld.sl refuses to
11601   # link against other versions.
11602   version_type=sunos
11603   need_lib_prefix=no
11604   need_version=no
11605   case $host_cpu in
11606   ia64*)
11607     shrext_cmds='.so'
11608     hardcode_into_libs=yes
11609     dynamic_linker="$host_os dld.so"
11610     shlibpath_var=LD_LIBRARY_PATH
11611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613     soname_spec='${libname}${release}${shared_ext}$major'
11614     if test "X$HPUX_IA64_MODE" = X32; then
11615       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11616     else
11617       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11618     fi
11619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11620     ;;
11621   hppa*64*)
11622     shrext_cmds='.sl'
11623     hardcode_into_libs=yes
11624     dynamic_linker="$host_os dld.sl"
11625     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628     soname_spec='${libname}${release}${shared_ext}$major'
11629     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11630     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11631     ;;
11632   *)
11633     shrext_cmds='.sl'
11634     dynamic_linker="$host_os dld.sl"
11635     shlibpath_var=SHLIB_PATH
11636     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638     soname_spec='${libname}${release}${shared_ext}$major'
11639     ;;
11640   esac
11641   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11642   postinstall_cmds='chmod 555 $lib'
11643   ;;
11644
11645 interix[3-9]*)
11646   version_type=linux
11647   need_lib_prefix=no
11648   need_version=no
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650   soname_spec='${libname}${release}${shared_ext}$major'
11651   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   shlibpath_overrides_runpath=no
11654   hardcode_into_libs=yes
11655   ;;
11656
11657 irix5* | irix6* | nonstopux*)
11658   case $host_os in
11659     nonstopux*) version_type=nonstopux ;;
11660     *)
11661         if test "$lt_cv_prog_gnu_ld" = yes; then
11662                 version_type=linux
11663         else
11664                 version_type=irix
11665         fi ;;
11666   esac
11667   need_lib_prefix=no
11668   need_version=no
11669   soname_spec='${libname}${release}${shared_ext}$major'
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11671   case $host_os in
11672   irix5* | nonstopux*)
11673     libsuff= shlibsuff=
11674     ;;
11675   *)
11676     case $LD in # libtool.m4 will add one of these switches to LD
11677     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678       libsuff= shlibsuff= libmagic=32-bit;;
11679     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680       libsuff=32 shlibsuff=N32 libmagic=N32;;
11681     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683     *) libsuff= shlibsuff= libmagic=never-match;;
11684     esac
11685     ;;
11686   esac
11687   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688   shlibpath_overrides_runpath=no
11689   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11690   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11691   hardcode_into_libs=yes
11692   ;;
11693
11694 # No shared lib support for Linux oldld, aout, or coff.
11695 linux*oldld* | linux*aout* | linux*coff*)
11696   dynamic_linker=no
11697   ;;
11698
11699 # This must be Linux ELF.
11700 linux* | k*bsd*-gnu)
11701   version_type=linux
11702   need_lib_prefix=no
11703   need_version=no
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   shlibpath_overrides_runpath=no
11709   # Some binutils ld are patched to set DT_RUNPATH
11710   save_LDFLAGS=$LDFLAGS
11711   save_libdir=$libdir
11712   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714   cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720
11721 int
11722 main ()
11723 {
11724
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736   (eval "$ac_link") 2>conftest.er1
11737   ac_status=$?
11738   grep -v '^ *+' conftest.er1 >conftest.err
11739   rm -f conftest.er1
11740   cat conftest.err >&5
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); } && {
11743          test -z "$ac_c_werror_flag" ||
11744          test ! -s conftest.err
11745        } && test -s conftest$ac_exeext &&
11746        $as_test_x conftest$ac_exeext; then
11747   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11748   shlibpath_overrides_runpath=yes
11749 fi
11750
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759       conftest$ac_exeext conftest.$ac_ext
11760   LDFLAGS=$save_LDFLAGS
11761   libdir=$save_libdir
11762
11763   # This implies no fast_install, which is unacceptable.
11764   # Some rework will be needed to allow for fast_install
11765   # before this can be enabled.
11766   hardcode_into_libs=yes
11767
11768   # Append ld.so.conf contents to the search path
11769   if test -f /etc/ld.so.conf; then
11770     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' ' '`
11771     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11772   fi
11773
11774   # We used to test for /lib/ld.so.1 and disable shared libraries on
11775   # powerpc, because MkLinux only supported shared libraries with the
11776   # GNU dynamic linker.  Since this was broken with cross compilers,
11777   # most powerpc-linux boxes support dynamic linking these days and
11778   # people can always --disable-shared, the test was removed, and we
11779   # assume the GNU/Linux dynamic linker is in use.
11780   dynamic_linker='GNU/Linux ld.so'
11781   ;;
11782
11783 netbsd*)
11784   version_type=sunos
11785   need_lib_prefix=no
11786   need_version=no
11787   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790     dynamic_linker='NetBSD (a.out) ld.so'
11791   else
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793     soname_spec='${libname}${release}${shared_ext}$major'
11794     dynamic_linker='NetBSD ld.elf_so'
11795   fi
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=yes
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 newsos6)
11802   version_type=linux
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   shlibpath_overrides_runpath=yes
11806   ;;
11807
11808 *nto* | *qnx*)
11809   version_type=qnx
11810   need_lib_prefix=no
11811   need_version=no
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=no
11816   hardcode_into_libs=yes
11817   dynamic_linker='ldqnx.so'
11818   ;;
11819
11820 openbsd*)
11821   version_type=sunos
11822   sys_lib_dlsearch_path_spec="/usr/lib"
11823   need_lib_prefix=no
11824   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11825   case $host_os in
11826     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11827     *)                          need_version=no  ;;
11828   esac
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11833     case $host_os in
11834       openbsd2.[89] | openbsd2.[89].*)
11835         shlibpath_overrides_runpath=no
11836         ;;
11837       *)
11838         shlibpath_overrides_runpath=yes
11839         ;;
11840       esac
11841   else
11842     shlibpath_overrides_runpath=yes
11843   fi
11844   ;;
11845
11846 os2*)
11847   libname_spec='$name'
11848   shrext_cmds=".dll"
11849   need_lib_prefix=no
11850   library_names_spec='$libname${shared_ext} $libname.a'
11851   dynamic_linker='OS/2 ld.exe'
11852   shlibpath_var=LIBPATH
11853   ;;
11854
11855 osf3* | osf4* | osf5*)
11856   version_type=osf
11857   need_lib_prefix=no
11858   need_version=no
11859   soname_spec='${libname}${release}${shared_ext}$major'
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861   shlibpath_var=LD_LIBRARY_PATH
11862   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11863   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11864   ;;
11865
11866 rdos*)
11867   dynamic_linker=no
11868   ;;
11869
11870 solaris*)
11871   version_type=linux
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   hardcode_into_libs=yes
11879   # ldd complains unless libraries are executable
11880   postinstall_cmds='chmod +x $lib'
11881   ;;
11882
11883 sunos4*)
11884   version_type=sunos
11885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   shlibpath_overrides_runpath=yes
11889   if test "$with_gnu_ld" = yes; then
11890     need_lib_prefix=no
11891   fi
11892   need_version=yes
11893   ;;
11894
11895 sysv4 | sysv4.3*)
11896   version_type=linux
11897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898   soname_spec='${libname}${release}${shared_ext}$major'
11899   shlibpath_var=LD_LIBRARY_PATH
11900   case $host_vendor in
11901     sni)
11902       shlibpath_overrides_runpath=no
11903       need_lib_prefix=no
11904       runpath_var=LD_RUN_PATH
11905       ;;
11906     siemens)
11907       need_lib_prefix=no
11908       ;;
11909     motorola)
11910       need_lib_prefix=no
11911       need_version=no
11912       shlibpath_overrides_runpath=no
11913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11914       ;;
11915   esac
11916   ;;
11917
11918 sysv4*MP*)
11919   if test -d /usr/nec ;then
11920     version_type=linux
11921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11922     soname_spec='$libname${shared_ext}.$major'
11923     shlibpath_var=LD_LIBRARY_PATH
11924   fi
11925   ;;
11926
11927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11928   version_type=freebsd-elf
11929   need_lib_prefix=no
11930   need_version=no
11931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11932   soname_spec='${libname}${release}${shared_ext}$major'
11933   shlibpath_var=LD_LIBRARY_PATH
11934   shlibpath_overrides_runpath=yes
11935   hardcode_into_libs=yes
11936   if test "$with_gnu_ld" = yes; then
11937     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11938   else
11939     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11940     case $host_os in
11941       sco3.2v5*)
11942         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11943         ;;
11944     esac
11945   fi
11946   sys_lib_dlsearch_path_spec='/usr/lib'
11947   ;;
11948
11949 tpf*)
11950   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11951   version_type=linux
11952   need_lib_prefix=no
11953   need_version=no
11954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   shlibpath_overrides_runpath=no
11957   hardcode_into_libs=yes
11958   ;;
11959
11960 uts4*)
11961   version_type=linux
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963   soname_spec='${libname}${release}${shared_ext}$major'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   ;;
11966
11967 *)
11968   dynamic_linker=no
11969   ;;
11970 esac
11971 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11972 echo "${ECHO_T}$dynamic_linker" >&6; }
11973 test "$dynamic_linker" = no && can_build_shared=no
11974
11975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11976 if test "$GCC" = yes; then
11977   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11978 fi
11979
11980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11981   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11982 fi
11983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11984   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11985 fi
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
12066
12067
12068
12069
12070
12071
12072
12073   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12075 hardcode_action=
12076 if test -n "$hardcode_libdir_flag_spec" ||
12077    test -n "$runpath_var" ||
12078    test "X$hardcode_automatic" = "Xyes" ; then
12079
12080   # We can hardcode non-existent directories.
12081   if test "$hardcode_direct" != no &&
12082      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12083      # have to relink, otherwise we might link with an installed library
12084      # when we should be linking with a yet-to-be-installed one
12085      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12086      test "$hardcode_minus_L" != no; then
12087     # Linking always hardcodes the temporary library directory.
12088     hardcode_action=relink
12089   else
12090     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12091     hardcode_action=immediate
12092   fi
12093 else
12094   # We cannot hardcode anything, or else we can only hardcode existing
12095   # directories.
12096   hardcode_action=unsupported
12097 fi
12098 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12099 echo "${ECHO_T}$hardcode_action" >&6; }
12100
12101 if test "$hardcode_action" = relink ||
12102    test "$inherit_rpath" = yes; then
12103   # Fast installation is not supported
12104   enable_fast_install=no
12105 elif test "$shlibpath_overrides_runpath" = yes ||
12106      test "$enable_shared" = no; then
12107   # Fast installation is not necessary
12108   enable_fast_install=needless
12109 fi
12110
12111
12112
12113
12114
12115
12116   if test "x$enable_dlopen" != xyes; then
12117   enable_dlopen=unknown
12118   enable_dlopen_self=unknown
12119   enable_dlopen_self_static=unknown
12120 else
12121   lt_cv_dlopen=no
12122   lt_cv_dlopen_libs=
12123
12124   case $host_os in
12125   beos*)
12126     lt_cv_dlopen="load_add_on"
12127     lt_cv_dlopen_libs=
12128     lt_cv_dlopen_self=yes
12129     ;;
12130
12131   mingw* | pw32* | cegcc*)
12132     lt_cv_dlopen="LoadLibrary"
12133     lt_cv_dlopen_libs=
12134     ;;
12135
12136   cygwin*)
12137     lt_cv_dlopen="dlopen"
12138     lt_cv_dlopen_libs=
12139     ;;
12140
12141   darwin*)
12142   # if libdl is installed we need to link against it
12143     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldl  $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158    Use char because int might match the return type of a GCC
12159    builtin and then its argument prototype would still apply.  */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char dlopen ();
12164 int
12165 main ()
12166 {
12167 return dlopen ();
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_link") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } && {
12186          test -z "$ac_c_werror_flag" ||
12187          test ! -s conftest.err
12188        } && test -s conftest$ac_exeext &&
12189        $as_test_x conftest$ac_exeext; then
12190   ac_cv_lib_dl_dlopen=yes
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195         ac_cv_lib_dl_dlopen=no
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12199       conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12204 if test $ac_cv_lib_dl_dlopen = yes; then
12205   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206 else
12207
12208     lt_cv_dlopen="dyld"
12209     lt_cv_dlopen_libs=
12210     lt_cv_dlopen_self=yes
12211
12212 fi
12213
12214     ;;
12215
12216   *)
12217     { echo "$as_me:$LINENO: checking for shl_load" >&5
12218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12219 if test "${ac_cv_func_shl_load+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222   cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12230 #define shl_load innocuous_shl_load
12231
12232 /* System header to define __stub macros and hopefully few prototypes,
12233     which can conflict with char shl_load (); below.
12234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12235     <limits.h> exists even on freestanding compilers.  */
12236
12237 #ifdef __STDC__
12238 # include <limits.h>
12239 #else
12240 # include <assert.h>
12241 #endif
12242
12243 #undef shl_load
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246    Use char because int might match the return type of a GCC
12247    builtin and then its argument prototype would still apply.  */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char shl_load ();
12252 /* The GNU C library defines this for functions which it implements
12253     to always fail with ENOSYS.  Some functions are actually named
12254     something starting with __ and the normal name is an alias.  */
12255 #if defined __stub_shl_load || defined __stub___shl_load
12256 choke me
12257 #endif
12258
12259 int
12260 main ()
12261 {
12262 return shl_load ();
12263   ;
12264   return 0;
12265 }
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_link") 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } && {
12281          test -z "$ac_c_werror_flag" ||
12282          test ! -s conftest.err
12283        } && test -s conftest$ac_exeext &&
12284        $as_test_x conftest$ac_exeext; then
12285   ac_cv_func_shl_load=yes
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290         ac_cv_func_shl_load=no
12291 fi
12292
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294       conftest$ac_exeext conftest.$ac_ext
12295 fi
12296 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12298 if test $ac_cv_func_shl_load = yes; then
12299   lt_cv_dlopen="shl_load"
12300 else
12301   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-ldld  $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h.  */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h.  */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316    Use char because int might match the return type of a GCC
12317    builtin and then its argument prototype would still apply.  */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char shl_load ();
12322 int
12323 main ()
12324 {
12325 return shl_load ();
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_link") 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } && {
12344          test -z "$ac_c_werror_flag" ||
12345          test ! -s conftest.err
12346        } && test -s conftest$ac_exeext &&
12347        $as_test_x conftest$ac_exeext; then
12348   ac_cv_lib_dld_shl_load=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353         ac_cv_lib_dld_shl_load=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357       conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12364 else
12365   { echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12378 #define dlopen innocuous_dlopen
12379
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char dlopen (); below.
12382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383     <limits.h> exists even on freestanding compilers.  */
12384
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12390
12391 #undef dlopen
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394    Use char because int might match the return type of a GCC
12395    builtin and then its argument prototype would still apply.  */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char dlopen ();
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined __stub_dlopen || defined __stub___dlopen
12404 choke me
12405 #endif
12406
12407 int
12408 main ()
12409 {
12410 return dlopen ();
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_link") 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } && {
12429          test -z "$ac_c_werror_flag" ||
12430          test ! -s conftest.err
12431        } && test -s conftest$ac_exeext &&
12432        $as_test_x conftest$ac_exeext; then
12433   ac_cv_func_dlopen=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438         ac_cv_func_dlopen=no
12439 fi
12440
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12442       conftest$ac_exeext conftest.$ac_ext
12443 fi
12444 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12446 if test $ac_cv_func_dlopen = yes; then
12447   lt_cv_dlopen="dlopen"
12448 else
12449   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-ldl  $LIBS"
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462
12463 /* Override any GCC internal prototype to avoid an error.
12464    Use char because int might match the return type of a GCC
12465    builtin and then its argument prototype would still apply.  */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 char dlopen ();
12470 int
12471 main ()
12472 {
12473 return dlopen ();
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482   *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485   (eval "$ac_link") 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } && {
12492          test -z "$ac_c_werror_flag" ||
12493          test ! -s conftest.err
12494        } && test -s conftest$ac_exeext &&
12495        $as_test_x conftest$ac_exeext; then
12496   ac_cv_lib_dl_dlopen=yes
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501         ac_cv_lib_dl_dlopen=no
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505       conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12510 if test $ac_cv_lib_dl_dlopen = yes; then
12511   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12512 else
12513   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld  $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528    Use char because int might match the return type of a GCC
12529    builtin and then its argument prototype would still apply.  */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char dlopen ();
12534 int
12535 main ()
12536 {
12537 return dlopen ();
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_link") 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } && {
12556          test -z "$ac_c_werror_flag" ||
12557          test ! -s conftest.err
12558        } && test -s conftest$ac_exeext &&
12559        $as_test_x conftest$ac_exeext; then
12560   ac_cv_lib_svld_dlopen=yes
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         ac_cv_lib_svld_dlopen=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569       conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12574 if test $ac_cv_lib_svld_dlopen = yes; then
12575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12576 else
12577   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldld  $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592    Use char because int might match the return type of a GCC
12593    builtin and then its argument prototype would still apply.  */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char dld_link ();
12598 int
12599 main ()
12600 {
12601 return dld_link ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_link") 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } && {
12620          test -z "$ac_c_werror_flag" ||
12621          test ! -s conftest.err
12622        } && test -s conftest$ac_exeext &&
12623        $as_test_x conftest$ac_exeext; then
12624   ac_cv_lib_dld_dld_link=yes
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629         ac_cv_lib_dld_dld_link=no
12630 fi
12631
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633       conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12635 fi
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12638 if test $ac_cv_lib_dld_dld_link = yes; then
12639   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12640 fi
12641
12642
12643 fi
12644
12645
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657     ;;
12658   esac
12659
12660   if test "x$lt_cv_dlopen" != xno; then
12661     enable_dlopen=yes
12662   else
12663     enable_dlopen=no
12664   fi
12665
12666   case $lt_cv_dlopen in
12667   dlopen)
12668     save_CPPFLAGS="$CPPFLAGS"
12669     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12670
12671     save_LDFLAGS="$LDFLAGS"
12672     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12673
12674     save_LIBS="$LIBS"
12675     LIBS="$lt_cv_dlopen_libs $LIBS"
12676
12677     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12679 if test "${lt_cv_dlopen_self+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682           if test "$cross_compiling" = yes; then :
12683   lt_cv_dlopen_self=cross
12684 else
12685   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686   lt_status=$lt_dlunknown
12687   cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12690
12691 #if HAVE_DLFCN_H
12692 #include <dlfcn.h>
12693 #endif
12694
12695 #include <stdio.h>
12696
12697 #ifdef RTLD_GLOBAL
12698 #  define LT_DLGLOBAL           RTLD_GLOBAL
12699 #else
12700 #  ifdef DL_GLOBAL
12701 #    define LT_DLGLOBAL         DL_GLOBAL
12702 #  else
12703 #    define LT_DLGLOBAL         0
12704 #  endif
12705 #endif
12706
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708    find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12710 #  ifdef RTLD_LAZY
12711 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12712 #  else
12713 #    ifdef DL_LAZY
12714 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12715 #    else
12716 #      ifdef RTLD_NOW
12717 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12718 #      else
12719 #        ifdef DL_NOW
12720 #          define LT_DLLAZY_OR_NOW      DL_NOW
12721 #        else
12722 #          define LT_DLLAZY_OR_NOW      0
12723 #        endif
12724 #      endif
12725 #    endif
12726 #  endif
12727 #endif
12728
12729 void fnord() { int i=42;}
12730 int main ()
12731 {
12732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12733   int status = $lt_dlunknown;
12734
12735   if (self)
12736     {
12737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12739       /* dlclose (self); */
12740     }
12741   else
12742     puts (dlerror ());
12743
12744   return status;
12745 }
12746 _LT_EOF
12747   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748   (eval $ac_link) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12752     (./conftest; exit; ) >&5 2>/dev/null
12753     lt_status=$?
12754     case x$lt_status in
12755       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12756       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12757       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12758     esac
12759   else :
12760     # compilation failed
12761     lt_cv_dlopen_self=no
12762   fi
12763 fi
12764 rm -fr conftest*
12765
12766
12767 fi
12768 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12770
12771     if test "x$lt_cv_dlopen_self" = xyes; then
12772       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12773       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12775 if test "${lt_cv_dlopen_self_static+set}" = set; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778           if test "$cross_compiling" = yes; then :
12779   lt_cv_dlopen_self_static=cross
12780 else
12781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782   lt_status=$lt_dlunknown
12783   cat > conftest.$ac_ext <<_LT_EOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12786
12787 #if HAVE_DLFCN_H
12788 #include <dlfcn.h>
12789 #endif
12790
12791 #include <stdio.h>
12792
12793 #ifdef RTLD_GLOBAL
12794 #  define LT_DLGLOBAL           RTLD_GLOBAL
12795 #else
12796 #  ifdef DL_GLOBAL
12797 #    define LT_DLGLOBAL         DL_GLOBAL
12798 #  else
12799 #    define LT_DLGLOBAL         0
12800 #  endif
12801 #endif
12802
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804    find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12806 #  ifdef RTLD_LAZY
12807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12808 #  else
12809 #    ifdef DL_LAZY
12810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12811 #    else
12812 #      ifdef RTLD_NOW
12813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12814 #      else
12815 #        ifdef DL_NOW
12816 #          define LT_DLLAZY_OR_NOW      DL_NOW
12817 #        else
12818 #          define LT_DLLAZY_OR_NOW      0
12819 #        endif
12820 #      endif
12821 #    endif
12822 #  endif
12823 #endif
12824
12825 void fnord() { int i=42;}
12826 int main ()
12827 {
12828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12829   int status = $lt_dlunknown;
12830
12831   if (self)
12832     {
12833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12834       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12835       /* dlclose (self); */
12836     }
12837   else
12838     puts (dlerror ());
12839
12840   return status;
12841 }
12842 _LT_EOF
12843   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844   (eval $ac_link) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12848     (./conftest; exit; ) >&5 2>/dev/null
12849     lt_status=$?
12850     case x$lt_status in
12851       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12852       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12853       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12854     esac
12855   else :
12856     # compilation failed
12857     lt_cv_dlopen_self_static=no
12858   fi
12859 fi
12860 rm -fr conftest*
12861
12862
12863 fi
12864 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12865 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12866     fi
12867
12868     CPPFLAGS="$save_CPPFLAGS"
12869     LDFLAGS="$save_LDFLAGS"
12870     LIBS="$save_LIBS"
12871     ;;
12872   esac
12873
12874   case $lt_cv_dlopen_self in
12875   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12876   *) enable_dlopen_self=unknown ;;
12877   esac
12878
12879   case $lt_cv_dlopen_self_static in
12880   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12881   *) enable_dlopen_self_static=unknown ;;
12882   esac
12883 fi
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901 striplib=
12902 old_striplib=
12903 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12904 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12905 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12906   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12907   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12908   { echo "$as_me:$LINENO: result: yes" >&5
12909 echo "${ECHO_T}yes" >&6; }
12910 else
12911 # FIXME - insert some real tests, host_os isn't really good enough
12912   case $host_os in
12913   darwin*)
12914     if test -n "$STRIP" ; then
12915       striplib="$STRIP -x"
12916       old_striplib="$STRIP -S"
12917       { echo "$as_me:$LINENO: result: yes" >&5
12918 echo "${ECHO_T}yes" >&6; }
12919     else
12920       { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922     fi
12923     ;;
12924   *)
12925     { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12927     ;;
12928   esac
12929 fi
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942   # Report which library types will actually be built
12943   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12945   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12946 echo "${ECHO_T}$can_build_shared" >&6; }
12947
12948   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12950   test "$can_build_shared" = "no" && enable_shared=no
12951
12952   # On AIX, shared libraries and static libraries use the same namespace, and
12953   # are all built from PIC.
12954   case $host_os in
12955   aix3*)
12956     test "$enable_shared" = yes && enable_static=no
12957     if test -n "$RANLIB"; then
12958       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959       postinstall_cmds='$RANLIB $lib'
12960     fi
12961     ;;
12962
12963   aix[4-9]*)
12964     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12965       test "$enable_shared" = yes && enable_static=no
12966     fi
12967     ;;
12968   esac
12969   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12970 echo "${ECHO_T}$enable_shared" >&6; }
12971
12972   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12974   # Make sure either enable_shared or enable_static is yes.
12975   test "$enable_shared" = yes || enable_static=yes
12976   { echo "$as_me:$LINENO: result: $enable_static" >&5
12977 echo "${ECHO_T}$enable_static" >&6; }
12978
12979
12980
12981
12982 fi
12983 ac_ext=c
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989 CC="$lt_save_CC"
12990
12991
12992 ac_ext=cpp
12993 ac_cpp='$CXXCPP $CPPFLAGS'
12994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12997
12998 archive_cmds_need_lc_CXX=no
12999 allow_undefined_flag_CXX=
13000 always_export_symbols_CXX=no
13001 archive_expsym_cmds_CXX=
13002 compiler_needs_object_CXX=no
13003 export_dynamic_flag_spec_CXX=
13004 hardcode_direct_CXX=no
13005 hardcode_direct_absolute_CXX=no
13006 hardcode_libdir_flag_spec_CXX=
13007 hardcode_libdir_flag_spec_ld_CXX=
13008 hardcode_libdir_separator_CXX=
13009 hardcode_minus_L_CXX=no
13010 hardcode_shlibpath_var_CXX=unsupported
13011 hardcode_automatic_CXX=no
13012 inherit_rpath_CXX=no
13013 module_cmds_CXX=
13014 module_expsym_cmds_CXX=
13015 link_all_deplibs_CXX=unknown
13016 old_archive_cmds_CXX=$old_archive_cmds
13017 no_undefined_flag_CXX=
13018 whole_archive_flag_spec_CXX=
13019 enable_shared_with_static_runtimes_CXX=no
13020
13021 # Source file extension for C++ test sources.
13022 ac_ext=cpp
13023
13024 # Object file extension for compiled C++ test sources.
13025 objext=o
13026 objext_CXX=$objext
13027
13028 # No sense in running all these tests if we already determined that
13029 # the CXX compiler isn't working.  Some variables (like enable_shared)
13030 # are currently assumed to apply to all compilers on this platform,
13031 # and will be corrupted by setting them based on a non-working compiler.
13032 if test "$_lt_caught_CXX_error" != yes; then
13033   # Code to be used in simple compile tests
13034   lt_simple_compile_test_code="int some_variable = 0;"
13035
13036   # Code to be used in simple link tests
13037   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13038
13039   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13040
13041
13042
13043
13044
13045
13046 # If no C compiler was specified, use CC.
13047 LTCC=${LTCC-"$CC"}
13048
13049 # If no C compiler flags were specified, use CFLAGS.
13050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13051
13052 # Allow CC to be a program name with arguments.
13053 compiler=$CC
13054
13055
13056   # save warnings/boilerplate of simple test code
13057   ac_outfile=conftest.$ac_objext
13058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13060 _lt_compiler_boilerplate=`cat conftest.err`
13061 $RM conftest*
13062
13063   ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_linker_boilerplate=`cat conftest.err`
13067 $RM -r conftest*
13068
13069
13070   # Allow CC to be a program name with arguments.
13071   lt_save_CC=$CC
13072   lt_save_LD=$LD
13073   lt_save_GCC=$GCC
13074   GCC=$GXX
13075   lt_save_with_gnu_ld=$with_gnu_ld
13076   lt_save_path_LD=$lt_cv_path_LD
13077   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13078     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13079   else
13080     $as_unset lt_cv_prog_gnu_ld
13081   fi
13082   if test -n "${lt_cv_path_LDCXX+set}"; then
13083     lt_cv_path_LD=$lt_cv_path_LDCXX
13084   else
13085     $as_unset lt_cv_path_LD
13086   fi
13087   test -z "${LDCXX+set}" || LD=$LDCXX
13088   CC=${CXX-"c++"}
13089   compiler=$CC
13090   compiler_CXX=$CC
13091   for cc_temp in $compiler""; do
13092   case $cc_temp in
13093     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13094     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13095     \-*) ;;
13096     *) break;;
13097   esac
13098 done
13099 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13100
13101
13102   if test -n "$compiler"; then
13103     # We don't want -fno-exception when compiling C++ code, so set the
13104     # no_builtin_flag separately
13105     if test "$GXX" = yes; then
13106       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13107     else
13108       lt_prog_compiler_no_builtin_flag_CXX=
13109     fi
13110
13111     if test "$GXX" = yes; then
13112       # Set up default GNU C++ configuration
13113
13114
13115
13116 # Check whether --with-gnu-ld was given.
13117 if test "${with_gnu_ld+set}" = set; then
13118   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13119 else
13120   with_gnu_ld=no
13121 fi
13122
13123 ac_prog=ld
13124 if test "$GCC" = yes; then
13125   # Check if gcc -print-prog-name=ld gives a path.
13126   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13127 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13128   case $host in
13129   *-*-mingw*)
13130     # gcc leaves a trailing carriage return which upsets mingw
13131     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13132   *)
13133     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13134   esac
13135   case $ac_prog in
13136     # Accept absolute paths.
13137     [\\/]* | ?:[\\/]*)
13138       re_direlt='/[^/][^/]*/\.\./'
13139       # Canonicalize the pathname of ld
13140       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13141       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13142         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13143       done
13144       test -z "$LD" && LD="$ac_prog"
13145       ;;
13146   "")
13147     # If it fails, then pretend we aren't using GCC.
13148     ac_prog=ld
13149     ;;
13150   *)
13151     # If it is relative, then search for the first ld in PATH.
13152     with_gnu_ld=unknown
13153     ;;
13154   esac
13155 elif test "$with_gnu_ld" = yes; then
13156   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13158 else
13159   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13161 fi
13162 if test "${lt_cv_path_LD+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   if test -z "$LD"; then
13166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13167   for ac_dir in $PATH; do
13168     IFS="$lt_save_ifs"
13169     test -z "$ac_dir" && ac_dir=.
13170     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13171       lt_cv_path_LD="$ac_dir/$ac_prog"
13172       # Check to see if the program is GNU ld.  I'd rather use --version,
13173       # but apparently some variants of GNU ld only accept -v.
13174       # Break only if it was the GNU/non-GNU ld that we prefer.
13175       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13176       *GNU* | *'with BFD'*)
13177         test "$with_gnu_ld" != no && break
13178         ;;
13179       *)
13180         test "$with_gnu_ld" != yes && break
13181         ;;
13182       esac
13183     fi
13184   done
13185   IFS="$lt_save_ifs"
13186 else
13187   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13188 fi
13189 fi
13190
13191 LD="$lt_cv_path_LD"
13192 if test -n "$LD"; then
13193   { echo "$as_me:$LINENO: result: $LD" >&5
13194 echo "${ECHO_T}$LD" >&6; }
13195 else
13196   { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13198 fi
13199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13201    { (exit 1); exit 1; }; }
13202 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13208 case `$LD -v 2>&1 </dev/null` in
13209 *GNU* | *'with BFD'*)
13210   lt_cv_prog_gnu_ld=yes
13211   ;;
13212 *)
13213   lt_cv_prog_gnu_ld=no
13214   ;;
13215 esac
13216 fi
13217 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13219 with_gnu_ld=$lt_cv_prog_gnu_ld
13220
13221
13222
13223
13224
13225
13226
13227       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13228       # archiving commands below assume that GNU ld is being used.
13229       if test "$with_gnu_ld" = yes; then
13230         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231         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'
13232
13233         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13234         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235
13236         # If archive_cmds runs LD, not CC, wlarc should be empty
13237         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13238         #     investigate it a little bit more. (MM)
13239         wlarc='${wl}'
13240
13241         # ancient GNU ld didn't support --whole-archive et. al.
13242         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13243           $GREP 'no-whole-archive' > /dev/null; then
13244           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13245         else
13246           whole_archive_flag_spec_CXX=
13247         fi
13248       else
13249         with_gnu_ld=no
13250         wlarc=
13251
13252         # A generic and very simple default shared library creation
13253         # command for GNU C++ for the case where it uses the native
13254         # linker, instead of GNU ld.  If possible, this setting should
13255         # overridden to take advantage of the native linker features on
13256         # the platform it is being used on.
13257         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13258       fi
13259
13260       # Commands to make compiler produce verbose output that lists
13261       # what "hidden" libraries, object files and flags are used when
13262       # linking a shared library.
13263       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13264
13265     else
13266       GXX=no
13267       with_gnu_ld=no
13268       wlarc=
13269     fi
13270
13271     # PORTME: fill in a description of your system's C++ link characteristics
13272     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13274     ld_shlibs_CXX=yes
13275     case $host_os in
13276       aix3*)
13277         # FIXME: insert proper C++ library support
13278         ld_shlibs_CXX=no
13279         ;;
13280       aix[4-9]*)
13281         if test "$host_cpu" = ia64; then
13282           # On IA64, the linker does run time linking by default, so we don't
13283           # have to do anything special.
13284           aix_use_runtimelinking=no
13285           exp_sym_flag='-Bexport'
13286           no_entry_flag=""
13287         else
13288           aix_use_runtimelinking=no
13289
13290           # Test if we are trying to use run time linking or normal
13291           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13292           # need to do runtime linking.
13293           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13294             for ld_flag in $LDFLAGS; do
13295               case $ld_flag in
13296               *-brtl*)
13297                 aix_use_runtimelinking=yes
13298                 break
13299                 ;;
13300               esac
13301             done
13302             ;;
13303           esac
13304
13305           exp_sym_flag='-bexport'
13306           no_entry_flag='-bnoentry'
13307         fi
13308
13309         # When large executables or shared objects are built, AIX ld can
13310         # have problems creating the table of contents.  If linking a library
13311         # or program results in "error TOC overflow" add -mminimal-toc to
13312         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13313         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13314
13315         archive_cmds_CXX=''
13316         hardcode_direct_CXX=yes
13317         hardcode_direct_absolute_CXX=yes
13318         hardcode_libdir_separator_CXX=':'
13319         link_all_deplibs_CXX=yes
13320         file_list_spec_CXX='${wl}-f,'
13321
13322         if test "$GXX" = yes; then
13323           case $host_os in aix4.[012]|aix4.[012].*)
13324           # We only want to do this on AIX 4.2 and lower, the check
13325           # below for broken collect2 doesn't work under 4.3+
13326           collect2name=`${CC} -print-prog-name=collect2`
13327           if test -f "$collect2name" &&
13328              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13329           then
13330             # We have reworked collect2
13331             :
13332           else
13333             # We have old collect2
13334             hardcode_direct_CXX=unsupported
13335             # It fails to find uninstalled libraries when the uninstalled
13336             # path is not listed in the libpath.  Setting hardcode_minus_L
13337             # to unsupported forces relinking
13338             hardcode_minus_L_CXX=yes
13339             hardcode_libdir_flag_spec_CXX='-L$libdir'
13340             hardcode_libdir_separator_CXX=
13341           fi
13342           esac
13343           shared_flag='-shared'
13344           if test "$aix_use_runtimelinking" = yes; then
13345             shared_flag="$shared_flag "'${wl}-G'
13346           fi
13347         else
13348           # not using gcc
13349           if test "$host_cpu" = ia64; then
13350           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13351           # chokes on -Wl,-G. The following line is correct:
13352           shared_flag='-G'
13353           else
13354             if test "$aix_use_runtimelinking" = yes; then
13355               shared_flag='${wl}-G'
13356             else
13357               shared_flag='${wl}-bM:SRE'
13358             fi
13359           fi
13360         fi
13361
13362         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13363         # It seems that -bexpall does not export symbols beginning with
13364         # underscore (_), so it is better to generate a list of symbols to
13365         # export.
13366         always_export_symbols_CXX=yes
13367         if test "$aix_use_runtimelinking" = yes; then
13368           # Warning - without using the other runtime loading flags (-brtl),
13369           # -berok will link without error, but may produce a broken library.
13370           allow_undefined_flag_CXX='-berok'
13371           # Determine the default libpath from the value encoded in an empty
13372           # executable.
13373           cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379
13380 int
13381 main ()
13382 {
13383
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_link") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_cxx_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest$ac_exeext &&
13405        $as_test_x conftest$ac_exeext; then
13406
13407 lt_aix_libpath_sed='
13408     /Import File Strings/,/^$/ {
13409         /^0/ {
13410             s/^0  *\(.*\)$/\1/
13411             p
13412         }
13413     }'
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 fi
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423
13424 fi
13425
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427       conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13429
13430           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13431
13432           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"
13433         else
13434           if test "$host_cpu" = ia64; then
13435             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13436             allow_undefined_flag_CXX="-z nodefs"
13437             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"
13438           else
13439             # Determine the default libpath from the value encoded in an
13440             # empty executable.
13441             cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447
13448 int
13449 main ()
13450 {
13451
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_link") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } && {
13470          test -z "$ac_cxx_werror_flag" ||
13471          test ! -s conftest.err
13472        } && test -s conftest$ac_exeext &&
13473        $as_test_x conftest$ac_exeext; then
13474
13475 lt_aix_libpath_sed='
13476     /Import File Strings/,/^$/ {
13477         /^0/ {
13478             s/^0  *\(.*\)$/\1/
13479             p
13480         }
13481     }'
13482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483 # Check for a 64-bit object if we didn't find anything.
13484 if test -z "$aix_libpath"; then
13485   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 fi
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491
13492 fi
13493
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495       conftest$ac_exeext conftest.$ac_ext
13496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13497
13498             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13499             # Warning - without using the other run time loading flags,
13500             # -berok will link without error, but may produce a broken library.
13501             no_undefined_flag_CXX=' ${wl}-bernotok'
13502             allow_undefined_flag_CXX=' ${wl}-berok'
13503             # Exported symbols can be pulled into shared objects from archives
13504             whole_archive_flag_spec_CXX='$convenience'
13505             archive_cmds_need_lc_CXX=yes
13506             # This is similar to how AIX traditionally builds its shared
13507             # libraries.
13508             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'
13509           fi
13510         fi
13511         ;;
13512
13513       beos*)
13514         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13515           allow_undefined_flag_CXX=unsupported
13516           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13517           # support --undefined.  This deserves some investigation.  FIXME
13518           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519         else
13520           ld_shlibs_CXX=no
13521         fi
13522         ;;
13523
13524       chorus*)
13525         case $cc_basename in
13526           *)
13527           # FIXME: insert proper C++ library support
13528           ld_shlibs_CXX=no
13529           ;;
13530         esac
13531         ;;
13532
13533       cygwin* | mingw* | pw32* | cegcc*)
13534         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13535         # as there is no search path for DLLs.
13536         hardcode_libdir_flag_spec_CXX='-L$libdir'
13537         allow_undefined_flag_CXX=unsupported
13538         always_export_symbols_CXX=no
13539         enable_shared_with_static_runtimes_CXX=yes
13540
13541         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13542           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'
13543           # If the export-symbols file already is a .def file (1st line
13544           # is EXPORTS), use it as is; otherwise, prepend...
13545           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13546             cp $export_symbols $output_objdir/$soname.def;
13547           else
13548             echo EXPORTS > $output_objdir/$soname.def;
13549             cat $export_symbols >> $output_objdir/$soname.def;
13550           fi~
13551           $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'
13552         else
13553           ld_shlibs_CXX=no
13554         fi
13555         ;;
13556       darwin* | rhapsody*)
13557
13558
13559   archive_cmds_need_lc_CXX=no
13560   hardcode_direct_CXX=no
13561   hardcode_automatic_CXX=yes
13562   hardcode_shlibpath_var_CXX=unsupported
13563   whole_archive_flag_spec_CXX=''
13564   link_all_deplibs_CXX=yes
13565   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13566   case $cc_basename in
13567      ifort*) _lt_dar_can_shared=yes ;;
13568      *) _lt_dar_can_shared=$GCC ;;
13569   esac
13570   if test "$_lt_dar_can_shared" = "yes"; then
13571     output_verbose_link_cmd=echo
13572     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}"
13573     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13574     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}"
13575     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}"
13576        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13577       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}"
13578       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}"
13579     fi
13580
13581   else
13582   ld_shlibs_CXX=no
13583   fi
13584
13585         ;;
13586
13587       dgux*)
13588         case $cc_basename in
13589           ec++*)
13590             # FIXME: insert proper C++ library support
13591             ld_shlibs_CXX=no
13592             ;;
13593           ghcx*)
13594             # Green Hills C++ Compiler
13595             # FIXME: insert proper C++ library support
13596             ld_shlibs_CXX=no
13597             ;;
13598           *)
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602         esac
13603         ;;
13604
13605       freebsd[12]*)
13606         # C++ shared libraries reported to be fairly broken before
13607         # switch to ELF
13608         ld_shlibs_CXX=no
13609         ;;
13610
13611       freebsd-elf*)
13612         archive_cmds_need_lc_CXX=no
13613         ;;
13614
13615       freebsd* | dragonfly*)
13616         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13617         # conventions
13618         ld_shlibs_CXX=yes
13619         ;;
13620
13621       gnu*)
13622         ;;
13623
13624       hpux9*)
13625         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13626         hardcode_libdir_separator_CXX=:
13627         export_dynamic_flag_spec_CXX='${wl}-E'
13628         hardcode_direct_CXX=yes
13629         hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                              # but as the default
13631                                              # location of the library.
13632
13633         case $cc_basename in
13634           CC*)
13635             # FIXME: insert proper C++ library support
13636             ld_shlibs_CXX=no
13637             ;;
13638           aCC*)
13639             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'
13640             # Commands to make compiler produce verbose output that lists
13641             # what "hidden" libraries, object files and flags are used when
13642             # linking a shared library.
13643             #
13644             # There doesn't appear to be a way to prevent this compiler from
13645             # explicitly linking system object files so we need to strip them
13646             # from the output so that they don't get included in the library
13647             # dependencies.
13648             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'
13649             ;;
13650           *)
13651             if test "$GXX" = yes; then
13652               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'
13653             else
13654               # FIXME: insert proper C++ library support
13655               ld_shlibs_CXX=no
13656             fi
13657             ;;
13658         esac
13659         ;;
13660
13661       hpux10*|hpux11*)
13662         if test $with_gnu_ld = no; then
13663           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13664           hardcode_libdir_separator_CXX=:
13665
13666           case $host_cpu in
13667             hppa*64*|ia64*)
13668               ;;
13669             *)
13670               export_dynamic_flag_spec_CXX='${wl}-E'
13671               ;;
13672           esac
13673         fi
13674         case $host_cpu in
13675           hppa*64*|ia64*)
13676             hardcode_direct_CXX=no
13677             hardcode_shlibpath_var_CXX=no
13678             ;;
13679           *)
13680             hardcode_direct_CXX=yes
13681             hardcode_direct_absolute_CXX=yes
13682             hardcode_minus_L_CXX=yes # Not in the search PATH,
13683                                                  # but as the default
13684                                                  # location of the library.
13685             ;;
13686         esac
13687
13688         case $cc_basename in
13689           CC*)
13690             # FIXME: insert proper C++ library support
13691             ld_shlibs_CXX=no
13692             ;;
13693           aCC*)
13694             case $host_cpu in
13695               hppa*64*)
13696                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697                 ;;
13698               ia64*)
13699                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700                 ;;
13701               *)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704             esac
13705             # Commands to make compiler produce verbose output that lists
13706             # what "hidden" libraries, object files and flags are used when
13707             # linking a shared library.
13708             #
13709             # There doesn't appear to be a way to prevent this compiler from
13710             # explicitly linking system object files so we need to strip them
13711             # from the output so that they don't get included in the library
13712             # dependencies.
13713             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'
13714             ;;
13715           *)
13716             if test "$GXX" = yes; then
13717               if test $with_gnu_ld = no; then
13718                 case $host_cpu in
13719                   hppa*64*)
13720                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721                     ;;
13722                   ia64*)
13723                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724                     ;;
13725                   *)
13726                     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'
13727                     ;;
13728                 esac
13729               fi
13730             else
13731               # FIXME: insert proper C++ library support
13732               ld_shlibs_CXX=no
13733             fi
13734             ;;
13735         esac
13736         ;;
13737
13738       interix[3-9]*)
13739         hardcode_direct_CXX=no
13740         hardcode_shlibpath_var_CXX=no
13741         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742         export_dynamic_flag_spec_CXX='${wl}-E'
13743         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13744         # Instead, shared libraries are loaded at an image base (0x10000000 by
13745         # default) and relocated if they conflict, which is a slow very memory
13746         # consuming and fragmenting process.  To avoid this, we pick a random,
13747         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13748         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13749         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'
13750         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'
13751         ;;
13752       irix5* | irix6*)
13753         case $cc_basename in
13754           CC*)
13755             # SGI C++
13756             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'
13757
13758             # Archives containing C++ object files must be created using
13759             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13760             # necessary to make sure instantiated templates are included
13761             # in the archive.
13762             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13763             ;;
13764           *)
13765             if test "$GXX" = yes; then
13766               if test "$with_gnu_ld" = no; then
13767                 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'
13768               else
13769                 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'
13770               fi
13771             fi
13772             link_all_deplibs_CXX=yes
13773             ;;
13774         esac
13775         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776         hardcode_libdir_separator_CXX=:
13777         inherit_rpath_CXX=yes
13778         ;;
13779
13780       linux* | k*bsd*-gnu)
13781         case $cc_basename in
13782           KCC*)
13783             # Kuck and Associates, Inc. (KAI) C++ Compiler
13784
13785             # KCC will only create a shared library if the output file
13786             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787             # to its proper name (with version) after linking.
13788             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'
13789             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'
13790             # Commands to make compiler produce verbose output that lists
13791             # what "hidden" libraries, object files and flags are used when
13792             # linking a shared library.
13793             #
13794             # There doesn't appear to be a way to prevent this compiler from
13795             # explicitly linking system object files so we need to strip them
13796             # from the output so that they don't get included in the library
13797             # dependencies.
13798             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'
13799
13800             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13801             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13802
13803             # Archives containing C++ object files must be created using
13804             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13805             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13806             ;;
13807           icpc* | ecpc* )
13808             # Intel C++
13809             with_gnu_ld=yes
13810             # version 8.0 and above of icpc choke on multiply defined symbols
13811             # if we add $predep_objects and $postdep_objects, however 7.1 and
13812             # earlier do not add the objects themselves.
13813             case `$CC -V 2>&1` in
13814               *"Version 7."*)
13815                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816                 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'
13817                 ;;
13818               *)  # Version 8.0 or newer
13819                 tmp_idyn=
13820                 case $host_cpu in
13821                   ia64*) tmp_idyn=' -i_dynamic';;
13822                 esac
13823                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824                 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'
13825                 ;;
13826             esac
13827             archive_cmds_need_lc_CXX=no
13828             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13831             ;;
13832           pgCC* | pgcpp*)
13833             # Portland Group C++ compiler
13834             case `$CC -V` in
13835             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13836               prelink_cmds_CXX='tpldir=Template.dir~
13837                 rm -rf $tpldir~
13838                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13839                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13840               old_archive_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13843                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13844                 $RANLIB $oldlib'
13845               archive_cmds_CXX='tpldir=Template.dir~
13846                 rm -rf $tpldir~
13847                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13848                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13849               archive_expsym_cmds_CXX='tpldir=Template.dir~
13850                 rm -rf $tpldir~
13851                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852                 $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'
13853               ;;
13854             *) # Version 6 will use weak symbols
13855               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856               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'
13857               ;;
13858             esac
13859
13860             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13861             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13862             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'
13863             ;;
13864           cxx*)
13865             # Compaq C++
13866             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867             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'
13868
13869             runpath_var=LD_RUN_PATH
13870             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13871             hardcode_libdir_separator_CXX=:
13872
13873             # Commands to make compiler produce verbose output that lists
13874             # what "hidden" libraries, object files and flags are used when
13875             # linking a shared library.
13876             #
13877             # There doesn't appear to be a way to prevent this compiler from
13878             # explicitly linking system object files so we need to strip them
13879             # from the output so that they don't get included in the library
13880             # dependencies.
13881             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'
13882             ;;
13883           xl*)
13884             # IBM XL 8.0 on PPC, with GNU ld
13885             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13887             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888             if test "x$supports_anon_versioning" = xyes; then
13889               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13890                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891                 echo "local: *; };" >> $output_objdir/$libname.ver~
13892                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13893             fi
13894             ;;
13895           *)
13896             case `$CC -V 2>&1 | sed 5q` in
13897             *Sun\ C*)
13898               # Sun C++ 5.9
13899               no_undefined_flag_CXX=' -zdefs'
13900               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13901               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'
13902               hardcode_libdir_flag_spec_CXX='-R$libdir'
13903               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'
13904               compiler_needs_object_CXX=yes
13905
13906               # Not sure whether something based on
13907               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13908               # would be better.
13909               output_verbose_link_cmd='echo'
13910
13911               # Archives containing C++ object files must be created using
13912               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13913               # necessary to make sure instantiated templates are included
13914               # in the archive.
13915               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13916               ;;
13917             esac
13918             ;;
13919         esac
13920         ;;
13921
13922       lynxos*)
13923         # FIXME: insert proper C++ library support
13924         ld_shlibs_CXX=no
13925         ;;
13926
13927       m88k*)
13928         # FIXME: insert proper C++ library support
13929         ld_shlibs_CXX=no
13930         ;;
13931
13932       mvs*)
13933         case $cc_basename in
13934           cxx*)
13935             # FIXME: insert proper C++ library support
13936             ld_shlibs_CXX=no
13937             ;;
13938           *)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942         esac
13943         ;;
13944
13945       netbsd*)
13946         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13947           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13948           wlarc=
13949           hardcode_libdir_flag_spec_CXX='-R$libdir'
13950           hardcode_direct_CXX=yes
13951           hardcode_shlibpath_var_CXX=no
13952         fi
13953         # Workaround some broken pre-1.5 toolchains
13954         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13955         ;;
13956
13957       *nto* | *qnx*)
13958         ld_shlibs_CXX=yes
13959         ;;
13960
13961       openbsd2*)
13962         # C++ shared libraries are fairly broken
13963         ld_shlibs_CXX=no
13964         ;;
13965
13966       openbsd*)
13967         if test -f /usr/libexec/ld.so; then
13968           hardcode_direct_CXX=yes
13969           hardcode_shlibpath_var_CXX=no
13970           hardcode_direct_absolute_CXX=yes
13971           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13972           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13975             export_dynamic_flag_spec_CXX='${wl}-E'
13976             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13977           fi
13978           output_verbose_link_cmd=echo
13979         else
13980           ld_shlibs_CXX=no
13981         fi
13982         ;;
13983
13984       osf3* | osf4* | osf5*)
13985         case $cc_basename in
13986           KCC*)
13987             # Kuck and Associates, Inc. (KAI) C++ Compiler
13988
13989             # KCC will only create a shared library if the output file
13990             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13991             # to its proper name (with version) after linking.
13992             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'
13993
13994             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13995             hardcode_libdir_separator_CXX=:
13996
13997             # Archives containing C++ object files must be created using
13998             # the KAI C++ compiler.
13999             case $host in
14000               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14001               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14002             esac
14003             ;;
14004           RCC*)
14005             # Rational C++ 2.4.1
14006             # FIXME: insert proper C++ library support
14007             ld_shlibs_CXX=no
14008             ;;
14009           cxx*)
14010             case $host in
14011               osf3*)
14012                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14013                 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'
14014                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14015                 ;;
14016               *)
14017                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14018                 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'
14019                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14020                   echo "-hidden">> $lib.exp~
14021                   $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~
14022                   $RM $lib.exp'
14023                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14024                 ;;
14025             esac
14026
14027             hardcode_libdir_separator_CXX=:
14028
14029             # Commands to make compiler produce verbose output that lists
14030             # what "hidden" libraries, object files and flags are used when
14031             # linking a shared library.
14032             #
14033             # There doesn't appear to be a way to prevent this compiler from
14034             # explicitly linking system object files so we need to strip them
14035             # from the output so that they don't get included in the library
14036             # dependencies.
14037             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'
14038             ;;
14039           *)
14040             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14041               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14042               case $host in
14043                 osf3*)
14044                   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'
14045                   ;;
14046                 *)
14047                   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'
14048                   ;;
14049               esac
14050
14051               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14052               hardcode_libdir_separator_CXX=:
14053
14054               # Commands to make compiler produce verbose output that lists
14055               # what "hidden" libraries, object files and flags are used when
14056               # linking a shared library.
14057               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14058
14059             else
14060               # FIXME: insert proper C++ library support
14061               ld_shlibs_CXX=no
14062             fi
14063             ;;
14064         esac
14065         ;;
14066
14067       psos*)
14068         # FIXME: insert proper C++ library support
14069         ld_shlibs_CXX=no
14070         ;;
14071
14072       sunos4*)
14073         case $cc_basename in
14074           CC*)
14075             # Sun C++ 4.x
14076             # FIXME: insert proper C++ library support
14077             ld_shlibs_CXX=no
14078             ;;
14079           lcc*)
14080             # Lucid
14081             # FIXME: insert proper C++ library support
14082             ld_shlibs_CXX=no
14083             ;;
14084           *)
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088         esac
14089         ;;
14090
14091       solaris*)
14092         case $cc_basename in
14093           CC*)
14094             # Sun C++ 4.2, 5.x and Centerline C++
14095             archive_cmds_need_lc_CXX=yes
14096             no_undefined_flag_CXX=' -zdefs'
14097             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14099               $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'
14100
14101             hardcode_libdir_flag_spec_CXX='-R$libdir'
14102             hardcode_shlibpath_var_CXX=no
14103             case $host_os in
14104               solaris2.[0-5] | solaris2.[0-5].*) ;;
14105               *)
14106                 # The compiler driver will combine and reorder linker options,
14107                 # but understands `-z linker_flag'.
14108                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14109                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14110                 ;;
14111             esac
14112             link_all_deplibs_CXX=yes
14113
14114             output_verbose_link_cmd='echo'
14115
14116             # Archives containing C++ object files must be created using
14117             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14118             # necessary to make sure instantiated templates are included
14119             # in the archive.
14120             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14121             ;;
14122           gcx*)
14123             # Green Hills C++ Compiler
14124             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14125
14126             # The C++ compiler must be used to create the archive.
14127             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14128             ;;
14129           *)
14130             # GNU C++ compiler with Solaris linker
14131             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14132               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14133               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14134                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14137
14138                 # Commands to make compiler produce verbose output that lists
14139                 # what "hidden" libraries, object files and flags are used when
14140                 # linking a shared library.
14141                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14142               else
14143                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14144                 # platform.
14145                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14146                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14147                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14148
14149                 # Commands to make compiler produce verbose output that lists
14150                 # what "hidden" libraries, object files and flags are used when
14151                 # linking a shared library.
14152                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14153               fi
14154
14155               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14156               case $host_os in
14157                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14158                 *)
14159                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14160                   ;;
14161               esac
14162             fi
14163             ;;
14164         esac
14165         ;;
14166
14167     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14168       no_undefined_flag_CXX='${wl}-z,text'
14169       archive_cmds_need_lc_CXX=no
14170       hardcode_shlibpath_var_CXX=no
14171       runpath_var='LD_RUN_PATH'
14172
14173       case $cc_basename in
14174         CC*)
14175           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177           ;;
14178         *)
14179           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           ;;
14182       esac
14183       ;;
14184
14185       sysv5* | sco3.2v5* | sco5v6*)
14186         # Note: We can NOT use -z defs as we might desire, because we do not
14187         # link with -lc, and that would cause any symbols used from libc to
14188         # always be unresolved, which means just about no library would
14189         # ever link correctly.  If we're not using GNU ld we use -z text
14190         # though, which does catch some bad symbols but isn't as heavy-handed
14191         # as -z defs.
14192         no_undefined_flag_CXX='${wl}-z,text'
14193         allow_undefined_flag_CXX='${wl}-z,nodefs'
14194         archive_cmds_need_lc_CXX=no
14195         hardcode_shlibpath_var_CXX=no
14196         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14197         hardcode_libdir_separator_CXX=':'
14198         link_all_deplibs_CXX=yes
14199         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14200         runpath_var='LD_RUN_PATH'
14201
14202         case $cc_basename in
14203           CC*)
14204             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206             ;;
14207           *)
14208             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             ;;
14211         esac
14212       ;;
14213
14214       tandem*)
14215         case $cc_basename in
14216           NCC*)
14217             # NonStop-UX NCC 3.20
14218             # FIXME: insert proper C++ library support
14219             ld_shlibs_CXX=no
14220             ;;
14221           *)
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225         esac
14226         ;;
14227
14228       vxworks*)
14229         # FIXME: insert proper C++ library support
14230         ld_shlibs_CXX=no
14231         ;;
14232
14233       *)
14234         # FIXME: insert proper C++ library support
14235         ld_shlibs_CXX=no
14236         ;;
14237     esac
14238
14239     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14240 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14241     test "$ld_shlibs_CXX" = no && can_build_shared=no
14242
14243     GCC_CXX="$GXX"
14244     LD_CXX="$LD"
14245
14246     ## CAVEAT EMPTOR:
14247     ## There is no encapsulation within the following macros, do not change
14248     ## the running order or otherwise move them around unless you know exactly
14249     ## what you are doing...
14250     # Dependencies to place before and after the object being linked:
14251 predep_objects_CXX=
14252 postdep_objects_CXX=
14253 predeps_CXX=
14254 postdeps_CXX=
14255 compiler_lib_search_path_CXX=
14256
14257 cat > conftest.$ac_ext <<_LT_EOF
14258 class Foo
14259 {
14260 public:
14261   Foo (void) { a = 0; }
14262 private:
14263   int a;
14264 };
14265 _LT_EOF
14266
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; then
14272   # Parse the compiler output and extract the necessary
14273   # objects, libraries and library flags.
14274
14275   # Sentinel used to keep track of whether or not we are before
14276   # the conftest object file.
14277   pre_test_object_deps_done=no
14278
14279   for p in `eval "$output_verbose_link_cmd"`; do
14280     case $p in
14281
14282     -L* | -R* | -l*)
14283        # Some compilers place space between "-{L,R}" and the path.
14284        # Remove the space.
14285        if test $p = "-L" ||
14286           test $p = "-R"; then
14287          prev=$p
14288          continue
14289        else
14290          prev=
14291        fi
14292
14293        if test "$pre_test_object_deps_done" = no; then
14294          case $p in
14295          -L* | -R*)
14296            # Internal compiler library paths should come after those
14297            # provided the user.  The postdeps already come after the
14298            # user supplied libs so there is no need to process them.
14299            if test -z "$compiler_lib_search_path_CXX"; then
14300              compiler_lib_search_path_CXX="${prev}${p}"
14301            else
14302              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14303            fi
14304            ;;
14305          # The "-l" case would never come before the object being
14306          # linked, so don't bother handling this case.
14307          esac
14308        else
14309          if test -z "$postdeps_CXX"; then
14310            postdeps_CXX="${prev}${p}"
14311          else
14312            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14313          fi
14314        fi
14315        ;;
14316
14317     *.$objext)
14318        # This assumes that the test object file only shows up
14319        # once in the compiler output.
14320        if test "$p" = "conftest.$objext"; then
14321          pre_test_object_deps_done=yes
14322          continue
14323        fi
14324
14325        if test "$pre_test_object_deps_done" = no; then
14326          if test -z "$predep_objects_CXX"; then
14327            predep_objects_CXX="$p"
14328          else
14329            predep_objects_CXX="$predep_objects_CXX $p"
14330          fi
14331        else
14332          if test -z "$postdep_objects_CXX"; then
14333            postdep_objects_CXX="$p"
14334          else
14335            postdep_objects_CXX="$postdep_objects_CXX $p"
14336          fi
14337        fi
14338        ;;
14339
14340     *) ;; # Ignore the rest.
14341
14342     esac
14343   done
14344
14345   # Clean up.
14346   rm -f a.out a.exe
14347 else
14348   echo "libtool.m4: error: problem compiling CXX test program"
14349 fi
14350
14351 $RM -f confest.$objext
14352
14353 # PORTME: override above test on systems where it is broken
14354 case $host_os in
14355 interix[3-9]*)
14356   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14357   # hack all around it, let's just trust "g++" to DTRT.
14358   predep_objects_CXX=
14359   postdep_objects_CXX=
14360   postdeps_CXX=
14361   ;;
14362
14363 linux*)
14364   case `$CC -V 2>&1 | sed 5q` in
14365   *Sun\ C*)
14366     # Sun C++ 5.9
14367
14368     # The more standards-conforming stlport4 library is
14369     # incompatible with the Cstd library. Avoid specifying
14370     # it if it's in CXXFLAGS. Ignore libCrun as
14371     # -library=stlport4 depends on it.
14372     case " $CXX $CXXFLAGS " in
14373     *" -library=stlport4 "*)
14374       solaris_use_stlport4=yes
14375       ;;
14376     esac
14377
14378     if test "$solaris_use_stlport4" != yes; then
14379       postdeps_CXX='-library=Cstd -library=Crun'
14380     fi
14381     ;;
14382   esac
14383   ;;
14384
14385 solaris*)
14386   case $cc_basename in
14387   CC*)
14388     # The more standards-conforming stlport4 library is
14389     # incompatible with the Cstd library. Avoid specifying
14390     # it if it's in CXXFLAGS. Ignore libCrun as
14391     # -library=stlport4 depends on it.
14392     case " $CXX $CXXFLAGS " in
14393     *" -library=stlport4 "*)
14394       solaris_use_stlport4=yes
14395       ;;
14396     esac
14397
14398     # Adding this requires a known-good setup of shared libraries for
14399     # Sun compiler versions before 5.6, else PIC objects from an old
14400     # archive will be linked into the output, leading to subtle bugs.
14401     if test "$solaris_use_stlport4" != yes; then
14402       postdeps_CXX='-library=Cstd -library=Crun'
14403     fi
14404     ;;
14405   esac
14406   ;;
14407 esac
14408
14409
14410 case " $postdeps_CXX " in
14411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14412 esac
14413  compiler_lib_search_dirs_CXX=
14414 if test -n "${compiler_lib_search_path_CXX}"; then
14415  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14416 fi
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448     lt_prog_compiler_wl_CXX=
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_static_CXX=
14451
14452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14454
14455   # C++ specific cases for pic, static, wl, etc.
14456   if test "$GXX" = yes; then
14457     lt_prog_compiler_wl_CXX='-Wl,'
14458     lt_prog_compiler_static_CXX='-static'
14459
14460     case $host_os in
14461     aix*)
14462       # All AIX code is PIC.
14463       if test "$host_cpu" = ia64; then
14464         # AIX 5 now supports IA64 processor
14465         lt_prog_compiler_static_CXX='-Bstatic'
14466       fi
14467       ;;
14468
14469     amigaos*)
14470       case $host_cpu in
14471       powerpc)
14472             # see comment about AmigaOS4 .so support
14473             lt_prog_compiler_pic_CXX='-fPIC'
14474         ;;
14475       m68k)
14476             # FIXME: we need at least 68020 code to build shared libraries, but
14477             # adding the `-m68020' flag to GCC prevents building anything better,
14478             # like `-m68040'.
14479             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14480         ;;
14481       esac
14482       ;;
14483
14484     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14485       # PIC is the default for these OSes.
14486       ;;
14487     mingw* | cygwin* | os2* | pw32* | cegcc*)
14488       # This hack is so that the source file can tell whether it is being
14489       # built for inclusion in a dll (and should export symbols for example).
14490       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14491       # (--disable-auto-import) libraries
14492       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14493       ;;
14494     darwin* | rhapsody*)
14495       # PIC is the default on this platform
14496       # Common symbols not allowed in MH_DYLIB files
14497       lt_prog_compiler_pic_CXX='-fno-common'
14498       ;;
14499     *djgpp*)
14500       # DJGPP does not support shared libraries at all
14501       lt_prog_compiler_pic_CXX=
14502       ;;
14503     interix[3-9]*)
14504       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14505       # Instead, we relocate shared libraries at runtime.
14506       ;;
14507     sysv4*MP*)
14508       if test -d /usr/nec; then
14509         lt_prog_compiler_pic_CXX=-Kconform_pic
14510       fi
14511       ;;
14512     hpux*)
14513       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14514       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14515       # sets the default TLS model and affects inlining.
14516       case $host_cpu in
14517       hppa*64*)
14518         ;;
14519       *)
14520         lt_prog_compiler_pic_CXX='-fPIC'
14521         ;;
14522       esac
14523       ;;
14524     *qnx* | *nto*)
14525       # QNX uses GNU C++, but need to define -shared option too, otherwise
14526       # it will coredump.
14527       lt_prog_compiler_pic_CXX='-fPIC -shared'
14528       ;;
14529     *)
14530       lt_prog_compiler_pic_CXX='-fPIC'
14531       ;;
14532     esac
14533   else
14534     case $host_os in
14535       aix[4-9]*)
14536         # All AIX code is PIC.
14537         if test "$host_cpu" = ia64; then
14538           # AIX 5 now supports IA64 processor
14539           lt_prog_compiler_static_CXX='-Bstatic'
14540         else
14541           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14542         fi
14543         ;;
14544       chorus*)
14545         case $cc_basename in
14546         cxch68*)
14547           # Green Hills C++ Compiler
14548           # _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"
14549           ;;
14550         esac
14551         ;;
14552       dgux*)
14553         case $cc_basename in
14554           ec++*)
14555             lt_prog_compiler_pic_CXX='-KPIC'
14556             ;;
14557           ghcx*)
14558             # Green Hills C++ Compiler
14559             lt_prog_compiler_pic_CXX='-pic'
14560             ;;
14561           *)
14562             ;;
14563         esac
14564         ;;
14565       freebsd* | dragonfly*)
14566         # FreeBSD uses GNU C++
14567         ;;
14568       hpux9* | hpux10* | hpux11*)
14569         case $cc_basename in
14570           CC*)
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14573             if test "$host_cpu" != ia64; then
14574               lt_prog_compiler_pic_CXX='+Z'
14575             fi
14576             ;;
14577           aCC*)
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580             case $host_cpu in
14581             hppa*64*|ia64*)
14582               # +Z the default
14583               ;;
14584             *)
14585               lt_prog_compiler_pic_CXX='+Z'
14586               ;;
14587             esac
14588             ;;
14589           *)
14590             ;;
14591         esac
14592         ;;
14593       interix*)
14594         # This is c89, which is MS Visual C++ (no shared libs)
14595         # Anyone wants to do a port?
14596         ;;
14597       irix5* | irix6* | nonstopux*)
14598         case $cc_basename in
14599           CC*)
14600             lt_prog_compiler_wl_CXX='-Wl,'
14601             lt_prog_compiler_static_CXX='-non_shared'
14602             # CC pic flag -KPIC is the default.
14603             ;;
14604           *)
14605             ;;
14606         esac
14607         ;;
14608       linux* | k*bsd*-gnu)
14609         case $cc_basename in
14610           KCC*)
14611             # KAI C++ Compiler
14612             lt_prog_compiler_wl_CXX='--backend -Wl,'
14613             lt_prog_compiler_pic_CXX='-fPIC'
14614             ;;
14615           ecpc* )
14616             # old Intel C++ for x86_64 which still supported -KPIC.
14617             lt_prog_compiler_wl_CXX='-Wl,'
14618             lt_prog_compiler_pic_CXX='-KPIC'
14619             lt_prog_compiler_static_CXX='-static'
14620             ;;
14621           icpc* )
14622             # Intel C++, used to be incompatible with GCC.
14623             # ICC 10 doesn't accept -KPIC any more.
14624             lt_prog_compiler_wl_CXX='-Wl,'
14625             lt_prog_compiler_pic_CXX='-fPIC'
14626             lt_prog_compiler_static_CXX='-static'
14627             ;;
14628           pgCC* | pgcpp*)
14629             # Portland Group C++ compiler
14630             lt_prog_compiler_wl_CXX='-Wl,'
14631             lt_prog_compiler_pic_CXX='-fpic'
14632             lt_prog_compiler_static_CXX='-Bstatic'
14633             ;;
14634           cxx*)
14635             # Compaq C++
14636             # Make sure the PIC flag is empty.  It appears that all Alpha
14637             # Linux and Compaq Tru64 Unix objects are PIC.
14638             lt_prog_compiler_pic_CXX=
14639             lt_prog_compiler_static_CXX='-non_shared'
14640             ;;
14641           xlc* | xlC*)
14642             # IBM XL 8.0 on PPC
14643             lt_prog_compiler_wl_CXX='-Wl,'
14644             lt_prog_compiler_pic_CXX='-qpic'
14645             lt_prog_compiler_static_CXX='-qstaticlink'
14646             ;;
14647           *)
14648             case `$CC -V 2>&1 | sed 5q` in
14649             *Sun\ C*)
14650               # Sun C++ 5.9
14651               lt_prog_compiler_pic_CXX='-KPIC'
14652               lt_prog_compiler_static_CXX='-Bstatic'
14653               lt_prog_compiler_wl_CXX='-Qoption ld '
14654               ;;
14655             esac
14656             ;;
14657         esac
14658         ;;
14659       lynxos*)
14660         ;;
14661       m88k*)
14662         ;;
14663       mvs*)
14664         case $cc_basename in
14665           cxx*)
14666             lt_prog_compiler_pic_CXX='-W c,exportall'
14667             ;;
14668           *)
14669             ;;
14670         esac
14671         ;;
14672       netbsd*)
14673         ;;
14674       *qnx* | *nto*)
14675         # QNX uses GNU C++, but need to define -shared option too, otherwise
14676         # it will coredump.
14677         lt_prog_compiler_pic_CXX='-fPIC -shared'
14678         ;;
14679       osf3* | osf4* | osf5*)
14680         case $cc_basename in
14681           KCC*)
14682             lt_prog_compiler_wl_CXX='--backend -Wl,'
14683             ;;
14684           RCC*)
14685             # Rational C++ 2.4.1
14686             lt_prog_compiler_pic_CXX='-pic'
14687             ;;
14688           cxx*)
14689             # Digital/Compaq C++
14690             lt_prog_compiler_wl_CXX='-Wl,'
14691             # Make sure the PIC flag is empty.  It appears that all Alpha
14692             # Linux and Compaq Tru64 Unix objects are PIC.
14693             lt_prog_compiler_pic_CXX=
14694             lt_prog_compiler_static_CXX='-non_shared'
14695             ;;
14696           *)
14697             ;;
14698         esac
14699         ;;
14700       psos*)
14701         ;;
14702       solaris*)
14703         case $cc_basename in
14704           CC*)
14705             # Sun C++ 4.2, 5.x and Centerline C++
14706             lt_prog_compiler_pic_CXX='-KPIC'
14707             lt_prog_compiler_static_CXX='-Bstatic'
14708             lt_prog_compiler_wl_CXX='-Qoption ld '
14709             ;;
14710           gcx*)
14711             # Green Hills C++ Compiler
14712             lt_prog_compiler_pic_CXX='-PIC'
14713             ;;
14714           *)
14715             ;;
14716         esac
14717         ;;
14718       sunos4*)
14719         case $cc_basename in
14720           CC*)
14721             # Sun C++ 4.x
14722             lt_prog_compiler_pic_CXX='-pic'
14723             lt_prog_compiler_static_CXX='-Bstatic'
14724             ;;
14725           lcc*)
14726             # Lucid
14727             lt_prog_compiler_pic_CXX='-pic'
14728             ;;
14729           *)
14730             ;;
14731         esac
14732         ;;
14733       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14734         case $cc_basename in
14735           CC*)
14736             lt_prog_compiler_wl_CXX='-Wl,'
14737             lt_prog_compiler_pic_CXX='-KPIC'
14738             lt_prog_compiler_static_CXX='-Bstatic'
14739             ;;
14740         esac
14741         ;;
14742       tandem*)
14743         case $cc_basename in
14744           NCC*)
14745             # NonStop-UX NCC 3.20
14746             lt_prog_compiler_pic_CXX='-KPIC'
14747             ;;
14748           *)
14749             ;;
14750         esac
14751         ;;
14752       vxworks*)
14753         ;;
14754       *)
14755         lt_prog_compiler_can_build_shared_CXX=no
14756         ;;
14757     esac
14758   fi
14759
14760 case $host_os in
14761   # For platforms which do not support PIC, -DPIC is meaningless:
14762   *djgpp*)
14763     lt_prog_compiler_pic_CXX=
14764     ;;
14765   *)
14766     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14767     ;;
14768 esac
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14771
14772
14773
14774 #
14775 # Check to make sure the PIC flag actually works.
14776 #
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14780 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   lt_cv_prog_compiler_pic_works_CXX=no
14784    ac_outfile=conftest.$ac_objext
14785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787    # Insert the option either (1) after the last *FLAGS variable, or
14788    # (2) before a word containing "conftest.", or (3) at the end.
14789    # Note that $ac_compile itself does not contain backslashes and begins
14790    # with a dollar sign (not a hyphen), so the echo should work correctly.
14791    # The option is referenced via a variable to avoid confusing sed.
14792    lt_compile=`echo "$ac_compile" | $SED \
14793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795    -e 's:$: $lt_compiler_flag:'`
14796    (eval echo "\"\$as_me:14796: $lt_compile\"" >&5)
14797    (eval "$lt_compile" 2>conftest.err)
14798    ac_status=$?
14799    cat conftest.err >&5
14800    echo "$as_me:14800: \$? = $ac_status" >&5
14801    if (exit $ac_status) && test -s "$ac_outfile"; then
14802      # The compiler can only warn and ignore the option if not recognized
14803      # So say no if there are warnings other than the usual output.
14804      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807        lt_cv_prog_compiler_pic_works_CXX=yes
14808      fi
14809    fi
14810    $RM conftest*
14811
14812 fi
14813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14815
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817     case $lt_prog_compiler_pic_CXX in
14818      "" | " "*) ;;
14819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14820      esac
14821 else
14822     lt_prog_compiler_pic_CXX=
14823      lt_prog_compiler_can_build_shared_CXX=no
14824 fi
14825
14826 fi
14827
14828
14829
14830 #
14831 # Check to make sure the static flag actually works.
14832 #
14833 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14834 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14835 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839   lt_cv_prog_compiler_static_works_CXX=no
14840    save_LDFLAGS="$LDFLAGS"
14841    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14842    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14843    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14844      # The linker can only warn and ignore the option if not recognized
14845      # So say no if there are warnings
14846      if test -s conftest.err; then
14847        # Append any errors to the config.log.
14848        cat conftest.err 1>&5
14849        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14850        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851        if diff conftest.exp conftest.er2 >/dev/null; then
14852          lt_cv_prog_compiler_static_works_CXX=yes
14853        fi
14854      else
14855        lt_cv_prog_compiler_static_works_CXX=yes
14856      fi
14857    fi
14858    $RM -r conftest*
14859    LDFLAGS="$save_LDFLAGS"
14860
14861 fi
14862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14863 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14864
14865 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14866     :
14867 else
14868     lt_prog_compiler_static_CXX=
14869 fi
14870
14871
14872
14873
14874     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   lt_cv_prog_compiler_c_o_CXX=no
14880    $RM -r conftest 2>/dev/null
14881    mkdir conftest
14882    cd conftest
14883    mkdir out
14884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885
14886    lt_compiler_flag="-o out/conftest2.$ac_objext"
14887    # Insert the option either (1) after the last *FLAGS variable, or
14888    # (2) before a word containing "conftest.", or (3) at the end.
14889    # Note that $ac_compile itself does not contain backslashes and begins
14890    # with a dollar sign (not a hyphen), so the echo should work correctly.
14891    lt_compile=`echo "$ac_compile" | $SED \
14892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894    -e 's:$: $lt_compiler_flag:'`
14895    (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896    (eval "$lt_compile" 2>out/conftest.err)
14897    ac_status=$?
14898    cat out/conftest.err >&5
14899    echo "$as_me:14899: \$? = $ac_status" >&5
14900    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14901    then
14902      # The compiler can only warn and ignore the option if not recognized
14903      # So say no if there are warnings
14904      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907        lt_cv_prog_compiler_c_o_CXX=yes
14908      fi
14909    fi
14910    chmod u+w . 2>&5
14911    $RM conftest*
14912    # SGI C++ compiler will create directory out/ii_files/ for
14913    # template instantiation
14914    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915    $RM out/* && rmdir out
14916    cd ..
14917    $RM -r conftest
14918    $RM conftest*
14919
14920 fi
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14923
14924
14925
14926     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   lt_cv_prog_compiler_c_o_CXX=no
14932    $RM -r conftest 2>/dev/null
14933    mkdir conftest
14934    cd conftest
14935    mkdir out
14936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14937
14938    lt_compiler_flag="-o out/conftest2.$ac_objext"
14939    # Insert the option either (1) after the last *FLAGS variable, or
14940    # (2) before a word containing "conftest.", or (3) at the end.
14941    # Note that $ac_compile itself does not contain backslashes and begins
14942    # with a dollar sign (not a hyphen), so the echo should work correctly.
14943    lt_compile=`echo "$ac_compile" | $SED \
14944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946    -e 's:$: $lt_compiler_flag:'`
14947    (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
14948    (eval "$lt_compile" 2>out/conftest.err)
14949    ac_status=$?
14950    cat out/conftest.err >&5
14951    echo "$as_me:14951: \$? = $ac_status" >&5
14952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14953    then
14954      # The compiler can only warn and ignore the option if not recognized
14955      # So say no if there are warnings
14956      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14959        lt_cv_prog_compiler_c_o_CXX=yes
14960      fi
14961    fi
14962    chmod u+w . 2>&5
14963    $RM conftest*
14964    # SGI C++ compiler will create directory out/ii_files/ for
14965    # template instantiation
14966    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14967    $RM out/* && rmdir out
14968    cd ..
14969    $RM -r conftest
14970    $RM conftest*
14971
14972 fi
14973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14975
14976
14977
14978
14979 hard_links="nottested"
14980 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14981   # do not overwrite the value of need_locks provided by the user
14982   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14984   hard_links=yes
14985   $RM conftest*
14986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14987   touch conftest.a
14988   ln conftest.a conftest.b 2>&5 || hard_links=no
14989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990   { echo "$as_me:$LINENO: result: $hard_links" >&5
14991 echo "${ECHO_T}$hard_links" >&6; }
14992   if test "$hard_links" = no; then
14993     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14995     need_locks=warn
14996   fi
14997 else
14998   need_locks=no
14999 fi
15000
15001
15002
15003     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15005
15006   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15007   case $host_os in
15008   aix[4-9]*)
15009     # If we're using GNU nm, then we don't want the "-C" option.
15010     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15011     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15012       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'
15013     else
15014       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'
15015     fi
15016     ;;
15017   pw32*)
15018     export_symbols_cmds_CXX="$ltdll_cmds"
15019   ;;
15020   cygwin* | mingw* | cegcc*)
15021     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'
15022   ;;
15023   *)
15024     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15025   ;;
15026   esac
15027   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15028
15029 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15030 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15031 test "$ld_shlibs_CXX" = no && can_build_shared=no
15032
15033 with_gnu_ld_CXX=$with_gnu_ld
15034
15035
15036
15037
15038
15039
15040 #
15041 # Do we need to explicitly link libc?
15042 #
15043 case "x$archive_cmds_need_lc_CXX" in
15044 x|xyes)
15045   # Assume -lc should be added
15046   archive_cmds_need_lc_CXX=yes
15047
15048   if test "$enable_shared" = yes && test "$GCC" = yes; then
15049     case $archive_cmds_CXX in
15050     *'~'*)
15051       # FIXME: we may have to deal with multi-command sequences.
15052       ;;
15053     '$CC '*)
15054       # Test whether the compiler implicitly links with -lc since on some
15055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15056       # to ld, don't add -lc before -lgcc.
15057       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15059       $RM conftest*
15060       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15061
15062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063   (eval $ac_compile) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } 2>conftest.err; then
15067         soname=conftest
15068         lib=conftest
15069         libobjs=conftest.$ac_objext
15070         deplibs=
15071         wl=$lt_prog_compiler_wl_CXX
15072         pic_flag=$lt_prog_compiler_pic_CXX
15073         compiler_flags=-v
15074         linker_flags=-v
15075         verstring=
15076         output_objdir=.
15077         libname=conftest
15078         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15079         allow_undefined_flag_CXX=
15080         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15081   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }
15085         then
15086           archive_cmds_need_lc_CXX=no
15087         else
15088           archive_cmds_need_lc_CXX=yes
15089         fi
15090         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15091       else
15092         cat conftest.err 1>&5
15093       fi
15094       $RM conftest*
15095       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15096 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15097       ;;
15098     esac
15099   fi
15100   ;;
15101 esac
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
15159
15160
15161
15162
15163
15164
15165
15166     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15168
15169 library_names_spec=
15170 libname_spec='lib$name'
15171 soname_spec=
15172 shrext_cmds=".so"
15173 postinstall_cmds=
15174 postuninstall_cmds=
15175 finish_cmds=
15176 finish_eval=
15177 shlibpath_var=
15178 shlibpath_overrides_runpath=unknown
15179 version_type=none
15180 dynamic_linker="$host_os ld.so"
15181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15182 need_lib_prefix=unknown
15183 hardcode_into_libs=no
15184
15185 # when you set need_version to no, make sure it does not cause -set_version
15186 # flags to be left without arguments
15187 need_version=unknown
15188
15189 case $host_os in
15190 aix3*)
15191   version_type=linux
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15193   shlibpath_var=LIBPATH
15194
15195   # AIX 3 has no versioning support, so we append a major version to the name.
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   ;;
15198
15199 aix[4-9]*)
15200   version_type=linux
15201   need_lib_prefix=no
15202   need_version=no
15203   hardcode_into_libs=yes
15204   if test "$host_cpu" = ia64; then
15205     # AIX 5 supports IA64
15206     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15207     shlibpath_var=LD_LIBRARY_PATH
15208   else
15209     # With GCC up to 2.95.x, collect2 would create an import file
15210     # for dependence libraries.  The import file would start with
15211     # the line `#! .'.  This would cause the generated library to
15212     # depend on `.', always an invalid library.  This was fixed in
15213     # development snapshots of GCC prior to 3.0.
15214     case $host_os in
15215       aix4 | aix4.[01] | aix4.[01].*)
15216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15217            echo ' yes '
15218            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15219         :
15220       else
15221         can_build_shared=no
15222       fi
15223       ;;
15224     esac
15225     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15226     # soname into executable. Probably we can add versioning support to
15227     # collect2, so additional links can be useful in future.
15228     if test "$aix_use_runtimelinking" = yes; then
15229       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15230       # instead of lib<name>.a to let people know that these are not
15231       # typical AIX shared libraries.
15232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233     else
15234       # We preserve .a as extension for shared libraries through AIX4.2
15235       # and later when we are not doing run time linking.
15236       library_names_spec='${libname}${release}.a $libname.a'
15237       soname_spec='${libname}${release}${shared_ext}$major'
15238     fi
15239     shlibpath_var=LIBPATH
15240   fi
15241   ;;
15242
15243 amigaos*)
15244   case $host_cpu in
15245   powerpc)
15246     # Since July 2007 AmigaOS4 officially supports .so libraries.
15247     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249     ;;
15250   m68k)
15251     library_names_spec='$libname.ixlibrary $libname.a'
15252     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15253     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'
15254     ;;
15255   esac
15256   ;;
15257
15258 beos*)
15259   library_names_spec='${libname}${shared_ext}'
15260   dynamic_linker="$host_os ld.so"
15261   shlibpath_var=LIBRARY_PATH
15262   ;;
15263
15264 bsdi[45]*)
15265   version_type=linux
15266   need_version=no
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15272   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15273   # the default ld.so.conf also contains /usr/contrib/lib and
15274   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15275   # libtool to hard-code these into programs
15276   ;;
15277
15278 cygwin* | mingw* | pw32* | cegcc*)
15279   version_type=windows
15280   shrext_cmds=".dll"
15281   need_version=no
15282   need_lib_prefix=no
15283
15284   case $GCC,$host_os in
15285   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15286     library_names_spec='$libname.dll.a'
15287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288     postinstall_cmds='base_file=`basename \${file}`~
15289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15290       dldir=$destdir/`dirname \$dlpath`~
15291       test -d \$dldir || mkdir -p \$dldir~
15292       $install_prog $dir/$dlname \$dldir/$dlname~
15293       chmod a+x \$dldir/$dlname~
15294       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15296       fi'
15297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298       dlpath=$dir/\$dldll~
15299        $RM \$dlpath'
15300     shlibpath_overrides_runpath=yes
15301
15302     case $host_os in
15303     cygwin*)
15304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15307       ;;
15308     mingw* | cegcc*)
15309       # MinGW DLLs use traditional 'lib' prefix
15310       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15312       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15313         # It is most probably a Windows format PATH printed by
15314         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15315         # path with ; separators, and with drive letters. We can handle the
15316         # drive letters (cygwin fileutils understands them), so leave them,
15317         # especially as we might pass files found there to a mingw objdump,
15318         # which wouldn't understand a cygwinified path. Ahh.
15319         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15320       else
15321         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15322       fi
15323       ;;
15324     pw32*)
15325       # pw32 DLLs use 'pw' prefix rather than 'lib'
15326       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327       ;;
15328     esac
15329     ;;
15330
15331   *)
15332     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15333     ;;
15334   esac
15335   dynamic_linker='Win32 ld.exe'
15336   # FIXME: first we should search . and the directory the executable is in
15337   shlibpath_var=PATH
15338   ;;
15339
15340 darwin* | rhapsody*)
15341   dynamic_linker="$host_os dyld"
15342   version_type=darwin
15343   need_lib_prefix=no
15344   need_version=no
15345   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15346   soname_spec='${libname}${release}${major}$shared_ext'
15347   shlibpath_overrides_runpath=yes
15348   shlibpath_var=DYLD_LIBRARY_PATH
15349   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15350
15351   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15352   ;;
15353
15354 dgux*)
15355   version_type=linux
15356   need_lib_prefix=no
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   shlibpath_var=LD_LIBRARY_PATH
15361   ;;
15362
15363 freebsd1*)
15364   dynamic_linker=no
15365   ;;
15366
15367 freebsd* | dragonfly*)
15368   # DragonFly does not have aout.  When/if they implement a new
15369   # versioning mechanism, adjust this.
15370   if test -x /usr/bin/objformat; then
15371     objformat=`/usr/bin/objformat`
15372   else
15373     case $host_os in
15374     freebsd[123]*) objformat=aout ;;
15375     *) objformat=elf ;;
15376     esac
15377   fi
15378   version_type=freebsd-$objformat
15379   case $version_type in
15380     freebsd-elf*)
15381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15382       need_version=no
15383       need_lib_prefix=no
15384       ;;
15385     freebsd-*)
15386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15387       need_version=yes
15388       ;;
15389   esac
15390   shlibpath_var=LD_LIBRARY_PATH
15391   case $host_os in
15392   freebsd2*)
15393     shlibpath_overrides_runpath=yes
15394     ;;
15395   freebsd3.[01]* | freebsdelf3.[01]*)
15396     shlibpath_overrides_runpath=yes
15397     hardcode_into_libs=yes
15398     ;;
15399   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401     shlibpath_overrides_runpath=no
15402     hardcode_into_libs=yes
15403     ;;
15404   *) # from 4.6 on, and DragonFly
15405     shlibpath_overrides_runpath=yes
15406     hardcode_into_libs=yes
15407     ;;
15408   esac
15409   ;;
15410
15411 gnu*)
15412   version_type=linux
15413   need_lib_prefix=no
15414   need_version=no
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416   soname_spec='${libname}${release}${shared_ext}$major'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   hardcode_into_libs=yes
15419   ;;
15420
15421 hpux9* | hpux10* | hpux11*)
15422   # Give a soname corresponding to the major version so that dld.sl refuses to
15423   # link against other versions.
15424   version_type=sunos
15425   need_lib_prefix=no
15426   need_version=no
15427   case $host_cpu in
15428   ia64*)
15429     shrext_cmds='.so'
15430     hardcode_into_libs=yes
15431     dynamic_linker="$host_os dld.so"
15432     shlibpath_var=LD_LIBRARY_PATH
15433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435     soname_spec='${libname}${release}${shared_ext}$major'
15436     if test "X$HPUX_IA64_MODE" = X32; then
15437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438     else
15439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440     fi
15441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442     ;;
15443   hppa*64*)
15444     shrext_cmds='.sl'
15445     hardcode_into_libs=yes
15446     dynamic_linker="$host_os dld.sl"
15447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450     soname_spec='${libname}${release}${shared_ext}$major'
15451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453     ;;
15454   *)
15455     shrext_cmds='.sl'
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=SHLIB_PATH
15458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460     soname_spec='${libname}${release}${shared_ext}$major'
15461     ;;
15462   esac
15463   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464   postinstall_cmds='chmod 555 $lib'
15465   ;;
15466
15467 interix[3-9]*)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=no
15476   hardcode_into_libs=yes
15477   ;;
15478
15479 irix5* | irix6* | nonstopux*)
15480   case $host_os in
15481     nonstopux*) version_type=nonstopux ;;
15482     *)
15483         if test "$lt_cv_prog_gnu_ld" = yes; then
15484                 version_type=linux
15485         else
15486                 version_type=irix
15487         fi ;;
15488   esac
15489   need_lib_prefix=no
15490   need_version=no
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493   case $host_os in
15494   irix5* | nonstopux*)
15495     libsuff= shlibsuff=
15496     ;;
15497   *)
15498     case $LD in # libtool.m4 will add one of these switches to LD
15499     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500       libsuff= shlibsuff= libmagic=32-bit;;
15501     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502       libsuff=32 shlibsuff=N32 libmagic=N32;;
15503     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505     *) libsuff= shlibsuff= libmagic=never-match;;
15506     esac
15507     ;;
15508   esac
15509   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510   shlibpath_overrides_runpath=no
15511   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513   hardcode_into_libs=yes
15514   ;;
15515
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15518   dynamic_linker=no
15519   ;;
15520
15521 # This must be Linux ELF.
15522 linux* | k*bsd*-gnu)
15523   version_type=linux
15524   need_lib_prefix=no
15525   need_version=no
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527   soname_spec='${libname}${release}${shared_ext}$major'
15528   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529   shlibpath_var=LD_LIBRARY_PATH
15530   shlibpath_overrides_runpath=no
15531   # Some binutils ld are patched to set DT_RUNPATH
15532   save_LDFLAGS=$LDFLAGS
15533   save_libdir=$libdir
15534   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15535        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15536   cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543 int
15544 main ()
15545 {
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555   *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558   (eval "$ac_link") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && {
15565          test -z "$ac_cxx_werror_flag" ||
15566          test ! -s conftest.err
15567        } && test -s conftest$ac_exeext &&
15568        $as_test_x conftest$ac_exeext; then
15569   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15570   shlibpath_overrides_runpath=yes
15571 fi
15572
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577
15578 fi
15579
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581       conftest$ac_exeext conftest.$ac_ext
15582   LDFLAGS=$save_LDFLAGS
15583   libdir=$save_libdir
15584
15585   # This implies no fast_install, which is unacceptable.
15586   # Some rework will be needed to allow for fast_install
15587   # before this can be enabled.
15588   hardcode_into_libs=yes
15589
15590   # Append ld.so.conf contents to the search path
15591   if test -f /etc/ld.so.conf; then
15592     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' ' '`
15593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15594   fi
15595
15596   # We used to test for /lib/ld.so.1 and disable shared libraries on
15597   # powerpc, because MkLinux only supported shared libraries with the
15598   # GNU dynamic linker.  Since this was broken with cross compilers,
15599   # most powerpc-linux boxes support dynamic linking these days and
15600   # people can always --disable-shared, the test was removed, and we
15601   # assume the GNU/Linux dynamic linker is in use.
15602   dynamic_linker='GNU/Linux ld.so'
15603   ;;
15604
15605 netbsd*)
15606   version_type=sunos
15607   need_lib_prefix=no
15608   need_version=no
15609   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612     dynamic_linker='NetBSD (a.out) ld.so'
15613   else
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15615     soname_spec='${libname}${release}${shared_ext}$major'
15616     dynamic_linker='NetBSD ld.elf_so'
15617   fi
15618   shlibpath_var=LD_LIBRARY_PATH
15619   shlibpath_overrides_runpath=yes
15620   hardcode_into_libs=yes
15621   ;;
15622
15623 newsos6)
15624   version_type=linux
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   shlibpath_overrides_runpath=yes
15628   ;;
15629
15630 *nto* | *qnx*)
15631   version_type=qnx
15632   need_lib_prefix=no
15633   need_version=no
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=no
15638   hardcode_into_libs=yes
15639   dynamic_linker='ldqnx.so'
15640   ;;
15641
15642 openbsd*)
15643   version_type=sunos
15644   sys_lib_dlsearch_path_spec="/usr/lib"
15645   need_lib_prefix=no
15646   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15647   case $host_os in
15648     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15649     *)                          need_version=no  ;;
15650   esac
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15655     case $host_os in
15656       openbsd2.[89] | openbsd2.[89].*)
15657         shlibpath_overrides_runpath=no
15658         ;;
15659       *)
15660         shlibpath_overrides_runpath=yes
15661         ;;
15662       esac
15663   else
15664     shlibpath_overrides_runpath=yes
15665   fi
15666   ;;
15667
15668 os2*)
15669   libname_spec='$name'
15670   shrext_cmds=".dll"
15671   need_lib_prefix=no
15672   library_names_spec='$libname${shared_ext} $libname.a'
15673   dynamic_linker='OS/2 ld.exe'
15674   shlibpath_var=LIBPATH
15675   ;;
15676
15677 osf3* | osf4* | osf5*)
15678   version_type=osf
15679   need_lib_prefix=no
15680   need_version=no
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   shlibpath_var=LD_LIBRARY_PATH
15684   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15685   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15686   ;;
15687
15688 rdos*)
15689   dynamic_linker=no
15690   ;;
15691
15692 solaris*)
15693   version_type=linux
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=yes
15700   hardcode_into_libs=yes
15701   # ldd complains unless libraries are executable
15702   postinstall_cmds='chmod +x $lib'
15703   ;;
15704
15705 sunos4*)
15706   version_type=sunos
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15708   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   shlibpath_overrides_runpath=yes
15711   if test "$with_gnu_ld" = yes; then
15712     need_lib_prefix=no
15713   fi
15714   need_version=yes
15715   ;;
15716
15717 sysv4 | sysv4.3*)
15718   version_type=linux
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   soname_spec='${libname}${release}${shared_ext}$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   case $host_vendor in
15723     sni)
15724       shlibpath_overrides_runpath=no
15725       need_lib_prefix=no
15726       runpath_var=LD_RUN_PATH
15727       ;;
15728     siemens)
15729       need_lib_prefix=no
15730       ;;
15731     motorola)
15732       need_lib_prefix=no
15733       need_version=no
15734       shlibpath_overrides_runpath=no
15735       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15736       ;;
15737   esac
15738   ;;
15739
15740 sysv4*MP*)
15741   if test -d /usr/nec ;then
15742     version_type=linux
15743     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15744     soname_spec='$libname${shared_ext}.$major'
15745     shlibpath_var=LD_LIBRARY_PATH
15746   fi
15747   ;;
15748
15749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15750   version_type=freebsd-elf
15751   need_lib_prefix=no
15752   need_version=no
15753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15754   soname_spec='${libname}${release}${shared_ext}$major'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   shlibpath_overrides_runpath=yes
15757   hardcode_into_libs=yes
15758   if test "$with_gnu_ld" = yes; then
15759     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15760   else
15761     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15762     case $host_os in
15763       sco3.2v5*)
15764         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15765         ;;
15766     esac
15767   fi
15768   sys_lib_dlsearch_path_spec='/usr/lib'
15769   ;;
15770
15771 tpf*)
15772   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15773   version_type=linux
15774   need_lib_prefix=no
15775   need_version=no
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=no
15779   hardcode_into_libs=yes
15780   ;;
15781
15782 uts4*)
15783   version_type=linux
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   ;;
15788
15789 *)
15790   dynamic_linker=no
15791   ;;
15792 esac
15793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15794 echo "${ECHO_T}$dynamic_linker" >&6; }
15795 test "$dynamic_linker" = no && can_build_shared=no
15796
15797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15798 if test "$GCC" = yes; then
15799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15800 fi
15801
15802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15803   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15804 fi
15805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15806   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15807 fi
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
15837
15838
15839
15840
15841
15842
15843
15844     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15846 hardcode_action_CXX=
15847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15848    test -n "$runpath_var_CXX" ||
15849    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15850
15851   # We can hardcode non-existent directories.
15852   if test "$hardcode_direct_CXX" != no &&
15853      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15854      # have to relink, otherwise we might link with an installed library
15855      # when we should be linking with a yet-to-be-installed one
15856      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15857      test "$hardcode_minus_L_CXX" != no; then
15858     # Linking always hardcodes the temporary library directory.
15859     hardcode_action_CXX=relink
15860   else
15861     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15862     hardcode_action_CXX=immediate
15863   fi
15864 else
15865   # We cannot hardcode anything, or else we can only hardcode existing
15866   # directories.
15867   hardcode_action_CXX=unsupported
15868 fi
15869 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15870 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15871
15872 if test "$hardcode_action_CXX" = relink ||
15873    test "$inherit_rpath_CXX" = yes; then
15874   # Fast installation is not supported
15875   enable_fast_install=no
15876 elif test "$shlibpath_overrides_runpath" = yes ||
15877      test "$enable_shared" = no; then
15878   # Fast installation is not necessary
15879   enable_fast_install=needless
15880 fi
15881
15882
15883
15884
15885
15886
15887
15888   fi # test -n "$compiler"
15889
15890   CC=$lt_save_CC
15891   LDCXX=$LD
15892   LD=$lt_save_LD
15893   GCC=$lt_save_GCC
15894   with_gnu_ld=$lt_save_with_gnu_ld
15895   lt_cv_path_LDCXX=$lt_cv_path_LD
15896   lt_cv_path_LD=$lt_save_path_LD
15897   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15898   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15899 fi # test "$_lt_caught_CXX_error" != yes
15900
15901 ac_ext=c
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919         ac_config_commands="$ac_config_commands libtool"
15920
15921
15922
15923
15924 # Only expand once:
15925
15926
15927
15928
15929 if test x$use_libtool != xno; then
15930    DEFAULT_OBJECT_TYPE=".lo"
15931    DEFAULT_ARCHIVE_TYPE=".la"
15932    DEFAULT_SHARED_OBJECT_TYPE=".la"
15933    LIBTOOL="\$(LIBTOOL)"
15934    LIBTOOL_INSTALL_TARGET="libtool-install"
15935    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15936    LIBTOOL_CLEAN_TARGET="libtool-clean"
15937    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15938 else
15939    DEFAULT_OBJECT_TYPE=".o"
15940    DEFAULT_ARCHIVE_TYPE=".a"
15941    DEFAULT_SHARED_OBJECT_TYPE=".so"
15942    LIBTOOL="# \$(LIBTOOL)"
15943    LIBTOOL_INSTALL_TARGET=""
15944    LIBTOOL_UNINSTALL_TARGET=""
15945    LIBTOOL_CLEAN_TARGET=""
15946    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15947 fi
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958 # Check whether --enable-includes was given.
15959 if test "${enable_includes+set}" = set; then
15960   enableval=$enable_includes;
15961        if test x$enableval = xyes; then
15962           install_includes=yes
15963        fi
15964
15965
15966 fi
15967
15968
15969
15970 if test x$use_libtool != xno -a x$install_includes = xyes; then
15971    INCLUDE_INSTALL_TARGET="install-includes"
15972    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15973 else
15974    INCLUDE_INSTALL_TARGET=""
15975    INCLUDE_UNINSTALL_TARGET=""
15976 fi
15977
15978
15979
15980
15981 { echo "$as_me:$LINENO: checking host system type" >&5
15982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15983 if test "${ac_cv_host+set}" = set; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   if test "x$host_alias" = x; then
15987   ac_cv_host=$ac_cv_build
15988 else
15989   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15990     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15992    { (exit 1); exit 1; }; }
15993 fi
15994
15995 fi
15996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15997 echo "${ECHO_T}$ac_cv_host" >&6; }
15998 case $ac_cv_host in
15999 *-*-*) ;;
16000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16001 echo "$as_me: error: invalid value of canonical host" >&2;}
16002    { (exit 1); exit 1; }; };;
16003 esac
16004 host=$ac_cv_host
16005 ac_save_IFS=$IFS; IFS='-'
16006 set x $ac_cv_host
16007 shift
16008 host_cpu=$1
16009 host_vendor=$2
16010 shift; shift
16011 # Remember, the first character of IFS is used to create $*,
16012 # except with old shells:
16013 host_os=$*
16014 IFS=$ac_save_IFS
16015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16016
16017
16018 case $host_os in
16019   *cygwin* ) CYGWIN=yes;;
16020          * ) CYGWIN=no;;
16021 esac
16022
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16024 then
16025
16026
16027 if $TRUEPRG; then
16028   HAVE_SUN_OS_TRUE=
16029   HAVE_SUN_OS_FALSE='#'
16030 else
16031   HAVE_SUN_OS_TRUE='#'
16032   HAVE_SUN_OS_FALSE=
16033 fi
16034         cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_SUN_OS 1
16036 _ACEOF
16037
16038 else
16039
16040
16041 if $FALSEPRG; then
16042   HAVE_SUN_OS_TRUE=
16043   HAVE_SUN_OS_FALSE='#'
16044 else
16045   HAVE_SUN_OS_TRUE='#'
16046   HAVE_SUN_OS_FALSE=
16047 fi
16048 fi
16049
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16051 then
16052
16053
16054 if $TRUEPRG; then
16055   HAVE_OSF1_OS_TRUE=
16056   HAVE_OSF1_OS_FALSE='#'
16057 else
16058   HAVE_OSF1_OS_TRUE='#'
16059   HAVE_OSF1_OS_FALSE=
16060 fi
16061         cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_OSF1_OS 1
16063 _ACEOF
16064
16065 else
16066
16067
16068 if $FALSEPRG; then
16069   HAVE_OSF1_OS_TRUE=
16070   HAVE_OSF1_OS_FALSE='#'
16071 else
16072   HAVE_OSF1_OS_TRUE='#'
16073   HAVE_OSF1_OS_FALSE=
16074 fi
16075 fi
16076
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16078 then
16079
16080
16081 if $TRUEPRG; then
16082   HAVE_AIX_OS_TRUE=
16083   HAVE_AIX_OS_FALSE='#'
16084 else
16085   HAVE_AIX_OS_TRUE='#'
16086   HAVE_AIX_OS_FALSE=
16087 fi
16088         cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_AIX_OS 1
16090 _ACEOF
16091
16092 else
16093
16094
16095 if $FALSEPRG; then
16096   HAVE_AIX_OS_TRUE=
16097   HAVE_AIX_OS_FALSE='#'
16098 else
16099   HAVE_AIX_OS_TRUE='#'
16100   HAVE_AIX_OS_FALSE=
16101 fi
16102 fi
16103
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16105 then
16106
16107
16108 if $TRUEPRG; then
16109   HAVE_HPUX_OS_TRUE=
16110   HAVE_HPUX_OS_FALSE='#'
16111 else
16112   HAVE_HPUX_OS_TRUE='#'
16113   HAVE_HPUX_OS_FALSE=
16114 fi
16115         cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_HPUX_OS 1
16117 _ACEOF
16118
16119 else
16120
16121
16122 if $FALSEPRG; then
16123   HAVE_HPUX_OS_TRUE=
16124   HAVE_HPUX_OS_FALSE='#'
16125 else
16126   HAVE_HPUX_OS_TRUE='#'
16127   HAVE_HPUX_OS_FALSE=
16128 fi
16129 fi
16130
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16132 then
16133
16134
16135 if $TRUEPRG; then
16136   HAVE_LINUX_OS_TRUE=
16137   HAVE_LINUX_OS_FALSE='#'
16138 else
16139   HAVE_LINUX_OS_TRUE='#'
16140   HAVE_LINUX_OS_FALSE=
16141 fi
16142         cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_LINUX_OS 1
16144 _ACEOF
16145
16146 else
16147
16148
16149 if $FALSEPRG; then
16150   HAVE_LINUX_OS_TRUE=
16151   HAVE_LINUX_OS_FALSE='#'
16152 else
16153   HAVE_LINUX_OS_TRUE='#'
16154   HAVE_LINUX_OS_FALSE=
16155 fi
16156 fi
16157
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16159 then
16160
16161
16162 if $TRUEPRG; then
16163   HAVE_FREEBSD_OS_TRUE=
16164   HAVE_FREEBSD_OS_FALSE='#'
16165 else
16166   HAVE_FREEBSD_OS_TRUE='#'
16167   HAVE_FREEBSD_OS_FALSE=
16168 fi
16169         cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_FREEBSD_OS 1
16171 _ACEOF
16172
16173 else
16174
16175
16176 if $FALSEPRG; then
16177   HAVE_FREEBSD_OS_TRUE=
16178   HAVE_FREEBSD_OS_FALSE='#'
16179 else
16180   HAVE_FREEBSD_OS_TRUE='#'
16181   HAVE_FREEBSD_OS_FALSE=
16182 fi
16183 fi
16184
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16186 then
16187
16188
16189 if $TRUEPRG; then
16190   HAVE_NETBSD_OS_TRUE=
16191   HAVE_NETBSD_OS_FALSE='#'
16192 else
16193   HAVE_NETBSD_OS_TRUE='#'
16194   HAVE_NETBSD_OS_FALSE=
16195 fi
16196         cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_NETBSD_OS 1
16198 _ACEOF
16199
16200 else
16201
16202
16203 if $FALSEPRG; then
16204   HAVE_NETBSD_OS_TRUE=
16205   HAVE_NETBSD_OS_FALSE='#'
16206 else
16207   HAVE_NETBSD_OS_TRUE='#'
16208   HAVE_NETBSD_OS_FALSE=
16209 fi
16210 fi
16211
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16213 then
16214
16215
16216 if $TRUEPRG; then
16217   HAVE_OPENBSD_OS_TRUE=
16218   HAVE_OPENBSD_OS_FALSE='#'
16219 else
16220   HAVE_OPENBSD_OS_TRUE='#'
16221   HAVE_OPENBSD_OS_FALSE=
16222 fi
16223         cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_OPENBSD_OS 1
16225 _ACEOF
16226
16227 else
16228
16229
16230 if $FALSEPRG; then
16231   HAVE_OPENBSD_OS_TRUE=
16232   HAVE_OPENBSD_OS_FALSE='#'
16233 else
16234   HAVE_OPENBSD_OS_TRUE='#'
16235   HAVE_OPENBSD_OS_FALSE=
16236 fi
16237 fi
16238
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16240 then
16241
16242
16243 if $TRUEPRG; then
16244   HAVE_BSDI_OS_TRUE=
16245   HAVE_BSDI_OS_FALSE='#'
16246 else
16247   HAVE_BSDI_OS_TRUE='#'
16248   HAVE_BSDI_OS_FALSE=
16249 fi
16250         cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_BSDI_OS 1
16252 _ACEOF
16253
16254 else
16255
16256
16257 if $FALSEPRG; then
16258   HAVE_BSDI_OS_TRUE=
16259   HAVE_BSDI_OS_FALSE='#'
16260 else
16261   HAVE_BSDI_OS_TRUE='#'
16262   HAVE_BSDI_OS_FALSE=
16263 fi
16264 fi
16265
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16267 then
16268
16269
16270 if $TRUEPRG; then
16271   HAVE_SGI_OS_TRUE=
16272   HAVE_SGI_OS_FALSE='#'
16273 else
16274   HAVE_SGI_OS_TRUE='#'
16275   HAVE_SGI_OS_FALSE=
16276 fi
16277         cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SGI_OS 1
16279 _ACEOF
16280
16281 else
16282
16283
16284 if $FALSEPRG; then
16285   HAVE_SGI_OS_TRUE=
16286   HAVE_SGI_OS_FALSE='#'
16287 else
16288   HAVE_SGI_OS_TRUE='#'
16289   HAVE_SGI_OS_FALSE=
16290 fi
16291 fi
16292
16293 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16294 then
16295
16296
16297 if $TRUEPRG; then
16298   HAVE_IRIX_OS_TRUE=
16299   HAVE_IRIX_OS_FALSE='#'
16300 else
16301   HAVE_IRIX_OS_TRUE='#'
16302   HAVE_IRIX_OS_FALSE=
16303 fi
16304         cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IRIX_OS 1
16306 _ACEOF
16307
16308 else
16309
16310
16311 if $FALSEPRG; then
16312   HAVE_IRIX_OS_TRUE=
16313   HAVE_IRIX_OS_FALSE='#'
16314 else
16315   HAVE_IRIX_OS_TRUE='#'
16316   HAVE_IRIX_OS_FALSE=
16317 fi
16318 fi
16319
16320 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16321 then
16322
16323
16324 if $TRUEPRG; then
16325   HAVE_DARWIN_OS_TRUE=
16326   HAVE_DARWIN_OS_FALSE='#'
16327 else
16328   HAVE_DARWIN_OS_TRUE='#'
16329   HAVE_DARWIN_OS_FALSE=
16330 fi
16331     cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_DARWIN_OS 1
16333 _ACEOF
16334
16335 else
16336
16337
16338 if $FALSEPRG; then
16339   HAVE_DARWIN_OS_TRUE=
16340   HAVE_DARWIN_OS_FALSE='#'
16341 else
16342   HAVE_DARWIN_OS_TRUE='#'
16343   HAVE_DARWIN_OS_FALSE=
16344 fi
16345 fi
16346
16347
16348 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16349 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16350 if test "x$DISTNAME" != "x"
16351 then
16352         echo "distname set to $DISTNAME"
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16354 then
16355         DISTNAME=alpha
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16357 then
16358         DISTNAME=aix
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16360 then
16361         DISTNAME=hpux
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16363 then
16364         DISTNAME=solaris
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16366 then
16367         DISTNAME=freebsd
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16369 then
16370         DISTNAME=netbsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16372 then
16373         DISTNAME=openbsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16375 then
16376         DISTNAME=irix
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16378 then
16379         DISTNAME=bsdi
16380 elif test -f /etc/SuSE-release
16381 then
16382         DISTNAME=suse
16383 elif test -d /etc/SuSEconfig
16384 then
16385         DISTNAME=suse5
16386 elif test -f /etc/mandrake-release
16387 then
16388         DISTNAME=mandrake
16389 elif test -f /etc/whitebox-release
16390 then
16391        DISTNAME=redhat
16392 elif test -f /etc/redhat-release
16393 then
16394         DISTNAME=redhat
16395 elif test -f /etc/gentoo-release
16396 then
16397         DISTNAME=gentoo
16398 elif test -f /etc/debian_version
16399 then
16400         DISTNAME=debian
16401 elif test -f /etc/slackware-version
16402 then
16403         DISTNAME=slackware
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 "$CYGWIN" = yes
16411 then
16412         DISTNAME=cygwin
16413         cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_CYGWIN 1
16415 _ACEOF
16416
16417 else
16418         DISTNAME=unknown
16419 fi
16420 { echo "$as_me:$LINENO: result: done" >&5
16421 echo "${ECHO_T}done" >&6; }
16422
16423
16424 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16426 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16427 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   cat >conftest.make <<\_ACEOF
16431 SHELL = /bin/sh
16432 all:
16433         @echo '@@@%%%=$(MAKE)=@@@%%%'
16434 _ACEOF
16435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16436 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16437   *@@@%%%=?*=@@@%%%*)
16438     eval ac_cv_prog_make_${ac_make}_set=yes;;
16439   *)
16440     eval ac_cv_prog_make_${ac_make}_set=no;;
16441 esac
16442 rm -f conftest.make
16443 fi
16444 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16445   { echo "$as_me:$LINENO: result: yes" >&5
16446 echo "${ECHO_T}yes" >&6; }
16447   SET_MAKE=
16448 else
16449   { echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6; }
16451   SET_MAKE="MAKE=${MAKE-make}"
16452 fi
16453
16454
16455
16456         MKINSTALLDIRS=
16457   if test -n "$ac_aux_dir"; then
16458     case "$ac_aux_dir" in
16459       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16460       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16461     esac
16462   fi
16463   if test -z "$MKINSTALLDIRS"; then
16464     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16465   fi
16466
16467
16468
16469   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16470 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16471     # Check whether --enable-nls was given.
16472 if test "${enable_nls+set}" = set; then
16473   enableval=$enable_nls; USE_NLS=$enableval
16474 else
16475   USE_NLS=yes
16476 fi
16477
16478   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16479 echo "${ECHO_T}$USE_NLS" >&6; }
16480
16481
16482
16483
16484
16485
16486 # Prepare PATH_SEPARATOR.
16487 # The user is always right.
16488 if test "${PATH_SEPARATOR+set}" != set; then
16489   echo "#! /bin/sh" >conf$$.sh
16490   echo  "exit 0"   >>conf$$.sh
16491   chmod +x conf$$.sh
16492   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16493     PATH_SEPARATOR=';'
16494   else
16495     PATH_SEPARATOR=:
16496   fi
16497   rm -f conf$$.sh
16498 fi
16499
16500 # Find out how to test for executable files. Don't use a zero-byte file,
16501 # as systems may use methods other than mode bits to determine executability.
16502 cat >conf$$.file <<_ASEOF
16503 #! /bin/sh
16504 exit 0
16505 _ASEOF
16506 chmod +x conf$$.file
16507 if test -x conf$$.file >/dev/null 2>&1; then
16508   ac_executable_p="test -x"
16509 else
16510   ac_executable_p="test -f"
16511 fi
16512 rm -f conf$$.file
16513
16514 # Extract the first word of "msgfmt", so it can be a program name with args.
16515 set dummy msgfmt; ac_word=$2
16516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16518 if test "${ac_cv_path_MSGFMT+set}" = set; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   case "$MSGFMT" in
16522   [\\/]* | ?:[\\/]*)
16523     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16524     ;;
16525   *)
16526     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16527     for ac_dir in $PATH; do
16528       IFS="$ac_save_IFS"
16529       test -z "$ac_dir" && ac_dir=.
16530       for ac_exec_ext in '' $ac_executable_extensions; do
16531         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16532           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16533           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16534      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16535             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16536             break 2
16537           fi
16538         fi
16539       done
16540     done
16541     IFS="$ac_save_IFS"
16542   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16543     ;;
16544 esac
16545 fi
16546 MSGFMT="$ac_cv_path_MSGFMT"
16547 if test "$MSGFMT" != ":"; then
16548   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16549 echo "${ECHO_T}$MSGFMT" >&6; }
16550 else
16551   { echo "$as_me:$LINENO: result: no" >&5
16552 echo "${ECHO_T}no" >&6; }
16553 fi
16554
16555   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16556 set dummy gmsgfmt; ac_word=$2
16557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16559 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   case $GMSGFMT in
16563   [\\/]* | ?:[\\/]*)
16564   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16565   ;;
16566   *)
16567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570   IFS=$as_save_IFS
16571   test -z "$as_dir" && as_dir=.
16572   for ac_exec_ext in '' $ac_executable_extensions; do
16573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16574     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576     break 2
16577   fi
16578 done
16579 done
16580 IFS=$as_save_IFS
16581
16582   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16583   ;;
16584 esac
16585 fi
16586 GMSGFMT=$ac_cv_path_GMSGFMT
16587 if test -n "$GMSGFMT"; then
16588   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16589 echo "${ECHO_T}$GMSGFMT" >&6; }
16590 else
16591   { echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6; }
16593 fi
16594
16595
16596
16597
16598 # Prepare PATH_SEPARATOR.
16599 # The user is always right.
16600 if test "${PATH_SEPARATOR+set}" != set; then
16601   echo "#! /bin/sh" >conf$$.sh
16602   echo  "exit 0"   >>conf$$.sh
16603   chmod +x conf$$.sh
16604   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16605     PATH_SEPARATOR=';'
16606   else
16607     PATH_SEPARATOR=:
16608   fi
16609   rm -f conf$$.sh
16610 fi
16611
16612 # Find out how to test for executable files. Don't use a zero-byte file,
16613 # as systems may use methods other than mode bits to determine executability.
16614 cat >conf$$.file <<_ASEOF
16615 #! /bin/sh
16616 exit 0
16617 _ASEOF
16618 chmod +x conf$$.file
16619 if test -x conf$$.file >/dev/null 2>&1; then
16620   ac_executable_p="test -x"
16621 else
16622   ac_executable_p="test -f"
16623 fi
16624 rm -f conf$$.file
16625
16626 # Extract the first word of "xgettext", so it can be a program name with args.
16627 set dummy xgettext; ac_word=$2
16628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16630 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   case "$XGETTEXT" in
16634   [\\/]* | ?:[\\/]*)
16635     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16636     ;;
16637   *)
16638     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16639     for ac_dir in $PATH; do
16640       IFS="$ac_save_IFS"
16641       test -z "$ac_dir" && ac_dir=.
16642       for ac_exec_ext in '' $ac_executable_extensions; do
16643         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16644           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16645           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16646      (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
16647             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16648             break 2
16649           fi
16650         fi
16651       done
16652     done
16653     IFS="$ac_save_IFS"
16654   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16655     ;;
16656 esac
16657 fi
16658 XGETTEXT="$ac_cv_path_XGETTEXT"
16659 if test "$XGETTEXT" != ":"; then
16660   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16661 echo "${ECHO_T}$XGETTEXT" >&6; }
16662 else
16663   { echo "$as_me:$LINENO: result: no" >&5
16664 echo "${ECHO_T}no" >&6; }
16665 fi
16666
16667     rm -f messages.po
16668
16669
16670 # Prepare PATH_SEPARATOR.
16671 # The user is always right.
16672 if test "${PATH_SEPARATOR+set}" != set; then
16673   echo "#! /bin/sh" >conf$$.sh
16674   echo  "exit 0"   >>conf$$.sh
16675   chmod +x conf$$.sh
16676   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16677     PATH_SEPARATOR=';'
16678   else
16679     PATH_SEPARATOR=:
16680   fi
16681   rm -f conf$$.sh
16682 fi
16683
16684 # Find out how to test for executable files. Don't use a zero-byte file,
16685 # as systems may use methods other than mode bits to determine executability.
16686 cat >conf$$.file <<_ASEOF
16687 #! /bin/sh
16688 exit 0
16689 _ASEOF
16690 chmod +x conf$$.file
16691 if test -x conf$$.file >/dev/null 2>&1; then
16692   ac_executable_p="test -x"
16693 else
16694   ac_executable_p="test -f"
16695 fi
16696 rm -f conf$$.file
16697
16698 # Extract the first word of "msgmerge", so it can be a program name with args.
16699 set dummy msgmerge; ac_word=$2
16700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16702 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   case "$MSGMERGE" in
16706   [\\/]* | ?:[\\/]*)
16707     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16708     ;;
16709   *)
16710     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16711     for ac_dir in $PATH; do
16712       IFS="$ac_save_IFS"
16713       test -z "$ac_dir" && ac_dir=.
16714       for ac_exec_ext in '' $ac_executable_extensions; do
16715         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16716           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16717           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16718             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16719             break 2
16720           fi
16721         fi
16722       done
16723     done
16724     IFS="$ac_save_IFS"
16725   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16726     ;;
16727 esac
16728 fi
16729 MSGMERGE="$ac_cv_path_MSGMERGE"
16730 if test "$MSGMERGE" != ":"; then
16731   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16732 echo "${ECHO_T}$MSGMERGE" >&6; }
16733 else
16734   { echo "$as_me:$LINENO: result: no" >&5
16735 echo "${ECHO_T}no" >&6; }
16736 fi
16737
16738
16739       if test "$GMSGFMT" != ":"; then
16740             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16741        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16742       : ;
16743     else
16744       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16745       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16746 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16747       GMSGFMT=":"
16748     fi
16749   fi
16750
16751       if test "$XGETTEXT" != ":"; then
16752             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16753        (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
16754       : ;
16755     else
16756       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16757 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16758       XGETTEXT=":"
16759     fi
16760         rm -f messages.po
16761   fi
16762
16763   ac_config_commands="$ac_config_commands default-1"
16764
16765
16766
16767       if test "X$prefix" = "XNONE"; then
16768     acl_final_prefix="$ac_default_prefix"
16769   else
16770     acl_final_prefix="$prefix"
16771   fi
16772   if test "X$exec_prefix" = "XNONE"; then
16773     acl_final_exec_prefix='${prefix}'
16774   else
16775     acl_final_exec_prefix="$exec_prefix"
16776   fi
16777   acl_save_prefix="$prefix"
16778   prefix="$acl_final_prefix"
16779   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16780   prefix="$acl_save_prefix"
16781
16782
16783 # Check whether --with-gnu-ld was given.
16784 if test "${with_gnu_ld+set}" = set; then
16785   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16786 else
16787   with_gnu_ld=no
16788 fi
16789
16790 # Prepare PATH_SEPARATOR.
16791 # The user is always right.
16792 if test "${PATH_SEPARATOR+set}" != set; then
16793   echo "#! /bin/sh" >conf$$.sh
16794   echo  "exit 0"   >>conf$$.sh
16795   chmod +x conf$$.sh
16796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16797     PATH_SEPARATOR=';'
16798   else
16799     PATH_SEPARATOR=:
16800   fi
16801   rm -f conf$$.sh
16802 fi
16803 ac_prog=ld
16804 if test "$GCC" = yes; then
16805   # Check if gcc -print-prog-name=ld gives a path.
16806   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16807 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16808   case $host in
16809   *-*-mingw*)
16810     # gcc leaves a trailing carriage return which upsets mingw
16811     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16812   *)
16813     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16814   esac
16815   case $ac_prog in
16816     # Accept absolute paths.
16817     [\\/]* | [A-Za-z]:[\\/]*)
16818       re_direlt='/[^/][^/]*/\.\./'
16819       # Canonicalize the path of ld
16820       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16821       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16822         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16823       done
16824       test -z "$LD" && LD="$ac_prog"
16825       ;;
16826   "")
16827     # If it fails, then pretend we aren't using GCC.
16828     ac_prog=ld
16829     ;;
16830   *)
16831     # If it is relative, then search for the first ld in PATH.
16832     with_gnu_ld=unknown
16833     ;;
16834   esac
16835 elif test "$with_gnu_ld" = yes; then
16836   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16837 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16838 else
16839   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16840 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16841 fi
16842 if test "${acl_cv_path_LD+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845   if test -z "$LD"; then
16846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16847   for ac_dir in $PATH; do
16848     test -z "$ac_dir" && ac_dir=.
16849     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16850       acl_cv_path_LD="$ac_dir/$ac_prog"
16851       # Check to see if the program is GNU ld.  I'd rather use --version,
16852       # but apparently some GNU ld's only accept -v.
16853       # Break only if it was the GNU/non-GNU ld that we prefer.
16854       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16855       *GNU* | *'with BFD'*)
16856         test "$with_gnu_ld" != no && break ;;
16857       *)
16858         test "$with_gnu_ld" != yes && break ;;
16859       esac
16860     fi
16861   done
16862   IFS="$ac_save_ifs"
16863 else
16864   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16865 fi
16866 fi
16867
16868 LD="$acl_cv_path_LD"
16869 if test -n "$LD"; then
16870   { echo "$as_me:$LINENO: result: $LD" >&5
16871 echo "${ECHO_T}$LD" >&6; }
16872 else
16873   { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16875 fi
16876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16878    { (exit 1); exit 1; }; }
16879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16881 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16885 case `$LD -v 2>&1 </dev/null` in
16886 *GNU* | *'with BFD'*)
16887   acl_cv_prog_gnu_ld=yes ;;
16888 *)
16889   acl_cv_prog_gnu_ld=no ;;
16890 esac
16891 fi
16892 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16893 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16894 with_gnu_ld=$acl_cv_prog_gnu_ld
16895
16896
16897
16898
16899                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16900 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16901 if test "${acl_cv_rpath+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904
16905     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16906     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16907     . ./conftest.sh
16908     rm -f ./conftest.sh
16909     acl_cv_rpath=done
16910
16911 fi
16912 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16913 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16914   wl="$acl_cv_wl"
16915   libext="$acl_cv_libext"
16916   shlibext="$acl_cv_shlibext"
16917   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16918   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16919   hardcode_direct="$acl_cv_hardcode_direct"
16920   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16921     # Check whether --enable-rpath was given.
16922 if test "${enable_rpath+set}" = set; then
16923   enableval=$enable_rpath; :
16924 else
16925   enable_rpath=yes
16926 fi
16927
16928
16929
16930
16931
16932
16933
16934
16935     use_additional=yes
16936
16937   acl_save_prefix="$prefix"
16938   prefix="$acl_final_prefix"
16939   acl_save_exec_prefix="$exec_prefix"
16940   exec_prefix="$acl_final_exec_prefix"
16941
16942     eval additional_includedir=\"$includedir\"
16943     eval additional_libdir=\"$libdir\"
16944
16945   exec_prefix="$acl_save_exec_prefix"
16946   prefix="$acl_save_prefix"
16947
16948
16949 # Check whether --with-libiconv-prefix was given.
16950 if test "${with_libiconv_prefix+set}" = set; then
16951   withval=$with_libiconv_prefix;
16952     if test "X$withval" = "Xno"; then
16953       use_additional=no
16954     else
16955       if test "X$withval" = "X"; then
16956
16957   acl_save_prefix="$prefix"
16958   prefix="$acl_final_prefix"
16959   acl_save_exec_prefix="$exec_prefix"
16960   exec_prefix="$acl_final_exec_prefix"
16961
16962           eval additional_includedir=\"$includedir\"
16963           eval additional_libdir=\"$libdir\"
16964
16965   exec_prefix="$acl_save_exec_prefix"
16966   prefix="$acl_save_prefix"
16967
16968       else
16969         additional_includedir="$withval/include"
16970         additional_libdir="$withval/lib"
16971       fi
16972     fi
16973
16974 fi
16975
16976       LIBICONV=
16977   LTLIBICONV=
16978   INCICONV=
16979   rpathdirs=
16980   ltrpathdirs=
16981   names_already_handled=
16982   names_next_round='iconv '
16983   while test -n "$names_next_round"; do
16984     names_this_round="$names_next_round"
16985     names_next_round=
16986     for name in $names_this_round; do
16987       already_handled=
16988       for n in $names_already_handled; do
16989         if test "$n" = "$name"; then
16990           already_handled=yes
16991           break
16992         fi
16993       done
16994       if test -z "$already_handled"; then
16995         names_already_handled="$names_already_handled $name"
16996                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16997         eval value=\"\$HAVE_LIB$uppername\"
16998         if test -n "$value"; then
16999           if test "$value" = yes; then
17000             eval value=\"\$LIB$uppername\"
17001             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17002             eval value=\"\$LTLIB$uppername\"
17003             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17004           else
17005                                     :
17006           fi
17007         else
17008                               found_dir=
17009           found_la=
17010           found_so=
17011           found_a=
17012           if test $use_additional = yes; then
17013             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17014               found_dir="$additional_libdir"
17015               found_so="$additional_libdir/lib$name.$shlibext"
17016               if test -f "$additional_libdir/lib$name.la"; then
17017                 found_la="$additional_libdir/lib$name.la"
17018               fi
17019             else
17020               if test -f "$additional_libdir/lib$name.$libext"; then
17021                 found_dir="$additional_libdir"
17022                 found_a="$additional_libdir/lib$name.$libext"
17023                 if test -f "$additional_libdir/lib$name.la"; then
17024                   found_la="$additional_libdir/lib$name.la"
17025                 fi
17026               fi
17027             fi
17028           fi
17029           if test "X$found_dir" = "X"; then
17030             for x in $LDFLAGS $LTLIBICONV; do
17031
17032   acl_save_prefix="$prefix"
17033   prefix="$acl_final_prefix"
17034   acl_save_exec_prefix="$exec_prefix"
17035   exec_prefix="$acl_final_exec_prefix"
17036   eval x=\"$x\"
17037   exec_prefix="$acl_save_exec_prefix"
17038   prefix="$acl_save_prefix"
17039
17040               case "$x" in
17041                 -L*)
17042                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17043                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17044                     found_dir="$dir"
17045                     found_so="$dir/lib$name.$shlibext"
17046                     if test -f "$dir/lib$name.la"; then
17047                       found_la="$dir/lib$name.la"
17048                     fi
17049                   else
17050                     if test -f "$dir/lib$name.$libext"; then
17051                       found_dir="$dir"
17052                       found_a="$dir/lib$name.$libext"
17053                       if test -f "$dir/lib$name.la"; then
17054                         found_la="$dir/lib$name.la"
17055                       fi
17056                     fi
17057                   fi
17058                   ;;
17059               esac
17060               if test "X$found_dir" != "X"; then
17061                 break
17062               fi
17063             done
17064           fi
17065           if test "X$found_dir" != "X"; then
17066                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17067             if test "X$found_so" != "X"; then
17068                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17069                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17070               else
17071                                                                                 haveit=
17072                 for x in $ltrpathdirs; do
17073                   if test "X$x" = "X$found_dir"; then
17074                     haveit=yes
17075                     break
17076                   fi
17077                 done
17078                 if test -z "$haveit"; then
17079                   ltrpathdirs="$ltrpathdirs $found_dir"
17080                 fi
17081                                 if test "$hardcode_direct" = yes; then
17082                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17083                 else
17084                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17085                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086                                                             haveit=
17087                     for x in $rpathdirs; do
17088                       if test "X$x" = "X$found_dir"; then
17089                         haveit=yes
17090                         break
17091                       fi
17092                     done
17093                     if test -z "$haveit"; then
17094                       rpathdirs="$rpathdirs $found_dir"
17095                     fi
17096                   else
17097                                                                                 haveit=
17098                     for x in $LDFLAGS $LIBICONV; do
17099
17100   acl_save_prefix="$prefix"
17101   prefix="$acl_final_prefix"
17102   acl_save_exec_prefix="$exec_prefix"
17103   exec_prefix="$acl_final_exec_prefix"
17104   eval x=\"$x\"
17105   exec_prefix="$acl_save_exec_prefix"
17106   prefix="$acl_save_prefix"
17107
17108                       if test "X$x" = "X-L$found_dir"; then
17109                         haveit=yes
17110                         break
17111                       fi
17112                     done
17113                     if test -z "$haveit"; then
17114                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17115                     fi
17116                     if test "$hardcode_minus_L" != no; then
17117                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17118                     else
17119                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17120                     fi
17121                   fi
17122                 fi
17123               fi
17124             else
17125               if test "X$found_a" != "X"; then
17126                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17127               else
17128                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17129               fi
17130             fi
17131                         additional_includedir=
17132             case "$found_dir" in
17133               */lib | */lib/)
17134                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17135                 additional_includedir="$basedir/include"
17136                 ;;
17137             esac
17138             if test "X$additional_includedir" != "X"; then
17139                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17140                 haveit=
17141                 if test "X$additional_includedir" = "X/usr/local/include"; then
17142                   if test -n "$GCC"; then
17143                     case $host_os in
17144                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17145                     esac
17146                   fi
17147                 fi
17148                 if test -z "$haveit"; then
17149                   for x in $CPPFLAGS $INCICONV; do
17150
17151   acl_save_prefix="$prefix"
17152   prefix="$acl_final_prefix"
17153   acl_save_exec_prefix="$exec_prefix"
17154   exec_prefix="$acl_final_exec_prefix"
17155   eval x=\"$x\"
17156   exec_prefix="$acl_save_exec_prefix"
17157   prefix="$acl_save_prefix"
17158
17159                     if test "X$x" = "X-I$additional_includedir"; then
17160                       haveit=yes
17161                       break
17162                     fi
17163                   done
17164                   if test -z "$haveit"; then
17165                     if test -d "$additional_includedir"; then
17166                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17167                     fi
17168                   fi
17169                 fi
17170               fi
17171             fi
17172                         if test -n "$found_la"; then
17173                                                         save_libdir="$libdir"
17174               case "$found_la" in
17175                 */* | *\\*) . "$found_la" ;;
17176                 *) . "./$found_la" ;;
17177               esac
17178               libdir="$save_libdir"
17179                             for dep in $dependency_libs; do
17180                 case "$dep" in
17181                   -L*)
17182                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17183                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17184                       haveit=
17185                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17186                         if test -n "$GCC"; then
17187                           case $host_os in
17188                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17189                           esac
17190                         fi
17191                       fi
17192                       if test -z "$haveit"; then
17193                         haveit=
17194                         for x in $LDFLAGS $LIBICONV; do
17195
17196   acl_save_prefix="$prefix"
17197   prefix="$acl_final_prefix"
17198   acl_save_exec_prefix="$exec_prefix"
17199   exec_prefix="$acl_final_exec_prefix"
17200   eval x=\"$x\"
17201   exec_prefix="$acl_save_exec_prefix"
17202   prefix="$acl_save_prefix"
17203
17204                           if test "X$x" = "X-L$additional_libdir"; then
17205                             haveit=yes
17206                             break
17207                           fi
17208                         done
17209                         if test -z "$haveit"; then
17210                           if test -d "$additional_libdir"; then
17211                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17212                           fi
17213                         fi
17214                         haveit=
17215                         for x in $LDFLAGS $LTLIBICONV; do
17216
17217   acl_save_prefix="$prefix"
17218   prefix="$acl_final_prefix"
17219   acl_save_exec_prefix="$exec_prefix"
17220   exec_prefix="$acl_final_exec_prefix"
17221   eval x=\"$x\"
17222   exec_prefix="$acl_save_exec_prefix"
17223   prefix="$acl_save_prefix"
17224
17225                           if test "X$x" = "X-L$additional_libdir"; then
17226                             haveit=yes
17227                             break
17228                           fi
17229                         done
17230                         if test -z "$haveit"; then
17231                           if test -d "$additional_libdir"; then
17232                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17233                           fi
17234                         fi
17235                       fi
17236                     fi
17237                     ;;
17238                   -R*)
17239                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17240                     if test "$enable_rpath" != no; then
17241                                                                   haveit=
17242                       for x in $rpathdirs; do
17243                         if test "X$x" = "X$dir"; then
17244                           haveit=yes
17245                           break
17246                         fi
17247                       done
17248                       if test -z "$haveit"; then
17249                         rpathdirs="$rpathdirs $dir"
17250                       fi
17251                                                                   haveit=
17252                       for x in $ltrpathdirs; do
17253                         if test "X$x" = "X$dir"; then
17254                           haveit=yes
17255                           break
17256                         fi
17257                       done
17258                       if test -z "$haveit"; then
17259                         ltrpathdirs="$ltrpathdirs $dir"
17260                       fi
17261                     fi
17262                     ;;
17263                   -l*)
17264                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17265                     ;;
17266                   *.la)
17267                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17268                     ;;
17269                   *)
17270                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17271                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17272                     ;;
17273                 esac
17274               done
17275             fi
17276           else
17277                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17278             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17279           fi
17280         fi
17281       fi
17282     done
17283   done
17284   if test "X$rpathdirs" != "X"; then
17285     if test -n "$hardcode_libdir_separator"; then
17286                         alldirs=
17287       for found_dir in $rpathdirs; do
17288         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17289       done
17290             acl_save_libdir="$libdir"
17291       libdir="$alldirs"
17292       eval flag=\"$hardcode_libdir_flag_spec\"
17293       libdir="$acl_save_libdir"
17294       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17295     else
17296             for found_dir in $rpathdirs; do
17297         acl_save_libdir="$libdir"
17298         libdir="$found_dir"
17299         eval flag=\"$hardcode_libdir_flag_spec\"
17300         libdir="$acl_save_libdir"
17301         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302       done
17303     fi
17304   fi
17305   if test "X$ltrpathdirs" != "X"; then
17306             for found_dir in $ltrpathdirs; do
17307       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17308     done
17309   fi
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17329 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17330 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   gt_save_CPPFLAGS="$CPPFLAGS"
17334      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17335      gt_save_LIBS="$LIBS"
17336      LIBS="$LIBS -framework CoreFoundation"
17337      cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <CFPreferences.h>
17344 int
17345 main ()
17346 {
17347 CFPreferencesCopyAppValue(NULL, NULL)
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_link") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && {
17366          test -z "$ac_c_werror_flag" ||
17367          test ! -s conftest.err
17368        } && test -s conftest$ac_exeext &&
17369        $as_test_x conftest$ac_exeext; then
17370   gt_cv_func_CFPreferencesCopyAppValue=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375         gt_cv_func_CFPreferencesCopyAppValue=no
17376 fi
17377
17378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17379       conftest$ac_exeext conftest.$ac_ext
17380      CPPFLAGS="$gt_save_CPPFLAGS"
17381      LIBS="$gt_save_LIBS"
17382 fi
17383 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17384 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17385   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17386
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17389 _ACEOF
17390
17391   fi
17392     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17393 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17394 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   gt_save_CPPFLAGS="$CPPFLAGS"
17398      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17399      gt_save_LIBS="$LIBS"
17400      LIBS="$LIBS -framework CoreFoundation"
17401      cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 #include <CFLocale.h>
17408 int
17409 main ()
17410 {
17411 CFLocaleCopyCurrent();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_link") 2>conftest.er1
17424   ac_status=$?
17425   grep -v '^ *+' conftest.er1 >conftest.err
17426   rm -f conftest.er1
17427   cat conftest.err >&5
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } && {
17430          test -z "$ac_c_werror_flag" ||
17431          test ! -s conftest.err
17432        } && test -s conftest$ac_exeext &&
17433        $as_test_x conftest$ac_exeext; then
17434   gt_cv_func_CFLocaleCopyCurrent=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439         gt_cv_func_CFLocaleCopyCurrent=no
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17443       conftest$ac_exeext conftest.$ac_ext
17444      CPPFLAGS="$gt_save_CPPFLAGS"
17445      LIBS="$gt_save_LIBS"
17446 fi
17447 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17448 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17449   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_CFLOCALECOPYCURRENT 1
17453 _ACEOF
17454
17455   fi
17456   INTL_MACOSX_LIBS=
17457   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17459   fi
17460
17461
17462
17463
17464   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17465 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17466     # Check whether --enable-nls was given.
17467 if test "${enable_nls+set}" = set; then
17468   enableval=$enable_nls; USE_NLS=$enableval
17469 else
17470   USE_NLS=yes
17471 fi
17472
17473   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17474 echo "${ECHO_T}$USE_NLS" >&6; }
17475
17476
17477
17478
17479   LIBINTL=
17480   LTLIBINTL=
17481   POSUB=
17482
17483     if test "$USE_NLS" = "yes"; then
17484     gt_use_preinstalled_gnugettext=no
17485
17486
17487
17488
17489
17490
17491         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17492 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17493 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502 #include <libintl.h>
17503 extern int _nl_msg_cat_cntr;
17504 extern int *_nl_domain_bindings;
17505 int
17506 main ()
17507 {
17508 bindtextdomain ("", "");
17509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518   *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521   (eval "$ac_link") 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } && {
17528          test -z "$ac_c_werror_flag" ||
17529          test ! -s conftest.err
17530        } && test -s conftest$ac_exeext &&
17531        $as_test_x conftest$ac_exeext; then
17532   gt_cv_func_gnugettext1_libc=yes
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537         gt_cv_func_gnugettext1_libc=no
17538 fi
17539
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541       conftest$ac_exeext conftest.$ac_ext
17542 fi
17543 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17544 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17545
17546         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17547
17548
17549
17550
17551
17552           am_save_CPPFLAGS="$CPPFLAGS"
17553
17554   for element in $INCICONV; do
17555     haveit=
17556     for x in $CPPFLAGS; do
17557
17558   acl_save_prefix="$prefix"
17559   prefix="$acl_final_prefix"
17560   acl_save_exec_prefix="$exec_prefix"
17561   exec_prefix="$acl_final_exec_prefix"
17562   eval x=\"$x\"
17563   exec_prefix="$acl_save_exec_prefix"
17564   prefix="$acl_save_prefix"
17565
17566       if test "X$x" = "X$element"; then
17567         haveit=yes
17568         break
17569       fi
17570     done
17571     if test -z "$haveit"; then
17572       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17573     fi
17574   done
17575
17576
17577   { echo "$as_me:$LINENO: checking for iconv" >&5
17578 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17579 if test "${am_cv_func_iconv+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582
17583     am_cv_func_iconv="no, consider installing GNU libiconv"
17584     am_cv_lib_iconv=no
17585     cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 #include <stdlib.h>
17592 #include <iconv.h>
17593 int
17594 main ()
17595 {
17596 iconv_t cd = iconv_open("","");
17597        iconv(cd,NULL,NULL,NULL,NULL);
17598        iconv_close(cd);
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607   *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610   (eval "$ac_link") 2>conftest.er1
17611   ac_status=$?
17612   grep -v '^ *+' conftest.er1 >conftest.err
17613   rm -f conftest.er1
17614   cat conftest.err >&5
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); } && {
17617          test -z "$ac_c_werror_flag" ||
17618          test ! -s conftest.err
17619        } && test -s conftest$ac_exeext &&
17620        $as_test_x conftest$ac_exeext; then
17621   am_cv_func_iconv=yes
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626
17627 fi
17628
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630       conftest$ac_exeext conftest.$ac_ext
17631     if test "$am_cv_func_iconv" != yes; then
17632       am_save_LIBS="$LIBS"
17633       LIBS="$LIBS $LIBICONV"
17634       cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 #include <stdlib.h>
17641 #include <iconv.h>
17642 int
17643 main ()
17644 {
17645 iconv_t cd = iconv_open("","");
17646          iconv(cd,NULL,NULL,NULL,NULL);
17647          iconv_close(cd);
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_link") 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } && {
17666          test -z "$ac_c_werror_flag" ||
17667          test ! -s conftest.err
17668        } && test -s conftest$ac_exeext &&
17669        $as_test_x conftest$ac_exeext; then
17670   am_cv_lib_iconv=yes
17671         am_cv_func_iconv=yes
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676
17677 fi
17678
17679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17680       conftest$ac_exeext conftest.$ac_ext
17681       LIBS="$am_save_LIBS"
17682     fi
17683
17684 fi
17685 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17686 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17687   if test "$am_cv_func_iconv" = yes; then
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_ICONV 1
17691 _ACEOF
17692
17693   fi
17694   if test "$am_cv_lib_iconv" = yes; then
17695     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17696 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17697     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17698 echo "${ECHO_T}$LIBICONV" >&6; }
17699   else
17700             CPPFLAGS="$am_save_CPPFLAGS"
17701     LIBICONV=
17702     LTLIBICONV=
17703   fi
17704
17705
17706
17707
17708
17709
17710     use_additional=yes
17711
17712   acl_save_prefix="$prefix"
17713   prefix="$acl_final_prefix"
17714   acl_save_exec_prefix="$exec_prefix"
17715   exec_prefix="$acl_final_exec_prefix"
17716
17717     eval additional_includedir=\"$includedir\"
17718     eval additional_libdir=\"$libdir\"
17719
17720   exec_prefix="$acl_save_exec_prefix"
17721   prefix="$acl_save_prefix"
17722
17723
17724 # Check whether --with-libintl-prefix was given.
17725 if test "${with_libintl_prefix+set}" = set; then
17726   withval=$with_libintl_prefix;
17727     if test "X$withval" = "Xno"; then
17728       use_additional=no
17729     else
17730       if test "X$withval" = "X"; then
17731
17732   acl_save_prefix="$prefix"
17733   prefix="$acl_final_prefix"
17734   acl_save_exec_prefix="$exec_prefix"
17735   exec_prefix="$acl_final_exec_prefix"
17736
17737           eval additional_includedir=\"$includedir\"
17738           eval additional_libdir=\"$libdir\"
17739
17740   exec_prefix="$acl_save_exec_prefix"
17741   prefix="$acl_save_prefix"
17742
17743       else
17744         additional_includedir="$withval/include"
17745         additional_libdir="$withval/lib"
17746       fi
17747     fi
17748
17749 fi
17750
17751       LIBINTL=
17752   LTLIBINTL=
17753   INCINTL=
17754   rpathdirs=
17755   ltrpathdirs=
17756   names_already_handled=
17757   names_next_round='intl '
17758   while test -n "$names_next_round"; do
17759     names_this_round="$names_next_round"
17760     names_next_round=
17761     for name in $names_this_round; do
17762       already_handled=
17763       for n in $names_already_handled; do
17764         if test "$n" = "$name"; then
17765           already_handled=yes
17766           break
17767         fi
17768       done
17769       if test -z "$already_handled"; then
17770         names_already_handled="$names_already_handled $name"
17771                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17772         eval value=\"\$HAVE_LIB$uppername\"
17773         if test -n "$value"; then
17774           if test "$value" = yes; then
17775             eval value=\"\$LIB$uppername\"
17776             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17777             eval value=\"\$LTLIB$uppername\"
17778             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17779           else
17780                                     :
17781           fi
17782         else
17783                               found_dir=
17784           found_la=
17785           found_so=
17786           found_a=
17787           if test $use_additional = yes; then
17788             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17789               found_dir="$additional_libdir"
17790               found_so="$additional_libdir/lib$name.$shlibext"
17791               if test -f "$additional_libdir/lib$name.la"; then
17792                 found_la="$additional_libdir/lib$name.la"
17793               fi
17794             else
17795               if test -f "$additional_libdir/lib$name.$libext"; then
17796                 found_dir="$additional_libdir"
17797                 found_a="$additional_libdir/lib$name.$libext"
17798                 if test -f "$additional_libdir/lib$name.la"; then
17799                   found_la="$additional_libdir/lib$name.la"
17800                 fi
17801               fi
17802             fi
17803           fi
17804           if test "X$found_dir" = "X"; then
17805             for x in $LDFLAGS $LTLIBINTL; do
17806
17807   acl_save_prefix="$prefix"
17808   prefix="$acl_final_prefix"
17809   acl_save_exec_prefix="$exec_prefix"
17810   exec_prefix="$acl_final_exec_prefix"
17811   eval x=\"$x\"
17812   exec_prefix="$acl_save_exec_prefix"
17813   prefix="$acl_save_prefix"
17814
17815               case "$x" in
17816                 -L*)
17817                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17818                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17819                     found_dir="$dir"
17820                     found_so="$dir/lib$name.$shlibext"
17821                     if test -f "$dir/lib$name.la"; then
17822                       found_la="$dir/lib$name.la"
17823                     fi
17824                   else
17825                     if test -f "$dir/lib$name.$libext"; then
17826                       found_dir="$dir"
17827                       found_a="$dir/lib$name.$libext"
17828                       if test -f "$dir/lib$name.la"; then
17829                         found_la="$dir/lib$name.la"
17830                       fi
17831                     fi
17832                   fi
17833                   ;;
17834               esac
17835               if test "X$found_dir" != "X"; then
17836                 break
17837               fi
17838             done
17839           fi
17840           if test "X$found_dir" != "X"; then
17841                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17842             if test "X$found_so" != "X"; then
17843                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17844                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17845               else
17846                                                                                 haveit=
17847                 for x in $ltrpathdirs; do
17848                   if test "X$x" = "X$found_dir"; then
17849                     haveit=yes
17850                     break
17851                   fi
17852                 done
17853                 if test -z "$haveit"; then
17854                   ltrpathdirs="$ltrpathdirs $found_dir"
17855                 fi
17856                                 if test "$hardcode_direct" = yes; then
17857                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17858                 else
17859                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17860                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861                                                             haveit=
17862                     for x in $rpathdirs; do
17863                       if test "X$x" = "X$found_dir"; then
17864                         haveit=yes
17865                         break
17866                       fi
17867                     done
17868                     if test -z "$haveit"; then
17869                       rpathdirs="$rpathdirs $found_dir"
17870                     fi
17871                   else
17872                                                                                 haveit=
17873                     for x in $LDFLAGS $LIBINTL; do
17874
17875   acl_save_prefix="$prefix"
17876   prefix="$acl_final_prefix"
17877   acl_save_exec_prefix="$exec_prefix"
17878   exec_prefix="$acl_final_exec_prefix"
17879   eval x=\"$x\"
17880   exec_prefix="$acl_save_exec_prefix"
17881   prefix="$acl_save_prefix"
17882
17883                       if test "X$x" = "X-L$found_dir"; then
17884                         haveit=yes
17885                         break
17886                       fi
17887                     done
17888                     if test -z "$haveit"; then
17889                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17890                     fi
17891                     if test "$hardcode_minus_L" != no; then
17892                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17893                     else
17894                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17895                     fi
17896                   fi
17897                 fi
17898               fi
17899             else
17900               if test "X$found_a" != "X"; then
17901                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17902               else
17903                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17904               fi
17905             fi
17906                         additional_includedir=
17907             case "$found_dir" in
17908               */lib | */lib/)
17909                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17910                 additional_includedir="$basedir/include"
17911                 ;;
17912             esac
17913             if test "X$additional_includedir" != "X"; then
17914                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17915                 haveit=
17916                 if test "X$additional_includedir" = "X/usr/local/include"; then
17917                   if test -n "$GCC"; then
17918                     case $host_os in
17919                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17920                     esac
17921                   fi
17922                 fi
17923                 if test -z "$haveit"; then
17924                   for x in $CPPFLAGS $INCINTL; do
17925
17926   acl_save_prefix="$prefix"
17927   prefix="$acl_final_prefix"
17928   acl_save_exec_prefix="$exec_prefix"
17929   exec_prefix="$acl_final_exec_prefix"
17930   eval x=\"$x\"
17931   exec_prefix="$acl_save_exec_prefix"
17932   prefix="$acl_save_prefix"
17933
17934                     if test "X$x" = "X-I$additional_includedir"; then
17935                       haveit=yes
17936                       break
17937                     fi
17938                   done
17939                   if test -z "$haveit"; then
17940                     if test -d "$additional_includedir"; then
17941                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17942                     fi
17943                   fi
17944                 fi
17945               fi
17946             fi
17947                         if test -n "$found_la"; then
17948                                                         save_libdir="$libdir"
17949               case "$found_la" in
17950                 */* | *\\*) . "$found_la" ;;
17951                 *) . "./$found_la" ;;
17952               esac
17953               libdir="$save_libdir"
17954                             for dep in $dependency_libs; do
17955                 case "$dep" in
17956                   -L*)
17957                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17958                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17959                       haveit=
17960                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17961                         if test -n "$GCC"; then
17962                           case $host_os in
17963                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17964                           esac
17965                         fi
17966                       fi
17967                       if test -z "$haveit"; then
17968                         haveit=
17969                         for x in $LDFLAGS $LIBINTL; do
17970
17971   acl_save_prefix="$prefix"
17972   prefix="$acl_final_prefix"
17973   acl_save_exec_prefix="$exec_prefix"
17974   exec_prefix="$acl_final_exec_prefix"
17975   eval x=\"$x\"
17976   exec_prefix="$acl_save_exec_prefix"
17977   prefix="$acl_save_prefix"
17978
17979                           if test "X$x" = "X-L$additional_libdir"; then
17980                             haveit=yes
17981                             break
17982                           fi
17983                         done
17984                         if test -z "$haveit"; then
17985                           if test -d "$additional_libdir"; then
17986                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17987                           fi
17988                         fi
17989                         haveit=
17990                         for x in $LDFLAGS $LTLIBINTL; do
17991
17992   acl_save_prefix="$prefix"
17993   prefix="$acl_final_prefix"
17994   acl_save_exec_prefix="$exec_prefix"
17995   exec_prefix="$acl_final_exec_prefix"
17996   eval x=\"$x\"
17997   exec_prefix="$acl_save_exec_prefix"
17998   prefix="$acl_save_prefix"
17999
18000                           if test "X$x" = "X-L$additional_libdir"; then
18001                             haveit=yes
18002                             break
18003                           fi
18004                         done
18005                         if test -z "$haveit"; then
18006                           if test -d "$additional_libdir"; then
18007                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18008                           fi
18009                         fi
18010                       fi
18011                     fi
18012                     ;;
18013                   -R*)
18014                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18015                     if test "$enable_rpath" != no; then
18016                                                                   haveit=
18017                       for x in $rpathdirs; do
18018                         if test "X$x" = "X$dir"; then
18019                           haveit=yes
18020                           break
18021                         fi
18022                       done
18023                       if test -z "$haveit"; then
18024                         rpathdirs="$rpathdirs $dir"
18025                       fi
18026                                                                   haveit=
18027                       for x in $ltrpathdirs; do
18028                         if test "X$x" = "X$dir"; then
18029                           haveit=yes
18030                           break
18031                         fi
18032                       done
18033                       if test -z "$haveit"; then
18034                         ltrpathdirs="$ltrpathdirs $dir"
18035                       fi
18036                     fi
18037                     ;;
18038                   -l*)
18039                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18040                     ;;
18041                   *.la)
18042                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18043                     ;;
18044                   *)
18045                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18046                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18047                     ;;
18048                 esac
18049               done
18050             fi
18051           else
18052                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18053             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18054           fi
18055         fi
18056       fi
18057     done
18058   done
18059   if test "X$rpathdirs" != "X"; then
18060     if test -n "$hardcode_libdir_separator"; then
18061                         alldirs=
18062       for found_dir in $rpathdirs; do
18063         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18064       done
18065             acl_save_libdir="$libdir"
18066       libdir="$alldirs"
18067       eval flag=\"$hardcode_libdir_flag_spec\"
18068       libdir="$acl_save_libdir"
18069       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18070     else
18071             for found_dir in $rpathdirs; do
18072         acl_save_libdir="$libdir"
18073         libdir="$found_dir"
18074         eval flag=\"$hardcode_libdir_flag_spec\"
18075         libdir="$acl_save_libdir"
18076         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077       done
18078     fi
18079   fi
18080   if test "X$ltrpathdirs" != "X"; then
18081             for found_dir in $ltrpathdirs; do
18082       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18083     done
18084   fi
18085
18086           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18087 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18088 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   gt_save_CPPFLAGS="$CPPFLAGS"
18092             CPPFLAGS="$CPPFLAGS $INCINTL"
18093             gt_save_LIBS="$LIBS"
18094             LIBS="$LIBS $LIBINTL"
18095                         cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 #include <libintl.h>
18102 extern int _nl_msg_cat_cntr;
18103 extern
18104 #ifdef __cplusplus
18105 "C"
18106 #endif
18107 const char *_nl_expand_alias (const char *);
18108 int
18109 main ()
18110 {
18111 bindtextdomain ("", "");
18112 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_link") 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } && {
18131          test -z "$ac_c_werror_flag" ||
18132          test ! -s conftest.err
18133        } && test -s conftest$ac_exeext &&
18134        $as_test_x conftest$ac_exeext; then
18135   gt_cv_func_gnugettext1_libintl=yes
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140         gt_cv_func_gnugettext1_libintl=no
18141 fi
18142
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144       conftest$ac_exeext conftest.$ac_ext
18145                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18146               LIBS="$LIBS $LIBICONV"
18147               cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 #include <libintl.h>
18154 extern int _nl_msg_cat_cntr;
18155 extern
18156 #ifdef __cplusplus
18157 "C"
18158 #endif
18159 const char *_nl_expand_alias (const char *);
18160 int
18161 main ()
18162 {
18163 bindtextdomain ("", "");
18164 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_link") 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } && {
18183          test -z "$ac_c_werror_flag" ||
18184          test ! -s conftest.err
18185        } && test -s conftest$ac_exeext &&
18186        $as_test_x conftest$ac_exeext; then
18187   LIBINTL="$LIBINTL $LIBICONV"
18188                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18189                 gt_cv_func_gnugettext1_libintl=yes
18190
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195
18196 fi
18197
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199       conftest$ac_exeext conftest.$ac_ext
18200             fi
18201             CPPFLAGS="$gt_save_CPPFLAGS"
18202             LIBS="$gt_save_LIBS"
18203 fi
18204 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18205 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18206         fi
18207
18208                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18209            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18210                 && test "$PACKAGE" != gettext-runtime \
18211                 && test "$PACKAGE" != gettext-tools; }; then
18212           gt_use_preinstalled_gnugettext=yes
18213         else
18214                     LIBINTL=
18215           LTLIBINTL=
18216           INCINTL=
18217         fi
18218
18219
18220
18221     if test -n "$INTL_MACOSX_LIBS"; then
18222       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18223          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18224                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18225         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18226       fi
18227     fi
18228
18229     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define ENABLE_NLS 1
18234 _ACEOF
18235
18236     else
18237       USE_NLS=no
18238     fi
18239   fi
18240
18241   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18242 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18243   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18244 echo "${ECHO_T}$USE_NLS" >&6; }
18245   if test "$USE_NLS" = "yes"; then
18246     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18247 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18248     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18249       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18250         gt_source="external libintl"
18251       else
18252         gt_source="libc"
18253       fi
18254     else
18255       gt_source="included intl directory"
18256     fi
18257     { echo "$as_me:$LINENO: result: $gt_source" >&5
18258 echo "${ECHO_T}$gt_source" >&6; }
18259   fi
18260
18261   if test "$USE_NLS" = "yes"; then
18262
18263     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18264       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18265         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18266 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18267         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18268 echo "${ECHO_T}$LIBINTL" >&6; }
18269
18270   for element in $INCINTL; do
18271     haveit=
18272     for x in $CPPFLAGS; do
18273
18274   acl_save_prefix="$prefix"
18275   prefix="$acl_final_prefix"
18276   acl_save_exec_prefix="$exec_prefix"
18277   exec_prefix="$acl_final_exec_prefix"
18278   eval x=\"$x\"
18279   exec_prefix="$acl_save_exec_prefix"
18280   prefix="$acl_save_prefix"
18281
18282       if test "X$x" = "X$element"; then
18283         haveit=yes
18284         break
18285       fi
18286     done
18287     if test -z "$haveit"; then
18288       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18289     fi
18290   done
18291
18292       fi
18293
18294
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_GETTEXT 1
18297 _ACEOF
18298
18299
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE_DCGETTEXT 1
18302 _ACEOF
18303
18304     fi
18305
18306         POSUB=po
18307   fi
18308
18309
18310
18311     INTLLIBS="$LIBINTL"
18312
18313
18314
18315
18316
18317
18318 if test x${prefix} = xNONE ; then
18319    if test `eval echo ${datarootdir}` = NONE/share ; then
18320       datarootdir=/usr/share
18321    fi
18322 fi
18323
18324 if test x${prefix} = xNONE ; then
18325    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18326       sysconfdir=/etc/bacula
18327    fi
18328
18329    if test `eval echo ${libdir}` = NONE/lib ; then
18330       libdir=/usr/lib
18331    fi
18332
18333    if test `eval echo ${includedir}` = NONE/include ; then
18334       includedir=/usr/include
18335    fi
18336
18337    prefix=
18338 fi
18339
18340 if test x${exec_prefix} = xNONE ; then
18341    exec_prefix=${prefix}
18342 fi
18343
18344 sysconfdir=`eval echo ${sysconfdir}`
18345 datarootdir=`eval echo ${datarootdir}`
18346 libdir=`eval echo ${libdir}`
18347 includedir=`eval echo ${includedir}`
18348 localedir=`eval echo ${datarootdir}/locale`
18349 cat >>confdefs.h <<_ACEOF
18350 #define SYSCONFDIR "$sysconfdir"
18351 _ACEOF
18352
18353 cat >>confdefs.h <<_ACEOF
18354 #define LOCALEDIR "$localedir"
18355 _ACEOF
18356
18357
18358 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18359    sbindir=${exec_prefix}/sbin
18360 fi
18361 sbindir=`eval echo ${sbindir}`
18362
18363 if test x$mandir = x'${prefix}/man' ; then
18364    mandir=/usr/share/man
18365 fi
18366
18367 for ac_prog in msgfmt
18368 do
18369   # Extract the first word of "$ac_prog", so it can be a program name with args.
18370 set dummy $ac_prog; ac_word=$2
18371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18373 if test "${ac_cv_path_MSGFMT+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   case $MSGFMT in
18377   [\\/]* | ?:[\\/]*)
18378   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18379   ;;
18380   *)
18381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18382 for as_dir in $PATH
18383 do
18384   IFS=$as_save_IFS
18385   test -z "$as_dir" && as_dir=.
18386   for ac_exec_ext in '' $ac_executable_extensions; do
18387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18388     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18390     break 2
18391   fi
18392 done
18393 done
18394 IFS=$as_save_IFS
18395
18396   ;;
18397 esac
18398 fi
18399 MSGFMT=$ac_cv_path_MSGFMT
18400 if test -n "$MSGFMT"; then
18401   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18402 echo "${ECHO_T}$MSGFMT" >&6; }
18403 else
18404   { echo "$as_me:$LINENO: result: no" >&5
18405 echo "${ECHO_T}no" >&6; }
18406 fi
18407
18408
18409   test -n "$MSGFMT" && break
18410 done
18411 test -n "$MSGFMT" || MSGFMT="no"
18412
18413 if test "$MSGFMT" = "no"
18414 then
18415    echo 'msgfmt program not found, disabling NLS !'
18416    USE_NLS=no
18417    USE_INCLUDED_LIBINTL=no
18418 #else
18419
18420     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18421 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18422 if test "${ac_cv_gnu_library_2+set}" = set; then
18423   echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425   cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431
18432 #include <features.h>
18433 #ifdef __GNU_LIBRARY__
18434  #if (__GLIBC__ >= 2)
18435   Lucky GNU user
18436  #endif
18437 #endif
18438
18439 _ACEOF
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18442   ac_cv_gnu_library_2=yes
18443 else
18444   ac_cv_gnu_library_2=no
18445 fi
18446 rm -f conftest*
18447
18448
18449
18450 fi
18451 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18452 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18453
18454     GLIBC2="$ac_cv_gnu_library_2"
18455
18456
18457 if test -n "$ac_tool_prefix"; then
18458   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18462 if test "${ac_cv_prog_RANLIB+set}" = set; then
18463   echo $ECHO_N "(cached) $ECHO_C" >&6
18464 else
18465   if test -n "$RANLIB"; then
18466   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18467 else
18468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469 for as_dir in $PATH
18470 do
18471   IFS=$as_save_IFS
18472   test -z "$as_dir" && as_dir=.
18473   for ac_exec_ext in '' $ac_executable_extensions; do
18474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18475     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18477     break 2
18478   fi
18479 done
18480 done
18481 IFS=$as_save_IFS
18482
18483 fi
18484 fi
18485 RANLIB=$ac_cv_prog_RANLIB
18486 if test -n "$RANLIB"; then
18487   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18488 echo "${ECHO_T}$RANLIB" >&6; }
18489 else
18490   { echo "$as_me:$LINENO: result: no" >&5
18491 echo "${ECHO_T}no" >&6; }
18492 fi
18493
18494
18495 fi
18496 if test -z "$ac_cv_prog_RANLIB"; then
18497   ac_ct_RANLIB=$RANLIB
18498   # Extract the first word of "ranlib", so it can be a program name with args.
18499 set dummy ranlib; ac_word=$2
18500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18503   echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505   if test -n "$ac_ct_RANLIB"; then
18506   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18507 else
18508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509 for as_dir in $PATH
18510 do
18511   IFS=$as_save_IFS
18512   test -z "$as_dir" && as_dir=.
18513   for ac_exec_ext in '' $ac_executable_extensions; do
18514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18515     ac_cv_prog_ac_ct_RANLIB="ranlib"
18516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18517     break 2
18518   fi
18519 done
18520 done
18521 IFS=$as_save_IFS
18522
18523 fi
18524 fi
18525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18526 if test -n "$ac_ct_RANLIB"; then
18527   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18528 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18529 else
18530   { echo "$as_me:$LINENO: result: no" >&5
18531 echo "${ECHO_T}no" >&6; }
18532 fi
18533
18534   if test "x$ac_ct_RANLIB" = x; then
18535     RANLIB=":"
18536   else
18537     case $cross_compiling:$ac_tool_warned in
18538 yes:)
18539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18540 whose name does not start with the host triplet.  If you think this
18541 configuration is useful to you, please write to autoconf@gnu.org." >&5
18542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18543 whose name does not start with the host triplet.  If you think this
18544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18545 ac_tool_warned=yes ;;
18546 esac
18547     RANLIB=$ac_ct_RANLIB
18548   fi
18549 else
18550   RANLIB="$ac_cv_prog_RANLIB"
18551 fi
18552
18553
18554         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18555 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18557   echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559   ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lcposix  $LIBS"
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567
18568 /* Override any GCC internal prototype to avoid an error.
18569    Use char because int might match the return type of a GCC
18570    builtin and then its argument prototype would still apply.  */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char strerror ();
18575 int
18576 main ()
18577 {
18578 return strerror ();
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_link") 2>conftest.er1
18591   ac_status=$?
18592   grep -v '^ *+' conftest.er1 >conftest.err
18593   rm -f conftest.er1
18594   cat conftest.err >&5
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); } && {
18597          test -z "$ac_c_werror_flag" ||
18598          test ! -s conftest.err
18599        } && test -s conftest$ac_exeext &&
18600        $as_test_x conftest$ac_exeext; then
18601   ac_cv_lib_cposix_strerror=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606         ac_cv_lib_cposix_strerror=no
18607 fi
18608
18609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18610       conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18612 fi
18613 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18614 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18615 if test $ac_cv_lib_cposix_strerror = yes; then
18616   LIBS="$LIBS -lcposix"
18617 fi
18618
18619
18620
18621 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18623 if test "${ac_cv_c_const+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632
18633 int
18634 main ()
18635 {
18636 /* FIXME: Include the comments suggested by Paul. */
18637 #ifndef __cplusplus
18638   /* Ultrix mips cc rejects this.  */
18639   typedef int charset[2];
18640   const charset cs;
18641   /* SunOS 4.1.1 cc rejects this.  */
18642   char const *const *pcpcc;
18643   char **ppc;
18644   /* NEC SVR4.0.2 mips cc rejects this.  */
18645   struct point {int x, y;};
18646   static struct point const zero = {0,0};
18647   /* AIX XL C 1.02.0.0 rejects this.
18648      It does not let you subtract one const X* pointer from another in
18649      an arm of an if-expression whose if-part is not a constant
18650      expression */
18651   const char *g = "string";
18652   pcpcc = &g + (g ? g-g : 0);
18653   /* HPUX 7.0 cc rejects these. */
18654   ++pcpcc;
18655   ppc = (char**) pcpcc;
18656   pcpcc = (char const *const *) ppc;
18657   { /* SCO 3.2v4 cc rejects this.  */
18658     char *t;
18659     char const *s = 0 ? (char *) 0 : (char const *) 0;
18660
18661     *t++ = 0;
18662     if (s) return 0;
18663   }
18664   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18665     int x[] = {25, 17};
18666     const int *foo = &x[0];
18667     ++foo;
18668   }
18669   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18670     typedef const int *iptr;
18671     iptr p = 0;
18672     ++p;
18673   }
18674   { /* AIX XL C 1.02.0.0 rejects this saying
18675        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18676     struct s { int j; const int *ap[3]; };
18677     struct s *b; b->j = 5;
18678   }
18679   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18680     const int foo = 10;
18681     if (!foo) return 0;
18682   }
18683   return !cs[0] && !zero.x;
18684 #endif
18685
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext
18691 if { (ac_try="$ac_compile"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_compile") 2>conftest.er1
18698   ac_status=$?
18699   grep -v '^ *+' conftest.er1 >conftest.err
18700   rm -f conftest.er1
18701   cat conftest.err >&5
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } && {
18704          test -z "$ac_c_werror_flag" ||
18705          test ! -s conftest.err
18706        } && test -s conftest.$ac_objext; then
18707   ac_cv_c_const=yes
18708 else
18709   echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712         ac_cv_c_const=no
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 fi
18717 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18718 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18719 if test $ac_cv_c_const = no; then
18720
18721 cat >>confdefs.h <<\_ACEOF
18722 #define const
18723 _ACEOF
18724
18725 fi
18726
18727
18728   { echo "$as_me:$LINENO: checking for signed" >&5
18729 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18730 if test "${bh_cv_c_signed+set}" = set; then
18731   echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733   cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739
18740 int
18741 main ()
18742 {
18743 signed char x;
18744   ;
18745   return 0;
18746 }
18747 _ACEOF
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_compile") 2>conftest.er1
18756   ac_status=$?
18757   grep -v '^ *+' conftest.er1 >conftest.err
18758   rm -f conftest.er1
18759   cat conftest.err >&5
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); } && {
18762          test -z "$ac_c_werror_flag" ||
18763          test ! -s conftest.err
18764        } && test -s conftest.$ac_objext; then
18765   bh_cv_c_signed=yes
18766 else
18767   echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770         bh_cv_c_signed=no
18771 fi
18772
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 fi
18775 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18776 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18777   if test $bh_cv_c_signed = no; then
18778
18779 cat >>confdefs.h <<\_ACEOF
18780 #define signed
18781 _ACEOF
18782
18783   fi
18784
18785 { echo "$as_me:$LINENO: checking for inline" >&5
18786 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18787 if test "${ac_cv_c_inline+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790   ac_cv_c_inline=no
18791 for ac_kw in inline __inline__ __inline; do
18792   cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798 #ifndef __cplusplus
18799 typedef int foo_t;
18800 static $ac_kw foo_t static_foo () {return 0; }
18801 $ac_kw foo_t foo () {return 0; }
18802 #endif
18803
18804 _ACEOF
18805 rm -f conftest.$ac_objext
18806 if { (ac_try="$ac_compile"
18807 case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812   (eval "$ac_compile") 2>conftest.er1
18813   ac_status=$?
18814   grep -v '^ *+' conftest.er1 >conftest.err
18815   rm -f conftest.er1
18816   cat conftest.err >&5
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); } && {
18819          test -z "$ac_c_werror_flag" ||
18820          test ! -s conftest.err
18821        } && test -s conftest.$ac_objext; then
18822   ac_cv_c_inline=$ac_kw
18823 else
18824   echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827
18828 fi
18829
18830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18831   test "$ac_cv_c_inline" != no && break
18832 done
18833
18834 fi
18835 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18836 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18837
18838
18839 case $ac_cv_c_inline in
18840   inline | yes) ;;
18841   *)
18842     case $ac_cv_c_inline in
18843       no) ac_val=;;
18844       *) ac_val=$ac_cv_c_inline;;
18845     esac
18846     cat >>confdefs.h <<_ACEOF
18847 #ifndef __cplusplus
18848 #define inline $ac_val
18849 #endif
18850 _ACEOF
18851     ;;
18852 esac
18853
18854 { echo "$as_me:$LINENO: checking for off_t" >&5
18855 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18856 if test "${ac_cv_type_off_t+set}" = set; then
18857   echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859   cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865 $ac_includes_default
18866 typedef off_t ac__type_new_;
18867 int
18868 main ()
18869 {
18870 if ((ac__type_new_ *) 0)
18871   return 0;
18872 if (sizeof (ac__type_new_))
18873   return 0;
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext
18879 if { (ac_try="$ac_compile"
18880 case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_compile") 2>conftest.er1
18886   ac_status=$?
18887   grep -v '^ *+' conftest.er1 >conftest.err
18888   rm -f conftest.er1
18889   cat conftest.err >&5
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } && {
18892          test -z "$ac_c_werror_flag" ||
18893          test ! -s conftest.err
18894        } && test -s conftest.$ac_objext; then
18895   ac_cv_type_off_t=yes
18896 else
18897   echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18899
18900         ac_cv_type_off_t=no
18901 fi
18902
18903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18904 fi
18905 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18906 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18907 if test $ac_cv_type_off_t = yes; then
18908   :
18909 else
18910
18911 cat >>confdefs.h <<_ACEOF
18912 #define off_t long int
18913 _ACEOF
18914
18915 fi
18916
18917 { echo "$as_me:$LINENO: checking for size_t" >&5
18918 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18919 if test "${ac_cv_type_size_t+set}" = set; then
18920   echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922   cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928 $ac_includes_default
18929 typedef size_t ac__type_new_;
18930 int
18931 main ()
18932 {
18933 if ((ac__type_new_ *) 0)
18934   return 0;
18935 if (sizeof (ac__type_new_))
18936   return 0;
18937   ;
18938   return 0;
18939 }
18940 _ACEOF
18941 rm -f conftest.$ac_objext
18942 if { (ac_try="$ac_compile"
18943 case "(($ac_try" in
18944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945   *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948   (eval "$ac_compile") 2>conftest.er1
18949   ac_status=$?
18950   grep -v '^ *+' conftest.er1 >conftest.err
18951   rm -f conftest.er1
18952   cat conftest.err >&5
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); } && {
18955          test -z "$ac_c_werror_flag" ||
18956          test ! -s conftest.err
18957        } && test -s conftest.$ac_objext; then
18958   ac_cv_type_size_t=yes
18959 else
18960   echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963         ac_cv_type_size_t=no
18964 fi
18965
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18967 fi
18968 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18969 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18970 if test $ac_cv_type_size_t = yes; then
18971   :
18972 else
18973
18974 cat >>confdefs.h <<_ACEOF
18975 #define size_t unsigned int
18976 _ACEOF
18977
18978 fi
18979
18980
18981   { echo "$as_me:$LINENO: checking for long long" >&5
18982 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18983 if test "${ac_cv_type_long_long+set}" = set; then
18984   echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18986   cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 long long ll = 1LL; int i = 63;
18993 int
18994 main ()
18995 {
18996 long long llmax = (long long) -1;
18997      return ll << i | ll >> i | llmax / ll | llmax % ll;
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006   *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009   (eval "$ac_link") 2>conftest.er1
19010   ac_status=$?
19011   grep -v '^ *+' conftest.er1 >conftest.err
19012   rm -f conftest.er1
19013   cat conftest.err >&5
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); } && {
19016          test -z "$ac_c_werror_flag" ||
19017          test ! -s conftest.err
19018        } && test -s conftest$ac_exeext &&
19019        $as_test_x conftest$ac_exeext; then
19020   ac_cv_type_long_long=yes
19021 else
19022   echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025         ac_cv_type_long_long=no
19026 fi
19027
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029       conftest$ac_exeext conftest.$ac_ext
19030 fi
19031 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19032 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19033   if test $ac_cv_type_long_long = yes; then
19034
19035 cat >>confdefs.h <<\_ACEOF
19036 #define HAVE_LONG_LONG 1
19037 _ACEOF
19038
19039   fi
19040
19041
19042   { echo "$as_me:$LINENO: checking for long double" >&5
19043 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19044 if test "${gt_cv_c_long_double+set}" = set; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   if test "$GCC" = yes; then
19048        gt_cv_c_long_double=yes
19049      else
19050        cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h.  */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h.  */
19056
19057          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19058          long double foo = 0.0;
19059          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19060          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19061
19062 int
19063 main ()
19064 {
19065
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074   *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077   (eval "$ac_compile") 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } && {
19084          test -z "$ac_c_werror_flag" ||
19085          test ! -s conftest.err
19086        } && test -s conftest.$ac_objext; then
19087   gt_cv_c_long_double=yes
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092         gt_cv_c_long_double=no
19093 fi
19094
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096      fi
19097 fi
19098 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19099 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19100   if test $gt_cv_c_long_double = yes; then
19101
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_LONG_DOUBLE 1
19104 _ACEOF
19105
19106   fi
19107
19108
19109   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19110 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19111 if test "${gt_cv_c_wchar_t+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120 #include <stddef.h>
19121        wchar_t foo = (wchar_t)'\0';
19122 int
19123 main ()
19124 {
19125
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137   (eval "$ac_compile") 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } && {
19144          test -z "$ac_c_werror_flag" ||
19145          test ! -s conftest.err
19146        } && test -s conftest.$ac_objext; then
19147   gt_cv_c_wchar_t=yes
19148 else
19149   echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152         gt_cv_c_wchar_t=no
19153 fi
19154
19155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 fi
19157 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19158 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19159   if test $gt_cv_c_wchar_t = yes; then
19160
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_WCHAR_T 1
19163 _ACEOF
19164
19165   fi
19166
19167
19168   { echo "$as_me:$LINENO: checking for wint_t" >&5
19169 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19170 if test "${gt_cv_c_wint_t+set}" = set; then
19171   echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173   cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179 #include <wchar.h>
19180        wint_t foo = (wchar_t)'\0';
19181 int
19182 main ()
19183 {
19184
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (ac_try="$ac_compile"
19191 case "(($ac_try" in
19192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193   *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196   (eval "$ac_compile") 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } && {
19203          test -z "$ac_c_werror_flag" ||
19204          test ! -s conftest.err
19205        } && test -s conftest.$ac_objext; then
19206   gt_cv_c_wint_t=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211         gt_cv_c_wint_t=no
19212 fi
19213
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215 fi
19216 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19217 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19218   if test $gt_cv_c_wint_t = yes; then
19219
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE_WINT_T 1
19222 _ACEOF
19223
19224   fi
19225
19226
19227   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19228 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19229 if test "${gl_cv_header_inttypes_h+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238 #include <sys/types.h>
19239 #include <inttypes.h>
19240 int
19241 main ()
19242 {
19243 uintmax_t i = (uintmax_t) -1;
19244   ;
19245   return 0;
19246 }
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (ac_try="$ac_compile"
19250 case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_compile") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } && {
19262          test -z "$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        } && test -s conftest.$ac_objext; then
19265   gl_cv_header_inttypes_h=yes
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         gl_cv_header_inttypes_h=no
19271 fi
19272
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 fi
19275 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19276 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19277   if test $gl_cv_header_inttypes_h = yes; then
19278
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19281 _ACEOF
19282
19283   fi
19284
19285
19286   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19287 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19288 if test "${gl_cv_header_stdint_h+set}" = set; then
19289   echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291   cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 #include <sys/types.h>
19298 #include <stdint.h>
19299 int
19300 main ()
19301 {
19302 uintmax_t i = (uintmax_t) -1;
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311   *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314   (eval "$ac_compile") 2>conftest.er1
19315   ac_status=$?
19316   grep -v '^ *+' conftest.er1 >conftest.err
19317   rm -f conftest.er1
19318   cat conftest.err >&5
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } && {
19321          test -z "$ac_c_werror_flag" ||
19322          test ! -s conftest.err
19323        } && test -s conftest.$ac_objext; then
19324   gl_cv_header_stdint_h=yes
19325 else
19326   echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329         gl_cv_header_stdint_h=no
19330 fi
19331
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333 fi
19334 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19335 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19336   if test $gl_cv_header_stdint_h = yes; then
19337
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_STDINT_H_WITH_UINTMAX 1
19340 _ACEOF
19341
19342   fi
19343
19344
19345
19346
19347   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19348 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19349 if test "${gt_cv_c_intmax_t+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358
19359 #include <stddef.h>
19360 #include <stdlib.h>
19361 #if HAVE_STDINT_H_WITH_UINTMAX
19362 #include <stdint.h>
19363 #endif
19364 #if HAVE_INTTYPES_H_WITH_UINTMAX
19365 #include <inttypes.h>
19366 #endif
19367
19368 int
19369 main ()
19370 {
19371 intmax_t x = -1;
19372   ;
19373   return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_compile") 2>conftest.er1
19384   ac_status=$?
19385   grep -v '^ *+' conftest.er1 >conftest.err
19386   rm -f conftest.er1
19387   cat conftest.err >&5
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); } && {
19390          test -z "$ac_c_werror_flag" ||
19391          test ! -s conftest.err
19392        } && test -s conftest.$ac_objext; then
19393   gt_cv_c_intmax_t=yes
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398         gt_cv_c_intmax_t=no
19399 fi
19400
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 fi
19403 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19404 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19405   if test $gt_cv_c_intmax_t = yes; then
19406
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_INTMAX_T 1
19409 _ACEOF
19410
19411   fi
19412
19413
19414
19415   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19416 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19417 if test "${gt_cv_func_printf_posix+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420
19421       if test "$cross_compiling" = yes; then
19422
19423         cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429
19430 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19431   notposix
19432 #endif
19433
19434 _ACEOF
19435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19436   $EGREP "notposix" >/dev/null 2>&1; then
19437   gt_cv_func_printf_posix="guessing no"
19438 else
19439   gt_cv_func_printf_posix="guessing yes"
19440 fi
19441 rm -f conftest*
19442
19443
19444 else
19445   cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h.  */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h.  */
19451
19452 #include <stdio.h>
19453 #include <string.h>
19454 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19455    dollar expansion (possibly an autoconf bug).  */
19456 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19457 static char buf[100];
19458 int main ()
19459 {
19460   sprintf (buf, format, 33, 55);
19461   return (strcmp (buf, "55 33") != 0);
19462 }
19463 _ACEOF
19464 rm -f conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468   *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471   (eval "$ac_link") 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19475   { (case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_try") 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; }; then
19484   gt_cv_func_printf_posix=yes
19485 else
19486   echo "$as_me: program exited with status $ac_status" >&5
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 ( exit $ac_status )
19491 gt_cv_func_printf_posix=no
19492 fi
19493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19494 fi
19495
19496
19497
19498 fi
19499 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19500 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19501   case $gt_cv_func_printf_posix in
19502     *yes)
19503
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_POSIX_PRINTF 1
19506 _ACEOF
19507
19508       ;;
19509   esac
19510
19511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19512 # for constant arguments.  Useless!
19513 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19514 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19515 if test "${ac_cv_working_alloca_h+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 #include <alloca.h>
19525 int
19526 main ()
19527 {
19528 char *p = (char *) alloca (2 * sizeof (int));
19529                           if (p) return 0;
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541   (eval "$ac_link") 2>conftest.er1
19542   ac_status=$?
19543   grep -v '^ *+' conftest.er1 >conftest.err
19544   rm -f conftest.er1
19545   cat conftest.err >&5
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); } && {
19548          test -z "$ac_c_werror_flag" ||
19549          test ! -s conftest.err
19550        } && test -s conftest$ac_exeext &&
19551        $as_test_x conftest$ac_exeext; then
19552   ac_cv_working_alloca_h=yes
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557         ac_cv_working_alloca_h=no
19558 fi
19559
19560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19561       conftest$ac_exeext conftest.$ac_ext
19562 fi
19563 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19564 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19565 if test $ac_cv_working_alloca_h = yes; then
19566
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_ALLOCA_H 1
19569 _ACEOF
19570
19571 fi
19572
19573 { echo "$as_me:$LINENO: checking for alloca" >&5
19574 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19575 if test "${ac_cv_func_alloca_works+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h.  */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h.  */
19584 #ifdef __GNUC__
19585 # define alloca __builtin_alloca
19586 #else
19587 # ifdef _MSC_VER
19588 #  include <malloc.h>
19589 #  define alloca _alloca
19590 # else
19591 #  ifdef HAVE_ALLOCA_H
19592 #   include <alloca.h>
19593 #  else
19594 #   ifdef _AIX
19595  #pragma alloca
19596 #   else
19597 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19598 char *alloca ();
19599 #    endif
19600 #   endif
19601 #  endif
19602 # endif
19603 #endif
19604
19605 int
19606 main ()
19607 {
19608 char *p = (char *) alloca (1);
19609                                     if (p) return 0;
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_link") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } && {
19628          test -z "$ac_c_werror_flag" ||
19629          test ! -s conftest.err
19630        } && test -s conftest$ac_exeext &&
19631        $as_test_x conftest$ac_exeext; then
19632   ac_cv_func_alloca_works=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637         ac_cv_func_alloca_works=no
19638 fi
19639
19640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19641       conftest$ac_exeext conftest.$ac_ext
19642 fi
19643 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19645
19646 if test $ac_cv_func_alloca_works = yes; then
19647
19648 cat >>confdefs.h <<\_ACEOF
19649 #define HAVE_ALLOCA 1
19650 _ACEOF
19651
19652 else
19653   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19654 # that cause trouble.  Some versions do not even contain alloca or
19655 # contain a buggy version.  If you still want to use their alloca,
19656 # use ar to extract alloca.o from them instead of compiling alloca.c.
19657
19658 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19659
19660 cat >>confdefs.h <<\_ACEOF
19661 #define C_ALLOCA 1
19662 _ACEOF
19663
19664
19665 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19666 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19667 if test "${ac_cv_os_cray+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676 #if defined CRAY && ! defined CRAY2
19677 webecray
19678 #else
19679 wenotbecray
19680 #endif
19681
19682 _ACEOF
19683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19684   $EGREP "webecray" >/dev/null 2>&1; then
19685   ac_cv_os_cray=yes
19686 else
19687   ac_cv_os_cray=no
19688 fi
19689 rm -f conftest*
19690
19691 fi
19692 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19693 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19694 if test $ac_cv_os_cray = yes; then
19695   for ac_func in _getb67 GETB67 getb67; do
19696     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19700   echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702   cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h.  */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h.  */
19708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19710 #define $ac_func innocuous_$ac_func
19711
19712 /* System header to define __stub macros and hopefully few prototypes,
19713     which can conflict with char $ac_func (); below.
19714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19715     <limits.h> exists even on freestanding compilers.  */
19716
19717 #ifdef __STDC__
19718 # include <limits.h>
19719 #else
19720 # include <assert.h>
19721 #endif
19722
19723 #undef $ac_func
19724
19725 /* Override any GCC internal prototype to avoid an error.
19726    Use char because int might match the return type of a GCC
19727    builtin and then its argument prototype would still apply.  */
19728 #ifdef __cplusplus
19729 extern "C"
19730 #endif
19731 char $ac_func ();
19732 /* The GNU C library defines this for functions which it implements
19733     to always fail with ENOSYS.  Some functions are actually named
19734     something starting with __ and the normal name is an alias.  */
19735 #if defined __stub_$ac_func || defined __stub___$ac_func
19736 choke me
19737 #endif
19738
19739 int
19740 main ()
19741 {
19742 return $ac_func ();
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_link") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } && {
19761          test -z "$ac_c_werror_flag" ||
19762          test ! -s conftest.err
19763        } && test -s conftest$ac_exeext &&
19764        $as_test_x conftest$ac_exeext; then
19765   eval "$as_ac_var=yes"
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770         eval "$as_ac_var=no"
19771 fi
19772
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774       conftest$ac_exeext conftest.$ac_ext
19775 fi
19776 ac_res=`eval echo '${'$as_ac_var'}'`
19777                { echo "$as_me:$LINENO: result: $ac_res" >&5
19778 echo "${ECHO_T}$ac_res" >&6; }
19779 if test `eval echo '${'$as_ac_var'}'` = yes; then
19780
19781 cat >>confdefs.h <<_ACEOF
19782 #define CRAY_STACKSEG_END $ac_func
19783 _ACEOF
19784
19785     break
19786 fi
19787
19788   done
19789 fi
19790
19791 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19792 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19793 if test "${ac_cv_c_stack_direction+set}" = set; then
19794   echo $ECHO_N "(cached) $ECHO_C" >&6
19795 else
19796   if test "$cross_compiling" = yes; then
19797   ac_cv_c_stack_direction=0
19798 else
19799   cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805 $ac_includes_default
19806 int
19807 find_stack_direction ()
19808 {
19809   static char *addr = 0;
19810   auto char dummy;
19811   if (addr == 0)
19812     {
19813       addr = &dummy;
19814       return find_stack_direction ();
19815     }
19816   else
19817     return (&dummy > addr) ? 1 : -1;
19818 }
19819
19820 int
19821 main ()
19822 {
19823   return find_stack_direction () < 0;
19824 }
19825 _ACEOF
19826 rm -f conftest$ac_exeext
19827 if { (ac_try="$ac_link"
19828 case "(($ac_try" in
19829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830   *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833   (eval "$ac_link") 2>&5
19834   ac_status=$?
19835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19837   { (case "(($ac_try" in
19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839   *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842   (eval "$ac_try") 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   ac_cv_c_stack_direction=1
19847 else
19848   echo "$as_me: program exited with status $ac_status" >&5
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 ( exit $ac_status )
19853 ac_cv_c_stack_direction=-1
19854 fi
19855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19856 fi
19857
19858
19859 fi
19860 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19861 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19862
19863 cat >>confdefs.h <<_ACEOF
19864 #define STACK_DIRECTION $ac_cv_c_stack_direction
19865 _ACEOF
19866
19867
19868 fi
19869
19870
19871
19872 for ac_header in stdlib.h unistd.h
19873 do
19874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19876   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879   echo $ECHO_N "(cached) $ECHO_C" >&6
19880 fi
19881 ac_res=`eval echo '${'$as_ac_Header'}'`
19882                { echo "$as_me:$LINENO: result: $ac_res" >&5
19883 echo "${ECHO_T}$ac_res" >&6; }
19884 else
19885   # Is the header compilable?
19886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 $ac_includes_default
19895 #include <$ac_header>
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_compile") 2>conftest.er1
19905   ac_status=$?
19906   grep -v '^ *+' conftest.er1 >conftest.err
19907   rm -f conftest.er1
19908   cat conftest.err >&5
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); } && {
19911          test -z "$ac_c_werror_flag" ||
19912          test ! -s conftest.err
19913        } && test -s conftest.$ac_objext; then
19914   ac_header_compiler=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919         ac_header_compiler=no
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19925
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935 #include <$ac_header>
19936 _ACEOF
19937 if { (ac_try="$ac_cpp conftest.$ac_ext"
19938 case "(($ac_try" in
19939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940   *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } >/dev/null && {
19950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19951          test ! -s conftest.err
19952        }; then
19953   ac_header_preproc=yes
19954 else
19955   echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958   ac_header_preproc=no
19959 fi
19960
19961 rm -f conftest.err conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6; }
19964
19965 # So?  What about this header?
19966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19967   yes:no: )
19968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19972     ac_header_preproc=yes
19973     ;;
19974   no:yes:* )
19975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19987
19988     ;;
19989 esac
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   eval "$as_ac_Header=\$ac_header_preproc"
19996 fi
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998                { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20000
20001 fi
20002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003   cat >>confdefs.h <<_ACEOF
20004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20005 _ACEOF
20006
20007 fi
20008
20009 done
20010
20011
20012 for ac_func in getpagesize
20013 do
20014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20028 #define $ac_func innocuous_$ac_func
20029
20030 /* System header to define __stub macros and hopefully few prototypes,
20031     which can conflict with char $ac_func (); below.
20032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033     <limits.h> exists even on freestanding compilers.  */
20034
20035 #ifdef __STDC__
20036 # include <limits.h>
20037 #else
20038 # include <assert.h>
20039 #endif
20040
20041 #undef $ac_func
20042
20043 /* Override any GCC internal prototype to avoid an error.
20044    Use char because int might match the return type of a GCC
20045    builtin and then its argument prototype would still apply.  */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 char $ac_func ();
20050 /* The GNU C library defines this for functions which it implements
20051     to always fail with ENOSYS.  Some functions are actually named
20052     something starting with __ and the normal name is an alias.  */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20054 choke me
20055 #endif
20056
20057 int
20058 main ()
20059 {
20060 return $ac_func ();
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_link") 2>conftest.er1
20073   ac_status=$?
20074   grep -v '^ *+' conftest.er1 >conftest.err
20075   rm -f conftest.er1
20076   cat conftest.err >&5
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } && {
20079          test -z "$ac_c_werror_flag" ||
20080          test ! -s conftest.err
20081        } && test -s conftest$ac_exeext &&
20082        $as_test_x conftest$ac_exeext; then
20083   eval "$as_ac_var=yes"
20084 else
20085   echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088         eval "$as_ac_var=no"
20089 fi
20090
20091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20092       conftest$ac_exeext conftest.$ac_ext
20093 fi
20094 ac_res=`eval echo '${'$as_ac_var'}'`
20095                { echo "$as_me:$LINENO: result: $ac_res" >&5
20096 echo "${ECHO_T}$ac_res" >&6; }
20097 if test `eval echo '${'$as_ac_var'}'` = yes; then
20098   cat >>confdefs.h <<_ACEOF
20099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20100 _ACEOF
20101
20102 fi
20103 done
20104
20105 { echo "$as_me:$LINENO: checking for working mmap" >&5
20106 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20107 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110   if test "$cross_compiling" = yes; then
20111   ac_cv_func_mmap_fixed_mapped=no
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 $ac_includes_default
20120 /* malloc might have been renamed as rpl_malloc. */
20121 #undef malloc
20122
20123 /* Thanks to Mike Haertel and Jim Avera for this test.
20124    Here is a matrix of mmap possibilities:
20125         mmap private not fixed
20126         mmap private fixed at somewhere currently unmapped
20127         mmap private fixed at somewhere already mapped
20128         mmap shared not fixed
20129         mmap shared fixed at somewhere currently unmapped
20130         mmap shared fixed at somewhere already mapped
20131    For private mappings, we should verify that changes cannot be read()
20132    back from the file, nor mmap's back from the file at a different
20133    address.  (There have been systems where private was not correctly
20134    implemented like the infamous i386 svr4.0, and systems where the
20135    VM page cache was not coherent with the file system buffer cache
20136    like early versions of FreeBSD and possibly contemporary NetBSD.)
20137    For shared mappings, we should conversely verify that changes get
20138    propagated back to all the places they're supposed to be.
20139
20140    Grep wants private fixed already mapped.
20141    The main things grep needs to know about mmap are:
20142    * does it exist and is it safe to write into the mmap'd area
20143    * how to use it (BSD variants)  */
20144
20145 #include <fcntl.h>
20146 #include <sys/mman.h>
20147
20148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20149 char *malloc ();
20150 #endif
20151
20152 /* This mess was copied from the GNU getpagesize.h.  */
20153 #ifndef HAVE_GETPAGESIZE
20154 /* Assume that all systems that can run configure have sys/param.h.  */
20155 # ifndef HAVE_SYS_PARAM_H
20156 #  define HAVE_SYS_PARAM_H 1
20157 # endif
20158
20159 # ifdef _SC_PAGESIZE
20160 #  define getpagesize() sysconf(_SC_PAGESIZE)
20161 # else /* no _SC_PAGESIZE */
20162 #  ifdef HAVE_SYS_PARAM_H
20163 #   include <sys/param.h>
20164 #   ifdef EXEC_PAGESIZE
20165 #    define getpagesize() EXEC_PAGESIZE
20166 #   else /* no EXEC_PAGESIZE */
20167 #    ifdef NBPG
20168 #     define getpagesize() NBPG * CLSIZE
20169 #     ifndef CLSIZE
20170 #      define CLSIZE 1
20171 #     endif /* no CLSIZE */
20172 #    else /* no NBPG */
20173 #     ifdef NBPC
20174 #      define getpagesize() NBPC
20175 #     else /* no NBPC */
20176 #      ifdef PAGESIZE
20177 #       define getpagesize() PAGESIZE
20178 #      endif /* PAGESIZE */
20179 #     endif /* no NBPC */
20180 #    endif /* no NBPG */
20181 #   endif /* no EXEC_PAGESIZE */
20182 #  else /* no HAVE_SYS_PARAM_H */
20183 #   define getpagesize() 8192   /* punt totally */
20184 #  endif /* no HAVE_SYS_PARAM_H */
20185 # endif /* no _SC_PAGESIZE */
20186
20187 #endif /* no HAVE_GETPAGESIZE */
20188
20189 int
20190 main ()
20191 {
20192   char *data, *data2, *data3;
20193   int i, pagesize;
20194   int fd;
20195
20196   pagesize = getpagesize ();
20197
20198   /* First, make a file with some known garbage in it. */
20199   data = (char *) malloc (pagesize);
20200   if (!data)
20201     return 1;
20202   for (i = 0; i < pagesize; ++i)
20203     *(data + i) = rand ();
20204   umask (0);
20205   fd = creat ("conftest.mmap", 0600);
20206   if (fd < 0)
20207     return 1;
20208   if (write (fd, data, pagesize) != pagesize)
20209     return 1;
20210   close (fd);
20211
20212   /* Next, try to mmap the file at a fixed address which already has
20213      something else allocated at it.  If we can, also make sure that
20214      we see the same garbage.  */
20215   fd = open ("conftest.mmap", O_RDWR);
20216   if (fd < 0)
20217     return 1;
20218   data2 = (char *) malloc (2 * pagesize);
20219   if (!data2)
20220     return 1;
20221   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20222   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20223                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20224     return 1;
20225   for (i = 0; i < pagesize; ++i)
20226     if (*(data + i) != *(data2 + i))
20227       return 1;
20228
20229   /* Finally, make sure that changes to the mapped area do not
20230      percolate back to the file as seen by read().  (This is a bug on
20231      some variants of i386 svr4.0.)  */
20232   for (i = 0; i < pagesize; ++i)
20233     *(data2 + i) = *(data2 + i) + 1;
20234   data3 = (char *) malloc (pagesize);
20235   if (!data3)
20236     return 1;
20237   if (read (fd, data3, pagesize) != pagesize)
20238     return 1;
20239   for (i = 0; i < pagesize; ++i)
20240     if (*(data + i) != *(data3 + i))
20241       return 1;
20242   close (fd);
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest$ac_exeext
20247 if { (ac_try="$ac_link"
20248 case "(($ac_try" in
20249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250   *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253   (eval "$ac_link") 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257   { (case "(($ac_try" in
20258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259   *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262   (eval "$ac_try") 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); }; }; then
20266   ac_cv_func_mmap_fixed_mapped=yes
20267 else
20268   echo "$as_me: program exited with status $ac_status" >&5
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 ( exit $ac_status )
20273 ac_cv_func_mmap_fixed_mapped=no
20274 fi
20275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20276 fi
20277
20278
20279 fi
20280 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20281 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20282 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20283
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_MMAP 1
20286 _ACEOF
20287
20288 fi
20289 rm -f conftest.mmap
20290
20291
20292     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20293 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20294 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297   cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303
20304 #include <features.h>
20305 #ifdef __GNU_LIBRARY__
20306  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20307   Lucky GNU user
20308  #endif
20309 #endif
20310
20311 _ACEOF
20312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20313   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20314   ac_cv_gnu_library_2_1=yes
20315 else
20316   ac_cv_gnu_library_2_1=no
20317 fi
20318 rm -f conftest*
20319
20320
20321
20322 fi
20323 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20324 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20325
20326     GLIBC21="$ac_cv_gnu_library_2_1"
20327
20328
20329
20330
20331   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20332 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20333 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20334   echo $ECHO_N "(cached) $ECHO_C" >&6
20335 else
20336
20337       if test "$cross_compiling" = yes; then
20338
20339           # Guess based on the CPU.
20340           case "$host_cpu" in
20341             alpha* | i3456786 | m68k | s390*)
20342               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20343             *)
20344               gt_cv_int_divbyzero_sigfpe="guessing no";;
20345           esac
20346
20347 else
20348   cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354
20355 #include <stdlib.h>
20356 #include <signal.h>
20357
20358 static void
20359 #ifdef __cplusplus
20360 sigfpe_handler (int sig)
20361 #else
20362 sigfpe_handler (sig) int sig;
20363 #endif
20364 {
20365   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20366   exit (sig != SIGFPE);
20367 }
20368
20369 int x = 1;
20370 int y = 0;
20371 int z;
20372 int nan;
20373
20374 int main ()
20375 {
20376   signal (SIGFPE, sigfpe_handler);
20377 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20378 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20379   signal (SIGTRAP, sigfpe_handler);
20380 #endif
20381 /* Linux/SPARC yields signal SIGILL.  */
20382 #if defined (__sparc__) && defined (__linux__)
20383   signal (SIGILL, sigfpe_handler);
20384 #endif
20385
20386   z = x / y;
20387   nan = y / y;
20388   exit (1);
20389 }
20390
20391 _ACEOF
20392 rm -f conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_link") 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20403   { (case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_try") 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   gt_cv_int_divbyzero_sigfpe=yes
20413 else
20414   echo "$as_me: program exited with status $ac_status" >&5
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ( exit $ac_status )
20419 gt_cv_int_divbyzero_sigfpe=no
20420 fi
20421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20422 fi
20423
20424
20425
20426 fi
20427 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20428 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20429   case "$gt_cv_int_divbyzero_sigfpe" in
20430     *yes) value=1;;
20431     *) value=0;;
20432   esac
20433
20434 cat >>confdefs.h <<_ACEOF
20435 #define INTDIV0_RAISES_SIGFPE $value
20436 _ACEOF
20437
20438
20439
20440   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20441 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20442 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445   cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 unsigned long long ull = 1ULL; int i = 63;
20452 int
20453 main ()
20454 {
20455 unsigned long long ullmax = (unsigned long long) -1;
20456      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20457   ;
20458   return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465   *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468   (eval "$ac_link") 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } && {
20475          test -z "$ac_c_werror_flag" ||
20476          test ! -s conftest.err
20477        } && test -s conftest$ac_exeext &&
20478        $as_test_x conftest$ac_exeext; then
20479   ac_cv_type_unsigned_long_long=yes
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484         ac_cv_type_unsigned_long_long=no
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488       conftest$ac_exeext conftest.$ac_ext
20489 fi
20490 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20491 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20492   if test $ac_cv_type_unsigned_long_long = yes; then
20493
20494 cat >>confdefs.h <<\_ACEOF
20495 #define HAVE_UNSIGNED_LONG_LONG 1
20496 _ACEOF
20497
20498   fi
20499
20500
20501
20502
20503   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20504
20505     test $ac_cv_type_unsigned_long_long = yes \
20506       && ac_type='unsigned long long' \
20507       || ac_type='unsigned long'
20508
20509 cat >>confdefs.h <<_ACEOF
20510 #define uintmax_t $ac_type
20511 _ACEOF
20512
20513   else
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_UINTMAX_T 1
20517 _ACEOF
20518
20519   fi
20520
20521
20522   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20523 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20524 if test "${gt_cv_header_inttypes_h+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527
20528     cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 #include <sys/types.h>
20535 #include <inttypes.h>
20536 int
20537 main ()
20538 {
20539
20540   ;
20541   return 0;
20542 }
20543 _ACEOF
20544 rm -f conftest.$ac_objext
20545 if { (ac_try="$ac_compile"
20546 case "(($ac_try" in
20547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548   *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551   (eval "$ac_compile") 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } && {
20558          test -z "$ac_c_werror_flag" ||
20559          test ! -s conftest.err
20560        } && test -s conftest.$ac_objext; then
20561   gt_cv_header_inttypes_h=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566         gt_cv_header_inttypes_h=no
20567 fi
20568
20569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570
20571 fi
20572 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20573 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20574   if test $gt_cv_header_inttypes_h = yes; then
20575
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_INTTYPES_H 1
20578 _ACEOF
20579
20580   fi
20581
20582
20583
20584   if test $gt_cv_header_inttypes_h = yes; then
20585     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20586 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20587 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590
20591         cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 #include <inttypes.h>
20598 #ifdef PRId32
20599 char *p = PRId32;
20600 #endif
20601
20602 int
20603 main ()
20604 {
20605
20606   ;
20607   return 0;
20608 }
20609 _ACEOF
20610 rm -f conftest.$ac_objext
20611 if { (ac_try="$ac_compile"
20612 case "(($ac_try" in
20613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614   *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617   (eval "$ac_compile") 2>conftest.er1
20618   ac_status=$?
20619   grep -v '^ *+' conftest.er1 >conftest.err
20620   rm -f conftest.er1
20621   cat conftest.err >&5
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } && {
20624          test -z "$ac_c_werror_flag" ||
20625          test ! -s conftest.err
20626        } && test -s conftest.$ac_objext; then
20627   gt_cv_inttypes_pri_broken=no
20628 else
20629   echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632         gt_cv_inttypes_pri_broken=yes
20633 fi
20634
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636
20637 fi
20638 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20639 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20640   fi
20641   if test "$gt_cv_inttypes_pri_broken" = yes; then
20642
20643 cat >>confdefs.h <<_ACEOF
20644 #define PRI_MACROS_BROKEN 1
20645 _ACEOF
20646
20647   fi
20648
20649
20650
20651 for ac_header in stdint.h
20652 do
20653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 fi
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661                { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20663 else
20664   # Is the header compilable?
20665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673 $ac_includes_default
20674 #include <$ac_header>
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_compile") 2>conftest.er1
20684   ac_status=$?
20685   grep -v '^ *+' conftest.er1 >conftest.err
20686   rm -f conftest.er1
20687   cat conftest.err >&5
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); } && {
20690          test -z "$ac_c_werror_flag" ||
20691          test ! -s conftest.err
20692        } && test -s conftest.$ac_objext; then
20693   ac_header_compiler=yes
20694 else
20695   echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698         ac_header_compiler=no
20699 fi
20700
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20703 echo "${ECHO_T}$ac_header_compiler" >&6; }
20704
20705 # Is the header present?
20706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714 #include <$ac_header>
20715 _ACEOF
20716 if { (ac_try="$ac_cpp conftest.$ac_ext"
20717 case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20723   ac_status=$?
20724   grep -v '^ *+' conftest.er1 >conftest.err
20725   rm -f conftest.er1
20726   cat conftest.err >&5
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); } >/dev/null && {
20729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20730          test ! -s conftest.err
20731        }; then
20732   ac_header_preproc=yes
20733 else
20734   echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737   ac_header_preproc=no
20738 fi
20739
20740 rm -f conftest.err conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20742 echo "${ECHO_T}$ac_header_preproc" >&6; }
20743
20744 # So?  What about this header?
20745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20746   yes:no: )
20747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20751     ac_header_preproc=yes
20752     ;;
20753   no:yes:* )
20754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20766
20767     ;;
20768 esac
20769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774   eval "$as_ac_Header=\$ac_header_preproc"
20775 fi
20776 ac_res=`eval echo '${'$as_ac_Header'}'`
20777                { echo "$as_me:$LINENO: result: $ac_res" >&5
20778 echo "${ECHO_T}$ac_res" >&6; }
20779
20780 fi
20781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20782   cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20784 _ACEOF
20785
20786 fi
20787
20788 done
20789
20790     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20791 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20792   result=
20793   cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799
20800 #include <limits.h>
20801 #if HAVE_STDINT_H
20802 #include <stdint.h>
20803 #endif
20804 #ifdef SIZE_MAX
20805 Found it
20806 #endif
20807
20808 _ACEOF
20809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20810   $EGREP "Found it" >/dev/null 2>&1; then
20811   result=yes
20812 fi
20813 rm -f conftest*
20814
20815   if test -z "$result"; then
20816                     if test "$cross_compiling" = yes; then
20817   # Depending upon the size, compute the lo and hi bounds.
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 #include <stddef.h>
20825 int
20826 main ()
20827 {
20828 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20829 test_array [0] = 0
20830
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_compile") 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } && {
20849          test -z "$ac_c_werror_flag" ||
20850          test ! -s conftest.err
20851        } && test -s conftest.$ac_objext; then
20852   ac_lo=0 ac_mid=0
20853   while :; do
20854     cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <stddef.h>
20861 int
20862 main ()
20863 {
20864 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20865 test_array [0] = 0
20866
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_compile") 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } && {
20885          test -z "$ac_c_werror_flag" ||
20886          test ! -s conftest.err
20887        } && test -s conftest.$ac_objext; then
20888   ac_hi=$ac_mid; break
20889 else
20890   echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893         ac_lo=`expr $ac_mid + 1`
20894                         if test $ac_lo -le $ac_mid; then
20895                           ac_lo= ac_hi=
20896                           break
20897                         fi
20898                         ac_mid=`expr 2 '*' $ac_mid + 1`
20899 fi
20900
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902   done
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907         cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 #include <stddef.h>
20914 int
20915 main ()
20916 {
20917 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20918 test_array [0] = 0
20919
20920   ;
20921   return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928   *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931   (eval "$ac_compile") 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } && {
20938          test -z "$ac_c_werror_flag" ||
20939          test ! -s conftest.err
20940        } && test -s conftest.$ac_objext; then
20941   ac_hi=-1 ac_mid=-1
20942   while :; do
20943     cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949 #include <stddef.h>
20950 int
20951 main ()
20952 {
20953 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20954 test_array [0] = 0
20955
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_compile") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } && {
20974          test -z "$ac_c_werror_flag" ||
20975          test ! -s conftest.err
20976        } && test -s conftest.$ac_objext; then
20977   ac_lo=$ac_mid; break
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982         ac_hi=`expr '(' $ac_mid ')' - 1`
20983                         if test $ac_mid -le $ac_hi; then
20984                           ac_lo= ac_hi=
20985                           break
20986                         fi
20987                         ac_mid=`expr 2 '*' $ac_mid`
20988 fi
20989
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991   done
20992 else
20993   echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996         ac_lo= ac_hi=
20997 fi
20998
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000 fi
21001
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 # Binary search between lo and hi bounds.
21004 while test "x$ac_lo" != "x$ac_hi"; do
21005   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012 #include <stddef.h>
21013 int
21014 main ()
21015 {
21016 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21017 test_array [0] = 0
21018
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (ac_try="$ac_compile"
21025 case "(($ac_try" in
21026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027   *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030   (eval "$ac_compile") 2>conftest.er1
21031   ac_status=$?
21032   grep -v '^ *+' conftest.er1 >conftest.err
21033   rm -f conftest.er1
21034   cat conftest.err >&5
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); } && {
21037          test -z "$ac_c_werror_flag" ||
21038          test ! -s conftest.err
21039        } && test -s conftest.$ac_objext; then
21040   ac_hi=$ac_mid
21041 else
21042   echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045         ac_lo=`expr '(' $ac_mid ')' + 1`
21046 fi
21047
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 done
21050 case $ac_lo in
21051 ?*) res_hi=$ac_lo;;
21052 '') result=? ;;
21053 esac
21054 else
21055   cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h.  */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h.  */
21061 #include <stddef.h>
21062 static long int longval () { return ~(size_t)0 / 10; }
21063 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21064 #include <stdio.h>
21065 #include <stdlib.h>
21066 int
21067 main ()
21068 {
21069
21070   FILE *f = fopen ("conftest.val", "w");
21071   if (! f)
21072     return 1;
21073   if ((~(size_t)0 / 10) < 0)
21074     {
21075       long int i = longval ();
21076       if (i != (~(size_t)0 / 10))
21077         return 1;
21078       fprintf (f, "%ld\n", i);
21079     }
21080   else
21081     {
21082       unsigned long int i = ulongval ();
21083       if (i != (~(size_t)0 / 10))
21084         return 1;
21085       fprintf (f, "%lu\n", i);
21086     }
21087   return ferror (f) || fclose (f) != 0;
21088
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21104   { (case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_try") 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   res_hi=`cat conftest.val`
21114 else
21115   echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ( exit $ac_status )
21120 result=?
21121 fi
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21123 fi
21124 rm -f conftest.val
21125
21126     if test "$cross_compiling" = yes; then
21127   # Depending upon the size, compute the lo and hi bounds.
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h.  */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h.  */
21134 #include <stddef.h>
21135 int
21136 main ()
21137 {
21138 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21139 test_array [0] = 0
21140
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_compile") 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } && {
21159          test -z "$ac_c_werror_flag" ||
21160          test ! -s conftest.err
21161        } && test -s conftest.$ac_objext; then
21162   ac_lo=0 ac_mid=0
21163   while :; do
21164     cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h.  */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h.  */
21170 #include <stddef.h>
21171 int
21172 main ()
21173 {
21174 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21175 test_array [0] = 0
21176
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext
21182 if { (ac_try="$ac_compile"
21183 case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_compile") 2>conftest.er1
21189   ac_status=$?
21190   grep -v '^ *+' conftest.er1 >conftest.err
21191   rm -f conftest.er1
21192   cat conftest.err >&5
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); } && {
21195          test -z "$ac_c_werror_flag" ||
21196          test ! -s conftest.err
21197        } && test -s conftest.$ac_objext; then
21198   ac_hi=$ac_mid; break
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203         ac_lo=`expr $ac_mid + 1`
21204                         if test $ac_lo -le $ac_mid; then
21205                           ac_lo= ac_hi=
21206                           break
21207                         fi
21208                         ac_mid=`expr 2 '*' $ac_mid + 1`
21209 fi
21210
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21212   done
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217         cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 #include <stddef.h>
21224 int
21225 main ()
21226 {
21227 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21228 test_array [0] = 0
21229
21230   ;
21231   return 0;
21232 }
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_compile") 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } && {
21248          test -z "$ac_c_werror_flag" ||
21249          test ! -s conftest.err
21250        } && test -s conftest.$ac_objext; then
21251   ac_hi=-1 ac_mid=-1
21252   while :; do
21253     cat >conftest.$ac_ext <<_ACEOF
21254 /* confdefs.h.  */
21255 _ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h.  */
21259 #include <stddef.h>
21260 int
21261 main ()
21262 {
21263 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21264 test_array [0] = 0
21265
21266   ;
21267   return 0;
21268 }
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274   *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277   (eval "$ac_compile") 2>conftest.er1
21278   ac_status=$?
21279   grep -v '^ *+' conftest.er1 >conftest.err
21280   rm -f conftest.er1
21281   cat conftest.err >&5
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); } && {
21284          test -z "$ac_c_werror_flag" ||
21285          test ! -s conftest.err
21286        } && test -s conftest.$ac_objext; then
21287   ac_lo=$ac_mid; break
21288 else
21289   echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292         ac_hi=`expr '(' $ac_mid ')' - 1`
21293                         if test $ac_mid -le $ac_hi; then
21294                           ac_lo= ac_hi=
21295                           break
21296                         fi
21297                         ac_mid=`expr 2 '*' $ac_mid`
21298 fi
21299
21300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301   done
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306         ac_lo= ac_hi=
21307 fi
21308
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310 fi
21311
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 # Binary search between lo and hi bounds.
21314 while test "x$ac_lo" != "x$ac_hi"; do
21315   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #include <stddef.h>
21323 int
21324 main ()
21325 {
21326 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21327 test_array [0] = 0
21328
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337   *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340   (eval "$ac_compile") 2>conftest.er1
21341   ac_status=$?
21342   grep -v '^ *+' conftest.er1 >conftest.err
21343   rm -f conftest.er1
21344   cat conftest.err >&5
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } && {
21347          test -z "$ac_c_werror_flag" ||
21348          test ! -s conftest.err
21349        } && test -s conftest.$ac_objext; then
21350   ac_hi=$ac_mid
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355         ac_lo=`expr '(' $ac_mid ')' + 1`
21356 fi
21357
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359 done
21360 case $ac_lo in
21361 ?*) res_lo=$ac_lo;;
21362 '') result=? ;;
21363 esac
21364 else
21365   cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h.  */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h.  */
21371 #include <stddef.h>
21372 static long int longval () { return ~(size_t)0 % 10; }
21373 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21374 #include <stdio.h>
21375 #include <stdlib.h>
21376 int
21377 main ()
21378 {
21379
21380   FILE *f = fopen ("conftest.val", "w");
21381   if (! f)
21382     return 1;
21383   if ((~(size_t)0 % 10) < 0)
21384     {
21385       long int i = longval ();
21386       if (i != (~(size_t)0 % 10))
21387         return 1;
21388       fprintf (f, "%ld\n", i);
21389     }
21390   else
21391     {
21392       unsigned long int i = ulongval ();
21393       if (i != (~(size_t)0 % 10))
21394         return 1;
21395       fprintf (f, "%lu\n", i);
21396     }
21397   return ferror (f) || fclose (f) != 0;
21398
21399   ;
21400   return 0;
21401 }
21402 _ACEOF
21403 rm -f conftest$ac_exeext
21404 if { (ac_try="$ac_link"
21405 case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_link") 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21414   { (case "(($ac_try" in
21415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416   *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419   (eval "$ac_try") 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; }; then
21423   res_lo=`cat conftest.val`
21424 else
21425   echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 ( exit $ac_status )
21430 result=?
21431 fi
21432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21433 fi
21434 rm -f conftest.val
21435
21436     if test "$cross_compiling" = yes; then
21437   # Depending upon the size, compute the lo and hi bounds.
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 #include <stddef.h>
21445 int
21446 main ()
21447 {
21448 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21449 test_array [0] = 0
21450
21451   ;
21452   return 0;
21453 }
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_compile") 2>conftest.er1
21463   ac_status=$?
21464   grep -v '^ *+' conftest.er1 >conftest.err
21465   rm -f conftest.er1
21466   cat conftest.err >&5
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && {
21469          test -z "$ac_c_werror_flag" ||
21470          test ! -s conftest.err
21471        } && test -s conftest.$ac_objext; then
21472   ac_lo=0 ac_mid=0
21473   while :; do
21474     cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 #include <stddef.h>
21481 int
21482 main ()
21483 {
21484 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21485 test_array [0] = 0
21486
21487   ;
21488   return 0;
21489 }
21490 _ACEOF
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495   *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498   (eval "$ac_compile") 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } && {
21505          test -z "$ac_c_werror_flag" ||
21506          test ! -s conftest.err
21507        } && test -s conftest.$ac_objext; then
21508   ac_hi=$ac_mid; break
21509 else
21510   echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21512
21513         ac_lo=`expr $ac_mid + 1`
21514                         if test $ac_lo -le $ac_mid; then
21515                           ac_lo= ac_hi=
21516                           break
21517                         fi
21518                         ac_mid=`expr 2 '*' $ac_mid + 1`
21519 fi
21520
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522   done
21523 else
21524   echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526
21527         cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533 #include <stddef.h>
21534 int
21535 main ()
21536 {
21537 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21538 test_array [0] = 0
21539
21540   ;
21541   return 0;
21542 }
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548   *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551   (eval "$ac_compile") 2>conftest.er1
21552   ac_status=$?
21553   grep -v '^ *+' conftest.er1 >conftest.err
21554   rm -f conftest.er1
21555   cat conftest.err >&5
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } && {
21558          test -z "$ac_c_werror_flag" ||
21559          test ! -s conftest.err
21560        } && test -s conftest.$ac_objext; then
21561   ac_hi=-1 ac_mid=-1
21562   while :; do
21563     cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569 #include <stddef.h>
21570 int
21571 main ()
21572 {
21573 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21574 test_array [0] = 0
21575
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587   (eval "$ac_compile") 2>conftest.er1
21588   ac_status=$?
21589   grep -v '^ *+' conftest.er1 >conftest.err
21590   rm -f conftest.er1
21591   cat conftest.err >&5
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); } && {
21594          test -z "$ac_c_werror_flag" ||
21595          test ! -s conftest.err
21596        } && test -s conftest.$ac_objext; then
21597   ac_lo=$ac_mid; break
21598 else
21599   echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602         ac_hi=`expr '(' $ac_mid ')' - 1`
21603                         if test $ac_mid -le $ac_hi; then
21604                           ac_lo= ac_hi=
21605                           break
21606                         fi
21607                         ac_mid=`expr 2 '*' $ac_mid`
21608 fi
21609
21610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611   done
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616         ac_lo= ac_hi=
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 fi
21621
21622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 # Binary search between lo and hi bounds.
21624 while test "x$ac_lo" != "x$ac_hi"; do
21625   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21626   cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h.  */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h.  */
21632 #include <stddef.h>
21633 int
21634 main ()
21635 {
21636 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21637 test_array [0] = 0
21638
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (ac_try="$ac_compile"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650   (eval "$ac_compile") 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } && {
21657          test -z "$ac_c_werror_flag" ||
21658          test ! -s conftest.err
21659        } && test -s conftest.$ac_objext; then
21660   ac_hi=$ac_mid
21661 else
21662   echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21664
21665         ac_lo=`expr '(' $ac_mid ')' + 1`
21666 fi
21667
21668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21669 done
21670 case $ac_lo in
21671 ?*) fits_in_uint=$ac_lo;;
21672 '') result=? ;;
21673 esac
21674 else
21675   cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 #include <stddef.h>
21682 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21683 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21684 #include <stdio.h>
21685 #include <stdlib.h>
21686 int
21687 main ()
21688 {
21689
21690   FILE *f = fopen ("conftest.val", "w");
21691   if (! f)
21692     return 1;
21693   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21694     {
21695       long int i = longval ();
21696       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21697         return 1;
21698       fprintf (f, "%ld\n", i);
21699     }
21700   else
21701     {
21702       unsigned long int i = ulongval ();
21703       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21704         return 1;
21705       fprintf (f, "%lu\n", i);
21706     }
21707   return ferror (f) || fclose (f) != 0;
21708
21709   ;
21710   return 0;
21711 }
21712 _ACEOF
21713 rm -f conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_link") 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21724   { (case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729   (eval "$ac_try") 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); }; }; then
21733   fits_in_uint=`cat conftest.val`
21734 else
21735   echo "$as_me: program exited with status $ac_status" >&5
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739 ( exit $ac_status )
21740 result=?
21741 fi
21742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21743 fi
21744 rm -f conftest.val
21745
21746     if test "$fits_in_uint" = 1; then
21747                   cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753 #include <stddef.h>
21754         extern size_t foo;
21755         extern unsigned long foo;
21756
21757 int
21758 main ()
21759 {
21760
21761   ;
21762   return 0;
21763 }
21764 _ACEOF
21765 rm -f conftest.$ac_objext
21766 if { (ac_try="$ac_compile"
21767 case "(($ac_try" in
21768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769   *) ac_try_echo=$ac_try;;
21770 esac
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772   (eval "$ac_compile") 2>conftest.er1
21773   ac_status=$?
21774   grep -v '^ *+' conftest.er1 >conftest.err
21775   rm -f conftest.er1
21776   cat conftest.err >&5
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); } && {
21779          test -z "$ac_c_werror_flag" ||
21780          test ! -s conftest.err
21781        } && test -s conftest.$ac_objext; then
21782   fits_in_uint=0
21783 else
21784   echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21786
21787
21788 fi
21789
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21791     fi
21792     if test -z "$result"; then
21793       if test "$fits_in_uint" = 1; then
21794         result="$res_hi$res_lo"U
21795       else
21796         result="$res_hi$res_lo"UL
21797       fi
21798     else
21799             result='~(size_t)0'
21800     fi
21801   fi
21802   { echo "$as_me:$LINENO: result: $result" >&5
21803 echo "${ECHO_T}$result" >&6; }
21804   if test "$result" != yes; then
21805
21806 cat >>confdefs.h <<_ACEOF
21807 #define SIZE_MAX $result
21808 _ACEOF
21809
21810   fi
21811
21812
21813
21814
21815
21816 for ac_header in stdint.h
21817 do
21818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21820   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21823   echo $ECHO_N "(cached) $ECHO_C" >&6
21824 fi
21825 ac_res=`eval echo '${'$as_ac_Header'}'`
21826                { echo "$as_me:$LINENO: result: $ac_res" >&5
21827 echo "${ECHO_T}$ac_res" >&6; }
21828 else
21829   # Is the header compilable?
21830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h.  */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h.  */
21838 $ac_includes_default
21839 #include <$ac_header>
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_compile") 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } && {
21855          test -z "$ac_c_werror_flag" ||
21856          test ! -s conftest.err
21857        } && test -s conftest.$ac_objext; then
21858   ac_header_compiler=yes
21859 else
21860   echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21862
21863         ac_header_compiler=no
21864 fi
21865
21866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21868 echo "${ECHO_T}$ac_header_compiler" >&6; }
21869
21870 # Is the header present?
21871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879 #include <$ac_header>
21880 _ACEOF
21881 if { (ac_try="$ac_cpp conftest.$ac_ext"
21882 case "(($ac_try" in
21883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884   *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21888   ac_status=$?
21889   grep -v '^ *+' conftest.er1 >conftest.err
21890   rm -f conftest.er1
21891   cat conftest.err >&5
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); } >/dev/null && {
21894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21895          test ! -s conftest.err
21896        }; then
21897   ac_header_preproc=yes
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902   ac_header_preproc=no
21903 fi
21904
21905 rm -f conftest.err conftest.$ac_ext
21906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21907 echo "${ECHO_T}$ac_header_preproc" >&6; }
21908
21909 # So?  What about this header?
21910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21911   yes:no: )
21912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21916     ac_header_preproc=yes
21917     ;;
21918   no:yes:* )
21919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21931
21932     ;;
21933 esac
21934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   eval "$as_ac_Header=\$ac_header_preproc"
21940 fi
21941 ac_res=`eval echo '${'$as_ac_Header'}'`
21942                { echo "$as_me:$LINENO: result: $ac_res" >&5
21943 echo "${ECHO_T}$ac_res" >&6; }
21944
21945 fi
21946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947   cat >>confdefs.h <<_ACEOF
21948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21949 _ACEOF
21950
21951 fi
21952
21953 done
21954
21955
21956
21957
21958
21959
21960
21961
21962   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21963 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21964 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 $ac_includes_default
21974 typedef ptrdiff_t ac__type_new_;
21975 int
21976 main ()
21977 {
21978 if ((ac__type_new_ *) 0)
21979   return 0;
21980 if (sizeof (ac__type_new_))
21981   return 0;
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_compile") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } && {
22000          test -z "$ac_c_werror_flag" ||
22001          test ! -s conftest.err
22002        } && test -s conftest.$ac_objext; then
22003   ac_cv_type_ptrdiff_t=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008         ac_cv_type_ptrdiff_t=no
22009 fi
22010
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22014 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22015 if test $ac_cv_type_ptrdiff_t = yes; then
22016   :
22017 else
22018
22019 cat >>confdefs.h <<\_ACEOF
22020 #define ptrdiff_t long
22021 _ACEOF
22022
22023
22024 fi
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22037 stdlib.h string.h unistd.h sys/param.h
22038 do
22039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 fi
22046 ac_res=`eval echo '${'$as_ac_Header'}'`
22047                { echo "$as_me:$LINENO: result: $ac_res" >&5
22048 echo "${ECHO_T}$ac_res" >&6; }
22049 else
22050   # Is the header compilable?
22051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h.  */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h.  */
22059 $ac_includes_default
22060 #include <$ac_header>
22061 _ACEOF
22062 rm -f conftest.$ac_objext
22063 if { (ac_try="$ac_compile"
22064 case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_compile") 2>conftest.er1
22070   ac_status=$?
22071   grep -v '^ *+' conftest.er1 >conftest.err
22072   rm -f conftest.er1
22073   cat conftest.err >&5
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); } && {
22076          test -z "$ac_c_werror_flag" ||
22077          test ! -s conftest.err
22078        } && test -s conftest.$ac_objext; then
22079   ac_header_compiler=yes
22080 else
22081   echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084         ac_header_compiler=no
22085 fi
22086
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22089 echo "${ECHO_T}$ac_header_compiler" >&6; }
22090
22091 # Is the header present?
22092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22094 cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h.  */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h.  */
22100 #include <$ac_header>
22101 _ACEOF
22102 if { (ac_try="$ac_cpp conftest.$ac_ext"
22103 case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22109   ac_status=$?
22110   grep -v '^ *+' conftest.er1 >conftest.err
22111   rm -f conftest.er1
22112   cat conftest.err >&5
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } >/dev/null && {
22115          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22116          test ! -s conftest.err
22117        }; then
22118   ac_header_preproc=yes
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123   ac_header_preproc=no
22124 fi
22125
22126 rm -f conftest.err conftest.$ac_ext
22127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22128 echo "${ECHO_T}$ac_header_preproc" >&6; }
22129
22130 # So?  What about this header?
22131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22132   yes:no: )
22133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22137     ac_header_preproc=yes
22138     ;;
22139   no:yes:* )
22140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22152
22153     ;;
22154 esac
22155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22158   echo $ECHO_N "(cached) $ECHO_C" >&6
22159 else
22160   eval "$as_ac_Header=\$ac_header_preproc"
22161 fi
22162 ac_res=`eval echo '${'$as_ac_Header'}'`
22163                { echo "$as_me:$LINENO: result: $ac_res" >&5
22164 echo "${ECHO_T}$ac_res" >&6; }
22165
22166 fi
22167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22168   cat >>confdefs.h <<_ACEOF
22169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22170 _ACEOF
22171
22172 fi
22173
22174 done
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22200 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22201 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22202 __fsetlocking
22203 do
22204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22208   echo $ECHO_N "(cached) $ECHO_C" >&6
22209 else
22210   cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h.  */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h.  */
22216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22218 #define $ac_func innocuous_$ac_func
22219
22220 /* System header to define __stub macros and hopefully few prototypes,
22221     which can conflict with char $ac_func (); below.
22222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22223     <limits.h> exists even on freestanding compilers.  */
22224
22225 #ifdef __STDC__
22226 # include <limits.h>
22227 #else
22228 # include <assert.h>
22229 #endif
22230
22231 #undef $ac_func
22232
22233 /* Override any GCC internal prototype to avoid an error.
22234    Use char because int might match the return type of a GCC
22235    builtin and then its argument prototype would still apply.  */
22236 #ifdef __cplusplus
22237 extern "C"
22238 #endif
22239 char $ac_func ();
22240 /* The GNU C library defines this for functions which it implements
22241     to always fail with ENOSYS.  Some functions are actually named
22242     something starting with __ and the normal name is an alias.  */
22243 #if defined __stub_$ac_func || defined __stub___$ac_func
22244 choke me
22245 #endif
22246
22247 int
22248 main ()
22249 {
22250 return $ac_func ();
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext conftest$ac_exeext
22256 if { (ac_try="$ac_link"
22257 case "(($ac_try" in
22258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259   *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262   (eval "$ac_link") 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } && {
22269          test -z "$ac_c_werror_flag" ||
22270          test ! -s conftest.err
22271        } && test -s conftest$ac_exeext &&
22272        $as_test_x conftest$ac_exeext; then
22273   eval "$as_ac_var=yes"
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278         eval "$as_ac_var=no"
22279 fi
22280
22281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22282       conftest$ac_exeext conftest.$ac_ext
22283 fi
22284 ac_res=`eval echo '${'$as_ac_var'}'`
22285                { echo "$as_me:$LINENO: result: $ac_res" >&5
22286 echo "${ECHO_T}$ac_res" >&6; }
22287 if test `eval echo '${'$as_ac_var'}'` = yes; then
22288   cat >>confdefs.h <<_ACEOF
22289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22290 _ACEOF
22291
22292 fi
22293 done
22294
22295
22296
22297   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22298 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22299 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22300   echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302   cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h.  */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h.  */
22308 #include <stdio.h>
22309 int
22310 main ()
22311 {
22312
22313 #ifndef _snprintf
22314   char *p = (char *) _snprintf;
22315 #endif
22316
22317   ;
22318   return 0;
22319 }
22320 _ACEOF
22321 rm -f conftest.$ac_objext
22322 if { (ac_try="$ac_compile"
22323 case "(($ac_try" in
22324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325   *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328   (eval "$ac_compile") 2>conftest.er1
22329   ac_status=$?
22330   grep -v '^ *+' conftest.er1 >conftest.err
22331   rm -f conftest.er1
22332   cat conftest.err >&5
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); } && {
22335          test -z "$ac_c_werror_flag" ||
22336          test ! -s conftest.err
22337        } && test -s conftest.$ac_objext; then
22338   ac_cv_have_decl__snprintf=yes
22339 else
22340   echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343         ac_cv_have_decl__snprintf=no
22344 fi
22345
22346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 fi
22348 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22349 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22350   if test $ac_cv_have_decl__snprintf = yes; then
22351     gt_value=1
22352   else
22353     gt_value=0
22354   fi
22355
22356 cat >>confdefs.h <<_ACEOF
22357 #define HAVE_DECL__SNPRINTF $gt_value
22358 _ACEOF
22359
22360
22361
22362   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22363 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22364 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22365   echo $ECHO_N "(cached) $ECHO_C" >&6
22366 else
22367   cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h.  */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h.  */
22373 #include <stdio.h>
22374 int
22375 main ()
22376 {
22377
22378 #ifndef _snwprintf
22379   char *p = (char *) _snwprintf;
22380 #endif
22381
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext
22387 if { (ac_try="$ac_compile"
22388 case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_compile") 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } && {
22400          test -z "$ac_c_werror_flag" ||
22401          test ! -s conftest.err
22402        } && test -s conftest.$ac_objext; then
22403   ac_cv_have_decl__snwprintf=yes
22404 else
22405   echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22407
22408         ac_cv_have_decl__snwprintf=no
22409 fi
22410
22411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22412 fi
22413 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22414 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22415   if test $ac_cv_have_decl__snwprintf = yes; then
22416     gt_value=1
22417   else
22418     gt_value=0
22419   fi
22420
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_DECL__SNWPRINTF $gt_value
22423 _ACEOF
22424
22425
22426
22427
22428   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22429 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22430 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22431   echo $ECHO_N "(cached) $ECHO_C" >&6
22432 else
22433   cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439 #include <stdio.h>
22440 int
22441 main ()
22442 {
22443
22444 #ifndef feof_unlocked
22445   char *p = (char *) feof_unlocked;
22446 #endif
22447
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456   *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459   (eval "$ac_compile") 2>conftest.er1
22460   ac_status=$?
22461   grep -v '^ *+' conftest.er1 >conftest.err
22462   rm -f conftest.er1
22463   cat conftest.err >&5
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); } && {
22466          test -z "$ac_c_werror_flag" ||
22467          test ! -s conftest.err
22468        } && test -s conftest.$ac_objext; then
22469   ac_cv_have_decl_feof_unlocked=yes
22470 else
22471   echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474         ac_cv_have_decl_feof_unlocked=no
22475 fi
22476
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 fi
22479 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22480 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22481   if test $ac_cv_have_decl_feof_unlocked = yes; then
22482     gt_value=1
22483   else
22484     gt_value=0
22485   fi
22486
22487 cat >>confdefs.h <<_ACEOF
22488 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22489 _ACEOF
22490
22491
22492
22493   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22494 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22495 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498   cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h.  */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h.  */
22504 #include <stdio.h>
22505 int
22506 main ()
22507 {
22508
22509 #ifndef fgets_unlocked
22510   char *p = (char *) fgets_unlocked;
22511 #endif
22512
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 rm -f conftest.$ac_objext
22518 if { (ac_try="$ac_compile"
22519 case "(($ac_try" in
22520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521   *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524   (eval "$ac_compile") 2>conftest.er1
22525   ac_status=$?
22526   grep -v '^ *+' conftest.er1 >conftest.err
22527   rm -f conftest.er1
22528   cat conftest.err >&5
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } && {
22531          test -z "$ac_c_werror_flag" ||
22532          test ! -s conftest.err
22533        } && test -s conftest.$ac_objext; then
22534   ac_cv_have_decl_fgets_unlocked=yes
22535 else
22536   echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22538
22539         ac_cv_have_decl_fgets_unlocked=no
22540 fi
22541
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 fi
22544 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22545 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22546   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22547     gt_value=1
22548   else
22549     gt_value=0
22550   fi
22551
22552 cat >>confdefs.h <<_ACEOF
22553 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22554 _ACEOF
22555
22556
22557
22558   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22559 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22560 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563   cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h.  */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h.  */
22569 #include <stdio.h>
22570 int
22571 main ()
22572 {
22573
22574 #ifndef getc_unlocked
22575   char *p = (char *) getc_unlocked;
22576 #endif
22577
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586   *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589   (eval "$ac_compile") 2>conftest.er1
22590   ac_status=$?
22591   grep -v '^ *+' conftest.er1 >conftest.err
22592   rm -f conftest.er1
22593   cat conftest.err >&5
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); } && {
22596          test -z "$ac_c_werror_flag" ||
22597          test ! -s conftest.err
22598        } && test -s conftest.$ac_objext; then
22599   ac_cv_have_decl_getc_unlocked=yes
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604         ac_cv_have_decl_getc_unlocked=no
22605 fi
22606
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 fi
22609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22610 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22611   if test $ac_cv_have_decl_getc_unlocked = yes; then
22612     gt_value=1
22613   else
22614     gt_value=0
22615   fi
22616
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22619 _ACEOF
22620
22621
22622
22623   case $gt_cv_func_printf_posix in
22624     *yes) HAVE_POSIX_PRINTF=1 ;;
22625     *) HAVE_POSIX_PRINTF=0 ;;
22626   esac
22627
22628   if test "$ac_cv_func_asprintf" = yes; then
22629     HAVE_ASPRINTF=1
22630   else
22631     HAVE_ASPRINTF=0
22632   fi
22633
22634   if test "$ac_cv_func_snprintf" = yes; then
22635     HAVE_SNPRINTF=1
22636   else
22637     HAVE_SNPRINTF=0
22638   fi
22639
22640   if test "$ac_cv_func_wprintf" = yes; then
22641     HAVE_WPRINTF=1
22642   else
22643     HAVE_WPRINTF=0
22644   fi
22645
22646
22647
22648
22649
22650
22651
22652           am_save_CPPFLAGS="$CPPFLAGS"
22653
22654   for element in $INCICONV; do
22655     haveit=
22656     for x in $CPPFLAGS; do
22657
22658   acl_save_prefix="$prefix"
22659   prefix="$acl_final_prefix"
22660   acl_save_exec_prefix="$exec_prefix"
22661   exec_prefix="$acl_final_exec_prefix"
22662   eval x=\"$x\"
22663   exec_prefix="$acl_save_exec_prefix"
22664   prefix="$acl_save_prefix"
22665
22666       if test "X$x" = "X$element"; then
22667         haveit=yes
22668         break
22669       fi
22670     done
22671     if test -z "$haveit"; then
22672       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22673     fi
22674   done
22675
22676
22677   { echo "$as_me:$LINENO: checking for iconv" >&5
22678 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22679 if test "${am_cv_func_iconv+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682
22683     am_cv_func_iconv="no, consider installing GNU libiconv"
22684     am_cv_lib_iconv=no
22685     cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h.  */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h.  */
22691 #include <stdlib.h>
22692 #include <iconv.h>
22693 int
22694 main ()
22695 {
22696 iconv_t cd = iconv_open("","");
22697        iconv(cd,NULL,NULL,NULL,NULL);
22698        iconv_close(cd);
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (ac_try="$ac_link"
22705 case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_link") 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } && {
22717          test -z "$ac_c_werror_flag" ||
22718          test ! -s conftest.err
22719        } && test -s conftest$ac_exeext &&
22720        $as_test_x conftest$ac_exeext; then
22721   am_cv_func_iconv=yes
22722 else
22723   echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726
22727 fi
22728
22729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22730       conftest$ac_exeext conftest.$ac_ext
22731     if test "$am_cv_func_iconv" != yes; then
22732       am_save_LIBS="$LIBS"
22733       LIBS="$LIBS $LIBICONV"
22734       cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740 #include <stdlib.h>
22741 #include <iconv.h>
22742 int
22743 main ()
22744 {
22745 iconv_t cd = iconv_open("","");
22746          iconv(cd,NULL,NULL,NULL,NULL);
22747          iconv_close(cd);
22748   ;
22749   return 0;
22750 }
22751 _ACEOF
22752 rm -f conftest.$ac_objext conftest$ac_exeext
22753 if { (ac_try="$ac_link"
22754 case "(($ac_try" in
22755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756   *) ac_try_echo=$ac_try;;
22757 esac
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759   (eval "$ac_link") 2>conftest.er1
22760   ac_status=$?
22761   grep -v '^ *+' conftest.er1 >conftest.err
22762   rm -f conftest.er1
22763   cat conftest.err >&5
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); } && {
22766          test -z "$ac_c_werror_flag" ||
22767          test ! -s conftest.err
22768        } && test -s conftest$ac_exeext &&
22769        $as_test_x conftest$ac_exeext; then
22770   am_cv_lib_iconv=yes
22771         am_cv_func_iconv=yes
22772 else
22773   echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776
22777 fi
22778
22779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22780       conftest$ac_exeext conftest.$ac_ext
22781       LIBS="$am_save_LIBS"
22782     fi
22783
22784 fi
22785 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22786 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22787   if test "$am_cv_func_iconv" = yes; then
22788
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_ICONV 1
22791 _ACEOF
22792
22793   fi
22794   if test "$am_cv_lib_iconv" = yes; then
22795     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22796 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22797     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22798 echo "${ECHO_T}$LIBICONV" >&6; }
22799   else
22800             CPPFLAGS="$am_save_CPPFLAGS"
22801     LIBICONV=
22802     LTLIBICONV=
22803   fi
22804
22805
22806
22807   if test "$am_cv_func_iconv" = yes; then
22808     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22809 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22810     if test "${am_cv_proto_iconv+set}" = set; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813
22814       cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h.  */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h.  */
22820
22821 #include <stdlib.h>
22822 #include <iconv.h>
22823 extern
22824 #ifdef __cplusplus
22825 "C"
22826 #endif
22827 #if defined(__STDC__) || defined(__cplusplus)
22828 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22829 #else
22830 size_t iconv();
22831 #endif
22832
22833 int
22834 main ()
22835 {
22836
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 rm -f conftest.$ac_objext
22842 if { (ac_try="$ac_compile"
22843 case "(($ac_try" in
22844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845   *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848   (eval "$ac_compile") 2>conftest.er1
22849   ac_status=$?
22850   grep -v '^ *+' conftest.er1 >conftest.err
22851   rm -f conftest.er1
22852   cat conftest.err >&5
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } && {
22855          test -z "$ac_c_werror_flag" ||
22856          test ! -s conftest.err
22857        } && test -s conftest.$ac_objext; then
22858   am_cv_proto_iconv_arg1=""
22859 else
22860   echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863         am_cv_proto_iconv_arg1="const"
22864 fi
22865
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867       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);"
22868 fi
22869
22870     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22871     { echo "$as_me:$LINENO: result: ${ac_t:-
22872          }$am_cv_proto_iconv" >&5
22873 echo "${ECHO_T}${ac_t:-
22874          }$am_cv_proto_iconv" >&6; }
22875
22876 cat >>confdefs.h <<_ACEOF
22877 #define ICONV_CONST $am_cv_proto_iconv_arg1
22878 _ACEOF
22879
22880   fi
22881
22882
22883   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22884 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22885 if test "${am_cv_langinfo_codeset+set}" = set; then
22886   echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888   cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h.  */
22890 _ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h.  */
22894 #include <langinfo.h>
22895 int
22896 main ()
22897 {
22898 char* cs = nl_langinfo(CODESET);
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 rm -f conftest.$ac_objext conftest$ac_exeext
22904 if { (ac_try="$ac_link"
22905 case "(($ac_try" in
22906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907   *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910   (eval "$ac_link") 2>conftest.er1
22911   ac_status=$?
22912   grep -v '^ *+' conftest.er1 >conftest.err
22913   rm -f conftest.er1
22914   cat conftest.err >&5
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); } && {
22917          test -z "$ac_c_werror_flag" ||
22918          test ! -s conftest.err
22919        } && test -s conftest$ac_exeext &&
22920        $as_test_x conftest$ac_exeext; then
22921   am_cv_langinfo_codeset=yes
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926         am_cv_langinfo_codeset=no
22927 fi
22928
22929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22930       conftest$ac_exeext conftest.$ac_ext
22931
22932 fi
22933 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22934 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22935   if test $am_cv_langinfo_codeset = yes; then
22936
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_LANGINFO_CODESET 1
22939 _ACEOF
22940
22941   fi
22942
22943   if test $ac_cv_header_locale_h = yes; then
22944
22945   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22946 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22947 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22948   echo $ECHO_N "(cached) $ECHO_C" >&6
22949 else
22950   cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h.  */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h.  */
22956 #include <locale.h>
22957 int
22958 main ()
22959 {
22960 return LC_MESSAGES
22961   ;
22962   return 0;
22963 }
22964 _ACEOF
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (ac_try="$ac_link"
22967 case "(($ac_try" in
22968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969   *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972   (eval "$ac_link") 2>conftest.er1
22973   ac_status=$?
22974   grep -v '^ *+' conftest.er1 >conftest.err
22975   rm -f conftest.er1
22976   cat conftest.err >&5
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } && {
22979          test -z "$ac_c_werror_flag" ||
22980          test ! -s conftest.err
22981        } && test -s conftest$ac_exeext &&
22982        $as_test_x conftest$ac_exeext; then
22983   gt_cv_val_LC_MESSAGES=yes
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988         gt_cv_val_LC_MESSAGES=no
22989 fi
22990
22991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22992       conftest$ac_exeext conftest.$ac_ext
22993 fi
22994 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22995 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22996   if test $gt_cv_val_LC_MESSAGES = yes; then
22997
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_LC_MESSAGES 1
23000 _ACEOF
23001
23002   fi
23003
23004   fi
23005
23006   if test -n "$INTL_MACOSX_LIBS"; then
23007     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23008   fi
23009
23010                       for ac_prog in bison
23011 do
23012   # Extract the first word of "$ac_prog", so it can be a program name with args.
23013 set dummy $ac_prog; ac_word=$2
23014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23016 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23017   echo $ECHO_N "(cached) $ECHO_C" >&6
23018 else
23019   if test -n "$INTLBISON"; then
23020   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23021 else
23022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23023 for as_dir in $PATH
23024 do
23025   IFS=$as_save_IFS
23026   test -z "$as_dir" && as_dir=.
23027   for ac_exec_ext in '' $ac_executable_extensions; do
23028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23029     ac_cv_prog_INTLBISON="$ac_prog"
23030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23031     break 2
23032   fi
23033 done
23034 done
23035 IFS=$as_save_IFS
23036
23037 fi
23038 fi
23039 INTLBISON=$ac_cv_prog_INTLBISON
23040 if test -n "$INTLBISON"; then
23041   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23042 echo "${ECHO_T}$INTLBISON" >&6; }
23043 else
23044   { echo "$as_me:$LINENO: result: no" >&5
23045 echo "${ECHO_T}no" >&6; }
23046 fi
23047
23048
23049   test -n "$INTLBISON" && break
23050 done
23051
23052   if test -z "$INTLBISON"; then
23053     ac_verc_fail=yes
23054   else
23055         { echo "$as_me:$LINENO: checking version of bison" >&5
23056 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23057     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23058     case $ac_prog_version in
23059       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23060       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23061          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23062       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23063     esac
23064     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23065 echo "${ECHO_T}$ac_prog_version" >&6; }
23066   fi
23067   if test $ac_verc_fail = yes; then
23068     INTLBISON=:
23069   fi
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23087 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23088 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23089   echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091   gt_save_CPPFLAGS="$CPPFLAGS"
23092      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23093      gt_save_LIBS="$LIBS"
23094      LIBS="$LIBS -framework CoreFoundation"
23095      cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 #include <CFPreferences.h>
23102 int
23103 main ()
23104 {
23105 CFPreferencesCopyAppValue(NULL, NULL)
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext conftest$ac_exeext
23111 if { (ac_try="$ac_link"
23112 case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_link") 2>conftest.er1
23118   ac_status=$?
23119   grep -v '^ *+' conftest.er1 >conftest.err
23120   rm -f conftest.er1
23121   cat conftest.err >&5
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); } && {
23124          test -z "$ac_c_werror_flag" ||
23125          test ! -s conftest.err
23126        } && test -s conftest$ac_exeext &&
23127        $as_test_x conftest$ac_exeext; then
23128   gt_cv_func_CFPreferencesCopyAppValue=yes
23129 else
23130   echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23132
23133         gt_cv_func_CFPreferencesCopyAppValue=no
23134 fi
23135
23136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23137       conftest$ac_exeext conftest.$ac_ext
23138      CPPFLAGS="$gt_save_CPPFLAGS"
23139      LIBS="$gt_save_LIBS"
23140 fi
23141 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23142 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23143   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23144
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23147 _ACEOF
23148
23149   fi
23150     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23151 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23152 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23153   echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155   gt_save_CPPFLAGS="$CPPFLAGS"
23156      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23157      gt_save_LIBS="$LIBS"
23158      LIBS="$LIBS -framework CoreFoundation"
23159      cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 #include <CFLocale.h>
23166 int
23167 main ()
23168 {
23169 CFLocaleCopyCurrent();
23170   ;
23171   return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178   *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181   (eval "$ac_link") 2>conftest.er1
23182   ac_status=$?
23183   grep -v '^ *+' conftest.er1 >conftest.err
23184   rm -f conftest.er1
23185   cat conftest.err >&5
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); } && {
23188          test -z "$ac_c_werror_flag" ||
23189          test ! -s conftest.err
23190        } && test -s conftest$ac_exeext &&
23191        $as_test_x conftest$ac_exeext; then
23192   gt_cv_func_CFLocaleCopyCurrent=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197         gt_cv_func_CFLocaleCopyCurrent=no
23198 fi
23199
23200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23201       conftest$ac_exeext conftest.$ac_ext
23202      CPPFLAGS="$gt_save_CPPFLAGS"
23203      LIBS="$gt_save_LIBS"
23204 fi
23205 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23206 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23207   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23208
23209 cat >>confdefs.h <<\_ACEOF
23210 #define HAVE_CFLOCALECOPYCURRENT 1
23211 _ACEOF
23212
23213   fi
23214   INTL_MACOSX_LIBS=
23215   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23216     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23217   fi
23218
23219
23220
23221
23222   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23223 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23224     # Check whether --enable-nls was given.
23225 if test "${enable_nls+set}" = set; then
23226   enableval=$enable_nls; USE_NLS=$enableval
23227 else
23228   USE_NLS=yes
23229 fi
23230
23231   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23232 echo "${ECHO_T}$USE_NLS" >&6; }
23233
23234
23235
23236
23237     BUILD_INCLUDED_LIBINTL=no
23238     USE_INCLUDED_LIBINTL=no
23239
23240   LIBINTL=
23241   LTLIBINTL=
23242   POSUB=
23243
23244     if test "$USE_NLS" = "yes"; then
23245     gt_use_preinstalled_gnugettext=no
23246
23247       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23248 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23249
23250 # Check whether --with-included-gettext was given.
23251 if test "${with_included_gettext+set}" = set; then
23252   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23253 else
23254   nls_cv_force_use_gnu_gettext=no
23255 fi
23256
23257       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23258 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23259
23260       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23261       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23262
23263
23264
23265
23266
23267
23268         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23269 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23270 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23271   echo $ECHO_N "(cached) $ECHO_C" >&6
23272 else
23273   cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279 #include <libintl.h>
23280 extern int _nl_msg_cat_cntr;
23281 extern int *_nl_domain_bindings;
23282 int
23283 main ()
23284 {
23285 bindtextdomain ("", "");
23286 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest.$ac_objext conftest$ac_exeext
23292 if { (ac_try="$ac_link"
23293 case "(($ac_try" in
23294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295   *) ac_try_echo=$ac_try;;
23296 esac
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298   (eval "$ac_link") 2>conftest.er1
23299   ac_status=$?
23300   grep -v '^ *+' conftest.er1 >conftest.err
23301   rm -f conftest.er1
23302   cat conftest.err >&5
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); } && {
23305          test -z "$ac_c_werror_flag" ||
23306          test ! -s conftest.err
23307        } && test -s conftest$ac_exeext &&
23308        $as_test_x conftest$ac_exeext; then
23309   gt_cv_func_gnugettext1_libc=yes
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314         gt_cv_func_gnugettext1_libc=no
23315 fi
23316
23317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23318       conftest$ac_exeext conftest.$ac_ext
23319 fi
23320 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23321 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23322
23323         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23324
23325
23326
23327     use_additional=yes
23328
23329   acl_save_prefix="$prefix"
23330   prefix="$acl_final_prefix"
23331   acl_save_exec_prefix="$exec_prefix"
23332   exec_prefix="$acl_final_exec_prefix"
23333
23334     eval additional_includedir=\"$includedir\"
23335     eval additional_libdir=\"$libdir\"
23336
23337   exec_prefix="$acl_save_exec_prefix"
23338   prefix="$acl_save_prefix"
23339
23340
23341 # Check whether --with-libintl-prefix was given.
23342 if test "${with_libintl_prefix+set}" = set; then
23343   withval=$with_libintl_prefix;
23344     if test "X$withval" = "Xno"; then
23345       use_additional=no
23346     else
23347       if test "X$withval" = "X"; then
23348
23349   acl_save_prefix="$prefix"
23350   prefix="$acl_final_prefix"
23351   acl_save_exec_prefix="$exec_prefix"
23352   exec_prefix="$acl_final_exec_prefix"
23353
23354           eval additional_includedir=\"$includedir\"
23355           eval additional_libdir=\"$libdir\"
23356
23357   exec_prefix="$acl_save_exec_prefix"
23358   prefix="$acl_save_prefix"
23359
23360       else
23361         additional_includedir="$withval/include"
23362         additional_libdir="$withval/lib"
23363       fi
23364     fi
23365
23366 fi
23367
23368       LIBINTL=
23369   LTLIBINTL=
23370   INCINTL=
23371   rpathdirs=
23372   ltrpathdirs=
23373   names_already_handled=
23374   names_next_round='intl '
23375   while test -n "$names_next_round"; do
23376     names_this_round="$names_next_round"
23377     names_next_round=
23378     for name in $names_this_round; do
23379       already_handled=
23380       for n in $names_already_handled; do
23381         if test "$n" = "$name"; then
23382           already_handled=yes
23383           break
23384         fi
23385       done
23386       if test -z "$already_handled"; then
23387         names_already_handled="$names_already_handled $name"
23388                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23389         eval value=\"\$HAVE_LIB$uppername\"
23390         if test -n "$value"; then
23391           if test "$value" = yes; then
23392             eval value=\"\$LIB$uppername\"
23393             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23394             eval value=\"\$LTLIB$uppername\"
23395             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23396           else
23397                                     :
23398           fi
23399         else
23400                               found_dir=
23401           found_la=
23402           found_so=
23403           found_a=
23404           if test $use_additional = yes; then
23405             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23406               found_dir="$additional_libdir"
23407               found_so="$additional_libdir/lib$name.$shlibext"
23408               if test -f "$additional_libdir/lib$name.la"; then
23409                 found_la="$additional_libdir/lib$name.la"
23410               fi
23411             else
23412               if test -f "$additional_libdir/lib$name.$libext"; then
23413                 found_dir="$additional_libdir"
23414                 found_a="$additional_libdir/lib$name.$libext"
23415                 if test -f "$additional_libdir/lib$name.la"; then
23416                   found_la="$additional_libdir/lib$name.la"
23417                 fi
23418               fi
23419             fi
23420           fi
23421           if test "X$found_dir" = "X"; then
23422             for x in $LDFLAGS $LTLIBINTL; do
23423
23424   acl_save_prefix="$prefix"
23425   prefix="$acl_final_prefix"
23426   acl_save_exec_prefix="$exec_prefix"
23427   exec_prefix="$acl_final_exec_prefix"
23428   eval x=\"$x\"
23429   exec_prefix="$acl_save_exec_prefix"
23430   prefix="$acl_save_prefix"
23431
23432               case "$x" in
23433                 -L*)
23434                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23435                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23436                     found_dir="$dir"
23437                     found_so="$dir/lib$name.$shlibext"
23438                     if test -f "$dir/lib$name.la"; then
23439                       found_la="$dir/lib$name.la"
23440                     fi
23441                   else
23442                     if test -f "$dir/lib$name.$libext"; then
23443                       found_dir="$dir"
23444                       found_a="$dir/lib$name.$libext"
23445                       if test -f "$dir/lib$name.la"; then
23446                         found_la="$dir/lib$name.la"
23447                       fi
23448                     fi
23449                   fi
23450                   ;;
23451               esac
23452               if test "X$found_dir" != "X"; then
23453                 break
23454               fi
23455             done
23456           fi
23457           if test "X$found_dir" != "X"; then
23458                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23459             if test "X$found_so" != "X"; then
23460                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23461                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23462               else
23463                                                                                 haveit=
23464                 for x in $ltrpathdirs; do
23465                   if test "X$x" = "X$found_dir"; then
23466                     haveit=yes
23467                     break
23468                   fi
23469                 done
23470                 if test -z "$haveit"; then
23471                   ltrpathdirs="$ltrpathdirs $found_dir"
23472                 fi
23473                                 if test "$hardcode_direct" = yes; then
23474                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23475                 else
23476                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23477                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23478                                                             haveit=
23479                     for x in $rpathdirs; do
23480                       if test "X$x" = "X$found_dir"; then
23481                         haveit=yes
23482                         break
23483                       fi
23484                     done
23485                     if test -z "$haveit"; then
23486                       rpathdirs="$rpathdirs $found_dir"
23487                     fi
23488                   else
23489                                                                                 haveit=
23490                     for x in $LDFLAGS $LIBINTL; do
23491
23492   acl_save_prefix="$prefix"
23493   prefix="$acl_final_prefix"
23494   acl_save_exec_prefix="$exec_prefix"
23495   exec_prefix="$acl_final_exec_prefix"
23496   eval x=\"$x\"
23497   exec_prefix="$acl_save_exec_prefix"
23498   prefix="$acl_save_prefix"
23499
23500                       if test "X$x" = "X-L$found_dir"; then
23501                         haveit=yes
23502                         break
23503                       fi
23504                     done
23505                     if test -z "$haveit"; then
23506                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23507                     fi
23508                     if test "$hardcode_minus_L" != no; then
23509                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23510                     else
23511                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23512                     fi
23513                   fi
23514                 fi
23515               fi
23516             else
23517               if test "X$found_a" != "X"; then
23518                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23519               else
23520                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23521               fi
23522             fi
23523                         additional_includedir=
23524             case "$found_dir" in
23525               */lib | */lib/)
23526                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23527                 additional_includedir="$basedir/include"
23528                 ;;
23529             esac
23530             if test "X$additional_includedir" != "X"; then
23531                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23532                 haveit=
23533                 if test "X$additional_includedir" = "X/usr/local/include"; then
23534                   if test -n "$GCC"; then
23535                     case $host_os in
23536                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23537                     esac
23538                   fi
23539                 fi
23540                 if test -z "$haveit"; then
23541                   for x in $CPPFLAGS $INCINTL; do
23542
23543   acl_save_prefix="$prefix"
23544   prefix="$acl_final_prefix"
23545   acl_save_exec_prefix="$exec_prefix"
23546   exec_prefix="$acl_final_exec_prefix"
23547   eval x=\"$x\"
23548   exec_prefix="$acl_save_exec_prefix"
23549   prefix="$acl_save_prefix"
23550
23551                     if test "X$x" = "X-I$additional_includedir"; then
23552                       haveit=yes
23553                       break
23554                     fi
23555                   done
23556                   if test -z "$haveit"; then
23557                     if test -d "$additional_includedir"; then
23558                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23559                     fi
23560                   fi
23561                 fi
23562               fi
23563             fi
23564                         if test -n "$found_la"; then
23565                                                         save_libdir="$libdir"
23566               case "$found_la" in
23567                 */* | *\\*) . "$found_la" ;;
23568                 *) . "./$found_la" ;;
23569               esac
23570               libdir="$save_libdir"
23571                             for dep in $dependency_libs; do
23572                 case "$dep" in
23573                   -L*)
23574                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23575                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23576                       haveit=
23577                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23578                         if test -n "$GCC"; then
23579                           case $host_os in
23580                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23581                           esac
23582                         fi
23583                       fi
23584                       if test -z "$haveit"; then
23585                         haveit=
23586                         for x in $LDFLAGS $LIBINTL; do
23587
23588   acl_save_prefix="$prefix"
23589   prefix="$acl_final_prefix"
23590   acl_save_exec_prefix="$exec_prefix"
23591   exec_prefix="$acl_final_exec_prefix"
23592   eval x=\"$x\"
23593   exec_prefix="$acl_save_exec_prefix"
23594   prefix="$acl_save_prefix"
23595
23596                           if test "X$x" = "X-L$additional_libdir"; then
23597                             haveit=yes
23598                             break
23599                           fi
23600                         done
23601                         if test -z "$haveit"; then
23602                           if test -d "$additional_libdir"; then
23603                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23604                           fi
23605                         fi
23606                         haveit=
23607                         for x in $LDFLAGS $LTLIBINTL; do
23608
23609   acl_save_prefix="$prefix"
23610   prefix="$acl_final_prefix"
23611   acl_save_exec_prefix="$exec_prefix"
23612   exec_prefix="$acl_final_exec_prefix"
23613   eval x=\"$x\"
23614   exec_prefix="$acl_save_exec_prefix"
23615   prefix="$acl_save_prefix"
23616
23617                           if test "X$x" = "X-L$additional_libdir"; then
23618                             haveit=yes
23619                             break
23620                           fi
23621                         done
23622                         if test -z "$haveit"; then
23623                           if test -d "$additional_libdir"; then
23624                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23625                           fi
23626                         fi
23627                       fi
23628                     fi
23629                     ;;
23630                   -R*)
23631                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23632                     if test "$enable_rpath" != no; then
23633                                                                   haveit=
23634                       for x in $rpathdirs; do
23635                         if test "X$x" = "X$dir"; then
23636                           haveit=yes
23637                           break
23638                         fi
23639                       done
23640                       if test -z "$haveit"; then
23641                         rpathdirs="$rpathdirs $dir"
23642                       fi
23643                                                                   haveit=
23644                       for x in $ltrpathdirs; do
23645                         if test "X$x" = "X$dir"; then
23646                           haveit=yes
23647                           break
23648                         fi
23649                       done
23650                       if test -z "$haveit"; then
23651                         ltrpathdirs="$ltrpathdirs $dir"
23652                       fi
23653                     fi
23654                     ;;
23655                   -l*)
23656                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23657                     ;;
23658                   *.la)
23659                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23660                     ;;
23661                   *)
23662                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23663                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23664                     ;;
23665                 esac
23666               done
23667             fi
23668           else
23669                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23670             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23671           fi
23672         fi
23673       fi
23674     done
23675   done
23676   if test "X$rpathdirs" != "X"; then
23677     if test -n "$hardcode_libdir_separator"; then
23678                         alldirs=
23679       for found_dir in $rpathdirs; do
23680         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23681       done
23682             acl_save_libdir="$libdir"
23683       libdir="$alldirs"
23684       eval flag=\"$hardcode_libdir_flag_spec\"
23685       libdir="$acl_save_libdir"
23686       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23687     else
23688             for found_dir in $rpathdirs; do
23689         acl_save_libdir="$libdir"
23690         libdir="$found_dir"
23691         eval flag=\"$hardcode_libdir_flag_spec\"
23692         libdir="$acl_save_libdir"
23693         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23694       done
23695     fi
23696   fi
23697   if test "X$ltrpathdirs" != "X"; then
23698             for found_dir in $ltrpathdirs; do
23699       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23700     done
23701   fi
23702
23703           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23704 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23705 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23706   echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708   gt_save_CPPFLAGS="$CPPFLAGS"
23709             CPPFLAGS="$CPPFLAGS $INCINTL"
23710             gt_save_LIBS="$LIBS"
23711             LIBS="$LIBS $LIBINTL"
23712                         cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 #include <libintl.h>
23719 extern int _nl_msg_cat_cntr;
23720 extern
23721 #ifdef __cplusplus
23722 "C"
23723 #endif
23724 const char *_nl_expand_alias (const char *);
23725 int
23726 main ()
23727 {
23728 bindtextdomain ("", "");
23729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (ac_try="$ac_link"
23736 case "(($ac_try" in
23737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738   *) ac_try_echo=$ac_try;;
23739 esac
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741   (eval "$ac_link") 2>conftest.er1
23742   ac_status=$?
23743   grep -v '^ *+' conftest.er1 >conftest.err
23744   rm -f conftest.er1
23745   cat conftest.err >&5
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); } && {
23748          test -z "$ac_c_werror_flag" ||
23749          test ! -s conftest.err
23750        } && test -s conftest$ac_exeext &&
23751        $as_test_x conftest$ac_exeext; then
23752   gt_cv_func_gnugettext1_libintl=yes
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757         gt_cv_func_gnugettext1_libintl=no
23758 fi
23759
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761       conftest$ac_exeext conftest.$ac_ext
23762                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23763               LIBS="$LIBS $LIBICONV"
23764               cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h.  */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h.  */
23770 #include <libintl.h>
23771 extern int _nl_msg_cat_cntr;
23772 extern
23773 #ifdef __cplusplus
23774 "C"
23775 #endif
23776 const char *_nl_expand_alias (const char *);
23777 int
23778 main ()
23779 {
23780 bindtextdomain ("", "");
23781 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext conftest$ac_exeext
23787 if { (ac_try="$ac_link"
23788 case "(($ac_try" in
23789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790   *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793   (eval "$ac_link") 2>conftest.er1
23794   ac_status=$?
23795   grep -v '^ *+' conftest.er1 >conftest.err
23796   rm -f conftest.er1
23797   cat conftest.err >&5
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } && {
23800          test -z "$ac_c_werror_flag" ||
23801          test ! -s conftest.err
23802        } && test -s conftest$ac_exeext &&
23803        $as_test_x conftest$ac_exeext; then
23804   LIBINTL="$LIBINTL $LIBICONV"
23805                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23806                 gt_cv_func_gnugettext1_libintl=yes
23807
23808 else
23809   echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812
23813 fi
23814
23815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23816       conftest$ac_exeext conftest.$ac_ext
23817             fi
23818             CPPFLAGS="$gt_save_CPPFLAGS"
23819             LIBS="$gt_save_LIBS"
23820 fi
23821 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23822 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23823         fi
23824
23825                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23826            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23827                 && test "$PACKAGE" != gettext-runtime \
23828                 && test "$PACKAGE" != gettext-tools; }; then
23829           gt_use_preinstalled_gnugettext=yes
23830         else
23831                     LIBINTL=
23832           LTLIBINTL=
23833           INCINTL=
23834         fi
23835
23836
23837         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23838                               nls_cv_use_gnu_gettext=yes
23839         fi
23840       fi
23841
23842       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23843                 BUILD_INCLUDED_LIBINTL=yes
23844         USE_INCLUDED_LIBINTL=yes
23845         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23846         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23847         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23848       fi
23849
23850       CATOBJEXT=
23851       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23852          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23853                 CATOBJEXT=.gmo
23854       fi
23855
23856
23857     if test -n "$INTL_MACOSX_LIBS"; then
23858       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23859          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23860                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23861         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23862       fi
23863     fi
23864
23865     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23866        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23867
23868 cat >>confdefs.h <<\_ACEOF
23869 #define ENABLE_NLS 1
23870 _ACEOF
23871
23872     else
23873       USE_NLS=no
23874     fi
23875   fi
23876
23877   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23878 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23879   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23880 echo "${ECHO_T}$USE_NLS" >&6; }
23881   if test "$USE_NLS" = "yes"; then
23882     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23883 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23884     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23885       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23886         gt_source="external libintl"
23887       else
23888         gt_source="libc"
23889       fi
23890     else
23891       gt_source="included intl directory"
23892     fi
23893     { echo "$as_me:$LINENO: result: $gt_source" >&5
23894 echo "${ECHO_T}$gt_source" >&6; }
23895   fi
23896
23897   if test "$USE_NLS" = "yes"; then
23898
23899     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23902 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23903         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23904 echo "${ECHO_T}$LIBINTL" >&6; }
23905
23906   for element in $INCINTL; do
23907     haveit=
23908     for x in $CPPFLAGS; do
23909
23910   acl_save_prefix="$prefix"
23911   prefix="$acl_final_prefix"
23912   acl_save_exec_prefix="$exec_prefix"
23913   exec_prefix="$acl_final_exec_prefix"
23914   eval x=\"$x\"
23915   exec_prefix="$acl_save_exec_prefix"
23916   prefix="$acl_save_prefix"
23917
23918       if test "X$x" = "X$element"; then
23919         haveit=yes
23920         break
23921       fi
23922     done
23923     if test -z "$haveit"; then
23924       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23925     fi
23926   done
23927
23928       fi
23929
23930
23931 cat >>confdefs.h <<\_ACEOF
23932 #define HAVE_GETTEXT 1
23933 _ACEOF
23934
23935
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_DCGETTEXT 1
23938 _ACEOF
23939
23940     fi
23941
23942         POSUB=po
23943   fi
23944
23945
23946             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23947       BUILD_INCLUDED_LIBINTL=yes
23948     fi
23949
23950
23951
23952
23953
23954         nls_cv_header_intl=
23955     nls_cv_header_libgt=
23956
23957         DATADIRNAME=share
23958
23959
23960         INSTOBJEXT=.mo
23961
23962
23963         GENCAT=gencat
23964
23965
23966         INTLOBJS=
23967     if test "$USE_INCLUDED_LIBINTL" = yes; then
23968       INTLOBJS="\$(GETTOBJS)"
23969     fi
23970
23971
23972         INTL_LIBTOOL_SUFFIX_PREFIX=
23973
23974
23975
23976     INTLLIBS="$LIBINTL"
23977
23978
23979
23980
23981
23982
23983 fi
23984
23985 support_mysql=no
23986 support_sqlite=no
23987 support_sqlite3=no
23988 support_postgresql=no
23989 support_dbi=no
23990 support_smartalloc=yes
23991 support_readline=yes
23992 support_conio=yes
23993 support_gnome=no
23994 support_bat=no
23995 support_wx_console=no
23996 support_tray_monitor=no
23997 support_tls=no
23998 support_crypto=no
23999 gnome_version=
24000 wx_version=
24001 support_static_tools=no
24002 support_static_fd=no
24003 support_static_sd=no
24004 support_static_dir=no
24005 support_static_cons=no
24006 support_python=no
24007 build_client_only=no
24008 build_dird=yes
24009 build_stored=yes
24010 cats=
24011 db_type=Internal
24012 support_lockmgr=no
24013 DB_TYPE=bdb
24014
24015
24016 # Check whether --enable-gnome was given.
24017 if test "${enable_gnome+set}" = set; then
24018   enableval=$enable_gnome;
24019        if test x$enableval = xyes; then
24020           support_gnome=yes
24021        fi
24022
24023
24024 fi
24025
24026
24027 GNOME_DIR=
24028 if test x$support_gnome = xyes; then
24029    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24030    pkg=$?
24031    if test $pkg = 0; then
24032       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24033       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24034       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24035       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24036
24037
24038
24039
24040       GNOME_DIR=src/gnome2-console
24041       gnome_version="Version 2.x"
24042    else
24043       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24044 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24045    { (exit 1); exit 1; }; }
24046    fi
24047 fi
24048
24049
24050 # Check whether --enable-bat was given.
24051 if test "${enable_bat+set}" = set; then
24052   enableval=$enable_bat;
24053        if test x$enableval = xyes; then
24054
24055 cat >>confdefs.h <<\_ACEOF
24056 #define HAVE_BAT 1
24057 _ACEOF
24058
24059           support_bat=yes
24060        fi
24061
24062
24063 fi
24064
24065
24066 BAT_DIR=
24067 if test x$support_bat = xyes; then
24068    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24069    pkg=$?
24070    if test $pkg = 0; then
24071       BAT_DIR=src/qt-console
24072    else
24073       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24074 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24075    { (exit 1); exit 1; }; }
24076    fi
24077 fi
24078
24079 got_qwt=no
24080 QWT_INC=
24081 QWT_LDFLAGS=
24082 QWT_LIB=
24083 QWT=
24084 no_qwt=no
24085 if test x$support_bat = xyes; then
24086    { echo "$as_me:$LINENO: checking for qwt support" >&5
24087 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24088
24089 # Check whether --with-qwt was given.
24090 if test "${with_qwt+set}" = set; then
24091   withval=$with_qwt;
24092           case "$with_qwt" in
24093           no)
24094              no_qwt=yes
24095              ;;
24096           yes|*)
24097              if test -f ${with_qwt}/include/qwt.h; then
24098                 QWT_INC="${with_qwt}/include"
24099                 QWT_LDFLAGS="-L${with_qwt}/lib"
24100                 QWT_LIB="-lqwt"
24101                 QWT="qwt"
24102              fi
24103              ;;
24104           esac
24105
24106
24107 fi
24108
24109
24110             if test $no_qwt = no; then
24111       if test x$QWT_INC = x; then
24112          for root in /usr /usr/local; do
24113             for ver in qwt qwt5 qwt-qt4; do
24114                if test -f ${root}/include/${ver}/qwt.h; then
24115                   QWT_INC="${root}/include/${ver}"
24116                   if test -d ${root}/lib64/; then
24117                      QWT_LDFLAGS="-L${root}/lib64"
24118                   elif test -d ${root}/lib/64/; then
24119                      QWT_LDFLAGS="-L${root}/64"
24120                   else
24121                      QWT_LDFLAGS="-L${root}/lib"
24122                   fi
24123                   QWT_LIB="-lqwt"
24124                   QWT="qwt"
24125                   got_qwt=yes
24126                   break;
24127                fi
24128             done
24129          done
24130       fi
24131    fi
24132    if test x$QWT_INC = x; then
24133       { echo "$as_me:$LINENO: result: no" >&5
24134 echo "${ECHO_T}no" >&6; }
24135    else
24136
24137 cat >>confdefs.h <<\_ACEOF
24138 #define HAVE_QWT 1
24139 _ACEOF
24140
24141       { echo "$as_me:$LINENO: result: yes" >&5
24142 echo "${ECHO_T}yes" >&6; }
24143    fi
24144 fi
24145
24146
24147
24148
24149
24150
24151
24152 # Check whether --enable-bwx-console was given.
24153 if test "${enable_bwx_console+set}" = set; then
24154   enableval=$enable_bwx_console;
24155        if test x$enableval = xyes; then
24156           support_wx_console=yes
24157        fi
24158
24159
24160 fi
24161
24162
24163 WX_DIR=
24164 if test x$support_wx_console = xyes; then
24165    abc=`$WXCONFIG $WXFLAGS --cppflags`
24166    pkg=$?
24167    if test $pkg = 0; then
24168       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24169       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24170       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24171
24172
24173
24174       WX_DIR=src/wx-console
24175    else
24176       echo " "
24177       echo "wx-config program not found. bwx-console disabled."
24178       echo " "
24179       support_wx_console=no
24180    fi
24181 fi
24182
24183
24184 # Check whether --enable-tray-monitor was given.
24185 if test "${enable_tray_monitor+set}" = set; then
24186   enableval=$enable_tray_monitor;
24187        if test x$enableval = xyes; then
24188           support_tray_monitor=yes
24189        fi
24190
24191
24192 fi
24193
24194
24195 TRAY_MONITOR_DIR=
24196 if test x$support_tray_monitor = xyes; then
24197    abc=`$PKGCONFIG --exists gtk+-2.0`
24198    pkg=$?
24199    if test $pkg = 0; then
24200       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24201       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24202
24203
24204       TRAY_MONITOR_DIR=src/tray-monitor
24205       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24206       pkg=$?
24207       if test $pkg = 0; then
24208
24209 cat >>confdefs.h <<\_ACEOF
24210 #define HAVE_GTK_2_4 1
24211 _ACEOF
24212
24213       fi
24214    fi
24215 fi
24216
24217
24218 # Check whether --enable-smartalloc was given.
24219 if test "${enable_smartalloc+set}" = set; then
24220   enableval=$enable_smartalloc;
24221        if test x$enableval = xno; then
24222           support_smartalloc=no
24223        fi
24224
24225
24226 fi
24227
24228
24229 if test x$support_smartalloc = xyes; then
24230
24231 cat >>confdefs.h <<\_ACEOF
24232 #define SMARTALLOC 1
24233 _ACEOF
24234
24235 fi
24236
24237 # Check whether --enable-lockmgr was given.
24238 if test "${enable_lockmgr+set}" = set; then
24239   enableval=$enable_lockmgr;
24240        if test x$enableval = xyes; then
24241           support_lockmgr=yes
24242        fi
24243
24244
24245 fi
24246
24247
24248 if test x$support_lockmgr = xyes; then
24249
24250 cat >>confdefs.h <<\_ACEOF
24251 #define _USE_LOCKMGR 1
24252 _ACEOF
24253
24254 fi
24255
24256
24257 # Check whether --enable-static-tools was given.
24258 if test "${enable_static_tools+set}" = set; then
24259   enableval=$enable_static_tools;
24260        if test x$enableval = xyes; then
24261           support_static_tools=yes
24262        fi
24263
24264
24265 fi
24266
24267
24268 TTOOL_LDFLAGS=
24269 if test x$support_static_tools = xyes; then
24270    TTOOL_LDFLAGS="-static"
24271 fi
24272
24273
24274 # Check whether --enable-static-fd was given.
24275 if test "${enable_static_fd+set}" = set; then
24276   enableval=$enable_static_fd;
24277        if test x$enableval = xyes; then
24278           support_static_fd=yes
24279        fi
24280
24281
24282 fi
24283
24284
24285 STATIC_FD=
24286 if test x$support_static_fd = xyes; then
24287    STATIC_FD="static-bacula-fd"
24288 fi
24289
24290
24291 # Check whether --enable-static-sd was given.
24292 if test "${enable_static_sd+set}" = set; then
24293   enableval=$enable_static_sd;
24294        if test x$enableval = xyes; then
24295           support_static_sd=yes
24296        fi
24297
24298
24299 fi
24300
24301
24302 STATIC_SD=
24303 if test x$support_static_sd = xyes; then
24304    STATIC_SD="static-bacula-sd"
24305 fi
24306
24307
24308 # Check whether --enable-static-dir was given.
24309 if test "${enable_static_dir+set}" = set; then
24310   enableval=$enable_static_dir;
24311        if test x$enableval = xyes; then
24312           support_static_dir=yes
24313        fi
24314
24315
24316 fi
24317
24318
24319 STATIC_DIR=
24320 if test x$support_static_dir = xyes; then
24321    STATIC_DIR="static-bacula-dir"
24322 fi
24323
24324
24325 # Check whether --enable-static-cons was given.
24326 if test "${enable_static_cons+set}" = set; then
24327   enableval=$enable_static_cons;
24328        if test x$enableval = xyes; then
24329           support_static_cons=yes
24330        fi
24331
24332
24333 fi
24334
24335
24336 STATIC_CONS=
24337 STATIC_GNOME_CONS=
24338 STATIC_WX_CONS=
24339 if test x$support_static_cons = xyes; then
24340    STATIC_CONS="static-bconsole"
24341    STATIC_GNOME_CONS="static-bgnome-console"
24342    STATIC_WX_CONS="static-bwx-console"
24343 fi
24344
24345
24346
24347
24348 # Check whether --enable-client-only was given.
24349 if test "${enable_client_only+set}" = set; then
24350   enableval=$enable_client_only;
24351        if test x$enableval = xyes; then
24352           build_client_only=yes
24353           db_type=None
24354           DB_TYPE=none
24355        fi
24356
24357
24358 fi
24359
24360 if test x$build_client_only = xno; then
24361    ALL_DIRS="subdirs"
24362 else
24363    ALL_DIRS=""
24364 fi
24365
24366
24367 # Check whether --enable-build-dird was given.
24368 if test "${enable_build_dird+set}" = set; then
24369   enableval=$enable_build_dird;
24370        if test x$enableval = xno; then
24371           build_dird=no
24372        fi
24373
24374
24375 fi
24376
24377 if test x$build_dird = xyes; then
24378    DIRD_DIR="src/dird"
24379    DIR_TOOLS="DIRTOOLS"
24380 else
24381    DIRD_DIR=""
24382    DIR_TOOLS="NODIRTOOLS"
24383 fi
24384
24385
24386
24387 # Check whether --enable-build-stored was given.
24388 if test "${enable_build_stored+set}" = set; then
24389   enableval=$enable_build_stored;
24390       if test x$enableval = xno; then
24391          build_stored=no
24392       fi
24393
24394
24395 fi
24396
24397 if test x$build_stored = xyes; then
24398    STORED_DIR="src/stored"
24399 else
24400    STORED_DIR=""
24401 fi
24402
24403
24404 # Check whether --enable-conio was given.
24405 if test "${enable_conio+set}" = set; then
24406   enableval=$enable_conio;
24407        if test x$enableval = xno; then
24408           support_conio=no
24409        fi
24410
24411
24412 fi
24413
24414
24415
24416 support_ipv6=yes
24417 # Check whether --enable-ipv6 was given.
24418 if test "${enable_ipv6+set}" = set; then
24419   enableval=$enable_ipv6;
24420        if test x$enableval = xno; then
24421           support_ipv6=no
24422        fi
24423
24424
24425 fi
24426
24427
24428 if test x$support_ipv6 = xyes; then
24429     cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h.  */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h.  */
24435  #include <sys/types.h>
24436 #include <sys/socket.h>
24437 #include <netinet/in.h>
24438 int
24439 main ()
24440 {
24441 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24442   ;
24443   return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450   *) ac_try_echo=$ac_try;;
24451 esac
24452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453   (eval "$ac_link") 2>conftest.er1
24454   ac_status=$?
24455   grep -v '^ *+' conftest.er1 >conftest.err
24456   rm -f conftest.er1
24457   cat conftest.err >&5
24458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459   (exit $ac_status); } && {
24460          test -z "$ac_c_werror_flag" ||
24461          test ! -s conftest.err
24462        } && test -s conftest$ac_exeext &&
24463        $as_test_x conftest$ac_exeext; then
24464   support_ipv6=yes
24465 else
24466   echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24468
24469         support_ipv6=no
24470 fi
24471
24472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24473       conftest$ac_exeext conftest.$ac_ext
24474 fi
24475
24476 if test x$support_ipv6 = xyes; then
24477
24478 cat >>confdefs.h <<\_ACEOF
24479 #define HAVE_IPV6 1
24480 _ACEOF
24481
24482 fi
24483
24484 got_conio="no"
24485 if test x$support_conio = xyes; then
24486    if test "${ac_cv_header_termcap_h+set}" = set; then
24487   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24488 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24489 if test "${ac_cv_header_termcap_h+set}" = set; then
24490   echo $ECHO_N "(cached) $ECHO_C" >&6
24491 fi
24492 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24493 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24494 else
24495   # Is the header compilable?
24496 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24497 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24498 cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 $ac_includes_default
24505 #include <termcap.h>
24506 _ACEOF
24507 rm -f conftest.$ac_objext
24508 if { (ac_try="$ac_compile"
24509 case "(($ac_try" in
24510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24511   *) ac_try_echo=$ac_try;;
24512 esac
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514   (eval "$ac_compile") 2>conftest.er1
24515   ac_status=$?
24516   grep -v '^ *+' conftest.er1 >conftest.err
24517   rm -f conftest.er1
24518   cat conftest.err >&5
24519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520   (exit $ac_status); } && {
24521          test -z "$ac_c_werror_flag" ||
24522          test ! -s conftest.err
24523        } && test -s conftest.$ac_objext; then
24524   ac_header_compiler=yes
24525 else
24526   echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24528
24529         ac_header_compiler=no
24530 fi
24531
24532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24534 echo "${ECHO_T}$ac_header_compiler" >&6; }
24535
24536 # Is the header present?
24537 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24538 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h.  */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h.  */
24545 #include <termcap.h>
24546 _ACEOF
24547 if { (ac_try="$ac_cpp conftest.$ac_ext"
24548 case "(($ac_try" in
24549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550   *) ac_try_echo=$ac_try;;
24551 esac
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24554   ac_status=$?
24555   grep -v '^ *+' conftest.er1 >conftest.err
24556   rm -f conftest.er1
24557   cat conftest.err >&5
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); } >/dev/null && {
24560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24561          test ! -s conftest.err
24562        }; then
24563   ac_header_preproc=yes
24564 else
24565   echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568   ac_header_preproc=no
24569 fi
24570
24571 rm -f conftest.err conftest.$ac_ext
24572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24573 echo "${ECHO_T}$ac_header_preproc" >&6; }
24574
24575 # So?  What about this header?
24576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24577   yes:no: )
24578     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24579 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24580     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24581 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24582     ac_header_preproc=yes
24583     ;;
24584   no:yes:* )
24585     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24586 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24587     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24588 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24589     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24590 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24591     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24592 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24593     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24594 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24595     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24596 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24597
24598     ;;
24599 esac
24600 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24601 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24602 if test "${ac_cv_header_termcap_h+set}" = set; then
24603   echo $ECHO_N "(cached) $ECHO_C" >&6
24604 else
24605   ac_cv_header_termcap_h=$ac_header_preproc
24606 fi
24607 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24608 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24609
24610 fi
24611 if test $ac_cv_header_termcap_h = yes; then
24612    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24613 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24614 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24615   echo $ECHO_N "(cached) $ECHO_C" >&6
24616 else
24617   ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-ltermcap  $LIBS"
24619 cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625
24626 /* Override any GCC internal prototype to avoid an error.
24627    Use char because int might match the return type of a GCC
24628    builtin and then its argument prototype would still apply.  */
24629 #ifdef __cplusplus
24630 extern "C"
24631 #endif
24632 char tgetent ();
24633 int
24634 main ()
24635 {
24636 return tgetent ();
24637   ;
24638   return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (ac_try="$ac_link"
24643 case "(($ac_try" in
24644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645   *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648   (eval "$ac_link") 2>conftest.er1
24649   ac_status=$?
24650   grep -v '^ *+' conftest.er1 >conftest.err
24651   rm -f conftest.er1
24652   cat conftest.err >&5
24653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654   (exit $ac_status); } && {
24655          test -z "$ac_c_werror_flag" ||
24656          test ! -s conftest.err
24657        } && test -s conftest$ac_exeext &&
24658        $as_test_x conftest$ac_exeext; then
24659   ac_cv_lib_termcap_tgetent=yes
24660 else
24661   echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24663
24664         ac_cv_lib_termcap_tgetent=no
24665 fi
24666
24667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24668       conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24670 fi
24671 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24672 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24673 if test $ac_cv_lib_termcap_tgetent = yes; then
24674    CONS_LIBS="-ltermcap"
24675     CONS_OBJ="conio.o"
24676     CONS_SRC="conio.c"
24677     got_conio="yes"
24678     support_readline=no
24679
24680 cat >>confdefs.h <<\_ACEOF
24681 #define HAVE_CONIO 1
24682 _ACEOF
24683
24684
24685 else
24686    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24687 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24688 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24689   echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691   ac_check_lib_save_LIBS=$LIBS
24692 LIBS="-lncurses  $LIBS"
24693 cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h.  */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h.  */
24699
24700 /* Override any GCC internal prototype to avoid an error.
24701    Use char because int might match the return type of a GCC
24702    builtin and then its argument prototype would still apply.  */
24703 #ifdef __cplusplus
24704 extern "C"
24705 #endif
24706 char tgetent ();
24707 int
24708 main ()
24709 {
24710 return tgetent ();
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719   *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722   (eval "$ac_link") 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } && {
24729          test -z "$ac_c_werror_flag" ||
24730          test ! -s conftest.err
24731        } && test -s conftest$ac_exeext &&
24732        $as_test_x conftest$ac_exeext; then
24733   ac_cv_lib_ncurses_tgetent=yes
24734 else
24735   echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738         ac_cv_lib_ncurses_tgetent=no
24739 fi
24740
24741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24742       conftest$ac_exeext conftest.$ac_ext
24743 LIBS=$ac_check_lib_save_LIBS
24744 fi
24745 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24746 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24747 if test $ac_cv_lib_ncurses_tgetent = yes; then
24748    CONS_LIBS="-lncurses"
24749       CONS_OBJ="conio.o"
24750       CONS_SRC="conio.c"
24751       got_conio="yes"
24752       support_readline=no
24753
24754 cat >>confdefs.h <<\_ACEOF
24755 #define HAVE_CONIO 1
24756 _ACEOF
24757
24758
24759 fi
24760
24761
24762 fi
24763
24764
24765 else
24766
24767
24768 for ac_header in curses.h
24769 do
24770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24772   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 fi
24777 ac_res=`eval echo '${'$as_ac_Header'}'`
24778                { echo "$as_me:$LINENO: result: $ac_res" >&5
24779 echo "${ECHO_T}$ac_res" >&6; }
24780 else
24781   # Is the header compilable?
24782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24784 cat >conftest.$ac_ext <<_ACEOF
24785 /* confdefs.h.  */
24786 _ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h.  */
24790 $ac_includes_default
24791 #include <$ac_header>
24792 _ACEOF
24793 rm -f conftest.$ac_objext
24794 if { (ac_try="$ac_compile"
24795 case "(($ac_try" in
24796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797   *) ac_try_echo=$ac_try;;
24798 esac
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800   (eval "$ac_compile") 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } && {
24807          test -z "$ac_c_werror_flag" ||
24808          test ! -s conftest.err
24809        } && test -s conftest.$ac_objext; then
24810   ac_header_compiler=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815         ac_header_compiler=no
24816 fi
24817
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24820 echo "${ECHO_T}$ac_header_compiler" >&6; }
24821
24822 # Is the header present?
24823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24825 cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831 #include <$ac_header>
24832 _ACEOF
24833 if { (ac_try="$ac_cpp conftest.$ac_ext"
24834 case "(($ac_try" in
24835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836   *) ac_try_echo=$ac_try;;
24837 esac
24838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24840   ac_status=$?
24841   grep -v '^ *+' conftest.er1 >conftest.err
24842   rm -f conftest.er1
24843   cat conftest.err >&5
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); } >/dev/null && {
24846          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24847          test ! -s conftest.err
24848        }; then
24849   ac_header_preproc=yes
24850 else
24851   echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24853
24854   ac_header_preproc=no
24855 fi
24856
24857 rm -f conftest.err conftest.$ac_ext
24858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24859 echo "${ECHO_T}$ac_header_preproc" >&6; }
24860
24861 # So?  What about this header?
24862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24863   yes:no: )
24864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24868     ac_header_preproc=yes
24869     ;;
24870   no:yes:* )
24871     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24873     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24874 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24875     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24877     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24878 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24881     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24883
24884     ;;
24885 esac
24886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24889   echo $ECHO_N "(cached) $ECHO_C" >&6
24890 else
24891   eval "$as_ac_Header=\$ac_header_preproc"
24892 fi
24893 ac_res=`eval echo '${'$as_ac_Header'}'`
24894                { echo "$as_me:$LINENO: result: $ac_res" >&5
24895 echo "${ECHO_T}$ac_res" >&6; }
24896
24897 fi
24898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24899   cat >>confdefs.h <<_ACEOF
24900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24901 _ACEOF
24902
24903 fi
24904
24905 done
24906
24907     { echo "$as_me:$LINENO: checking for term.h" >&5
24908 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24909 if test "${ac_cv_header_term_h+set}" = set; then
24910   echo $ECHO_N "(cached) $ECHO_C" >&6
24911 else
24912   cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918 #if HAVE_CURSES_H
24919 #include <curses.h>
24920 #endif
24921
24922
24923 #include <term.h>
24924 _ACEOF
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929   *) ac_try_echo=$ac_try;;
24930 esac
24931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24932   (eval "$ac_compile") 2>conftest.er1
24933   ac_status=$?
24934   grep -v '^ *+' conftest.er1 >conftest.err
24935   rm -f conftest.er1
24936   cat conftest.err >&5
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); } && {
24939          test -z "$ac_c_werror_flag" ||
24940          test ! -s conftest.err
24941        } && test -s conftest.$ac_objext; then
24942   ac_cv_header_term_h=yes
24943 else
24944   echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24946
24947         ac_cv_header_term_h=no
24948 fi
24949
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24951 fi
24952 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24953 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24954 if test $ac_cv_header_term_h = yes; then
24955    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24956 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24957 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24958   echo $ECHO_N "(cached) $ECHO_C" >&6
24959 else
24960   ac_check_lib_save_LIBS=$LIBS
24961 LIBS="-lcurses  $LIBS"
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968
24969 /* Override any GCC internal prototype to avoid an error.
24970    Use char because int might match the return type of a GCC
24971    builtin and then its argument prototype would still apply.  */
24972 #ifdef __cplusplus
24973 extern "C"
24974 #endif
24975 char tgetent ();
24976 int
24977 main ()
24978 {
24979 return tgetent ();
24980   ;
24981   return 0;
24982 }
24983 _ACEOF
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988   *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991   (eval "$ac_link") 2>conftest.er1
24992   ac_status=$?
24993   grep -v '^ *+' conftest.er1 >conftest.err
24994   rm -f conftest.er1
24995   cat conftest.err >&5
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); } && {
24998          test -z "$ac_c_werror_flag" ||
24999          test ! -s conftest.err
25000        } && test -s conftest$ac_exeext &&
25001        $as_test_x conftest$ac_exeext; then
25002   ac_cv_lib_curses_tgetent=yes
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007         ac_cv_lib_curses_tgetent=no
25008 fi
25009
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011       conftest$ac_exeext conftest.$ac_ext
25012 LIBS=$ac_check_lib_save_LIBS
25013 fi
25014 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25015 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25016 if test $ac_cv_lib_curses_tgetent = yes; then
25017    CONS_LIBS="-lcurses"
25018          CONS_OBJ="conio.o"
25019          CONS_SRC="conio.c"
25020          got_conio="yes"
25021          support_readline=no
25022
25023 cat >>confdefs.h <<\_ACEOF
25024 #define HAVE_CONIO 1
25025 _ACEOF
25026
25027
25028 fi
25029
25030
25031 else
25032    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25033 fi
25034
25035
25036
25037 fi
25038
25039
25040 fi
25041
25042
25043 # Check whether --enable-readline was given.
25044 if test "${enable_readline+set}" = set; then
25045   enableval=$enable_readline;
25046        if test x$enableval = xno; then
25047           support_readline=no
25048        fi
25049
25050
25051 fi
25052
25053
25054 got_readline="no"
25055 READLINE_SRC=
25056 if test x$support_readline = xyes; then
25057
25058 # Check whether --with-readline was given.
25059 if test "${with_readline+set}" = set; then
25060   withval=$with_readline;
25061           case "$with_readline" in
25062           no)
25063              :
25064              ;;
25065           yes|*)
25066              if test -f ${with_readline}/readline.h; then
25067                 CONS_INC="-I${with_readline}"
25068                 CONS_LDFLAGS="-L$with_readline"
25069              elif test -f ${with_readline}/include/readline/readline.h; then
25070                 CONS_INC="-I${with_readline}/include/readline"
25071                 CONS_LDFLAGS="-L${with_readline}/lib"
25072                 with_readline="${with_readline}/include/readline"
25073              else
25074                 with_readline="/usr/include/readline"
25075              fi
25076
25077              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25079   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25080 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25082   echo $ECHO_N "(cached) $ECHO_C" >&6
25083 fi
25084 ac_res=`eval echo '${'$as_ac_Header'}'`
25085                { echo "$as_me:$LINENO: result: $ac_res" >&5
25086 echo "${ECHO_T}$ac_res" >&6; }
25087 else
25088   # Is the header compilable?
25089 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25090 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25091 cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 $ac_includes_default
25098 #include <${with_readline}/readline.h>
25099 _ACEOF
25100 rm -f conftest.$ac_objext
25101 if { (ac_try="$ac_compile"
25102 case "(($ac_try" in
25103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104   *) ac_try_echo=$ac_try;;
25105 esac
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107   (eval "$ac_compile") 2>conftest.er1
25108   ac_status=$?
25109   grep -v '^ *+' conftest.er1 >conftest.err
25110   rm -f conftest.er1
25111   cat conftest.err >&5
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); } && {
25114          test -z "$ac_c_werror_flag" ||
25115          test ! -s conftest.err
25116        } && test -s conftest.$ac_objext; then
25117   ac_header_compiler=yes
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122         ac_header_compiler=no
25123 fi
25124
25125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25127 echo "${ECHO_T}$ac_header_compiler" >&6; }
25128
25129 # Is the header present?
25130 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25131 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25132 cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h.  */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h.  */
25138 #include <${with_readline}/readline.h>
25139 _ACEOF
25140 if { (ac_try="$ac_cpp conftest.$ac_ext"
25141 case "(($ac_try" in
25142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25143   *) ac_try_echo=$ac_try;;
25144 esac
25145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25147   ac_status=$?
25148   grep -v '^ *+' conftest.er1 >conftest.err
25149   rm -f conftest.er1
25150   cat conftest.err >&5
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); } >/dev/null && {
25153          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25154          test ! -s conftest.err
25155        }; then
25156   ac_header_preproc=yes
25157 else
25158   echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161   ac_header_preproc=no
25162 fi
25163
25164 rm -f conftest.err conftest.$ac_ext
25165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25166 echo "${ECHO_T}$ac_header_preproc" >&6; }
25167
25168 # So?  What about this header?
25169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25170   yes:no: )
25171     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25172 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25174 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25175     ac_header_preproc=yes
25176     ;;
25177   no:yes:* )
25178     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25179 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25180     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25182     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25184     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25185 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25186     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25187 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25188     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25189 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25190
25191     ;;
25192 esac
25193 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25194 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25196   echo $ECHO_N "(cached) $ECHO_C" >&6
25197 else
25198   eval "$as_ac_Header=\$ac_header_preproc"
25199 fi
25200 ac_res=`eval echo '${'$as_ac_Header'}'`
25201                { echo "$as_me:$LINENO: result: $ac_res" >&5
25202 echo "${ECHO_T}$ac_res" >&6; }
25203
25204 fi
25205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25206
25207
25208 cat >>confdefs.h <<\_ACEOF
25209 #define HAVE_READLINE 1
25210 _ACEOF
25211
25212                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25213                     got_readline="yes"
25214
25215 else
25216
25217                     echo " "
25218                     echo "readline.h not found. readline turned off ..."
25219                     echo " "
25220
25221
25222 fi
25223
25224
25225              ;;
25226           esac
25227
25228 else
25229
25230                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25231   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25232 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25233 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25234   echo $ECHO_N "(cached) $ECHO_C" >&6
25235 fi
25236 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25237 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25238 else
25239   # Is the header compilable?
25240 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25241 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25242 cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 $ac_includes_default
25249 #include </usr/include/readline/readline.h>
25250 _ACEOF
25251 rm -f conftest.$ac_objext
25252 if { (ac_try="$ac_compile"
25253 case "(($ac_try" in
25254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255   *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258   (eval "$ac_compile") 2>conftest.er1
25259   ac_status=$?
25260   grep -v '^ *+' conftest.er1 >conftest.err
25261   rm -f conftest.er1
25262   cat conftest.err >&5
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); } && {
25265          test -z "$ac_c_werror_flag" ||
25266          test ! -s conftest.err
25267        } && test -s conftest.$ac_objext; then
25268   ac_header_compiler=yes
25269 else
25270   echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273         ac_header_compiler=no
25274 fi
25275
25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25278 echo "${ECHO_T}$ac_header_compiler" >&6; }
25279
25280 # Is the header present?
25281 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25282 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25283 cat >conftest.$ac_ext <<_ACEOF
25284 /* confdefs.h.  */
25285 _ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h.  */
25289 #include </usr/include/readline/readline.h>
25290 _ACEOF
25291 if { (ac_try="$ac_cpp conftest.$ac_ext"
25292 case "(($ac_try" in
25293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294   *) ac_try_echo=$ac_try;;
25295 esac
25296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25298   ac_status=$?
25299   grep -v '^ *+' conftest.er1 >conftest.err
25300   rm -f conftest.er1
25301   cat conftest.err >&5
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); } >/dev/null && {
25304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25305          test ! -s conftest.err
25306        }; then
25307   ac_header_preproc=yes
25308 else
25309   echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25311
25312   ac_header_preproc=no
25313 fi
25314
25315 rm -f conftest.err conftest.$ac_ext
25316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25317 echo "${ECHO_T}$ac_header_preproc" >&6; }
25318
25319 # So?  What about this header?
25320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25321   yes:no: )
25322     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25323 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25324     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25325 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25326     ac_header_preproc=yes
25327     ;;
25328   no:yes:* )
25329     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25330 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25331     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25333     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25335     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25336 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25337     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25338 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25339     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25340 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25341
25342     ;;
25343 esac
25344 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25345 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25346 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25347   echo $ECHO_N "(cached) $ECHO_C" >&6
25348 else
25349   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25350 fi
25351 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25352 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25353
25354 fi
25355 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25356
25357
25358 cat >>confdefs.h <<\_ACEOF
25359 #define HAVE_READLINE 1
25360 _ACEOF
25361
25362                 got_readline="yes"
25363                 CONS_INC="-I/usr/include/readline"
25364                 CONS_LIBS="-lreadline -ltermcap"
25365
25366 else
25367
25368                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25370   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25371 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25373   echo $ECHO_N "(cached) $ECHO_C" >&6
25374 fi
25375 ac_res=`eval echo '${'$as_ac_Header'}'`
25376                { echo "$as_me:$LINENO: result: $ac_res" >&5
25377 echo "${ECHO_T}$ac_res" >&6; }
25378 else
25379   # Is the header compilable?
25380 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25381 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25382 cat >conftest.$ac_ext <<_ACEOF
25383 /* confdefs.h.  */
25384 _ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h.  */
25388 $ac_includes_default
25389 #include <${TOP_DIR}/depkgs/readline/readline.h>
25390 _ACEOF
25391 rm -f conftest.$ac_objext
25392 if { (ac_try="$ac_compile"
25393 case "(($ac_try" in
25394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25395   *) ac_try_echo=$ac_try;;
25396 esac
25397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25398   (eval "$ac_compile") 2>conftest.er1
25399   ac_status=$?
25400   grep -v '^ *+' conftest.er1 >conftest.err
25401   rm -f conftest.er1
25402   cat conftest.err >&5
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); } && {
25405          test -z "$ac_c_werror_flag" ||
25406          test ! -s conftest.err
25407        } && test -s conftest.$ac_objext; then
25408   ac_header_compiler=yes
25409 else
25410   echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25412
25413         ac_header_compiler=no
25414 fi
25415
25416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25418 echo "${ECHO_T}$ac_header_compiler" >&6; }
25419
25420 # Is the header present?
25421 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25422 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25423 cat >conftest.$ac_ext <<_ACEOF
25424 /* confdefs.h.  */
25425 _ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h.  */
25429 #include <${TOP_DIR}/depkgs/readline/readline.h>
25430 _ACEOF
25431 if { (ac_try="$ac_cpp conftest.$ac_ext"
25432 case "(($ac_try" in
25433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25434   *) ac_try_echo=$ac_try;;
25435 esac
25436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25438   ac_status=$?
25439   grep -v '^ *+' conftest.er1 >conftest.err
25440   rm -f conftest.er1
25441   cat conftest.err >&5
25442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); } >/dev/null && {
25444          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25445          test ! -s conftest.err
25446        }; then
25447   ac_header_preproc=yes
25448 else
25449   echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452   ac_header_preproc=no
25453 fi
25454
25455 rm -f conftest.err conftest.$ac_ext
25456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25457 echo "${ECHO_T}$ac_header_preproc" >&6; }
25458
25459 # So?  What about this header?
25460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25461   yes:no: )
25462     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25463 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25464     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25466     ac_header_preproc=yes
25467     ;;
25468   no:yes:* )
25469     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25471     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25473     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25475     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25477     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25478 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25479     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25480 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25481
25482     ;;
25483 esac
25484 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25485 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25487   echo $ECHO_N "(cached) $ECHO_C" >&6
25488 else
25489   eval "$as_ac_Header=\$ac_header_preproc"
25490 fi
25491 ac_res=`eval echo '${'$as_ac_Header'}'`
25492                { echo "$as_me:$LINENO: result: $ac_res" >&5
25493 echo "${ECHO_T}$ac_res" >&6; }
25494
25495 fi
25496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25497
25498
25499 cat >>confdefs.h <<\_ACEOF
25500 #define HAVE_READLINE 1
25501 _ACEOF
25502
25503                         got_readline="yes"
25504                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25505                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25506                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25507                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25508
25509 else
25510
25511                         echo " "
25512                         echo "readline.h not found. readline turned off ..."
25513                         echo " "
25514
25515
25516 fi
25517
25518
25519
25520
25521 fi
25522
25523
25524
25525
25526 fi
25527
25528 fi
25529
25530
25531
25532
25533
25534
25535
25536
25537 MAKE_SHELL=/bin/sh
25538
25539 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25540 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25541 if test "${ac_cv_header_stat_broken+set}" = set; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 #include <sys/types.h>
25551 #include <sys/stat.h>
25552
25553 #if defined S_ISBLK && defined S_IFDIR
25554 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25555 #endif
25556
25557 #if defined S_ISBLK && defined S_IFCHR
25558 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25559 #endif
25560
25561 #if defined S_ISLNK && defined S_IFREG
25562 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25563 #endif
25564
25565 #if defined S_ISSOCK && defined S_IFREG
25566 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25567 #endif
25568
25569 _ACEOF
25570 rm -f conftest.$ac_objext
25571 if { (ac_try="$ac_compile"
25572 case "(($ac_try" in
25573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25574   *) ac_try_echo=$ac_try;;
25575 esac
25576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25577   (eval "$ac_compile") 2>conftest.er1
25578   ac_status=$?
25579   grep -v '^ *+' conftest.er1 >conftest.err
25580   rm -f conftest.er1
25581   cat conftest.err >&5
25582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); } && {
25584          test -z "$ac_c_werror_flag" ||
25585          test ! -s conftest.err
25586        } && test -s conftest.$ac_objext; then
25587   ac_cv_header_stat_broken=no
25588 else
25589   echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25591
25592         ac_cv_header_stat_broken=yes
25593 fi
25594
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25596 fi
25597 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25598 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25599 if test $ac_cv_header_stat_broken = yes; then
25600
25601 cat >>confdefs.h <<\_ACEOF
25602 #define STAT_MACROS_BROKEN 1
25603 _ACEOF
25604
25605 fi
25606
25607
25608
25609
25610
25611
25612 ac_header_dirent=no
25613 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25614   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25615 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25616 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25618   echo $ECHO_N "(cached) $ECHO_C" >&6
25619 else
25620   cat >conftest.$ac_ext <<_ACEOF
25621 /* confdefs.h.  */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h.  */
25626 #include <sys/types.h>
25627 #include <$ac_hdr>
25628
25629 int
25630 main ()
25631 {
25632 if ((DIR *) 0)
25633 return 0;
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 rm -f conftest.$ac_objext
25639 if { (ac_try="$ac_compile"
25640 case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_compile") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest.$ac_objext; then
25655   eval "$as_ac_Header=yes"
25656 else
25657   echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660         eval "$as_ac_Header=no"
25661 fi
25662
25663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25664 fi
25665 ac_res=`eval echo '${'$as_ac_Header'}'`
25666                { echo "$as_me:$LINENO: result: $ac_res" >&5
25667 echo "${ECHO_T}$ac_res" >&6; }
25668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25669   cat >>confdefs.h <<_ACEOF
25670 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25671 _ACEOF
25672
25673 ac_header_dirent=$ac_hdr; break
25674 fi
25675
25676 done
25677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25678 if test $ac_header_dirent = dirent.h; then
25679   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25680 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25681 if test "${ac_cv_search_opendir+set}" = set; then
25682   echo $ECHO_N "(cached) $ECHO_C" >&6
25683 else
25684   ac_func_search_save_LIBS=$LIBS
25685 cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h.  */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h.  */
25691
25692 /* Override any GCC internal prototype to avoid an error.
25693    Use char because int might match the return type of a GCC
25694    builtin and then its argument prototype would still apply.  */
25695 #ifdef __cplusplus
25696 extern "C"
25697 #endif
25698 char opendir ();
25699 int
25700 main ()
25701 {
25702 return opendir ();
25703   ;
25704   return 0;
25705 }
25706 _ACEOF
25707 for ac_lib in '' dir; do
25708   if test -z "$ac_lib"; then
25709     ac_res="none required"
25710   else
25711     ac_res=-l$ac_lib
25712     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25713   fi
25714   rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (ac_try="$ac_link"
25716 case "(($ac_try" in
25717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25718   *) ac_try_echo=$ac_try;;
25719 esac
25720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25721   (eval "$ac_link") 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } && {
25728          test -z "$ac_c_werror_flag" ||
25729          test ! -s conftest.err
25730        } && test -s conftest$ac_exeext &&
25731        $as_test_x conftest$ac_exeext; then
25732   ac_cv_search_opendir=$ac_res
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737
25738 fi
25739
25740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25741       conftest$ac_exeext
25742   if test "${ac_cv_search_opendir+set}" = set; then
25743   break
25744 fi
25745 done
25746 if test "${ac_cv_search_opendir+set}" = set; then
25747   :
25748 else
25749   ac_cv_search_opendir=no
25750 fi
25751 rm conftest.$ac_ext
25752 LIBS=$ac_func_search_save_LIBS
25753 fi
25754 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25755 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25756 ac_res=$ac_cv_search_opendir
25757 if test "$ac_res" != no; then
25758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25759
25760 fi
25761
25762 else
25763   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25765 if test "${ac_cv_search_opendir+set}" = set; then
25766   echo $ECHO_N "(cached) $ECHO_C" >&6
25767 else
25768   ac_func_search_save_LIBS=$LIBS
25769 cat >conftest.$ac_ext <<_ACEOF
25770 /* confdefs.h.  */
25771 _ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h.  */
25775
25776 /* Override any GCC internal prototype to avoid an error.
25777    Use char because int might match the return type of a GCC
25778    builtin and then its argument prototype would still apply.  */
25779 #ifdef __cplusplus
25780 extern "C"
25781 #endif
25782 char opendir ();
25783 int
25784 main ()
25785 {
25786 return opendir ();
25787   ;
25788   return 0;
25789 }
25790 _ACEOF
25791 for ac_lib in '' x; do
25792   if test -z "$ac_lib"; then
25793     ac_res="none required"
25794   else
25795     ac_res=-l$ac_lib
25796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25797   fi
25798   rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802   *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805   (eval "$ac_link") 2>conftest.er1
25806   ac_status=$?
25807   grep -v '^ *+' conftest.er1 >conftest.err
25808   rm -f conftest.er1
25809   cat conftest.err >&5
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); } && {
25812          test -z "$ac_c_werror_flag" ||
25813          test ! -s conftest.err
25814        } && test -s conftest$ac_exeext &&
25815        $as_test_x conftest$ac_exeext; then
25816   ac_cv_search_opendir=$ac_res
25817 else
25818   echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821
25822 fi
25823
25824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25825       conftest$ac_exeext
25826   if test "${ac_cv_search_opendir+set}" = set; then
25827   break
25828 fi
25829 done
25830 if test "${ac_cv_search_opendir+set}" = set; then
25831   :
25832 else
25833   ac_cv_search_opendir=no
25834 fi
25835 rm conftest.$ac_ext
25836 LIBS=$ac_func_search_save_LIBS
25837 fi
25838 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25839 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25840 ac_res=$ac_cv_search_opendir
25841 if test "$ac_res" != no; then
25842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25843
25844 fi
25845
25846 fi
25847
25848
25849
25850
25851
25852
25853
25854
25855 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25856 do
25857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25861   echo $ECHO_N "(cached) $ECHO_C" >&6
25862 else
25863   cat >conftest.$ac_ext <<_ACEOF
25864 /* confdefs.h.  */
25865 _ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h.  */
25869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25871 #define $ac_func innocuous_$ac_func
25872
25873 /* System header to define __stub macros and hopefully few prototypes,
25874     which can conflict with char $ac_func (); below.
25875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25876     <limits.h> exists even on freestanding compilers.  */
25877
25878 #ifdef __STDC__
25879 # include <limits.h>
25880 #else
25881 # include <assert.h>
25882 #endif
25883
25884 #undef $ac_func
25885
25886 /* Override any GCC internal prototype to avoid an error.
25887    Use char because int might match the return type of a GCC
25888    builtin and then its argument prototype would still apply.  */
25889 #ifdef __cplusplus
25890 extern "C"
25891 #endif
25892 char $ac_func ();
25893 /* The GNU C library defines this for functions which it implements
25894     to always fail with ENOSYS.  Some functions are actually named
25895     something starting with __ and the normal name is an alias.  */
25896 #if defined __stub_$ac_func || defined __stub___$ac_func
25897 choke me
25898 #endif
25899
25900 int
25901 main ()
25902 {
25903 return $ac_func ();
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912   *) ac_try_echo=$ac_try;;
25913 esac
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915   (eval "$ac_link") 2>conftest.er1
25916   ac_status=$?
25917   grep -v '^ *+' conftest.er1 >conftest.err
25918   rm -f conftest.er1
25919   cat conftest.err >&5
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); } && {
25922          test -z "$ac_c_werror_flag" ||
25923          test ! -s conftest.err
25924        } && test -s conftest$ac_exeext &&
25925        $as_test_x conftest$ac_exeext; then
25926   eval "$as_ac_var=yes"
25927 else
25928   echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931         eval "$as_ac_var=no"
25932 fi
25933
25934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25935       conftest$ac_exeext conftest.$ac_ext
25936 fi
25937 ac_res=`eval echo '${'$as_ac_var'}'`
25938                { echo "$as_me:$LINENO: result: $ac_res" >&5
25939 echo "${ECHO_T}$ac_res" >&6; }
25940 if test `eval echo '${'$as_ac_var'}'` = yes; then
25941   cat >>confdefs.h <<_ACEOF
25942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25943 _ACEOF
25944
25945 fi
25946 done
25947
25948
25949
25950 for ac_func in nanosleep nl_langinfo
25951 do
25952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25956   echo $ECHO_N "(cached) $ECHO_C" >&6
25957 else
25958   cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25966 #define $ac_func innocuous_$ac_func
25967
25968 /* System header to define __stub macros and hopefully few prototypes,
25969     which can conflict with char $ac_func (); below.
25970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25971     <limits.h> exists even on freestanding compilers.  */
25972
25973 #ifdef __STDC__
25974 # include <limits.h>
25975 #else
25976 # include <assert.h>
25977 #endif
25978
25979 #undef $ac_func
25980
25981 /* Override any GCC internal prototype to avoid an error.
25982    Use char because int might match the return type of a GCC
25983    builtin and then its argument prototype would still apply.  */
25984 #ifdef __cplusplus
25985 extern "C"
25986 #endif
25987 char $ac_func ();
25988 /* The GNU C library defines this for functions which it implements
25989     to always fail with ENOSYS.  Some functions are actually named
25990     something starting with __ and the normal name is an alias.  */
25991 #if defined __stub_$ac_func || defined __stub___$ac_func
25992 choke me
25993 #endif
25994
25995 int
25996 main ()
25997 {
25998 return $ac_func ();
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 rm -f conftest.$ac_objext conftest$ac_exeext
26004 if { (ac_try="$ac_link"
26005 case "(($ac_try" in
26006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007   *) ac_try_echo=$ac_try;;
26008 esac
26009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26010   (eval "$ac_link") 2>conftest.er1
26011   ac_status=$?
26012   grep -v '^ *+' conftest.er1 >conftest.err
26013   rm -f conftest.er1
26014   cat conftest.err >&5
26015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016   (exit $ac_status); } && {
26017          test -z "$ac_c_werror_flag" ||
26018          test ! -s conftest.err
26019        } && test -s conftest$ac_exeext &&
26020        $as_test_x conftest$ac_exeext; then
26021   eval "$as_ac_var=yes"
26022 else
26023   echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026         eval "$as_ac_var=no"
26027 fi
26028
26029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26030       conftest$ac_exeext conftest.$ac_ext
26031 fi
26032 ac_res=`eval echo '${'$as_ac_var'}'`
26033                { echo "$as_me:$LINENO: result: $ac_res" >&5
26034 echo "${ECHO_T}$ac_res" >&6; }
26035 if test `eval echo '${'$as_ac_var'}'` = yes; then
26036   cat >>confdefs.h <<_ACEOF
26037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26038 _ACEOF
26039
26040 fi
26041 done
26042
26043
26044 for ac_header in varargs.h
26045 do
26046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26048   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26051   echo $ECHO_N "(cached) $ECHO_C" >&6
26052 fi
26053 ac_res=`eval echo '${'$as_ac_Header'}'`
26054                { echo "$as_me:$LINENO: result: $ac_res" >&5
26055 echo "${ECHO_T}$ac_res" >&6; }
26056 else
26057   # Is the header compilable?
26058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26060 cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h.  */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h.  */
26066 $ac_includes_default
26067 #include <$ac_header>
26068 _ACEOF
26069 rm -f conftest.$ac_objext
26070 if { (ac_try="$ac_compile"
26071 case "(($ac_try" in
26072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073   *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076   (eval "$ac_compile") 2>conftest.er1
26077   ac_status=$?
26078   grep -v '^ *+' conftest.er1 >conftest.err
26079   rm -f conftest.er1
26080   cat conftest.err >&5
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); } && {
26083          test -z "$ac_c_werror_flag" ||
26084          test ! -s conftest.err
26085        } && test -s conftest.$ac_objext; then
26086   ac_header_compiler=yes
26087 else
26088   echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26090
26091         ac_header_compiler=no
26092 fi
26093
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26096 echo "${ECHO_T}$ac_header_compiler" >&6; }
26097
26098 # Is the header present?
26099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26101 cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h.  */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h.  */
26107 #include <$ac_header>
26108 _ACEOF
26109 if { (ac_try="$ac_cpp conftest.$ac_ext"
26110 case "(($ac_try" in
26111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26112   *) ac_try_echo=$ac_try;;
26113 esac
26114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } >/dev/null && {
26122          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26123          test ! -s conftest.err
26124        }; then
26125   ac_header_preproc=yes
26126 else
26127   echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130   ac_header_preproc=no
26131 fi
26132
26133 rm -f conftest.err conftest.$ac_ext
26134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26135 echo "${ECHO_T}$ac_header_preproc" >&6; }
26136
26137 # So?  What about this header?
26138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26139   yes:no: )
26140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26144     ac_header_preproc=yes
26145     ;;
26146   no:yes:* )
26147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26159
26160     ;;
26161 esac
26162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26165   echo $ECHO_N "(cached) $ECHO_C" >&6
26166 else
26167   eval "$as_ac_Header=\$ac_header_preproc"
26168 fi
26169 ac_res=`eval echo '${'$as_ac_Header'}'`
26170                { echo "$as_me:$LINENO: result: $ac_res" >&5
26171 echo "${ECHO_T}$ac_res" >&6; }
26172
26173 fi
26174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26175   cat >>confdefs.h <<_ACEOF
26176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26177 _ACEOF
26178
26179 fi
26180
26181 done
26182
26183
26184
26185 { echo "$as_me:$LINENO: checking for Python support" >&5
26186 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26187
26188 # Check whether --with-python was given.
26189 if test "${with_python+set}" = set; then
26190   withval=$with_python;
26191        PYTHON_INCDIR=
26192        PYTHON_LIBS=
26193        if test "$withval" != "no"; then
26194           if test "$withval" = "yes"; then
26195              for python_root in /usr /usr/local /usr/sfw; do
26196                 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26197                    if test -f $python_root/include/${ver}/Python.h; then
26198                       PYTHON_INCDIR=-I$python_root/include/${ver}
26199                       if test -d $python_root/lib64/${ver}/config; then
26200                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26201                       else
26202                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26203                       fi
26204                       break
26205                    fi
26206                 done
26207              done
26208
26209              if test x$PYTHON_INCDIR = x; then
26210                 if test -f $prefix/include/Python.h; then
26211                    PYTHON_INCDIR=-I$prefix/include
26212                    if test -d $prefix/lib64/config; then
26213                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26214                    else
26215                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26216                    fi
26217                 else
26218                    { echo "$as_me:$LINENO: result: no" >&5
26219 echo "${ECHO_T}no" >&6; }
26220                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26221 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26222    { (exit 1); exit 1; }; }
26223                 fi
26224              fi
26225           else
26226              if test -f $withval/Python.h; then
26227                 PYTHON_INCDIR=-I$withval
26228                 PYTHON_LIBS="-L$withval/config -lpython"
26229              elif test -f $withval/include/Python.h; then
26230                 PYTHON_INCDIR=-I$withval/include
26231                 if test -d $withval/lib64/config; then
26232                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26233                 else
26234                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26235                 fi
26236              elif test -f $withval/include/python/Python.h; then
26237                 PYTHON_INCDIR=-I$withval/include/python
26238                 if test -d $withval/lib64/python/config; then
26239                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26240                 else
26241                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26242                 fi
26243              else
26244                 { echo "$as_me:$LINENO: result: no" >&5
26245 echo "${ECHO_T}no" >&6; }
26246                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26247 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26248    { (exit 1); exit 1; }; }
26249              fi
26250           fi
26251
26252           cat >>confdefs.h <<\_ACEOF
26253 #define HAVE_PYTHON 1
26254 _ACEOF
26255
26256           { echo "$as_me:$LINENO: result: yes" >&5
26257 echo "${ECHO_T}yes" >&6; }
26258           support_python=yes
26259           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26260 echo "$as_me: checking for more Python libs" >&6;}
26261           saved_LIBS="$LIBS"; LIBS=
26262           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26263 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26264 if test "${ac_cv_search_shm_open+set}" = set; then
26265   echo $ECHO_N "(cached) $ECHO_C" >&6
26266 else
26267   ac_func_search_save_LIBS=$LIBS
26268 cat >conftest.$ac_ext <<_ACEOF
26269 /* confdefs.h.  */
26270 _ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h.  */
26274
26275 /* Override any GCC internal prototype to avoid an error.
26276    Use char because int might match the return type of a GCC
26277    builtin and then its argument prototype would still apply.  */
26278 #ifdef __cplusplus
26279 extern "C"
26280 #endif
26281 char shm_open ();
26282 int
26283 main ()
26284 {
26285 return shm_open ();
26286   ;
26287   return 0;
26288 }
26289 _ACEOF
26290 for ac_lib in '' rt; do
26291   if test -z "$ac_lib"; then
26292     ac_res="none required"
26293   else
26294     ac_res=-l$ac_lib
26295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26296   fi
26297   rm -f conftest.$ac_objext conftest$ac_exeext
26298 if { (ac_try="$ac_link"
26299 case "(($ac_try" in
26300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26301   *) ac_try_echo=$ac_try;;
26302 esac
26303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26304   (eval "$ac_link") 2>conftest.er1
26305   ac_status=$?
26306   grep -v '^ *+' conftest.er1 >conftest.err
26307   rm -f conftest.er1
26308   cat conftest.err >&5
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); } && {
26311          test -z "$ac_c_werror_flag" ||
26312          test ! -s conftest.err
26313        } && test -s conftest$ac_exeext &&
26314        $as_test_x conftest$ac_exeext; then
26315   ac_cv_search_shm_open=$ac_res
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320
26321 fi
26322
26323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26324       conftest$ac_exeext
26325   if test "${ac_cv_search_shm_open+set}" = set; then
26326   break
26327 fi
26328 done
26329 if test "${ac_cv_search_shm_open+set}" = set; then
26330   :
26331 else
26332   ac_cv_search_shm_open=no
26333 fi
26334 rm conftest.$ac_ext
26335 LIBS=$ac_func_search_save_LIBS
26336 fi
26337 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26338 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26339 ac_res=$ac_cv_search_shm_open
26340 if test "$ac_res" != no; then
26341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26342
26343 fi
26344
26345
26346 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26347 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26348 if test "${ac_cv_lib_util_openpty+set}" = set; then
26349   echo $ECHO_N "(cached) $ECHO_C" >&6
26350 else
26351   ac_check_lib_save_LIBS=$LIBS
26352 LIBS="-lutil  $LIBS"
26353 cat >conftest.$ac_ext <<_ACEOF
26354 /* confdefs.h.  */
26355 _ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h.  */
26359
26360 /* Override any GCC internal prototype to avoid an error.
26361    Use char because int might match the return type of a GCC
26362    builtin and then its argument prototype would still apply.  */
26363 #ifdef __cplusplus
26364 extern "C"
26365 #endif
26366 char openpty ();
26367 int
26368 main ()
26369 {
26370 return openpty ();
26371   ;
26372   return 0;
26373 }
26374 _ACEOF
26375 rm -f conftest.$ac_objext conftest$ac_exeext
26376 if { (ac_try="$ac_link"
26377 case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382   (eval "$ac_link") 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } && {
26389          test -z "$ac_c_werror_flag" ||
26390          test ! -s conftest.err
26391        } && test -s conftest$ac_exeext &&
26392        $as_test_x conftest$ac_exeext; then
26393   ac_cv_lib_util_openpty=yes
26394 else
26395   echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26397
26398         ac_cv_lib_util_openpty=no
26399 fi
26400
26401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26402       conftest$ac_exeext conftest.$ac_ext
26403 LIBS=$ac_check_lib_save_LIBS
26404 fi
26405 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26406 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26407 if test $ac_cv_lib_util_openpty = yes; then
26408   cat >>confdefs.h <<_ACEOF
26409 #define HAVE_LIBUTIL 1
26410 _ACEOF
26411
26412   LIBS="-lutil $LIBS"
26413
26414 fi
26415
26416           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26417           LIBS="$saved_LIBS"
26418        else
26419           { echo "$as_me:$LINENO: result: no" >&5
26420 echo "${ECHO_T}no" >&6; }
26421        fi
26422
26423 else
26424
26425        { echo "$as_me:$LINENO: result: no" >&5
26426 echo "${ECHO_T}no" >&6; }
26427
26428
26429 fi
26430
26431
26432
26433
26434 { echo "$as_me:$LINENO: checking for socket" >&5
26435 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26436 if test "${ac_cv_func_socket+set}" = set; then
26437   echo $ECHO_N "(cached) $ECHO_C" >&6
26438 else
26439   cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26447 #define socket innocuous_socket
26448
26449 /* System header to define __stub macros and hopefully few prototypes,
26450     which can conflict with char socket (); below.
26451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452     <limits.h> exists even on freestanding compilers.  */
26453
26454 #ifdef __STDC__
26455 # include <limits.h>
26456 #else
26457 # include <assert.h>
26458 #endif
26459
26460 #undef socket
26461
26462 /* Override any GCC internal prototype to avoid an error.
26463    Use char because int might match the return type of a GCC
26464    builtin and then its argument prototype would still apply.  */
26465 #ifdef __cplusplus
26466 extern "C"
26467 #endif
26468 char socket ();
26469 /* The GNU C library defines this for functions which it implements
26470     to always fail with ENOSYS.  Some functions are actually named
26471     something starting with __ and the normal name is an alias.  */
26472 #if defined __stub_socket || defined __stub___socket
26473 choke me
26474 #endif
26475
26476 int
26477 main ()
26478 {
26479 return socket ();
26480   ;
26481   return 0;
26482 }
26483 _ACEOF
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488   *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491   (eval "$ac_link") 2>conftest.er1
26492   ac_status=$?
26493   grep -v '^ *+' conftest.er1 >conftest.err
26494   rm -f conftest.er1
26495   cat conftest.err >&5
26496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); } && {
26498          test -z "$ac_c_werror_flag" ||
26499          test ! -s conftest.err
26500        } && test -s conftest$ac_exeext &&
26501        $as_test_x conftest$ac_exeext; then
26502   ac_cv_func_socket=yes
26503 else
26504   echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507         ac_cv_func_socket=no
26508 fi
26509
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511       conftest$ac_exeext conftest.$ac_ext
26512 fi
26513 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26514 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26515 if test $ac_cv_func_socket = yes; then
26516   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26517 echo "${ECHO_T}using libc's socket" >&6; }
26518 else
26519
26520 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26521 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26522 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26523   echo $ECHO_N "(cached) $ECHO_C" >&6
26524 else
26525   ac_check_lib_save_LIBS=$LIBS
26526 LIBS="-lxnet  $LIBS"
26527 cat >conftest.$ac_ext <<_ACEOF
26528 /* confdefs.h.  */
26529 _ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h.  */
26533
26534 /* Override any GCC internal prototype to avoid an error.
26535    Use char because int might match the return type of a GCC
26536    builtin and then its argument prototype would still apply.  */
26537 #ifdef __cplusplus
26538 extern "C"
26539 #endif
26540 char socket ();
26541 int
26542 main ()
26543 {
26544 return socket ();
26545   ;
26546   return 0;
26547 }
26548 _ACEOF
26549 rm -f conftest.$ac_objext conftest$ac_exeext
26550 if { (ac_try="$ac_link"
26551 case "(($ac_try" in
26552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553   *) ac_try_echo=$ac_try;;
26554 esac
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556   (eval "$ac_link") 2>conftest.er1
26557   ac_status=$?
26558   grep -v '^ *+' conftest.er1 >conftest.err
26559   rm -f conftest.er1
26560   cat conftest.err >&5
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } && {
26563          test -z "$ac_c_werror_flag" ||
26564          test ! -s conftest.err
26565        } && test -s conftest$ac_exeext &&
26566        $as_test_x conftest$ac_exeext; then
26567   ac_cv_lib_xnet_socket=yes
26568 else
26569   echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26571
26572         ac_cv_lib_xnet_socket=no
26573 fi
26574
26575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26576       conftest$ac_exeext conftest.$ac_ext
26577 LIBS=$ac_check_lib_save_LIBS
26578 fi
26579 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26580 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26581 if test $ac_cv_lib_xnet_socket = yes; then
26582   cat >>confdefs.h <<_ACEOF
26583 #define HAVE_LIBXNET 1
26584 _ACEOF
26585
26586   LIBS="-lxnet $LIBS"
26587
26588 fi
26589
26590
26591 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26592 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26593 if test "${ac_cv_lib_socket_socket+set}" = set; then
26594   echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596   ac_check_lib_save_LIBS=$LIBS
26597 LIBS="-lsocket  $LIBS"
26598 cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h.  */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h.  */
26604
26605 /* Override any GCC internal prototype to avoid an error.
26606    Use char because int might match the return type of a GCC
26607    builtin and then its argument prototype would still apply.  */
26608 #ifdef __cplusplus
26609 extern "C"
26610 #endif
26611 char socket ();
26612 int
26613 main ()
26614 {
26615 return socket ();
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 rm -f conftest.$ac_objext conftest$ac_exeext
26621 if { (ac_try="$ac_link"
26622 case "(($ac_try" in
26623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624   *) ac_try_echo=$ac_try;;
26625 esac
26626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26627   (eval "$ac_link") 2>conftest.er1
26628   ac_status=$?
26629   grep -v '^ *+' conftest.er1 >conftest.err
26630   rm -f conftest.er1
26631   cat conftest.err >&5
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); } && {
26634          test -z "$ac_c_werror_flag" ||
26635          test ! -s conftest.err
26636        } && test -s conftest$ac_exeext &&
26637        $as_test_x conftest$ac_exeext; then
26638   ac_cv_lib_socket_socket=yes
26639 else
26640   echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26642
26643         ac_cv_lib_socket_socket=no
26644 fi
26645
26646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26647       conftest$ac_exeext conftest.$ac_ext
26648 LIBS=$ac_check_lib_save_LIBS
26649 fi
26650 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26651 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26652 if test $ac_cv_lib_socket_socket = yes; then
26653   cat >>confdefs.h <<_ACEOF
26654 #define HAVE_LIBSOCKET 1
26655 _ACEOF
26656
26657   LIBS="-lsocket $LIBS"
26658
26659 fi
26660
26661
26662 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26663 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26664 if test "${ac_cv_lib_inet_socket+set}" = set; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 else
26667   ac_check_lib_save_LIBS=$LIBS
26668 LIBS="-linet  $LIBS"
26669 cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h.  */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h.  */
26675
26676 /* Override any GCC internal prototype to avoid an error.
26677    Use char because int might match the return type of a GCC
26678    builtin and then its argument prototype would still apply.  */
26679 #ifdef __cplusplus
26680 extern "C"
26681 #endif
26682 char socket ();
26683 int
26684 main ()
26685 {
26686 return socket ();
26687   ;
26688   return 0;
26689 }
26690 _ACEOF
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (ac_try="$ac_link"
26693 case "(($ac_try" in
26694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695   *) ac_try_echo=$ac_try;;
26696 esac
26697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26698   (eval "$ac_link") 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } && {
26705          test -z "$ac_c_werror_flag" ||
26706          test ! -s conftest.err
26707        } && test -s conftest$ac_exeext &&
26708        $as_test_x conftest$ac_exeext; then
26709   ac_cv_lib_inet_socket=yes
26710 else
26711   echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714         ac_cv_lib_inet_socket=no
26715 fi
26716
26717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26718       conftest$ac_exeext conftest.$ac_ext
26719 LIBS=$ac_check_lib_save_LIBS
26720 fi
26721 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26722 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26723 if test $ac_cv_lib_inet_socket = yes; then
26724   cat >>confdefs.h <<_ACEOF
26725 #define HAVE_LIBINET 1
26726 _ACEOF
26727
26728   LIBS="-linet $LIBS"
26729
26730 fi
26731
26732 fi
26733
26734
26735 TCPW_MSG="no"
26736 WRAPLIBS=""
26737
26738 # Check whether --with-tcp-wrappers was given.
26739 if test "${with_tcp_wrappers+set}" = set; then
26740   withval=$with_tcp_wrappers;
26741        if test "x$withval" != "xno" ; then
26742           saved_LIBS="$LIBS"
26743           LIBS="$saved_LIBS -lwrap"
26744           { echo "$as_me:$LINENO: checking for libwrap" >&5
26745 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26746           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26747 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26748 if test "${ac_cv_search_nanosleep+set}" = set; then
26749   echo $ECHO_N "(cached) $ECHO_C" >&6
26750 else
26751   ac_func_search_save_LIBS=$LIBS
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758
26759 /* Override any GCC internal prototype to avoid an error.
26760    Use char because int might match the return type of a GCC
26761    builtin and then its argument prototype would still apply.  */
26762 #ifdef __cplusplus
26763 extern "C"
26764 #endif
26765 char nanosleep ();
26766 int
26767 main ()
26768 {
26769 return nanosleep ();
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 for ac_lib in '' rt; do
26775   if test -z "$ac_lib"; then
26776     ac_res="none required"
26777   else
26778     ac_res=-l$ac_lib
26779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26780   fi
26781   rm -f conftest.$ac_objext conftest$ac_exeext
26782 if { (ac_try="$ac_link"
26783 case "(($ac_try" in
26784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785   *) ac_try_echo=$ac_try;;
26786 esac
26787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788   (eval "$ac_link") 2>conftest.er1
26789   ac_status=$?
26790   grep -v '^ *+' conftest.er1 >conftest.err
26791   rm -f conftest.er1
26792   cat conftest.err >&5
26793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); } && {
26795          test -z "$ac_c_werror_flag" ||
26796          test ! -s conftest.err
26797        } && test -s conftest$ac_exeext &&
26798        $as_test_x conftest$ac_exeext; then
26799   ac_cv_search_nanosleep=$ac_res
26800 else
26801   echo "$as_me: failed program was:" >&5
26802 sed 's/^/| /' conftest.$ac_ext >&5
26803
26804
26805 fi
26806
26807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26808       conftest$ac_exeext
26809   if test "${ac_cv_search_nanosleep+set}" = set; then
26810   break
26811 fi
26812 done
26813 if test "${ac_cv_search_nanosleep+set}" = set; then
26814   :
26815 else
26816   ac_cv_search_nanosleep=no
26817 fi
26818 rm conftest.$ac_ext
26819 LIBS=$ac_func_search_save_LIBS
26820 fi
26821 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26822 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26823 ac_res=$ac_cv_search_nanosleep
26824 if test "$ac_res" != no; then
26825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26826
26827 fi
26828
26829           cat >conftest.$ac_ext <<_ACEOF
26830 /* confdefs.h.  */
26831 _ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h.  */
26835
26836                #include <sys/types.h>
26837                #include <tcpd.h>
26838                int deny_severity = 0;
26839                int allow_severity = 0;
26840                struct request_info *req;
26841
26842 int
26843 main ()
26844 {
26845
26846                 hosts_access(req);
26847
26848   ;
26849   return 0;
26850 }
26851 _ACEOF
26852 rm -f conftest.$ac_objext conftest$ac_exeext
26853 if { (ac_try="$ac_link"
26854 case "(($ac_try" in
26855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856   *) ac_try_echo=$ac_try;;
26857 esac
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859   (eval "$ac_link") 2>conftest.er1
26860   ac_status=$?
26861   grep -v '^ *+' conftest.er1 >conftest.err
26862   rm -f conftest.er1
26863   cat conftest.err >&5
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); } && {
26866          test -z "$ac_c_werror_flag" ||
26867          test ! -s conftest.err
26868        } && test -s conftest$ac_exeext &&
26869        $as_test_x conftest$ac_exeext; then
26870
26871                  { echo "$as_me:$LINENO: result: yes" >&5
26872 echo "${ECHO_T}yes" >&6; }
26873
26874 cat >>confdefs.h <<\_ACEOF
26875 #define HAVE_LIBWRAP 1
26876 _ACEOF
26877
26878                  TCPW_MSG="yes"
26879                  LIBS="$saved_LIBS"
26880                  WRAPLIBS="-lwrap"
26881
26882 else
26883   echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26885
26886
26887                  LIBS="$saved_LIBS -lwrap -lnsl"
26888                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26889                  cat >conftest.$ac_ext <<_ACEOF
26890 /* confdefs.h.  */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h.  */
26895
26896                        #include <sys/types.h>
26897                        #include <tcpd.h>
26898                        int deny_severity = 0;
26899                        int allow_severity = 0;
26900                        struct request_info *req;
26901
26902 int
26903 main ()
26904 {
26905
26906                        hosts_access(req);
26907
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest.$ac_objext conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_link") 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } && {
26926          test -z "$ac_c_werror_flag" ||
26927          test ! -s conftest.err
26928        } && test -s conftest$ac_exeext &&
26929        $as_test_x conftest$ac_exeext; then
26930
26931                       { echo "$as_me:$LINENO: result: yes" >&5
26932 echo "${ECHO_T}yes" >&6; }
26933
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_LIBWRAP 1
26936 _ACEOF
26937
26938                       TCPW_MSG="yes"
26939                       LIBS="$saved_LIBS"
26940                       WRAPLIBS="-lwrap"
26941
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946
26947                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26948 echo "$as_me: error: *** libwrap missing" >&2;}
26949    { (exit 1); exit 1; }; }
26950
26951
26952 fi
26953
26954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26955       conftest$ac_exeext conftest.$ac_ext
26956
26957
26958 fi
26959
26960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26961       conftest$ac_exeext conftest.$ac_ext
26962        fi
26963
26964
26965 fi
26966
26967
26968 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26969 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26970
26971 # Check whether --with-openssl was given.
26972 if test "${with_openssl+set}" = set; then
26973   withval=$with_openssl;
26974         with_openssl_directory=${withval}
26975
26976
26977 fi
26978
26979
26980 if test "x$with_openssl_directory" != "xno"; then
26981    OPENSSL_LIBS="-lssl -lcrypto"
26982    OPENSSL_INC=""
26983
26984    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26985       #
26986       # Make sure the $with_openssl_directory also makes sense
26987       #
26988       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26989          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26990          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26991       fi
26992    fi
26993
26994    saved_LIBS="${LIBS}"
26995    saved_CFLAGS="${CFLAGS}"
26996    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26997    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26998
26999    cat >conftest.$ac_ext <<_ACEOF
27000 /* confdefs.h.  */
27001 _ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h.  */
27005
27006           #include <openssl/ssl.h>
27007
27008 int
27009 main ()
27010 {
27011
27012            CRYPTO_set_id_callback(NULL);
27013
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_link") 2>conftest.er1
27026   ac_status=$?
27027   grep -v '^ *+' conftest.er1 >conftest.err
27028   rm -f conftest.er1
27029   cat conftest.err >&5
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } && {
27032          test -z "$ac_c_werror_flag" ||
27033          test ! -s conftest.err
27034        } && test -s conftest$ac_exeext &&
27035        $as_test_x conftest$ac_exeext; then
27036
27037           support_tls="yes"
27038           support_crypto="yes"
27039
27040 else
27041   echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044
27045           support_tls="no"
27046
27047
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27051       conftest$ac_exeext conftest.$ac_ext
27052
27053    cat >conftest.$ac_ext <<_ACEOF
27054 /* confdefs.h.  */
27055 _ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h.  */
27059
27060           #include <openssl/evp.h>
27061
27062 int
27063 main ()
27064 {
27065
27066           EVP_sha512();
27067
27068   ;
27069   return 0;
27070 }
27071 _ACEOF
27072 rm -f conftest.$ac_objext conftest$ac_exeext
27073 if { (ac_try="$ac_link"
27074 case "(($ac_try" in
27075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076   *) ac_try_echo=$ac_try;;
27077 esac
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079   (eval "$ac_link") 2>conftest.er1
27080   ac_status=$?
27081   grep -v '^ *+' conftest.er1 >conftest.err
27082   rm -f conftest.er1
27083   cat conftest.err >&5
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); } && {
27086          test -z "$ac_c_werror_flag" ||
27087          test ! -s conftest.err
27088        } && test -s conftest$ac_exeext &&
27089        $as_test_x conftest$ac_exeext; then
27090
27091           ac_cv_openssl_sha2="yes"
27092
27093 else
27094   echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27096
27097
27098           ac_cv_openssl_sha2="no"
27099
27100
27101 fi
27102
27103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27104       conftest$ac_exeext conftest.$ac_ext
27105
27106                cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h.  */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h.  */
27112
27113           #include <openssl/evp.h>
27114
27115 int
27116 main ()
27117 {
27118
27119           EVP_aes_192_cbc();
27120
27121   ;
27122   return 0;
27123 }
27124 _ACEOF
27125 rm -f conftest.$ac_objext conftest$ac_exeext
27126 if { (ac_try="$ac_link"
27127 case "(($ac_try" in
27128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129   *) ac_try_echo=$ac_try;;
27130 esac
27131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132   (eval "$ac_link") 2>conftest.er1
27133   ac_status=$?
27134   grep -v '^ *+' conftest.er1 >conftest.err
27135   rm -f conftest.er1
27136   cat conftest.err >&5
27137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138   (exit $ac_status); } && {
27139          test -z "$ac_c_werror_flag" ||
27140          test ! -s conftest.err
27141        } && test -s conftest$ac_exeext &&
27142        $as_test_x conftest$ac_exeext; then
27143
27144           ac_cv_openssl_export="no"
27145
27146 else
27147   echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27149
27150
27151           ac_cv_openssl_export="yes"
27152
27153
27154 fi
27155
27156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27157       conftest$ac_exeext conftest.$ac_ext
27158
27159    LIBS="${saved_LIBS}"
27160    CFLAGS="${saved_CFLAGS}"
27161
27162    if test "$support_tls" = "yes"; then
27163
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_OPENSSL 1
27166 _ACEOF
27167
27168
27169 cat >>confdefs.h <<\_ACEOF
27170 #define HAVE_TLS 1
27171 _ACEOF
27172
27173
27174 cat >>confdefs.h <<\_ACEOF
27175 #define HAVE_CRYPTO 1
27176 _ACEOF
27177
27178    fi
27179
27180    if test "$ac_cv_openssl_sha2" = "yes"; then
27181
27182 cat >>confdefs.h <<\_ACEOF
27183 #define HAVE_SHA2 1
27184 _ACEOF
27185
27186    fi
27187
27188    if test "$ac_cv_openssl_export" = "yes"; then
27189
27190 cat >>confdefs.h <<\_ACEOF
27191 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27192 _ACEOF
27193
27194    fi
27195 else
27196    support_tls="no"
27197    support_crypto="no"
27198    OPENSSL_LIBS=""
27199    OPENSSL_INC=""
27200 fi
27201
27202 { echo "$as_me:$LINENO: result: $support_tls" >&5
27203 echo "${ECHO_T}$support_tls" >&6; }
27204
27205
27206
27207 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27208 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27209 if test "${ac_cv_search_dlopen+set}" = set; then
27210   echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212   ac_func_search_save_LIBS=$LIBS
27213 cat >conftest.$ac_ext <<_ACEOF
27214 /* confdefs.h.  */
27215 _ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h.  */
27219
27220 /* Override any GCC internal prototype to avoid an error.
27221    Use char because int might match the return type of a GCC
27222    builtin and then its argument prototype would still apply.  */
27223 #ifdef __cplusplus
27224 extern "C"
27225 #endif
27226 char dlopen ();
27227 int
27228 main ()
27229 {
27230 return dlopen ();
27231   ;
27232   return 0;
27233 }
27234 _ACEOF
27235 for ac_lib in '' dl; do
27236   if test -z "$ac_lib"; then
27237     ac_res="none required"
27238   else
27239     ac_res=-l$ac_lib
27240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27241   fi
27242   rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (ac_try="$ac_link"
27244 case "(($ac_try" in
27245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246   *) ac_try_echo=$ac_try;;
27247 esac
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249   (eval "$ac_link") 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } && {
27256          test -z "$ac_c_werror_flag" ||
27257          test ! -s conftest.err
27258        } && test -s conftest$ac_exeext &&
27259        $as_test_x conftest$ac_exeext; then
27260   ac_cv_search_dlopen=$ac_res
27261 else
27262   echo "$as_me: failed program was:" >&5
27263 sed 's/^/| /' conftest.$ac_ext >&5
27264
27265
27266 fi
27267
27268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27269       conftest$ac_exeext
27270   if test "${ac_cv_search_dlopen+set}" = set; then
27271   break
27272 fi
27273 done
27274 if test "${ac_cv_search_dlopen+set}" = set; then
27275   :
27276 else
27277   ac_cv_search_dlopen=no
27278 fi
27279 rm conftest.$ac_ext
27280 LIBS=$ac_func_search_save_LIBS
27281 fi
27282 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27283 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27284 ac_res=$ac_cv_search_dlopen
27285 if test "$ac_res" != no; then
27286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27287
27288 fi
27289
27290
27291 working_dir=`eval echo ${prefix}/var/bacula/working`
27292
27293 # Check whether --with-working-dir was given.
27294 if test "${with_working_dir+set}" = set; then
27295   withval=$with_working_dir;
27296        if test "x$withval" != "xno" ; then
27297          working_dir=$withval
27298        fi
27299
27300
27301 fi
27302
27303
27304
27305
27306 archive_dir=/tmp
27307
27308 # Check whether --with-archivedir was given.
27309 if test "${with_archivedir+set}" = set; then
27310   withval=$with_archivedir;
27311        if test "x$withval" != "xno" ; then
27312           archivedir=$withval
27313        fi
27314
27315
27316 fi
27317
27318
27319
27320
27321 scriptdir=`eval echo ${sysconfdir}`
27322
27323 # Check whether --with-scriptdir was given.
27324 if test "${with_scriptdir+set}" = set; then
27325   withval=$with_scriptdir;
27326        if test "x$withval" != "xno" ; then
27327           scriptdir=$withval
27328        fi
27329
27330
27331 fi
27332
27333
27334
27335
27336 # ------------------------------------------
27337 # Where to place plugindir (plugin files)
27338 # ------------------------------------------
27339 plugindir=`eval echo ${sysconfdir}`
27340
27341 # Check whether --with-plugindir was given.
27342 if test "${with_plugindir+set}" = set; then
27343   withval=$with_plugindir;
27344        if test "x$withval" != "xno" ; then
27345           plugindir=$withval
27346        fi
27347
27348
27349 fi
27350
27351
27352
27353
27354 dump_email=root@localhost
27355
27356 # Check whether --with-dump-email was given.
27357 if test "${with_dump_email+set}" = set; then
27358   withval=$with_dump_email;
27359        if test "x$withval" != "xno" ; then
27360           dump_email=$withval
27361        fi
27362
27363
27364 fi
27365
27366
27367
27368
27369 job_email=root@localhost
27370
27371 # Check whether --with-job-email was given.
27372 if test "${with_job_email+set}" = set; then
27373   withval=$with_job_email;
27374        if test "x$withval" != "xno" ; then
27375           job_email=$withval
27376        fi
27377
27378
27379 fi
27380
27381
27382
27383
27384 smtp_host=localhost
27385
27386 # Check whether --with-smtp_host was given.
27387 if test "${with_smtp_host+set}" = set; then
27388   withval=$with_smtp_host;
27389        if test "x$withval" != "xno" ; then
27390           smtp_host=$withval
27391        fi
27392
27393
27394 fi
27395
27396
27397
27398
27399 piddir=/var/run
27400
27401 # Check whether --with-pid-dir was given.
27402 if test "${with_pid_dir+set}" = set; then
27403   withval=$with_pid_dir;
27404        if test "x$withval" != "xno" ; then
27405           piddir=$withval
27406        fi
27407
27408
27409 fi
27410
27411
27412 cat >>confdefs.h <<_ACEOF
27413 #define _PATH_BACULA_PIDDIR "$piddir"
27414 _ACEOF
27415
27416
27417
27418 subsysdir=/var/run/subsys
27419 if test -d /var/run/subsys; then
27420    subsysdir=/var/run/subsys
27421 elif test -d /var/lock/subsys; then
27422    subsysdir=/var/lock/subsys
27423 else
27424    subsysdir=/var/run/subsys
27425 fi
27426
27427 # Check whether --with-subsys-dir was given.
27428 if test "${with_subsys_dir+set}" = set; then
27429   withval=$with_subsys_dir;
27430        if test "x$withval" != "xno" ; then
27431           subsysdir=$withval
27432        fi
27433
27434
27435 fi
27436
27437
27438
27439
27440 baseport=9101
27441
27442 # Check whether --with-baseport was given.
27443 if test "${with_baseport+set}" = set; then
27444   withval=$with_baseport;
27445        if test "x$withval" != "xno" ; then
27446           baseport=$withval
27447        fi
27448
27449
27450 fi
27451
27452
27453
27454 dir_port=`expr $baseport`
27455 fd_port=`expr $baseport + 1`
27456 sd_port=`expr $fd_port + 1`
27457
27458
27459
27460
27461
27462 dir_password=
27463
27464 # Check whether --with-dir-password was given.
27465 if test "${with_dir_password+set}" = set; then
27466   withval=$with_dir_password;
27467        if test "x$withval" != "xno" ; then
27468           dir_password=$withval
27469        fi
27470
27471
27472 fi
27473
27474
27475 if test "x$dir_password" = "x" ; then
27476    if test "x$OPENSSL" = "xnone" ; then
27477       key=`autoconf/randpass 33`
27478    else
27479       key=`openssl rand -base64 33`
27480    fi
27481    dir_password=$key
27482 fi
27483
27484 fd_password=
27485
27486 # Check whether --with-fd-password was given.
27487 if test "${with_fd_password+set}" = set; then
27488   withval=$with_fd_password;
27489        if test "x$withval" != "xno" ; then
27490           fd_password=$withval
27491        fi
27492
27493
27494 fi
27495
27496
27497 if test "x$fd_password" = "x" ; then
27498    if test "x$OPENSSL" = "xnone" ; then
27499       key=`autoconf/randpass 37`
27500    else
27501       key=`openssl rand -base64 33`
27502    fi
27503    fd_password=$key
27504 fi
27505
27506 sd_password=
27507
27508 # Check whether --with-sd-password was given.
27509 if test "${with_sd_password+set}" = set; then
27510   withval=$with_sd_password;
27511        if test "x$withval" != "xno" ; then
27512           sd_password=$withval
27513        fi
27514
27515
27516 fi
27517
27518
27519 if test "x$sd_password" = "x" ; then
27520    if test "x$OPENSSL" = "xnone" ; then
27521       key=`autoconf/randpass 41`
27522    else
27523       key=`openssl rand -base64 33`
27524    fi
27525    sd_password=$key
27526 fi
27527
27528 mon_dir_password=
27529
27530 # Check whether --with-mon-dir-password was given.
27531 if test "${with_mon_dir_password+set}" = set; then
27532   withval=$with_mon_dir_password;
27533        if test "x$withval" != "xno" ; then
27534           mon_dir_password=$withval
27535        fi
27536
27537
27538 fi
27539
27540
27541 if test "x$mon_dir_password" = "x" ; then
27542    if test "x$OPENSSL" = "xnone" ; then
27543       key=`autoconf/randpass 33`
27544    else
27545       key=`openssl rand -base64 33`
27546    fi
27547    mon_dir_password=$key
27548 fi
27549
27550 mon_fd_password=
27551
27552 # Check whether --with-mon-fd-password was given.
27553 if test "${with_mon_fd_password+set}" = set; then
27554   withval=$with_mon_fd_password;
27555        if test "x$withval" != "xno" ; then
27556           mon_fd_password=$withval
27557        fi
27558
27559
27560 fi
27561
27562
27563 if test "x$mon_fd_password" = "x" ; then
27564    if test "x$OPENSSL" = "xnone" ; then
27565       key=`autoconf/randpass 37`
27566    else
27567       key=`openssl rand -base64 33`
27568    fi
27569    mon_fd_password=$key
27570 fi
27571
27572 mon_sd_password=
27573
27574 # Check whether --with-mon-sd-password was given.
27575 if test "${with_mon_sd_password+set}" = set; then
27576   withval=$with_mon_sd_password;
27577        if test "x$withval" != "xno" ; then
27578           mon_sd_password=$withval
27579        fi
27580
27581
27582 fi
27583
27584
27585 if test "x$mon_sd_password" = "x" ; then
27586    if test "x$OPENSSL" = "xnone" ; then
27587       key=`autoconf/randpass 41`
27588    else
27589       key=`openssl rand -base64 33`
27590    fi
27591    mon_sd_password=$key
27592 fi
27593
27594
27595
27596
27597
27598
27599
27600
27601 db_name=bacula
27602
27603 # Check whether --with-db_name was given.
27604 if test "${with_db_name+set}" = set; then
27605   withval=$with_db_name;
27606        if test "x$withval" != "x" ; then
27607           db_name=$withval
27608        fi
27609
27610
27611 fi
27612
27613
27614
27615 db_user=bacula
27616
27617 # Check whether --with-db_user was given.
27618 if test "${with_db_user+set}" = set; then
27619   withval=$with_db_user;
27620        if test "x$withval" != "x" ; then
27621           db_user=$withval
27622        fi
27623
27624
27625 fi
27626
27627
27628
27629 db_password=
27630
27631 # Check whether --with-db_password was given.
27632 if test "${with_db_password+set}" = set; then
27633   withval=$with_db_password;
27634        if test "x$withval" != "x" ; then
27635           db_password=$withval
27636        fi
27637
27638
27639 fi
27640
27641
27642
27643 db_port=" "
27644
27645 # Check whether --with-db_port was given.
27646 if test "${with_db_port+set}" = set; then
27647   withval=$with_db_port;
27648        if test "x$withval" != "x" ; then
27649           db_port=$withval
27650        fi
27651
27652
27653 fi
27654
27655
27656
27657 #
27658 # Handle users and groups for each daemon
27659 #
27660 dir_user=
27661
27662 # Check whether --with-dir_user was given.
27663 if test "${with_dir_user+set}" = set; then
27664   withval=$with_dir_user;
27665        if test "x$withval" != "x" ; then
27666            dir_user=$withval
27667        fi
27668
27669
27670 fi
27671
27672
27673 dir_group=
27674
27675 # Check whether --with-dir_group was given.
27676 if test "${with_dir_group+set}" = set; then
27677   withval=$with_dir_group;
27678        if test "x$withval" != "x" ; then
27679           dir_group=$withval
27680        fi
27681
27682
27683 fi
27684
27685
27686 sd_user=
27687
27688 # Check whether --with-sd_user was given.
27689 if test "${with_sd_user+set}" = set; then
27690   withval=$with_sd_user;
27691        if test "x$withval" != "x" ; then
27692           sd_user=$withval
27693        fi
27694
27695
27696 fi
27697
27698
27699 sd_group=
27700
27701 # Check whether --with-sd_group was given.
27702 if test "${with_sd_group+set}" = set; then
27703   withval=$with_sd_group;
27704        if test "x$withval" != "x" ; then
27705           sd_group=$withval
27706        fi
27707
27708
27709 fi
27710
27711
27712 fd_user=
27713
27714 # Check whether --with-fd_user was given.
27715 if test "${with_fd_user+set}" = set; then
27716   withval=$with_fd_user;
27717        if test "x$withval" != "x" ; then
27718           fd_user=$withval
27719        fi
27720
27721
27722 fi
27723
27724
27725 fd_group=
27726
27727 # Check whether --with-fd_group was given.
27728 if test "${with_fd_group+set}" = set; then
27729   withval=$with_fd_group;
27730        if test "x$withval" != "x" ; then
27731           fd_group=$withval
27732        fi
27733
27734
27735 fi
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745 SBINPERM=0754
27746
27747 # Check whether --with-sbin-perm was given.
27748 if test "${with_sbin_perm+set}" = set; then
27749   withval=$with_sbin_perm;
27750        if test "x$withval" != "x" ; then
27751           SBINPERM=$withval
27752        fi
27753
27754
27755 fi
27756
27757
27758
27759
27760 SQL_LIB=
27761
27762 db_found=no
27763 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27764 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27765
27766 # Check whether --with-postgresql was given.
27767 if test "${with_postgresql+set}" = set; then
27768   withval=$with_postgresql;
27769   if test "$withval" != "no"; then
27770       if test "$db_found" = "yes"; then
27771           { echo "$as_me:$LINENO: result: error" >&5
27772 echo "${ECHO_T}error" >&6; }
27773           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27774 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27775    { (exit 1); exit 1; }; };
27776       fi
27777       if test "$withval" = "yes"; then
27778           PG_CONFIG=`which pg_config`
27779           if test -n "$PG_CONFIG";then
27780               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27781               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27782               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27783           elif test -f /usr/local/include/libpq-fe.h; then
27784               POSTGRESQL_INCDIR=/usr/local/include
27785               if test -d /usr/local/lib64; then
27786                  POSTGRESQL_LIBDIR=/usr/local/lib64
27787               else
27788                  POSTGRESQL_LIBDIR=/usr/local/lib
27789               fi
27790               POSTGRESQL_BINDIR=/usr/local/bin
27791           elif test -f /usr/include/libpq-fe.h; then
27792               POSTGRESQL_INCDIR=/usr/include
27793               if test -d /usr/lib64; then
27794                  POSTGRESQL_LIBDIR=/usr/lib64
27795               else
27796                  POSTGRESQL_LIBDIR=/usr/lib
27797               fi
27798               POSTGRESQL_BINDIR=/usr/bin
27799           elif test -f /usr/include/pgsql/libpq-fe.h; then
27800               POSTGRESQL_INCDIR=/usr/include/pgsql
27801               if test -d /usr/lib64/pgsql; then
27802                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27803               else
27804                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27805               fi
27806               POSTGRESQL_BINDIR=/usr/bin
27807           elif test -f /usr/include/postgresql/libpq-fe.h; then
27808               POSTGRESQL_INCDIR=/usr/include/postgresql
27809               if test -d /usr/lib64/postgresql; then
27810                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27811               else
27812                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27813               fi
27814               POSTGRESQL_BINDIR=/usr/bin
27815           else
27816               { echo "$as_me:$LINENO: result: no" >&5
27817 echo "${ECHO_T}no" >&6; }
27818               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27819 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27820    { (exit 1); exit 1; }; }
27821           fi
27822       elif test -f $withval/include/libpq-fe.h; then
27823           POSTGRESQL_INCDIR=$withval/include
27824           POSTGRESQL_LIBDIR=$withval/lib
27825           POSTGRESQL_BINDIR=$withval/bin
27826       elif test -f $withval/include/postgresql/libpq-fe.h; then
27827           POSTGRESQL_INCDIR=$withval/include/postgresql
27828      if test -d $withval/lib64; then
27829          POSTGRESQL_LIBDIR=$withval/lib64
27830      else
27831          POSTGRESQL_LIBDIR=$withval/lib
27832      fi
27833           POSTGRESQL_BINDIR=$withval/bin
27834       else
27835           { echo "$as_me:$LINENO: result: no" >&5
27836 echo "${ECHO_T}no" >&6; }
27837           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27838 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27839    { (exit 1); exit 1; }; }
27840       fi
27841       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27842       { echo "$as_me:$LINENO: checking for crypt" >&5
27843 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27844 if test "${ac_cv_func_crypt+set}" = set; then
27845   echo $ECHO_N "(cached) $ECHO_C" >&6
27846 else
27847   cat >conftest.$ac_ext <<_ACEOF
27848 /* confdefs.h.  */
27849 _ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h.  */
27853 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27855 #define crypt innocuous_crypt
27856
27857 /* System header to define __stub macros and hopefully few prototypes,
27858     which can conflict with char crypt (); below.
27859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27860     <limits.h> exists even on freestanding compilers.  */
27861
27862 #ifdef __STDC__
27863 # include <limits.h>
27864 #else
27865 # include <assert.h>
27866 #endif
27867
27868 #undef crypt
27869
27870 /* Override any GCC internal prototype to avoid an error.
27871    Use char because int might match the return type of a GCC
27872    builtin and then its argument prototype would still apply.  */
27873 #ifdef __cplusplus
27874 extern "C"
27875 #endif
27876 char crypt ();
27877 /* The GNU C library defines this for functions which it implements
27878     to always fail with ENOSYS.  Some functions are actually named
27879     something starting with __ and the normal name is an alias.  */
27880 #if defined __stub_crypt || defined __stub___crypt
27881 choke me
27882 #endif
27883
27884 int
27885 main ()
27886 {
27887 return crypt ();
27888   ;
27889   return 0;
27890 }
27891 _ACEOF
27892 rm -f conftest.$ac_objext conftest$ac_exeext
27893 if { (ac_try="$ac_link"
27894 case "(($ac_try" in
27895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896   *) ac_try_echo=$ac_try;;
27897 esac
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899   (eval "$ac_link") 2>conftest.er1
27900   ac_status=$?
27901   grep -v '^ *+' conftest.er1 >conftest.err
27902   rm -f conftest.er1
27903   cat conftest.err >&5
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); } && {
27906          test -z "$ac_c_werror_flag" ||
27907          test ! -s conftest.err
27908        } && test -s conftest$ac_exeext &&
27909        $as_test_x conftest$ac_exeext; then
27910   ac_cv_func_crypt=yes
27911 else
27912   echo "$as_me: failed program was:" >&5
27913 sed 's/^/| /' conftest.$ac_ext >&5
27914
27915         ac_cv_func_crypt=no
27916 fi
27917
27918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27919       conftest$ac_exeext conftest.$ac_ext
27920 fi
27921 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27922 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27923 if test $ac_cv_func_crypt = yes; then
27924   :
27925 else
27926   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27927 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27928 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27929   echo $ECHO_N "(cached) $ECHO_C" >&6
27930 else
27931   ac_check_lib_save_LIBS=$LIBS
27932 LIBS="-lcrypt  $LIBS"
27933 cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939
27940 /* Override any GCC internal prototype to avoid an error.
27941    Use char because int might match the return type of a GCC
27942    builtin and then its argument prototype would still apply.  */
27943 #ifdef __cplusplus
27944 extern "C"
27945 #endif
27946 char crypt ();
27947 int
27948 main ()
27949 {
27950 return crypt ();
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext conftest$ac_exeext
27956 if { (ac_try="$ac_link"
27957 case "(($ac_try" in
27958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959   *) ac_try_echo=$ac_try;;
27960 esac
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962   (eval "$ac_link") 2>conftest.er1
27963   ac_status=$?
27964   grep -v '^ *+' conftest.er1 >conftest.err
27965   rm -f conftest.er1
27966   cat conftest.err >&5
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); } && {
27969          test -z "$ac_c_werror_flag" ||
27970          test ! -s conftest.err
27971        } && test -s conftest$ac_exeext &&
27972        $as_test_x conftest$ac_exeext; then
27973   ac_cv_lib_crypt_crypt=yes
27974 else
27975   echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978         ac_cv_lib_crypt_crypt=no
27979 fi
27980
27981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27982       conftest$ac_exeext conftest.$ac_ext
27983 LIBS=$ac_check_lib_save_LIBS
27984 fi
27985 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27986 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27987 if test $ac_cv_lib_crypt_crypt = yes; then
27988   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27989 fi
27990
27991 fi
27992
27993       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27994       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27995       SQL_BINDIR=$POSTGRESQL_BINDIR
27996       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27997
27998       cat >>confdefs.h <<\_ACEOF
27999 #define HAVE_POSTGRESQL 1
28000 _ACEOF
28001
28002       { echo "$as_me:$LINENO: result: yes" >&5
28003 echo "${ECHO_T}yes" >&6; }
28004       db_found=yes
28005       support_postgresql=yes
28006       db_type=PostgreSQL
28007       DB_TYPE=postgresql
28008   else
28009       { echo "$as_me:$LINENO: result: no" >&5
28010 echo "${ECHO_T}no" >&6; }
28011   fi
28012
28013 else
28014
28015   { echo "$as_me:$LINENO: result: no" >&5
28016 echo "${ECHO_T}no" >&6; }
28017
28018 fi
28019
28020
28021
28022
28023
28024
28025
28026
28027 db_found=no
28028 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28029 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28030
28031 # Check whether --with-mysql was given.
28032 if test "${with_mysql+set}" = set; then
28033   withval=$with_mysql;
28034   if test "$withval" != "no"; then
28035         if test "$withval" = "yes"; then
28036            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28037                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28038                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28039                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28040                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28041                    else
28042                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28043                    fi
28044                    MYSQL_BINDIR=/usr/local/mysql/bin
28045            elif test -f /usr/include/mysql/mysql.h; then
28046                    MYSQL_INCDIR=/usr/include/mysql
28047                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28048                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28049                            MYSQL_LIBDIR=/usr/lib64/mysql
28050                    elif test -f /usr/lib64/libmysqlclient_r.a \
28051                         -o -f /usr/lib64/libmysqlclient_r.so; then
28052                            MYSQL_LIBDIR=/usr/lib64
28053                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28054                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28055                            MYSQL_LIBDIR=/usr/lib/mysql
28056                    else
28057                            MYSQL_LIBDIR=/usr/lib
28058                    fi
28059                    MYSQL_BINDIR=/usr/bin
28060            elif test -f /usr/include/mysql.h; then
28061                    MYSQL_INCDIR=/usr/include
28062                    if test -f /usr/lib64/libmysqlclient_r.a \
28063                         -o -f /usr/lib64/libmysqlclient_r.so; then
28064                            MYSQL_LIBDIR=/usr/lib64
28065                    else
28066                            MYSQL_LIBDIR=/usr/lib
28067                    fi
28068                    MYSQL_BINDIR=/usr/bin
28069            elif test -f /usr/local/include/mysql/mysql.h; then
28070                    MYSQL_INCDIR=/usr/local/include/mysql
28071                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28072                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28073                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28074                    else
28075                            MYSQL_LIBDIR=/usr/local/lib/mysql
28076                    fi
28077                    MYSQL_BINDIR=/usr/local/bin
28078            elif test -f /usr/local/include/mysql.h; then
28079                    MYSQL_INCDIR=/usr/local/include
28080                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28081                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28082                            MYSQL_LIBDIR=/usr/local/lib64
28083                    else
28084                            MYSQL_LIBDIR=/usr/local/lib
28085                    fi
28086                    MYSQL_BINDIR=/usr/local/bin
28087            else
28088               { echo "$as_me:$LINENO: result: no" >&5
28089 echo "${ECHO_T}no" >&6; }
28090               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28091 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28092    { (exit 1); exit 1; }; }
28093            fi
28094         else
28095            if test -f $withval/include/mysql/mysql.h; then
28096               MYSQL_INCDIR=$withval/include/mysql
28097               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28098                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28099                  MYSQL_LIBDIR=$withval/lib64/mysql
28100               elif test -f $withval/lib64/libmysqlclient_r.a \
28101                    -o -f $withval/lib64/libmysqlclient_r.so; then
28102                  MYSQL_LIBDIR=$withval/lib64
28103               elif test -f $withval/lib/libmysqlclient_r.a \
28104                    -o -f $withval/lib/libmysqlclient_r.so; then
28105                  MYSQL_LIBDIR=$withval/lib
28106               else
28107                  MYSQL_LIBDIR=$withval/lib/mysql
28108               fi
28109               MYSQL_BINDIR=$withval/bin
28110            elif test -f $withval/include/mysql.h; then
28111               MYSQL_INCDIR=$withval/include
28112               if test -f $withval/lib64/libmysqlclient_r.a \
28113                    -o -f $withval/lib64/libmysqlclient_r.so; then
28114                  MYSQL_LIBDIR=$withval/lib64
28115               else
28116                  MYSQL_LIBDIR=$withval/lib
28117               fi
28118               MYSQL_BINDIR=$withval/bin
28119            else
28120               { echo "$as_me:$LINENO: result: no" >&5
28121 echo "${ECHO_T}no" >&6; }
28122               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28123 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28124    { (exit 1); exit 1; }; }
28125            fi
28126         fi
28127     SQL_INCLUDE=-I$MYSQL_INCDIR
28128     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28129          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28130        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28131        cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_THREAD_SAFE_MYSQL 1
28133 _ACEOF
28134
28135     fi
28136     SQL_BINDIR=$MYSQL_BINDIR
28137     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28138
28139     cat >>confdefs.h <<\_ACEOF
28140 #define HAVE_MYSQL 1
28141 _ACEOF
28142
28143     { echo "$as_me:$LINENO: result: yes" >&5
28144 echo "${ECHO_T}yes" >&6; }
28145     db_found=yes
28146     support_mysql=yes
28147     db_type=MySQL
28148     DB_TYPE=mysql
28149
28150   else
28151         { echo "$as_me:$LINENO: result: no" >&5
28152 echo "${ECHO_T}no" >&6; }
28153   fi
28154
28155
28156 fi
28157
28158
28159
28160 # Check whether --with-embedded-mysql was given.
28161 if test "${with_embedded_mysql+set}" = set; then
28162   withval=$with_embedded_mysql;
28163   if test "$withval" != "no"; then
28164         if test "$withval" = "yes"; then
28165                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28166                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28167                         if test -d /usr/local/mysql/lib64/mysql; then
28168                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28169                         else
28170                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28171                         fi
28172                         MYSQL_BINDIR=/usr/local/mysql/bin
28173                 elif test -f /usr/include/mysql/mysql.h; then
28174                         MYSQL_INCDIR=/usr/include/mysql
28175                         if test -d /usr/lib64/mysql; then
28176                                 MYSQL_LIBDIR=/usr/lib64/mysql
28177                         else
28178                                 MYSQL_LIBDIR=/usr/lib/mysql
28179                         fi
28180                         MYSQL_BINDIR=/usr/bin
28181                 elif test -f /usr/include/mysql.h; then
28182                         MYSQL_INCDIR=/usr/include
28183                         if test -d /usr/lib64; then
28184                                 MYSQL_LIBDIR=/usr/lib64
28185                         else
28186                                 MYSQL_LIBDIR=/usr/lib
28187                         fi
28188                         MYSQL_BINDIR=/usr/bin
28189                 elif test -f /usr/local/include/mysql/mysql.h; then
28190                         MYSQL_INCDIR=/usr/local/include/mysql
28191                         if test -d /usr/local/lib64/mysql; then
28192                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28193                         else
28194                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28195                         fi
28196                         MYSQL_BINDIR=/usr/local/bin
28197                 elif test -f /usr/local/include/mysql.h; then
28198                         MYSQL_INCDIR=/usr/local/include
28199                         if test -d /usr/local/lib64; then
28200                                 MYSQL_LIBDIR=/usr/local/lib64
28201                         else
28202                                 MYSQL_LIBDIR=/usr/local/lib
28203                         fi
28204                         MYSQL_BINDIR=/usr/local/bin
28205                 else
28206                    { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28209 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28210    { (exit 1); exit 1; }; }
28211                 fi
28212         else
28213                 if test -f $withval/include/mysql/mysql.h; then
28214                         MYSQL_INCDIR=$withval/include/mysql
28215                         if test -d $withval/lib64/mysql; then
28216                                 MYSQL_LIBDIR=$withval/lib64/mysql
28217                         else
28218                                 MYSQL_LIBDIR=$withval/lib/mysql
28219                         fi
28220                         MYSQL_BINDIR=$withval/bin
28221                 elif test -f $withval/include/mysql.h; then
28222                         MYSQL_INCDIR=$withval/include
28223                         if test -d $withval/lib64; then
28224                                 MYSQL_LIBDIR=$withval/lib64
28225                         else
28226                                 MYSQL_LIBDIR=$withval/lib
28227                         fi
28228                         MYSQL_BINDIR=$withval/bin
28229                 else
28230                    { echo "$as_me:$LINENO: result: no" >&5
28231 echo "${ECHO_T}no" >&6; }
28232                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28233 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28234    { (exit 1); exit 1; }; }
28235                 fi
28236         fi
28237     SQL_INCLUDE=-I$MYSQL_INCDIR
28238     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28239     SQL_BINDIR=$MYSQL_BINDIR
28240     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28241
28242     cat >>confdefs.h <<\_ACEOF
28243 #define HAVE_MYSQL 1
28244 _ACEOF
28245
28246     cat >>confdefs.h <<\_ACEOF
28247 #define HAVE_EMBEDDED_MYSQL 1
28248 _ACEOF
28249
28250     { echo "$as_me:$LINENO: result: yes" >&5
28251 echo "${ECHO_T}yes" >&6; }
28252     db_found=yes
28253     support_mysql=yes
28254     db_type=MySQL
28255     DB_TYPE=mysql
28256
28257   else
28258         { echo "$as_me:$LINENO: result: no" >&5
28259 echo "${ECHO_T}no" >&6; }
28260   fi
28261
28262
28263 fi
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274 db_found=no
28275 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28276 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28277
28278 # Check whether --with-sqlite3 was given.
28279 if test "${with_sqlite3+set}" = set; then
28280   withval=$with_sqlite3;
28281   if test "$withval" != "no"; then
28282      if test "$withval" = "yes"; then
28283         if test -f /usr/local/include/sqlite3.h; then
28284            SQLITE_INCDIR=/usr/local/include
28285            if test -d /usr/local/lib64; then
28286               SQLITE_LIBDIR=/usr/local/lib64
28287            else
28288               SQLITE_LIBDIR=/usr/local/lib
28289            fi
28290            SQLITE_BINDIR=/usr/local/bin
28291         elif test -f /usr/include/sqlite3.h; then
28292            SQLITE_INCDIR=/usr/include
28293            if test -d /usr/lib64; then
28294               SQLITE_LIBDIR=/usr/lib64
28295            else
28296               SQLITE_LIBDIR=/usr/lib
28297            fi
28298            SQLITE_BINDIR=/usr/bin
28299         elif test -f $prefix/include/sqlite3.h; then
28300            SQLITE_INCDIR=$prefix/include
28301            if test -d $prefix/lib64; then
28302               SQLITE_LIBDIR=$prefix/lib64
28303            else
28304               SQLITE_LIBDIR=$prefix/lib
28305            fi
28306            SQLITE_BINDIR=$prefix/bin
28307         else
28308            { echo "$as_me:$LINENO: result: no" >&5
28309 echo "${ECHO_T}no" >&6; }
28310            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28311 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28312    { (exit 1); exit 1; }; }
28313         fi
28314      else
28315         if test -f $withval/sqlite3.h; then
28316            SQLITE_INCDIR=$withval
28317            SQLITE_LIBDIR=$withval
28318            SQLITE_BINDIR=$withval
28319         elif test -f $withval/include/sqlite3.h; then
28320            SQLITE_INCDIR=$withval/include
28321            if test -d $withval/lib64; then
28322               SQLITE_LIBDIR=$withval/lib64
28323            else
28324               SQLITE_LIBDIR=$withval/lib
28325            fi
28326            SQLITE_BINDIR=$withval/bin
28327         else
28328            { echo "$as_me:$LINENO: result: no" >&5
28329 echo "${ECHO_T}no" >&6; }
28330            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28331 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28332    { (exit 1); exit 1; }; }
28333         fi
28334      fi
28335      SQL_INCLUDE=-I$SQLITE_INCDIR
28336      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28337      SQL_BINDIR=$SQLITE_BINDIR
28338      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28339
28340      cat >>confdefs.h <<\_ACEOF
28341 #define HAVE_SQLITE3 1
28342 _ACEOF
28343
28344      { echo "$as_me:$LINENO: result: yes" >&5
28345 echo "${ECHO_T}yes" >&6; }
28346      db_found=yes
28347      support_sqlite3=yes
28348      db_type=SQLite3
28349      DB_TYPE=sqlite3
28350
28351   else
28352      { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354   fi
28355
28356 else
28357
28358   { echo "$as_me:$LINENO: result: no" >&5
28359 echo "${ECHO_T}no" >&6; }
28360
28361 fi
28362
28363
28364
28365
28366
28367
28368
28369
28370 db_found=no
28371 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28372 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28373
28374 # Check whether --with-sqlite was given.
28375 if test "${with_sqlite+set}" = set; then
28376   withval=$with_sqlite;
28377   if test "$withval" != "no"; then
28378      if test "$withval" = "yes"; then
28379         if test -f /usr/local/include/sqlite.h; then
28380            SQLITE_INCDIR=/usr/local/include
28381            if test -d /usr/local/lib64; then
28382               SQLITE_LIBDIR=/usr/local/lib64
28383            else
28384               SQLITE_LIBDIR=/usr/local/lib
28385            fi
28386            SQLITE_BINDIR=/usr/local/bin
28387         elif test -f /usr/include/sqlite.h; then
28388            SQLITE_INCDIR=/usr/include
28389            if test -d /usr/lib64; then
28390               SQLITE_LIBDIR=/usr/lib64
28391            else
28392               SQLITE_LIBDIR=/usr/lib
28393            fi
28394            SQLITE_BINDIR=/usr/bin
28395         elif test -f $prefix/include/sqlite.h; then
28396            SQLITE_INCDIR=$prefix/include
28397            if test -d $prefix/lib64; then
28398               SQLITE_LIBDIR=$prefix/lib64
28399            else
28400               SQLITE_LIBDIR=$prefix/lib
28401            fi
28402            SQLITE_BINDIR=$prefix/bin
28403         else
28404            { echo "$as_me:$LINENO: result: no" >&5
28405 echo "${ECHO_T}no" >&6; }
28406            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28407 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28408    { (exit 1); exit 1; }; }
28409         fi
28410      else
28411         if test -f $withval/sqlite.h; then
28412            SQLITE_INCDIR=$withval
28413            SQLITE_LIBDIR=$withval
28414            SQLITE_BINDIR=$withval
28415         elif test -f $withval/include/sqlite.h; then
28416            SQLITE_INCDIR=$withval/include
28417            if test -d $withval/lib64; then
28418               SQLITE_LIBDIR=$withval/lib64
28419            else
28420               SQLITE_LIBDIR=$withval/lib
28421            fi
28422            SQLITE_BINDIR=$withval/bin
28423         else
28424            { echo "$as_me:$LINENO: result: no" >&5
28425 echo "${ECHO_T}no" >&6; }
28426            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28427 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28428    { (exit 1); exit 1; }; }
28429         fi
28430      fi
28431      SQL_INCLUDE=-I$SQLITE_INCDIR
28432      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28433      SQL_BINDIR=$SQLITE_BINDIR
28434      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28435
28436      cat >>confdefs.h <<\_ACEOF
28437 #define HAVE_SQLITE 1
28438 _ACEOF
28439
28440      { echo "$as_me:$LINENO: result: yes" >&5
28441 echo "${ECHO_T}yes" >&6; }
28442      db_found=yes
28443      support_sqlite=yes
28444      db_type=SQLite
28445      DB_TYPE=sqlite
28446
28447   else
28448      { echo "$as_me:$LINENO: result: no" >&5
28449 echo "${ECHO_T}no" >&6; }
28450   fi
28451
28452 else
28453
28454   { echo "$as_me:$LINENO: result: no" >&5
28455 echo "${ECHO_T}no" >&6; }
28456
28457 fi
28458
28459
28460
28461
28462
28463
28464
28465
28466 db_found=no
28467 { echo "$as_me:$LINENO: checking for DBI support" >&5
28468 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28469
28470 # Check whether --with-dbi was given.
28471 if test "${with_dbi+set}" = set; then
28472   withval=$with_dbi;
28473   if test "$withval" != "no"; then
28474      if test "$withval" = "yes"; then
28475         if test -f /usr/local/include/dbi/dbi.h; then
28476            DBI_INCDIR=/usr/local/dbi/include
28477            if test -d /usr/local/lib64; then
28478               DBI_LIBDIR=/usr/local/lib64
28479            else
28480               DBI_LIBDIR=/usr/local/lib
28481            fi
28482            DBI_BINDIR=/usr/local/bin
28483         elif test -f /usr/include/dbi/dbi.h; then
28484            DBI_INCDIR=/usr/include
28485            if test -d /usr/lib64; then
28486               DBI_LIBDIR=/usr/lib64
28487            else
28488               DBI_LIBDIR=/usr/lib
28489            fi
28490            DBI_BINDIR=/usr/bin
28491         elif test -f $prefix/include/dbi/dbi.h; then
28492            DBI_INCDIR=$prefix/include
28493            if test -d $prefix/lib64; then
28494               DBI_LIBDIR=$prefix/lib64
28495            else
28496               DBI_LIBDIR=$prefix/lib
28497            fi
28498            DBI_BINDIR=$prefix/bin
28499         else
28500            { echo "$as_me:$LINENO: result: no" >&5
28501 echo "${ECHO_T}no" >&6; }
28502            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28503 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28504    { (exit 1); exit 1; }; }
28505         fi
28506         if test -d /usr/local/lib/dbd; then
28507            DRIVERDIR=/usr/local/lib/dbd
28508            if test -d /usr/local/lib64/dbd; then
28509               DRIVERDIR=/usr/local/lib64/dbd
28510            else
28511               DRIVERDIR=/usr/local/lib/dbd
28512            fi
28513         elif test -d /usr/lib/dbd; then
28514            DRIVERDIR=/usr/lib/dbd
28515            if test -d /usr/lib64/dbd; then
28516               DRIVERDIR=/usr/lib64/dbd
28517            else
28518               DRIVERDIR=/usr/lib/dbd
28519            fi
28520         elif test -d $prefix/lib/dbd; then
28521            if test -d $prefix/lib64/dbd; then
28522               DRIVERDIR=$prefix/lib64/dbd
28523            else
28524               DRIVERDIR=$prefix/lib/dbd
28525            fi
28526         else
28527            { echo "$as_me:$LINENO: result: no" >&5
28528 echo "${ECHO_T}no" >&6; }
28529            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28530 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28531    { (exit 1); exit 1; }; }
28532         fi
28533      else
28534         if test -f $withval/dbi.h; then
28535            DBI_INCDIR=$withval
28536            DBI_LIBDIR=$withval
28537            DBI_BINDIR=$withval
28538         elif test -f $withval/include/dbi/dbi.h; then
28539            DBI_INCDIR=$withval/include
28540            if test -d $withval/lib64; then
28541               DBI_LIBDIR=$withval/lib64
28542            else
28543               DBI_LIBDIR=$withval/lib
28544            fi
28545            DBI_BINDIR=$withval/bin
28546         else
28547            { echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6; }
28549            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28550 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28551    { (exit 1); exit 1; }; }
28552         fi
28553         if test -d $withval/dbd; then
28554            DRIVERDIR=$withval/dbd
28555         elif test -d $withval/lib/; then
28556            if test -d $withval/lib64/dbd; then
28557               DRIVERDIR=$withval/lib64/dbd
28558            else
28559               DRIVERDIR=$withval/lib/dbd
28560            fi
28561         else
28562            { echo "$as_me:$LINENO: result: no" >&5
28563 echo "${ECHO_T}no" >&6; }
28564            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28565 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28566    { (exit 1); exit 1; }; }
28567         fi
28568      fi
28569      SQL_INCLUDE=-I$DBI_INCDIR
28570      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28571      SQL_BINDIR=$DBI_BINDIR
28572      SQL_LIB=$DBI_LIBDIR/libdbi.a
28573      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28574
28575
28576 cat >>confdefs.h <<\_ACEOF
28577 #define HAVE_DBI 1
28578 _ACEOF
28579
28580      { echo "$as_me:$LINENO: result: yes" >&5
28581 echo "${ECHO_T}yes" >&6; }
28582      db_found=yes
28583      support_dbi=yes
28584      db_type=DBI
28585      DB_TYPE=dbi
28586      uncomment_dbi=" "
28587
28588   else
28589      { echo "$as_me:$LINENO: result: no" >&5
28590 echo "${ECHO_T}no" >&6; }
28591   fi
28592
28593 else
28594
28595   { echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6; }
28597
28598 fi
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609 db_found=no
28610 db_prog=no
28611 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28612 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28613
28614 # Check whether --with-dbi-driver was given.
28615 if test "${with_dbi_driver+set}" = set; then
28616   withval=$with_dbi_driver;
28617   if test "$withval" != "no"; then
28618      case $withval in
28619         "mysql")
28620            db_prog="mysql"
28621            if test -f /usr/local/mysql/bin/mysql; then
28622               SQL_BINDIR=/usr/local/mysql/bin
28623               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28624                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28625                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28626               else
28627                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28628               fi
28629            elif test -f /usr/bin/mysql; then
28630               SQL_BINDIR=/usr/bin
28631               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28632                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28633                   SQL_LIBDIR=/usr/lib64/mysql
28634               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28635                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28636                   SQL_LIBDIR=/usr/lib/mysql
28637               else
28638                   SQL_LIBDIR=/usr/lib
28639               fi
28640            elif test -f /usr/local/bin/mysql; then
28641               SQL_BINDIR=/usr/local/bin
28642               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28643                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28644                   SQL_LIBDIR=/usr/local/lib64/mysql
28645               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28646                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28647                   SQL_LIBDIR=/usr/local/lib/mysql
28648               else
28649                   SQL_LIBDIR=/usr/local/lib
28650               fi
28651            elif test -f $withval/bin/mysql; then
28652               SQL_BINDIR=$withval/bin
28653               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28654                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28655                   SQL_LIBDIR=$withval/lib64/mysql
28656               elif test -f $withval/lib64/libmysqlclient_r.a \
28657                   -o -f $withval/lib64/libmysqlclient_r.so; then
28658                   SQL_LIBDIR=$withval/lib64
28659               elif test -f $withval/lib/libmysqlclient_r.a \
28660                   -o -f $withval/lib/libmysqlclient_r.so; then
28661                   SQL_LIBDIR=$withval/lib/
28662               else
28663                   SQL_LIBDIR=$withval/lib/mysql
28664               fi
28665            else
28666               { echo "$as_me:$LINENO: result: no" >&5
28667 echo "${ECHO_T}no" >&6; }
28668               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28669 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28670    { (exit 1); exit 1; }; }
28671            fi
28672            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28673         ;;
28674         "postgresql")
28675            db_prog="postgresql"
28676            PG_CONFIG=`which pg_config`
28677            if test -n "$PG_CONFIG"; then
28678               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28679               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28680            elif test -f /usr/local/bin/psql; then
28681               SQL_BINDIR=/usr/local/bin
28682               if test -d /usr/local/lib64; then
28683                  SQL_LIBDIR=/usr/local/lib64
28684               else
28685                  SQL_LIBDIR=/usr/local/lib
28686               fi
28687            elif test -f /usr/bin/psql; then
28688               SQL_BINDIR=/usr/local/bin
28689               if test -d /usr/lib64/postgresql; then
28690                  SQL_LIBDIR=/usr/lib64/postgresql
28691               elif test -d /usr/lib/postgresql; then
28692                  SQL_LIBDIR=/usr/lib/postgresql
28693               elif test -d /usr/lib64; then
28694                  SQL_LIBDIR=/usr/lib64
28695               else
28696                  SQL_LIBDIR=/usr/lib
28697               fi
28698            elif test -f $withval/bin/psql; then
28699               SQL_BINDIR=$withval/bin
28700               if test -d $withval/lib64; then
28701                  SQL_LIBDIR=$withval/lib64
28702               else
28703                  SQL_LIBDIR=$withval/lib
28704               fi
28705            else
28706               { echo "$as_me:$LINENO: result: no" >&5
28707 echo "${ECHO_T}no" >&6; }
28708               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28709 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28710    { (exit 1); exit 1; }; }
28711            fi
28712            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28713         ;;
28714         "sqlite")
28715            db_prog="sqlite"
28716            if test -f /usr/local/bin/sqlite; then
28717               SQL_BINDIR=/usr/local/bin
28718               if test -d /usr/local/lib64; then
28719                  SQL_LIBDIR=/usr/local/lib64
28720               else
28721                  SQL_LIBDIR=/usr/local/lib
28722               fi
28723            elif test -f /usr/bin/sqlite; then
28724               SQL_BINDIR=/usr/bin
28725               if test -d /usr/lib64; then
28726                  SQL_LIBDIR=/usr/lib64
28727               else
28728                  SQL_LIBDIR=/usr/lib
28729               fi
28730            elif test -f $withval/bin/sqlite; then
28731               SQL_BINDIR=$withval/bin
28732               if test -d $withval/lib64; then
28733                  SQL_LIBDIR=$withval/lib64
28734               else
28735                  SQL_LIBDIR=$withval/lib
28736               fi
28737            else
28738               { echo "$as_me:$LINENO: result: no" >&5
28739 echo "${ECHO_T}no" >&6; }
28740               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28741 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28742    { (exit 1); exit 1; }; }
28743            fi
28744            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28745         ;;
28746         "sqlite3")
28747            db_prog="sqlite3"
28748            if test -f /usr/local/bin/sqlite3; then
28749               SQL_BINDIR=/usr/local/bin
28750               if test -d /usr/local/lib64; then
28751                  SQL_LIBDIR=/usr/local/lib64
28752               else
28753                  SQL_LIBDIR=/usr/local/lib
28754               fi
28755            elif test -f /usr/bin/sqlite3; then
28756               SQL_BINDIR=/usr/bin
28757               if test -d /usr/lib64; then
28758                  SQL_LIBDIR=/usr/lib64
28759               else
28760                  SQL_LIBDIR=/usr/lib
28761               fi
28762            elif test -f $withval/bin/sqlite3; then
28763               SQL_BINDIR=$withval/bin
28764               if test -d $withval/lib64; then
28765                  SQL_LIBDIR=$withval/lib64
28766               else
28767                  SQL_LIBDIR=$withval/lib
28768               fi
28769            else
28770               { echo "$as_me:$LINENO: result: no" >&5
28771 echo "${ECHO_T}no" >&6; }
28772               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28773 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28774    { (exit 1); exit 1; }; }
28775            fi
28776            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28777         ;;
28778         *)
28779            { echo "$as_me:$LINENO: result: no" >&5
28780 echo "${ECHO_T}no" >&6; }
28781            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28782 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28783    { (exit 1); exit 1; }; }
28784         ;;
28785      esac
28786
28787      { echo "$as_me:$LINENO: result: yes" >&5
28788 echo "${ECHO_T}yes" >&6; }
28789      DB_PROG=$db_prog
28790   else
28791      { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28793   fi
28794
28795 else
28796
28797   { echo "$as_me:$LINENO: result: no" >&5
28798 echo "${ECHO_T}no" >&6; }
28799
28800 fi
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811 support_batch_insert=no
28812 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28813 pkg=$?
28814 if test $pkg = 0; then
28815    support_batch_insert=yes
28816    # Check whether --enable-batch-insert was given.
28817 if test "${enable_batch_insert+set}" = set; then
28818   enableval=$enable_batch_insert;
28819           if test x$enableval = xno; then
28820              support_batch_insert=no
28821           else
28822              support_batch_insert=yes
28823           fi
28824
28825
28826 fi
28827
28828 fi
28829
28830 if test x$DB_TYPE = xpostgresql; then
28831    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28832    pkg=$?
28833    if test $pkg != 0; then
28834       support_batch_insert=no
28835    fi
28836 fi
28837
28838 if test x$DB_TYPE = xdbi; then
28839    DB_TYPE=$DB_PROG
28840    db_type=$DB_PROG
28841    pkg=1
28842       if test $DB_PROG = postgresql; then
28843       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28844       pkg=$?
28845    fi
28846
28847    if test $DB_PROG = mysql; then
28848       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28849       pkg=$?
28850    fi
28851
28852    if test $DB_PROG = sqlite3; then
28853       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28854       pkg=$?
28855    fi
28856
28857    if test $pkg = 0; then
28858       # Check whether --enable-batch-insert was given.
28859 if test "${enable_batch_insert+set}" = set; then
28860   enableval=$enable_batch_insert;
28861              if test x$enableval = xno; then
28862                 support_batch_insert=no
28863              else
28864                 support_batch_insert=yes
28865              fi
28866
28867
28868 fi
28869
28870    fi
28871 else
28872       uncomment_dbi="#"
28873 fi
28874
28875
28876
28877 if test $support_batch_insert = yes ; then
28878
28879 cat >>confdefs.h <<\_ACEOF
28880 #define HAVE_BATCH_FILE_INSERT 1
28881 _ACEOF
28882
28883 fi
28884
28885 cat >>confdefs.h <<\_ACEOF
28886 #define PROTOTYPES 1
28887 _ACEOF
28888
28889
28890 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28891    if test -z "$CCOPTS"; then
28892       CCOPTS='-g -O2 -Wall'
28893    fi
28894    CFLAGS="$CCOPTS"
28895 fi
28896
28897
28898
28899 largefile_support="no"
28900
28901    # Check whether --enable-largefile was given.
28902 if test "${enable_largefile+set}" = set; then
28903   enableval=$enable_largefile;
28904 fi
28905
28906    if test "$enable_largefile" != no; then
28907      if test -n "$ac_tool_prefix"; then
28908   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28909 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28912 if test "${ac_cv_prog_GETCONF+set}" = set; then
28913   echo $ECHO_N "(cached) $ECHO_C" >&6
28914 else
28915   if test -n "$GETCONF"; then
28916   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28917 else
28918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28919 for as_dir in $PATH
28920 do
28921   IFS=$as_save_IFS
28922   test -z "$as_dir" && as_dir=.
28923   for ac_exec_ext in '' $ac_executable_extensions; do
28924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28925     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28927     break 2
28928   fi
28929 done
28930 done
28931 IFS=$as_save_IFS
28932
28933 fi
28934 fi
28935 GETCONF=$ac_cv_prog_GETCONF
28936 if test -n "$GETCONF"; then
28937   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28938 echo "${ECHO_T}$GETCONF" >&6; }
28939 else
28940   { echo "$as_me:$LINENO: result: no" >&5
28941 echo "${ECHO_T}no" >&6; }
28942 fi
28943
28944
28945 fi
28946 if test -z "$ac_cv_prog_GETCONF"; then
28947   ac_ct_GETCONF=$GETCONF
28948   # Extract the first word of "getconf", so it can be a program name with args.
28949 set dummy getconf; ac_word=$2
28950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28952 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28953   echo $ECHO_N "(cached) $ECHO_C" >&6
28954 else
28955   if test -n "$ac_ct_GETCONF"; then
28956   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28957 else
28958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28959 for as_dir in $PATH
28960 do
28961   IFS=$as_save_IFS
28962   test -z "$as_dir" && as_dir=.
28963   for ac_exec_ext in '' $ac_executable_extensions; do
28964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28965     ac_cv_prog_ac_ct_GETCONF="getconf"
28966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28967     break 2
28968   fi
28969 done
28970 done
28971 IFS=$as_save_IFS
28972
28973 fi
28974 fi
28975 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28976 if test -n "$ac_ct_GETCONF"; then
28977   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28978 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28979 else
28980   { echo "$as_me:$LINENO: result: no" >&5
28981 echo "${ECHO_T}no" >&6; }
28982 fi
28983
28984   if test "x$ac_ct_GETCONF" = x; then
28985     GETCONF=""
28986   else
28987     case $cross_compiling:$ac_tool_warned in
28988 yes:)
28989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28990 whose name does not start with the host triplet.  If you think this
28991 configuration is useful to you, please write to autoconf@gnu.org." >&5
28992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28993 whose name does not start with the host triplet.  If you think this
28994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28995 ac_tool_warned=yes ;;
28996 esac
28997     GETCONF=$ac_ct_GETCONF
28998   fi
28999 else
29000   GETCONF="$ac_cv_prog_GETCONF"
29001 fi
29002
29003      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29004 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29005 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29006   echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29009         ac_cv_sys_largefile_CFLAGS=no
29010         case "$host_os" in
29011            # IRIX 6.2 and later require cc -n32.
29012            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29013              if test "$GCC" != yes; then
29014                ac_cv_sys_largefile_CFLAGS=-n32
29015              fi
29016              ac_save_CC="$CC"
29017              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29018              cat >conftest.$ac_ext <<_ACEOF
29019 /* confdefs.h.  */
29020 _ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h.  */
29024
29025 int
29026 main ()
29027 {
29028
29029   ;
29030   return 0;
29031 }
29032 _ACEOF
29033 rm -f conftest.$ac_objext conftest$ac_exeext
29034 if { (ac_try="$ac_link"
29035 case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_link") 2>conftest.er1
29041   ac_status=$?
29042   grep -v '^ *+' conftest.er1 >conftest.err
29043   rm -f conftest.er1
29044   cat conftest.err >&5
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); } && {
29047          test -z "$ac_c_werror_flag" ||
29048          test ! -s conftest.err
29049        } && test -s conftest$ac_exeext &&
29050        $as_test_x conftest$ac_exeext; then
29051   :
29052 else
29053   echo "$as_me: failed program was:" >&5
29054 sed 's/^/| /' conftest.$ac_ext >&5
29055
29056         ac_cv_sys_largefile_CFLAGS=no
29057 fi
29058
29059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29060       conftest$ac_exeext conftest.$ac_ext
29061              CC="$ac_save_CC"
29062            esac
29063       }
29064 fi
29065 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29066 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29067      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29068 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29069 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29070   echo $ECHO_N "(cached) $ECHO_C" >&6
29071 else
29072   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29073         ac_cv_sys_largefile_LDFLAGS=no
29074
29075       }
29076 fi
29077 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29078 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29079      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29080 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29081 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29085         ac_cv_sys_largefile_LIBS=no
29086
29087       }
29088 fi
29089 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29090 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29091
29092      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29093        case "$ac_flag" in
29094        no) ;;
29095        -D_FILE_OFFSET_BITS=*) ;;
29096        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29097        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29098        -D?* | -I?*)
29099          case "$ac_flag" in
29100    no) ;;
29101    ?*)
29102      case "$CPPFLAGS" in
29103      '') CPPFLAGS="$ac_flag" ;;
29104      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29105      esac ;;
29106    esac ;;
29107        *)
29108          case "$ac_flag" in
29109    no) ;;
29110    ?*)
29111      case "$CFLAGS" in
29112      '') CFLAGS="$ac_flag" ;;
29113      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29114      esac ;;
29115    esac ;;
29116        esac
29117      done
29118      case "$ac_cv_sys_largefile_LDFLAGS" in
29119    no) ;;
29120    ?*)
29121      case "$LDFLAGS" in
29122      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29123      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29124      esac ;;
29125    esac
29126      case "$ac_cv_sys_largefile_LIBS" in
29127    no) ;;
29128    ?*)
29129      case "$LIBS" in
29130      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29131      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29132      esac ;;
29133    esac
29134      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29135 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29136 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29137   echo $ECHO_N "(cached) $ECHO_C" >&6
29138 else
29139   ac_cv_sys_file_offset_bits=no
29140       ac_cv_sys_file_offset_bits=64
29141       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29142         case "$ac_flag" in
29143         -D_FILE_OFFSET_BITS)
29144           ac_cv_sys_file_offset_bits=1 ;;
29145         -D_FILE_OFFSET_BITS=*)
29146           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29147         esac
29148       done
29149
29150 fi
29151 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29152 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29153    if test "$ac_cv_sys_file_offset_bits" != no; then
29154
29155 cat >>confdefs.h <<_ACEOF
29156 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29157 _ACEOF
29158
29159    fi
29160      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29161 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29162 if test "${ac_cv_sys_largefile_source+set}" = set; then
29163   echo $ECHO_N "(cached) $ECHO_C" >&6
29164 else
29165   ac_cv_sys_largefile_source=no
29166       ac_cv_sys_largefile_source=1
29167       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29168         case "$ac_flag" in
29169         -D_LARGEFILE_SOURCE)
29170           ac_cv_sys_largefile_source=1 ;;
29171         -D_LARGEFILE_SOURCE=*)
29172           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29173         esac
29174       done
29175
29176 fi
29177 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29178 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29179    if test "$ac_cv_sys_largefile_source" != no; then
29180
29181 cat >>confdefs.h <<_ACEOF
29182 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29183 _ACEOF
29184
29185    fi
29186      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29187 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29188 if test "${ac_cv_sys_large_files+set}" = set; then
29189   echo $ECHO_N "(cached) $ECHO_C" >&6
29190 else
29191   ac_cv_sys_large_files=no
29192       ac_cv_sys_large_files=1
29193       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29194         case "$ac_flag" in
29195         -D_LARGE_FILES)
29196           ac_cv_sys_large_files=1 ;;
29197         -D_LARGE_FILES=*)
29198           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29199         esac
29200       done
29201
29202 fi
29203 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29204 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29205    if test "$ac_cv_sys_large_files" != no; then
29206
29207 cat >>confdefs.h <<_ACEOF
29208 #define _LARGE_FILES $ac_cv_sys_large_files
29209 _ACEOF
29210
29211    fi
29212    fi
29213
29214
29215 { echo "$as_me:$LINENO: checking for X" >&5
29216 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29217
29218
29219 # Check whether --with-x was given.
29220 if test "${with_x+set}" = set; then
29221   withval=$with_x;
29222 fi
29223
29224 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29225 if test "x$with_x" = xno; then
29226   # The user explicitly disabled X.
29227   have_x=disabled
29228 else
29229   case $x_includes,$x_libraries in #(
29230     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29231 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29232    { (exit 1); exit 1; }; };; #(
29233     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29234   echo $ECHO_N "(cached) $ECHO_C" >&6
29235 else
29236   # One or both of the vars are not set, and there is no cached value.
29237 ac_x_includes=no ac_x_libraries=no
29238 rm -f -r conftest.dir
29239 if mkdir conftest.dir; then
29240   cd conftest.dir
29241   cat >Imakefile <<'_ACEOF'
29242 incroot:
29243         @echo incroot='${INCROOT}'
29244 usrlibdir:
29245         @echo usrlibdir='${USRLIBDIR}'
29246 libdir:
29247         @echo libdir='${LIBDIR}'
29248 _ACEOF
29249   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29250     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29251     for ac_var in incroot usrlibdir libdir; do
29252       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29253     done
29254     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29255     for ac_extension in a so sl; do
29256       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29257          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29258         ac_im_usrlibdir=$ac_im_libdir; break
29259       fi
29260     done
29261     # Screen out bogus values from the imake configuration.  They are
29262     # bogus both because they are the default anyway, and because
29263     # using them would break gcc on systems where it needs fixed includes.
29264     case $ac_im_incroot in
29265         /usr/include) ac_x_includes= ;;
29266         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29267     esac
29268     case $ac_im_usrlibdir in
29269         /usr/lib | /lib) ;;
29270         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29271     esac
29272   fi
29273   cd ..
29274   rm -f -r conftest.dir
29275 fi
29276
29277 # Standard set of common directories for X headers.
29278 # Check X11 before X11Rn because it is often a symlink to the current release.
29279 ac_x_header_dirs='
29280 /usr/X11/include
29281 /usr/X11R6/include
29282 /usr/X11R5/include
29283 /usr/X11R4/include
29284
29285 /usr/include/X11
29286 /usr/include/X11R6
29287 /usr/include/X11R5
29288 /usr/include/X11R4
29289
29290 /usr/local/X11/include
29291 /usr/local/X11R6/include
29292 /usr/local/X11R5/include
29293 /usr/local/X11R4/include
29294
29295 /usr/local/include/X11
29296 /usr/local/include/X11R6
29297 /usr/local/include/X11R5
29298 /usr/local/include/X11R4
29299
29300 /usr/X386/include
29301 /usr/x386/include
29302 /usr/XFree86/include/X11
29303
29304 /usr/include
29305 /usr/local/include
29306 /usr/unsupported/include
29307 /usr/athena/include
29308 /usr/local/x11r5/include
29309 /usr/lpp/Xamples/include
29310
29311 /usr/openwin/include
29312 /usr/openwin/share/include'
29313
29314 if test "$ac_x_includes" = no; then
29315   # Guess where to find include files, by looking for Xlib.h.
29316   # First, try using that file with no special directory specified.
29317   cat >conftest.$ac_ext <<_ACEOF
29318 /* confdefs.h.  */
29319 _ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h.  */
29323 #include <X11/Xlib.h>
29324 _ACEOF
29325 if { (ac_try="$ac_cpp conftest.$ac_ext"
29326 case "(($ac_try" in
29327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328   *) ac_try_echo=$ac_try;;
29329 esac
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29332   ac_status=$?
29333   grep -v '^ *+' conftest.er1 >conftest.err
29334   rm -f conftest.er1
29335   cat conftest.err >&5
29336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337   (exit $ac_status); } >/dev/null && {
29338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29339          test ! -s conftest.err
29340        }; then
29341   # We can compile using X headers with no special include directory.
29342 ac_x_includes=
29343 else
29344   echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29346
29347   for ac_dir in $ac_x_header_dirs; do
29348   if test -r "$ac_dir/X11/Xlib.h"; then
29349     ac_x_includes=$ac_dir
29350     break
29351   fi
29352 done
29353 fi
29354
29355 rm -f conftest.err conftest.$ac_ext
29356 fi # $ac_x_includes = no
29357
29358 if test "$ac_x_libraries" = no; then
29359   # Check for the libraries.
29360   # See if we find them without any special options.
29361   # Don't add to $LIBS permanently.
29362   ac_save_LIBS=$LIBS
29363   LIBS="-lX11 $LIBS"
29364   cat >conftest.$ac_ext <<_ACEOF
29365 /* confdefs.h.  */
29366 _ACEOF
29367 cat confdefs.h >>conftest.$ac_ext
29368 cat >>conftest.$ac_ext <<_ACEOF
29369 /* end confdefs.h.  */
29370 #include <X11/Xlib.h>
29371 int
29372 main ()
29373 {
29374 XrmInitialize ()
29375   ;
29376   return 0;
29377 }
29378 _ACEOF
29379 rm -f conftest.$ac_objext conftest$ac_exeext
29380 if { (ac_try="$ac_link"
29381 case "(($ac_try" in
29382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383   *) ac_try_echo=$ac_try;;
29384 esac
29385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29386   (eval "$ac_link") 2>conftest.er1
29387   ac_status=$?
29388   grep -v '^ *+' conftest.er1 >conftest.err
29389   rm -f conftest.er1
29390   cat conftest.err >&5
29391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392   (exit $ac_status); } && {
29393          test -z "$ac_c_werror_flag" ||
29394          test ! -s conftest.err
29395        } && test -s conftest$ac_exeext &&
29396        $as_test_x conftest$ac_exeext; then
29397   LIBS=$ac_save_LIBS
29398 # We can link X programs with no special library path.
29399 ac_x_libraries=
29400 else
29401   echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29403
29404         LIBS=$ac_save_LIBS
29405 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29406 do
29407   # Don't even attempt the hair of trying to link an X program!
29408   for ac_extension in a so sl; do
29409     if test -r "$ac_dir/libX11.$ac_extension"; then
29410       ac_x_libraries=$ac_dir
29411       break 2
29412     fi
29413   done
29414 done
29415 fi
29416
29417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418       conftest$ac_exeext conftest.$ac_ext
29419 fi # $ac_x_libraries = no
29420
29421 case $ac_x_includes,$ac_x_libraries in #(
29422   no,* | *,no | *\'*)
29423     # Didn't find X, or a directory has "'" in its name.
29424     ac_cv_have_x="have_x=no";; #(
29425   *)
29426     # Record where we found X for the cache.
29427     ac_cv_have_x="have_x=yes\
29428         ac_x_includes='$ac_x_includes'\
29429         ac_x_libraries='$ac_x_libraries'"
29430 esac
29431 fi
29432 ;; #(
29433     *) have_x=yes;;
29434   esac
29435   eval "$ac_cv_have_x"
29436 fi # $with_x != no
29437
29438 if test "$have_x" != yes; then
29439   { echo "$as_me:$LINENO: result: $have_x" >&5
29440 echo "${ECHO_T}$have_x" >&6; }
29441   no_x=yes
29442 else
29443   # If each of the values was on the command line, it overrides each guess.
29444   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29445   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29446   # Update the cache value to reflect the command line values.
29447   ac_cv_have_x="have_x=yes\
29448         ac_x_includes='$x_includes'\
29449         ac_x_libraries='$x_libraries'"
29450   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29451 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29452 fi
29453
29454 if test "$no_x" = yes; then
29455   # Not all programs may use this symbol, but it does not hurt to define it.
29456
29457 cat >>confdefs.h <<\_ACEOF
29458 #define X_DISPLAY_MISSING 1
29459 _ACEOF
29460
29461   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29462 else
29463   if test -n "$x_includes"; then
29464     X_CFLAGS="$X_CFLAGS -I$x_includes"
29465   fi
29466
29467   # It would also be nice to do this for all -L options, not just this one.
29468   if test -n "$x_libraries"; then
29469     X_LIBS="$X_LIBS -L$x_libraries"
29470     # For Solaris; some versions of Sun CC require a space after -R and
29471     # others require no space.  Words are not sufficient . . . .
29472     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29473 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29474     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29475     ac_xsave_c_werror_flag=$ac_c_werror_flag
29476     ac_c_werror_flag=yes
29477     cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h.  */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h.  */
29483
29484 int
29485 main ()
29486 {
29487
29488   ;
29489   return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496   *) ac_try_echo=$ac_try;;
29497 esac
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499   (eval "$ac_link") 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } && {
29506          test -z "$ac_c_werror_flag" ||
29507          test ! -s conftest.err
29508        } && test -s conftest$ac_exeext &&
29509        $as_test_x conftest$ac_exeext; then
29510   { echo "$as_me:$LINENO: result: no" >&5
29511 echo "${ECHO_T}no" >&6; }
29512        X_LIBS="$X_LIBS -R$x_libraries"
29513 else
29514   echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29516
29517         LIBS="$ac_xsave_LIBS -R $x_libraries"
29518        cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h.  */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h.  */
29524
29525 int
29526 main ()
29527 {
29528
29529   ;
29530   return 0;
29531 }
29532 _ACEOF
29533 rm -f conftest.$ac_objext conftest$ac_exeext
29534 if { (ac_try="$ac_link"
29535 case "(($ac_try" in
29536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29537   *) ac_try_echo=$ac_try;;
29538 esac
29539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29540   (eval "$ac_link") 2>conftest.er1
29541   ac_status=$?
29542   grep -v '^ *+' conftest.er1 >conftest.err
29543   rm -f conftest.er1
29544   cat conftest.err >&5
29545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546   (exit $ac_status); } && {
29547          test -z "$ac_c_werror_flag" ||
29548          test ! -s conftest.err
29549        } && test -s conftest$ac_exeext &&
29550        $as_test_x conftest$ac_exeext; then
29551   { echo "$as_me:$LINENO: result: yes" >&5
29552 echo "${ECHO_T}yes" >&6; }
29553           X_LIBS="$X_LIBS -R $x_libraries"
29554 else
29555   echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29557
29558         { echo "$as_me:$LINENO: result: neither works" >&5
29559 echo "${ECHO_T}neither works" >&6; }
29560 fi
29561
29562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29563       conftest$ac_exeext conftest.$ac_ext
29564 fi
29565
29566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29567       conftest$ac_exeext conftest.$ac_ext
29568     ac_c_werror_flag=$ac_xsave_c_werror_flag
29569     LIBS=$ac_xsave_LIBS
29570   fi
29571
29572   # Check for system-dependent libraries X programs must link with.
29573   # Do this before checking for the system-independent R6 libraries
29574   # (-lICE), since we may need -lsocket or whatever for X linking.
29575
29576   if test "$ISC" = yes; then
29577     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29578   else
29579     # Martyn Johnson says this is needed for Ultrix, if the X
29580     # libraries were built with DECnet support.  And Karl Berry says
29581     # the Alpha needs dnet_stub (dnet does not exist).
29582     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29583     cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h.  */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h.  */
29589
29590 /* Override any GCC internal prototype to avoid an error.
29591    Use char because int might match the return type of a GCC
29592    builtin and then its argument prototype would still apply.  */
29593 #ifdef __cplusplus
29594 extern "C"
29595 #endif
29596 char XOpenDisplay ();
29597 int
29598 main ()
29599 {
29600 return XOpenDisplay ();
29601   ;
29602   return 0;
29603 }
29604 _ACEOF
29605 rm -f conftest.$ac_objext conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_link") 2>conftest.er1
29613   ac_status=$?
29614   grep -v '^ *+' conftest.er1 >conftest.err
29615   rm -f conftest.er1
29616   cat conftest.err >&5
29617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618   (exit $ac_status); } && {
29619          test -z "$ac_c_werror_flag" ||
29620          test ! -s conftest.err
29621        } && test -s conftest$ac_exeext &&
29622        $as_test_x conftest$ac_exeext; then
29623   :
29624 else
29625   echo "$as_me: failed program was:" >&5
29626 sed 's/^/| /' conftest.$ac_ext >&5
29627
29628         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29629 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29630 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   ac_check_lib_save_LIBS=$LIBS
29634 LIBS="-ldnet  $LIBS"
29635 cat >conftest.$ac_ext <<_ACEOF
29636 /* confdefs.h.  */
29637 _ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h.  */
29641
29642 /* Override any GCC internal prototype to avoid an error.
29643    Use char because int might match the return type of a GCC
29644    builtin and then its argument prototype would still apply.  */
29645 #ifdef __cplusplus
29646 extern "C"
29647 #endif
29648 char dnet_ntoa ();
29649 int
29650 main ()
29651 {
29652 return dnet_ntoa ();
29653   ;
29654   return 0;
29655 }
29656 _ACEOF
29657 rm -f conftest.$ac_objext conftest$ac_exeext
29658 if { (ac_try="$ac_link"
29659 case "(($ac_try" in
29660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661   *) ac_try_echo=$ac_try;;
29662 esac
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664   (eval "$ac_link") 2>conftest.er1
29665   ac_status=$?
29666   grep -v '^ *+' conftest.er1 >conftest.err
29667   rm -f conftest.er1
29668   cat conftest.err >&5
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } && {
29671          test -z "$ac_c_werror_flag" ||
29672          test ! -s conftest.err
29673        } && test -s conftest$ac_exeext &&
29674        $as_test_x conftest$ac_exeext; then
29675   ac_cv_lib_dnet_dnet_ntoa=yes
29676 else
29677   echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29679
29680         ac_cv_lib_dnet_dnet_ntoa=no
29681 fi
29682
29683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29684       conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29686 fi
29687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29688 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29689 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29690   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29691 fi
29692
29693     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29694       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29695 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29696 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29697   echo $ECHO_N "(cached) $ECHO_C" >&6
29698 else
29699   ac_check_lib_save_LIBS=$LIBS
29700 LIBS="-ldnet_stub  $LIBS"
29701 cat >conftest.$ac_ext <<_ACEOF
29702 /* confdefs.h.  */
29703 _ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h.  */
29707
29708 /* Override any GCC internal prototype to avoid an error.
29709    Use char because int might match the return type of a GCC
29710    builtin and then its argument prototype would still apply.  */
29711 #ifdef __cplusplus
29712 extern "C"
29713 #endif
29714 char dnet_ntoa ();
29715 int
29716 main ()
29717 {
29718 return dnet_ntoa ();
29719   ;
29720   return 0;
29721 }
29722 _ACEOF
29723 rm -f conftest.$ac_objext conftest$ac_exeext
29724 if { (ac_try="$ac_link"
29725 case "(($ac_try" in
29726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727   *) ac_try_echo=$ac_try;;
29728 esac
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730   (eval "$ac_link") 2>conftest.er1
29731   ac_status=$?
29732   grep -v '^ *+' conftest.er1 >conftest.err
29733   rm -f conftest.er1
29734   cat conftest.err >&5
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); } && {
29737          test -z "$ac_c_werror_flag" ||
29738          test ! -s conftest.err
29739        } && test -s conftest$ac_exeext &&
29740        $as_test_x conftest$ac_exeext; then
29741   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29742 else
29743   echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29745
29746         ac_cv_lib_dnet_stub_dnet_ntoa=no
29747 fi
29748
29749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29750       conftest$ac_exeext conftest.$ac_ext
29751 LIBS=$ac_check_lib_save_LIBS
29752 fi
29753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29754 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29756   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29757 fi
29758
29759     fi
29760 fi
29761
29762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29763       conftest$ac_exeext conftest.$ac_ext
29764     LIBS="$ac_xsave_LIBS"
29765
29766     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29767     # to get the SysV transport functions.
29768     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29769     # needs -lnsl.
29770     # The nsl library prevents programs from opening the X display
29771     # on Irix 5.2, according to T.E. Dickey.
29772     # The functions gethostbyname, getservbyname, and inet_addr are
29773     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29774     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29775 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29776 if test "${ac_cv_func_gethostbyname+set}" = set; then
29777   echo $ECHO_N "(cached) $ECHO_C" >&6
29778 else
29779   cat >conftest.$ac_ext <<_ACEOF
29780 /* confdefs.h.  */
29781 _ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h.  */
29785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29787 #define gethostbyname innocuous_gethostbyname
29788
29789 /* System header to define __stub macros and hopefully few prototypes,
29790     which can conflict with char gethostbyname (); below.
29791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29792     <limits.h> exists even on freestanding compilers.  */
29793
29794 #ifdef __STDC__
29795 # include <limits.h>
29796 #else
29797 # include <assert.h>
29798 #endif
29799
29800 #undef gethostbyname
29801
29802 /* Override any GCC internal prototype to avoid an error.
29803    Use char because int might match the return type of a GCC
29804    builtin and then its argument prototype would still apply.  */
29805 #ifdef __cplusplus
29806 extern "C"
29807 #endif
29808 char gethostbyname ();
29809 /* The GNU C library defines this for functions which it implements
29810     to always fail with ENOSYS.  Some functions are actually named
29811     something starting with __ and the normal name is an alias.  */
29812 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29813 choke me
29814 #endif
29815
29816 int
29817 main ()
29818 {
29819 return gethostbyname ();
29820   ;
29821   return 0;
29822 }
29823 _ACEOF
29824 rm -f conftest.$ac_objext conftest$ac_exeext
29825 if { (ac_try="$ac_link"
29826 case "(($ac_try" in
29827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29828   *) ac_try_echo=$ac_try;;
29829 esac
29830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29831   (eval "$ac_link") 2>conftest.er1
29832   ac_status=$?
29833   grep -v '^ *+' conftest.er1 >conftest.err
29834   rm -f conftest.er1
29835   cat conftest.err >&5
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); } && {
29838          test -z "$ac_c_werror_flag" ||
29839          test ! -s conftest.err
29840        } && test -s conftest$ac_exeext &&
29841        $as_test_x conftest$ac_exeext; then
29842   ac_cv_func_gethostbyname=yes
29843 else
29844   echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29846
29847         ac_cv_func_gethostbyname=no
29848 fi
29849
29850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29851       conftest$ac_exeext conftest.$ac_ext
29852 fi
29853 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29854 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29855
29856     if test $ac_cv_func_gethostbyname = no; then
29857       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29858 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29859 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29860   echo $ECHO_N "(cached) $ECHO_C" >&6
29861 else
29862   ac_check_lib_save_LIBS=$LIBS
29863 LIBS="-lnsl  $LIBS"
29864 cat >conftest.$ac_ext <<_ACEOF
29865 /* confdefs.h.  */
29866 _ACEOF
29867 cat confdefs.h >>conftest.$ac_ext
29868 cat >>conftest.$ac_ext <<_ACEOF
29869 /* end confdefs.h.  */
29870
29871 /* Override any GCC internal prototype to avoid an error.
29872    Use char because int might match the return type of a GCC
29873    builtin and then its argument prototype would still apply.  */
29874 #ifdef __cplusplus
29875 extern "C"
29876 #endif
29877 char gethostbyname ();
29878 int
29879 main ()
29880 {
29881 return gethostbyname ();
29882   ;
29883   return 0;
29884 }
29885 _ACEOF
29886 rm -f conftest.$ac_objext conftest$ac_exeext
29887 if { (ac_try="$ac_link"
29888 case "(($ac_try" in
29889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29890   *) ac_try_echo=$ac_try;;
29891 esac
29892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29893   (eval "$ac_link") 2>conftest.er1
29894   ac_status=$?
29895   grep -v '^ *+' conftest.er1 >conftest.err
29896   rm -f conftest.er1
29897   cat conftest.err >&5
29898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899   (exit $ac_status); } && {
29900          test -z "$ac_c_werror_flag" ||
29901          test ! -s conftest.err
29902        } && test -s conftest$ac_exeext &&
29903        $as_test_x conftest$ac_exeext; then
29904   ac_cv_lib_nsl_gethostbyname=yes
29905 else
29906   echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909         ac_cv_lib_nsl_gethostbyname=no
29910 fi
29911
29912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29913       conftest$ac_exeext conftest.$ac_ext
29914 LIBS=$ac_check_lib_save_LIBS
29915 fi
29916 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29918 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29919   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29920 fi
29921
29922       if test $ac_cv_lib_nsl_gethostbyname = no; then
29923         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29926   echo $ECHO_N "(cached) $ECHO_C" >&6
29927 else
29928   ac_check_lib_save_LIBS=$LIBS
29929 LIBS="-lbsd  $LIBS"
29930 cat >conftest.$ac_ext <<_ACEOF
29931 /* confdefs.h.  */
29932 _ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h.  */
29936
29937 /* Override any GCC internal prototype to avoid an error.
29938    Use char because int might match the return type of a GCC
29939    builtin and then its argument prototype would still apply.  */
29940 #ifdef __cplusplus
29941 extern "C"
29942 #endif
29943 char gethostbyname ();
29944 int
29945 main ()
29946 {
29947 return gethostbyname ();
29948   ;
29949   return 0;
29950 }
29951 _ACEOF
29952 rm -f conftest.$ac_objext conftest$ac_exeext
29953 if { (ac_try="$ac_link"
29954 case "(($ac_try" in
29955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956   *) ac_try_echo=$ac_try;;
29957 esac
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959   (eval "$ac_link") 2>conftest.er1
29960   ac_status=$?
29961   grep -v '^ *+' conftest.er1 >conftest.err
29962   rm -f conftest.er1
29963   cat conftest.err >&5
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); } && {
29966          test -z "$ac_c_werror_flag" ||
29967          test ! -s conftest.err
29968        } && test -s conftest$ac_exeext &&
29969        $as_test_x conftest$ac_exeext; then
29970   ac_cv_lib_bsd_gethostbyname=yes
29971 else
29972   echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29974
29975         ac_cv_lib_bsd_gethostbyname=no
29976 fi
29977
29978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29979       conftest$ac_exeext conftest.$ac_ext
29980 LIBS=$ac_check_lib_save_LIBS
29981 fi
29982 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29983 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29984 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29985   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29986 fi
29987
29988       fi
29989     fi
29990
29991     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29992     # socket/setsockopt and other routines are undefined under SCO ODT
29993     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29994     # on later versions), says Simon Leinen: it contains gethostby*
29995     # variants that don't use the name server (or something).  -lsocket
29996     # must be given before -lnsl if both are needed.  We assume that
29997     # if connect needs -lnsl, so does gethostbyname.
29998     { echo "$as_me:$LINENO: checking for connect" >&5
29999 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30000 if test "${ac_cv_func_connect+set}" = set; then
30001   echo $ECHO_N "(cached) $ECHO_C" >&6
30002 else
30003   cat >conftest.$ac_ext <<_ACEOF
30004 /* confdefs.h.  */
30005 _ACEOF
30006 cat confdefs.h >>conftest.$ac_ext
30007 cat >>conftest.$ac_ext <<_ACEOF
30008 /* end confdefs.h.  */
30009 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30011 #define connect innocuous_connect
30012
30013 /* System header to define __stub macros and hopefully few prototypes,
30014     which can conflict with char connect (); below.
30015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30016     <limits.h> exists even on freestanding compilers.  */
30017
30018 #ifdef __STDC__
30019 # include <limits.h>
30020 #else
30021 # include <assert.h>
30022 #endif
30023
30024 #undef connect
30025
30026 /* Override any GCC internal prototype to avoid an error.
30027    Use char because int might match the return type of a GCC
30028    builtin and then its argument prototype would still apply.  */
30029 #ifdef __cplusplus
30030 extern "C"
30031 #endif
30032 char connect ();
30033 /* The GNU C library defines this for functions which it implements
30034     to always fail with ENOSYS.  Some functions are actually named
30035     something starting with __ and the normal name is an alias.  */
30036 #if defined __stub_connect || defined __stub___connect
30037 choke me
30038 #endif
30039
30040 int
30041 main ()
30042 {
30043 return connect ();
30044   ;
30045   return 0;
30046 }
30047 _ACEOF
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (ac_try="$ac_link"
30050 case "(($ac_try" in
30051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052   *) ac_try_echo=$ac_try;;
30053 esac
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055   (eval "$ac_link") 2>conftest.er1
30056   ac_status=$?
30057   grep -v '^ *+' conftest.er1 >conftest.err
30058   rm -f conftest.er1
30059   cat conftest.err >&5
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); } && {
30062          test -z "$ac_c_werror_flag" ||
30063          test ! -s conftest.err
30064        } && test -s conftest$ac_exeext &&
30065        $as_test_x conftest$ac_exeext; then
30066   ac_cv_func_connect=yes
30067 else
30068   echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30070
30071         ac_cv_func_connect=no
30072 fi
30073
30074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30075       conftest$ac_exeext conftest.$ac_ext
30076 fi
30077 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30078 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30079
30080     if test $ac_cv_func_connect = no; then
30081       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30082 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30083 if test "${ac_cv_lib_socket_connect+set}" = set; then
30084   echo $ECHO_N "(cached) $ECHO_C" >&6
30085 else
30086   ac_check_lib_save_LIBS=$LIBS
30087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30088 cat >conftest.$ac_ext <<_ACEOF
30089 /* confdefs.h.  */
30090 _ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h.  */
30094
30095 /* Override any GCC internal prototype to avoid an error.
30096    Use char because int might match the return type of a GCC
30097    builtin and then its argument prototype would still apply.  */
30098 #ifdef __cplusplus
30099 extern "C"
30100 #endif
30101 char connect ();
30102 int
30103 main ()
30104 {
30105 return connect ();
30106   ;
30107   return 0;
30108 }
30109 _ACEOF
30110 rm -f conftest.$ac_objext conftest$ac_exeext
30111 if { (ac_try="$ac_link"
30112 case "(($ac_try" in
30113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114   *) ac_try_echo=$ac_try;;
30115 esac
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117   (eval "$ac_link") 2>conftest.er1
30118   ac_status=$?
30119   grep -v '^ *+' conftest.er1 >conftest.err
30120   rm -f conftest.er1
30121   cat conftest.err >&5
30122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123   (exit $ac_status); } && {
30124          test -z "$ac_c_werror_flag" ||
30125          test ! -s conftest.err
30126        } && test -s conftest$ac_exeext &&
30127        $as_test_x conftest$ac_exeext; then
30128   ac_cv_lib_socket_connect=yes
30129 else
30130   echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30132
30133         ac_cv_lib_socket_connect=no
30134 fi
30135
30136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30137       conftest$ac_exeext conftest.$ac_ext
30138 LIBS=$ac_check_lib_save_LIBS
30139 fi
30140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30141 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30142 if test $ac_cv_lib_socket_connect = yes; then
30143   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30144 fi
30145
30146     fi
30147
30148     # Guillermo Gomez says -lposix is necessary on A/UX.
30149     { echo "$as_me:$LINENO: checking for remove" >&5
30150 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30151 if test "${ac_cv_func_remove+set}" = set; then
30152   echo $ECHO_N "(cached) $ECHO_C" >&6
30153 else
30154   cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30162 #define remove innocuous_remove
30163
30164 /* System header to define __stub macros and hopefully few prototypes,
30165     which can conflict with char remove (); below.
30166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30167     <limits.h> exists even on freestanding compilers.  */
30168
30169 #ifdef __STDC__
30170 # include <limits.h>
30171 #else
30172 # include <assert.h>
30173 #endif
30174
30175 #undef remove
30176
30177 /* Override any GCC internal prototype to avoid an error.
30178    Use char because int might match the return type of a GCC
30179    builtin and then its argument prototype would still apply.  */
30180 #ifdef __cplusplus
30181 extern "C"
30182 #endif
30183 char remove ();
30184 /* The GNU C library defines this for functions which it implements
30185     to always fail with ENOSYS.  Some functions are actually named
30186     something starting with __ and the normal name is an alias.  */
30187 #if defined __stub_remove || defined __stub___remove
30188 choke me
30189 #endif
30190
30191 int
30192 main ()
30193 {
30194 return remove ();
30195   ;
30196   return 0;
30197 }
30198 _ACEOF
30199 rm -f conftest.$ac_objext conftest$ac_exeext
30200 if { (ac_try="$ac_link"
30201 case "(($ac_try" in
30202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203   *) ac_try_echo=$ac_try;;
30204 esac
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206   (eval "$ac_link") 2>conftest.er1
30207   ac_status=$?
30208   grep -v '^ *+' conftest.er1 >conftest.err
30209   rm -f conftest.er1
30210   cat conftest.err >&5
30211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212   (exit $ac_status); } && {
30213          test -z "$ac_c_werror_flag" ||
30214          test ! -s conftest.err
30215        } && test -s conftest$ac_exeext &&
30216        $as_test_x conftest$ac_exeext; then
30217   ac_cv_func_remove=yes
30218 else
30219   echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30221
30222         ac_cv_func_remove=no
30223 fi
30224
30225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30226       conftest$ac_exeext conftest.$ac_ext
30227 fi
30228 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30229 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30230
30231     if test $ac_cv_func_remove = no; then
30232       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30233 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30234 if test "${ac_cv_lib_posix_remove+set}" = set; then
30235   echo $ECHO_N "(cached) $ECHO_C" >&6
30236 else
30237   ac_check_lib_save_LIBS=$LIBS
30238 LIBS="-lposix  $LIBS"
30239 cat >conftest.$ac_ext <<_ACEOF
30240 /* confdefs.h.  */
30241 _ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h.  */
30245
30246 /* Override any GCC internal prototype to avoid an error.
30247    Use char because int might match the return type of a GCC
30248    builtin and then its argument prototype would still apply.  */
30249 #ifdef __cplusplus
30250 extern "C"
30251 #endif
30252 char remove ();
30253 int
30254 main ()
30255 {
30256 return remove ();
30257   ;
30258   return 0;
30259 }
30260 _ACEOF
30261 rm -f conftest.$ac_objext conftest$ac_exeext
30262 if { (ac_try="$ac_link"
30263 case "(($ac_try" in
30264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265   *) ac_try_echo=$ac_try;;
30266 esac
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268   (eval "$ac_link") 2>conftest.er1
30269   ac_status=$?
30270   grep -v '^ *+' conftest.er1 >conftest.err
30271   rm -f conftest.er1
30272   cat conftest.err >&5
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); } && {
30275          test -z "$ac_c_werror_flag" ||
30276          test ! -s conftest.err
30277        } && test -s conftest$ac_exeext &&
30278        $as_test_x conftest$ac_exeext; then
30279   ac_cv_lib_posix_remove=yes
30280 else
30281   echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30283
30284         ac_cv_lib_posix_remove=no
30285 fi
30286
30287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30288       conftest$ac_exeext conftest.$ac_ext
30289 LIBS=$ac_check_lib_save_LIBS
30290 fi
30291 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30292 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30293 if test $ac_cv_lib_posix_remove = yes; then
30294   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30295 fi
30296
30297     fi
30298
30299     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30300     { echo "$as_me:$LINENO: checking for shmat" >&5
30301 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30302 if test "${ac_cv_func_shmat+set}" = set; then
30303   echo $ECHO_N "(cached) $ECHO_C" >&6
30304 else
30305   cat >conftest.$ac_ext <<_ACEOF
30306 /* confdefs.h.  */
30307 _ACEOF
30308 cat confdefs.h >>conftest.$ac_ext
30309 cat >>conftest.$ac_ext <<_ACEOF
30310 /* end confdefs.h.  */
30311 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30313 #define shmat innocuous_shmat
30314
30315 /* System header to define __stub macros and hopefully few prototypes,
30316     which can conflict with char shmat (); below.
30317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30318     <limits.h> exists even on freestanding compilers.  */
30319
30320 #ifdef __STDC__
30321 # include <limits.h>
30322 #else
30323 # include <assert.h>
30324 #endif
30325
30326 #undef shmat
30327
30328 /* Override any GCC internal prototype to avoid an error.
30329    Use char because int might match the return type of a GCC
30330    builtin and then its argument prototype would still apply.  */
30331 #ifdef __cplusplus
30332 extern "C"
30333 #endif
30334 char shmat ();
30335 /* The GNU C library defines this for functions which it implements
30336     to always fail with ENOSYS.  Some functions are actually named
30337     something starting with __ and the normal name is an alias.  */
30338 #if defined __stub_shmat || defined __stub___shmat
30339 choke me
30340 #endif
30341
30342 int
30343 main ()
30344 {
30345 return shmat ();
30346   ;
30347   return 0;
30348 }
30349 _ACEOF
30350 rm -f conftest.$ac_objext conftest$ac_exeext
30351 if { (ac_try="$ac_link"
30352 case "(($ac_try" in
30353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354   *) ac_try_echo=$ac_try;;
30355 esac
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357   (eval "$ac_link") 2>conftest.er1
30358   ac_status=$?
30359   grep -v '^ *+' conftest.er1 >conftest.err
30360   rm -f conftest.er1
30361   cat conftest.err >&5
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); } && {
30364          test -z "$ac_c_werror_flag" ||
30365          test ! -s conftest.err
30366        } && test -s conftest$ac_exeext &&
30367        $as_test_x conftest$ac_exeext; then
30368   ac_cv_func_shmat=yes
30369 else
30370   echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30372
30373         ac_cv_func_shmat=no
30374 fi
30375
30376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30377       conftest$ac_exeext conftest.$ac_ext
30378 fi
30379 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30380 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30381
30382     if test $ac_cv_func_shmat = no; then
30383       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30384 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30385 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30386   echo $ECHO_N "(cached) $ECHO_C" >&6
30387 else
30388   ac_check_lib_save_LIBS=$LIBS
30389 LIBS="-lipc  $LIBS"
30390 cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h.  */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h.  */
30396
30397 /* Override any GCC internal prototype to avoid an error.
30398    Use char because int might match the return type of a GCC
30399    builtin and then its argument prototype would still apply.  */
30400 #ifdef __cplusplus
30401 extern "C"
30402 #endif
30403 char shmat ();
30404 int
30405 main ()
30406 {
30407 return shmat ();
30408   ;
30409   return 0;
30410 }
30411 _ACEOF
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (ac_try="$ac_link"
30414 case "(($ac_try" in
30415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416   *) ac_try_echo=$ac_try;;
30417 esac
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419   (eval "$ac_link") 2>conftest.er1
30420   ac_status=$?
30421   grep -v '^ *+' conftest.er1 >conftest.err
30422   rm -f conftest.er1
30423   cat conftest.err >&5
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); } && {
30426          test -z "$ac_c_werror_flag" ||
30427          test ! -s conftest.err
30428        } && test -s conftest$ac_exeext &&
30429        $as_test_x conftest$ac_exeext; then
30430   ac_cv_lib_ipc_shmat=yes
30431 else
30432   echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30434
30435         ac_cv_lib_ipc_shmat=no
30436 fi
30437
30438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30439       conftest$ac_exeext conftest.$ac_ext
30440 LIBS=$ac_check_lib_save_LIBS
30441 fi
30442 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30443 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30444 if test $ac_cv_lib_ipc_shmat = yes; then
30445   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30446 fi
30447
30448     fi
30449   fi
30450
30451   # Check for libraries that X11R6 Xt/Xaw programs need.
30452   ac_save_LDFLAGS=$LDFLAGS
30453   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30454   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30455   # check for ICE first), but we must link in the order -lSM -lICE or
30456   # we get undefined symbols.  So assume we have SM if we have ICE.
30457   # These have to be linked with before -lX11, unlike the other
30458   # libraries we check for below, so use a different variable.
30459   # John Interrante, Karl Berry
30460   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30461 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30462 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30463   echo $ECHO_N "(cached) $ECHO_C" >&6
30464 else
30465   ac_check_lib_save_LIBS=$LIBS
30466 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30467 cat >conftest.$ac_ext <<_ACEOF
30468 /* confdefs.h.  */
30469 _ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h.  */
30473
30474 /* Override any GCC internal prototype to avoid an error.
30475    Use char because int might match the return type of a GCC
30476    builtin and then its argument prototype would still apply.  */
30477 #ifdef __cplusplus
30478 extern "C"
30479 #endif
30480 char IceConnectionNumber ();
30481 int
30482 main ()
30483 {
30484 return IceConnectionNumber ();
30485   ;
30486   return 0;
30487 }
30488 _ACEOF
30489 rm -f conftest.$ac_objext conftest$ac_exeext
30490 if { (ac_try="$ac_link"
30491 case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_link") 2>conftest.er1
30497   ac_status=$?
30498   grep -v '^ *+' conftest.er1 >conftest.err
30499   rm -f conftest.er1
30500   cat conftest.err >&5
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); } && {
30503          test -z "$ac_c_werror_flag" ||
30504          test ! -s conftest.err
30505        } && test -s conftest$ac_exeext &&
30506        $as_test_x conftest$ac_exeext; then
30507   ac_cv_lib_ICE_IceConnectionNumber=yes
30508 else
30509   echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512         ac_cv_lib_ICE_IceConnectionNumber=no
30513 fi
30514
30515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30516       conftest$ac_exeext conftest.$ac_ext
30517 LIBS=$ac_check_lib_save_LIBS
30518 fi
30519 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30522   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30523 fi
30524
30525   LDFLAGS=$ac_save_LDFLAGS
30526
30527 fi
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559 for ac_header in \
30560    assert.h \
30561    fcntl.h \
30562    grp.h \
30563    pwd.h \
30564    libc.h \
30565    limits.h \
30566    stdarg.h \
30567    stdlib.h \
30568    stdint.h \
30569    string.h \
30570    strings.h \
30571    termios.h \
30572    termcap.h \
30573    term.h \
30574    unistd.h \
30575    sys/bitypes.h \
30576    sys/byteorder.h \
30577    sys/ioctl.h \
30578    sys/select.h \
30579    sys/socket.h \
30580    sys/sockio.h \
30581    sys/stat.h \
30582    sys/time.h \
30583    sys/types.h \
30584    arpa/nameser.h \
30585    mtio.h \
30586    sys/mtio.h \
30587    sys/tape.h \
30588    regex.h \
30589
30590 do
30591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30596   echo $ECHO_N "(cached) $ECHO_C" >&6
30597 fi
30598 ac_res=`eval echo '${'$as_ac_Header'}'`
30599                { echo "$as_me:$LINENO: result: $ac_res" >&5
30600 echo "${ECHO_T}$ac_res" >&6; }
30601 else
30602   # Is the header compilable?
30603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30605 cat >conftest.$ac_ext <<_ACEOF
30606 /* confdefs.h.  */
30607 _ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h.  */
30611 $ac_includes_default
30612 #include <$ac_header>
30613 _ACEOF
30614 rm -f conftest.$ac_objext
30615 if { (ac_try="$ac_compile"
30616 case "(($ac_try" in
30617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618   *) ac_try_echo=$ac_try;;
30619 esac
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621   (eval "$ac_compile") 2>conftest.er1
30622   ac_status=$?
30623   grep -v '^ *+' conftest.er1 >conftest.err
30624   rm -f conftest.er1
30625   cat conftest.err >&5
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); } && {
30628          test -z "$ac_c_werror_flag" ||
30629          test ! -s conftest.err
30630        } && test -s conftest.$ac_objext; then
30631   ac_header_compiler=yes
30632 else
30633   echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30635
30636         ac_header_compiler=no
30637 fi
30638
30639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30641 echo "${ECHO_T}$ac_header_compiler" >&6; }
30642
30643 # Is the header present?
30644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30646 cat >conftest.$ac_ext <<_ACEOF
30647 /* confdefs.h.  */
30648 _ACEOF
30649 cat confdefs.h >>conftest.$ac_ext
30650 cat >>conftest.$ac_ext <<_ACEOF
30651 /* end confdefs.h.  */
30652 #include <$ac_header>
30653 _ACEOF
30654 if { (ac_try="$ac_cpp conftest.$ac_ext"
30655 case "(($ac_try" in
30656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657   *) ac_try_echo=$ac_try;;
30658 esac
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30661   ac_status=$?
30662   grep -v '^ *+' conftest.er1 >conftest.err
30663   rm -f conftest.er1
30664   cat conftest.err >&5
30665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666   (exit $ac_status); } >/dev/null && {
30667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30668          test ! -s conftest.err
30669        }; then
30670   ac_header_preproc=yes
30671 else
30672   echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30674
30675   ac_header_preproc=no
30676 fi
30677
30678 rm -f conftest.err conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30680 echo "${ECHO_T}$ac_header_preproc" >&6; }
30681
30682 # So?  What about this header?
30683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30684   yes:no: )
30685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30689     ac_header_preproc=yes
30690     ;;
30691   no:yes:* )
30692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30704
30705     ;;
30706 esac
30707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710   echo $ECHO_N "(cached) $ECHO_C" >&6
30711 else
30712   eval "$as_ac_Header=\$ac_header_preproc"
30713 fi
30714 ac_res=`eval echo '${'$as_ac_Header'}'`
30715                { echo "$as_me:$LINENO: result: $ac_res" >&5
30716 echo "${ECHO_T}$ac_res" >&6; }
30717
30718 fi
30719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30720   cat >>confdefs.h <<_ACEOF
30721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30722 _ACEOF
30723
30724 fi
30725
30726 done
30727
30728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30730 if test "${ac_cv_header_stdc+set}" = set; then
30731   echo $ECHO_N "(cached) $ECHO_C" >&6
30732 else
30733   cat >conftest.$ac_ext <<_ACEOF
30734 /* confdefs.h.  */
30735 _ACEOF
30736 cat confdefs.h >>conftest.$ac_ext
30737 cat >>conftest.$ac_ext <<_ACEOF
30738 /* end confdefs.h.  */
30739 #include <stdlib.h>
30740 #include <stdarg.h>
30741 #include <string.h>
30742 #include <float.h>
30743
30744 int
30745 main ()
30746 {
30747
30748   ;
30749   return 0;
30750 }
30751 _ACEOF
30752 rm -f conftest.$ac_objext
30753 if { (ac_try="$ac_compile"
30754 case "(($ac_try" in
30755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756   *) ac_try_echo=$ac_try;;
30757 esac
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759   (eval "$ac_compile") 2>conftest.er1
30760   ac_status=$?
30761   grep -v '^ *+' conftest.er1 >conftest.err
30762   rm -f conftest.er1
30763   cat conftest.err >&5
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); } && {
30766          test -z "$ac_c_werror_flag" ||
30767          test ! -s conftest.err
30768        } && test -s conftest.$ac_objext; then
30769   ac_cv_header_stdc=yes
30770 else
30771   echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30773
30774         ac_cv_header_stdc=no
30775 fi
30776
30777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30778
30779 if test $ac_cv_header_stdc = yes; then
30780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30781   cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h.  */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h.  */
30787 #include <string.h>
30788
30789 _ACEOF
30790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30791   $EGREP "memchr" >/dev/null 2>&1; then
30792   :
30793 else
30794   ac_cv_header_stdc=no
30795 fi
30796 rm -f conftest*
30797
30798 fi
30799
30800 if test $ac_cv_header_stdc = yes; then
30801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30802   cat >conftest.$ac_ext <<_ACEOF
30803 /* confdefs.h.  */
30804 _ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h.  */
30808 #include <stdlib.h>
30809
30810 _ACEOF
30811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30812   $EGREP "free" >/dev/null 2>&1; then
30813   :
30814 else
30815   ac_cv_header_stdc=no
30816 fi
30817 rm -f conftest*
30818
30819 fi
30820
30821 if test $ac_cv_header_stdc = yes; then
30822   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30823   if test "$cross_compiling" = yes; then
30824   :
30825 else
30826   cat >conftest.$ac_ext <<_ACEOF
30827 /* confdefs.h.  */
30828 _ACEOF
30829 cat confdefs.h >>conftest.$ac_ext
30830 cat >>conftest.$ac_ext <<_ACEOF
30831 /* end confdefs.h.  */
30832 #include <ctype.h>
30833 #include <stdlib.h>
30834 #if ((' ' & 0x0FF) == 0x020)
30835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30837 #else
30838 # define ISLOWER(c) \
30839                    (('a' <= (c) && (c) <= 'i') \
30840                      || ('j' <= (c) && (c) <= 'r') \
30841                      || ('s' <= (c) && (c) <= 'z'))
30842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30843 #endif
30844
30845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30846 int
30847 main ()
30848 {
30849   int i;
30850   for (i = 0; i < 256; i++)
30851     if (XOR (islower (i), ISLOWER (i))
30852         || toupper (i) != TOUPPER (i))
30853       return 2;
30854   return 0;
30855 }
30856 _ACEOF
30857 rm -f conftest$ac_exeext
30858 if { (ac_try="$ac_link"
30859 case "(($ac_try" in
30860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861   *) ac_try_echo=$ac_try;;
30862 esac
30863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864   (eval "$ac_link") 2>&5
30865   ac_status=$?
30866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30868   { (case "(($ac_try" in
30869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870   *) ac_try_echo=$ac_try;;
30871 esac
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873   (eval "$ac_try") 2>&5
30874   ac_status=$?
30875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876   (exit $ac_status); }; }; then
30877   :
30878 else
30879   echo "$as_me: program exited with status $ac_status" >&5
30880 echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.$ac_ext >&5
30882
30883 ( exit $ac_status )
30884 ac_cv_header_stdc=no
30885 fi
30886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30887 fi
30888
30889
30890 fi
30891 fi
30892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30894 if test $ac_cv_header_stdc = yes; then
30895
30896 cat >>confdefs.h <<\_ACEOF
30897 #define STDC_HEADERS 1
30898 _ACEOF
30899
30900 fi
30901
30902 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30903 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30904 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30905   echo $ECHO_N "(cached) $ECHO_C" >&6
30906 else
30907   cat >conftest.$ac_ext <<_ACEOF
30908 /* confdefs.h.  */
30909 _ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h.  */
30913 #include <sys/types.h>
30914 int
30915 main ()
30916 {
30917 return makedev(0, 0);
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (ac_try="$ac_link"
30924 case "(($ac_try" in
30925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926   *) ac_try_echo=$ac_try;;
30927 esac
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929   (eval "$ac_link") 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } && {
30936          test -z "$ac_c_werror_flag" ||
30937          test ! -s conftest.err
30938        } && test -s conftest$ac_exeext &&
30939        $as_test_x conftest$ac_exeext; then
30940   ac_cv_header_sys_types_h_makedev=yes
30941 else
30942   echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30944
30945         ac_cv_header_sys_types_h_makedev=no
30946 fi
30947
30948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30949       conftest$ac_exeext conftest.$ac_ext
30950
30951 fi
30952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30953 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30954
30955 if test $ac_cv_header_sys_types_h_makedev = no; then
30956 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30957   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30958 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30959 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30960   echo $ECHO_N "(cached) $ECHO_C" >&6
30961 fi
30962 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30963 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30964 else
30965   # Is the header compilable?
30966 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30967 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30968 cat >conftest.$ac_ext <<_ACEOF
30969 /* confdefs.h.  */
30970 _ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h.  */
30974 $ac_includes_default
30975 #include <sys/mkdev.h>
30976 _ACEOF
30977 rm -f conftest.$ac_objext
30978 if { (ac_try="$ac_compile"
30979 case "(($ac_try" in
30980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30981   *) ac_try_echo=$ac_try;;
30982 esac
30983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30984   (eval "$ac_compile") 2>conftest.er1
30985   ac_status=$?
30986   grep -v '^ *+' conftest.er1 >conftest.err
30987   rm -f conftest.er1
30988   cat conftest.err >&5
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); } && {
30991          test -z "$ac_c_werror_flag" ||
30992          test ! -s conftest.err
30993        } && test -s conftest.$ac_objext; then
30994   ac_header_compiler=yes
30995 else
30996   echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
30998
30999         ac_header_compiler=no
31000 fi
31001
31002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31004 echo "${ECHO_T}$ac_header_compiler" >&6; }
31005
31006 # Is the header present?
31007 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31008 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31009 cat >conftest.$ac_ext <<_ACEOF
31010 /* confdefs.h.  */
31011 _ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h.  */
31015 #include <sys/mkdev.h>
31016 _ACEOF
31017 if { (ac_try="$ac_cpp conftest.$ac_ext"
31018 case "(($ac_try" in
31019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31020   *) ac_try_echo=$ac_try;;
31021 esac
31022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31024   ac_status=$?
31025   grep -v '^ *+' conftest.er1 >conftest.err
31026   rm -f conftest.er1
31027   cat conftest.err >&5
31028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029   (exit $ac_status); } >/dev/null && {
31030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31031          test ! -s conftest.err
31032        }; then
31033   ac_header_preproc=yes
31034 else
31035   echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31037
31038   ac_header_preproc=no
31039 fi
31040
31041 rm -f conftest.err conftest.$ac_ext
31042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31043 echo "${ECHO_T}$ac_header_preproc" >&6; }
31044
31045 # So?  What about this header?
31046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31047   yes:no: )
31048     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31049 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31050     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31051 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31052     ac_header_preproc=yes
31053     ;;
31054   no:yes:* )
31055     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31056 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31057     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31058 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31059     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31060 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31061     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31062 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31063     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31064 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31065     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31066 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31067
31068     ;;
31069 esac
31070 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31071 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31072 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31073   echo $ECHO_N "(cached) $ECHO_C" >&6
31074 else
31075   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31076 fi
31077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31078 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31079
31080 fi
31081 if test $ac_cv_header_sys_mkdev_h = yes; then
31082
31083 cat >>confdefs.h <<\_ACEOF
31084 #define MAJOR_IN_MKDEV 1
31085 _ACEOF
31086
31087 fi
31088
31089
31090
31091   if test $ac_cv_header_sys_mkdev_h = no; then
31092     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31093   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31094 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31095 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31096   echo $ECHO_N "(cached) $ECHO_C" >&6
31097 fi
31098 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31099 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31100 else
31101   # Is the header compilable?
31102 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31103 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31104 cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h.  */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h.  */
31110 $ac_includes_default
31111 #include <sys/sysmacros.h>
31112 _ACEOF
31113 rm -f conftest.$ac_objext
31114 if { (ac_try="$ac_compile"
31115 case "(($ac_try" in
31116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117   *) ac_try_echo=$ac_try;;
31118 esac
31119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120   (eval "$ac_compile") 2>conftest.er1
31121   ac_status=$?
31122   grep -v '^ *+' conftest.er1 >conftest.err
31123   rm -f conftest.er1
31124   cat conftest.err >&5
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); } && {
31127          test -z "$ac_c_werror_flag" ||
31128          test ! -s conftest.err
31129        } && test -s conftest.$ac_objext; then
31130   ac_header_compiler=yes
31131 else
31132   echo "$as_me: failed program was:" >&5
31133 sed 's/^/| /' conftest.$ac_ext >&5
31134
31135         ac_header_compiler=no
31136 fi
31137
31138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31140 echo "${ECHO_T}$ac_header_compiler" >&6; }
31141
31142 # Is the header present?
31143 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31144 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31145 cat >conftest.$ac_ext <<_ACEOF
31146 /* confdefs.h.  */
31147 _ACEOF
31148 cat confdefs.h >>conftest.$ac_ext
31149 cat >>conftest.$ac_ext <<_ACEOF
31150 /* end confdefs.h.  */
31151 #include <sys/sysmacros.h>
31152 _ACEOF
31153 if { (ac_try="$ac_cpp conftest.$ac_ext"
31154 case "(($ac_try" in
31155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156   *) ac_try_echo=$ac_try;;
31157 esac
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31160   ac_status=$?
31161   grep -v '^ *+' conftest.er1 >conftest.err
31162   rm -f conftest.er1
31163   cat conftest.err >&5
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); } >/dev/null && {
31166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31167          test ! -s conftest.err
31168        }; then
31169   ac_header_preproc=yes
31170 else
31171   echo "$as_me: failed program was:" >&5
31172 sed 's/^/| /' conftest.$ac_ext >&5
31173
31174   ac_header_preproc=no
31175 fi
31176
31177 rm -f conftest.err conftest.$ac_ext
31178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31179 echo "${ECHO_T}$ac_header_preproc" >&6; }
31180
31181 # So?  What about this header?
31182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31183   yes:no: )
31184     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31185 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31186     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31187 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31188     ac_header_preproc=yes
31189     ;;
31190   no:yes:* )
31191     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31192 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31193     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31194 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31195     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31196 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31197     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31198 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31199     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31200 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31201     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31202 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31203
31204     ;;
31205 esac
31206 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31207 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31209   echo $ECHO_N "(cached) $ECHO_C" >&6
31210 else
31211   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31212 fi
31213 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31214 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31215
31216 fi
31217 if test $ac_cv_header_sys_sysmacros_h = yes; then
31218
31219 cat >>confdefs.h <<\_ACEOF
31220 #define MAJOR_IN_SYSMACROS 1
31221 _ACEOF
31222
31223 fi
31224
31225
31226   fi
31227 fi
31228
31229
31230
31231
31232
31233
31234 ac_header_dirent=no
31235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31236   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31237 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31240   echo $ECHO_N "(cached) $ECHO_C" >&6
31241 else
31242   cat >conftest.$ac_ext <<_ACEOF
31243 /* confdefs.h.  */
31244 _ACEOF
31245 cat confdefs.h >>conftest.$ac_ext
31246 cat >>conftest.$ac_ext <<_ACEOF
31247 /* end confdefs.h.  */
31248 #include <sys/types.h>
31249 #include <$ac_hdr>
31250
31251 int
31252 main ()
31253 {
31254 if ((DIR *) 0)
31255 return 0;
31256   ;
31257   return 0;
31258 }
31259 _ACEOF
31260 rm -f conftest.$ac_objext
31261 if { (ac_try="$ac_compile"
31262 case "(($ac_try" in
31263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264   *) ac_try_echo=$ac_try;;
31265 esac
31266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267   (eval "$ac_compile") 2>conftest.er1
31268   ac_status=$?
31269   grep -v '^ *+' conftest.er1 >conftest.err
31270   rm -f conftest.er1
31271   cat conftest.err >&5
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); } && {
31274          test -z "$ac_c_werror_flag" ||
31275          test ! -s conftest.err
31276        } && test -s conftest.$ac_objext; then
31277   eval "$as_ac_Header=yes"
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282         eval "$as_ac_Header=no"
31283 fi
31284
31285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31286 fi
31287 ac_res=`eval echo '${'$as_ac_Header'}'`
31288                { echo "$as_me:$LINENO: result: $ac_res" >&5
31289 echo "${ECHO_T}$ac_res" >&6; }
31290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31291   cat >>confdefs.h <<_ACEOF
31292 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31293 _ACEOF
31294
31295 ac_header_dirent=$ac_hdr; break
31296 fi
31297
31298 done
31299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31300 if test $ac_header_dirent = dirent.h; then
31301   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31303 if test "${ac_cv_search_opendir+set}" = set; then
31304   echo $ECHO_N "(cached) $ECHO_C" >&6
31305 else
31306   ac_func_search_save_LIBS=$LIBS
31307 cat >conftest.$ac_ext <<_ACEOF
31308 /* confdefs.h.  */
31309 _ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h.  */
31313
31314 /* Override any GCC internal prototype to avoid an error.
31315    Use char because int might match the return type of a GCC
31316    builtin and then its argument prototype would still apply.  */
31317 #ifdef __cplusplus
31318 extern "C"
31319 #endif
31320 char opendir ();
31321 int
31322 main ()
31323 {
31324 return opendir ();
31325   ;
31326   return 0;
31327 }
31328 _ACEOF
31329 for ac_lib in '' dir; do
31330   if test -z "$ac_lib"; then
31331     ac_res="none required"
31332   else
31333     ac_res=-l$ac_lib
31334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31335   fi
31336   rm -f conftest.$ac_objext conftest$ac_exeext
31337 if { (ac_try="$ac_link"
31338 case "(($ac_try" in
31339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340   *) ac_try_echo=$ac_try;;
31341 esac
31342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343   (eval "$ac_link") 2>conftest.er1
31344   ac_status=$?
31345   grep -v '^ *+' conftest.er1 >conftest.err
31346   rm -f conftest.er1
31347   cat conftest.err >&5
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); } && {
31350          test -z "$ac_c_werror_flag" ||
31351          test ! -s conftest.err
31352        } && test -s conftest$ac_exeext &&
31353        $as_test_x conftest$ac_exeext; then
31354   ac_cv_search_opendir=$ac_res
31355 else
31356   echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31358
31359
31360 fi
31361
31362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31363       conftest$ac_exeext
31364   if test "${ac_cv_search_opendir+set}" = set; then
31365   break
31366 fi
31367 done
31368 if test "${ac_cv_search_opendir+set}" = set; then
31369   :
31370 else
31371   ac_cv_search_opendir=no
31372 fi
31373 rm conftest.$ac_ext
31374 LIBS=$ac_func_search_save_LIBS
31375 fi
31376 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31377 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31378 ac_res=$ac_cv_search_opendir
31379 if test "$ac_res" != no; then
31380   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31381
31382 fi
31383
31384 else
31385   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31387 if test "${ac_cv_search_opendir+set}" = set; then
31388   echo $ECHO_N "(cached) $ECHO_C" >&6
31389 else
31390   ac_func_search_save_LIBS=$LIBS
31391 cat >conftest.$ac_ext <<_ACEOF
31392 /* confdefs.h.  */
31393 _ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h.  */
31397
31398 /* Override any GCC internal prototype to avoid an error.
31399    Use char because int might match the return type of a GCC
31400    builtin and then its argument prototype would still apply.  */
31401 #ifdef __cplusplus
31402 extern "C"
31403 #endif
31404 char opendir ();
31405 int
31406 main ()
31407 {
31408 return opendir ();
31409   ;
31410   return 0;
31411 }
31412 _ACEOF
31413 for ac_lib in '' x; do
31414   if test -z "$ac_lib"; then
31415     ac_res="none required"
31416   else
31417     ac_res=-l$ac_lib
31418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31419   fi
31420   rm -f conftest.$ac_objext conftest$ac_exeext
31421 if { (ac_try="$ac_link"
31422 case "(($ac_try" in
31423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424   *) ac_try_echo=$ac_try;;
31425 esac
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427   (eval "$ac_link") 2>conftest.er1
31428   ac_status=$?
31429   grep -v '^ *+' conftest.er1 >conftest.err
31430   rm -f conftest.er1
31431   cat conftest.err >&5
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); } && {
31434          test -z "$ac_c_werror_flag" ||
31435          test ! -s conftest.err
31436        } && test -s conftest$ac_exeext &&
31437        $as_test_x conftest$ac_exeext; then
31438   ac_cv_search_opendir=$ac_res
31439 else
31440   echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31442
31443
31444 fi
31445
31446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31447       conftest$ac_exeext
31448   if test "${ac_cv_search_opendir+set}" = set; then
31449   break
31450 fi
31451 done
31452 if test "${ac_cv_search_opendir+set}" = set; then
31453   :
31454 else
31455   ac_cv_search_opendir=no
31456 fi
31457 rm conftest.$ac_ext
31458 LIBS=$ac_func_search_save_LIBS
31459 fi
31460 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31461 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31462 ac_res=$ac_cv_search_opendir
31463 if test "$ac_res" != no; then
31464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31465
31466 fi
31467
31468 fi
31469
31470 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31471 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31472 if test "${ac_cv_header_stat_broken+set}" = set; then
31473   echo $ECHO_N "(cached) $ECHO_C" >&6
31474 else
31475   cat >conftest.$ac_ext <<_ACEOF
31476 /* confdefs.h.  */
31477 _ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h.  */
31481 #include <sys/types.h>
31482 #include <sys/stat.h>
31483
31484 #if defined S_ISBLK && defined S_IFDIR
31485 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31486 #endif
31487
31488 #if defined S_ISBLK && defined S_IFCHR
31489 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31490 #endif
31491
31492 #if defined S_ISLNK && defined S_IFREG
31493 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31494 #endif
31495
31496 #if defined S_ISSOCK && defined S_IFREG
31497 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31498 #endif
31499
31500 _ACEOF
31501 rm -f conftest.$ac_objext
31502 if { (ac_try="$ac_compile"
31503 case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_compile") 2>conftest.er1
31509   ac_status=$?
31510   grep -v '^ *+' conftest.er1 >conftest.err
31511   rm -f conftest.er1
31512   cat conftest.err >&5
31513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514   (exit $ac_status); } && {
31515          test -z "$ac_c_werror_flag" ||
31516          test ! -s conftest.err
31517        } && test -s conftest.$ac_objext; then
31518   ac_cv_header_stat_broken=no
31519 else
31520   echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523         ac_cv_header_stat_broken=yes
31524 fi
31525
31526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31527 fi
31528 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31529 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31530 if test $ac_cv_header_stat_broken = yes; then
31531
31532 cat >>confdefs.h <<\_ACEOF
31533 #define STAT_MACROS_BROKEN 1
31534 _ACEOF
31535
31536 fi
31537
31538 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31539 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31540 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31541   echo $ECHO_N "(cached) $ECHO_C" >&6
31542 else
31543   cat >conftest.$ac_ext <<_ACEOF
31544 /* confdefs.h.  */
31545 _ACEOF
31546 cat confdefs.h >>conftest.$ac_ext
31547 cat >>conftest.$ac_ext <<_ACEOF
31548 /* end confdefs.h.  */
31549 #include <sys/types.h>
31550 #include <sys/wait.h>
31551 #ifndef WEXITSTATUS
31552 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31553 #endif
31554 #ifndef WIFEXITED
31555 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31556 #endif
31557
31558 int
31559 main ()
31560 {
31561   int s;
31562   wait (&s);
31563   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31564   ;
31565   return 0;
31566 }
31567 _ACEOF
31568 rm -f conftest.$ac_objext
31569 if { (ac_try="$ac_compile"
31570 case "(($ac_try" in
31571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572   *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575   (eval "$ac_compile") 2>conftest.er1
31576   ac_status=$?
31577   grep -v '^ *+' conftest.er1 >conftest.err
31578   rm -f conftest.er1
31579   cat conftest.err >&5
31580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581   (exit $ac_status); } && {
31582          test -z "$ac_c_werror_flag" ||
31583          test ! -s conftest.err
31584        } && test -s conftest.$ac_objext; then
31585   ac_cv_header_sys_wait_h=yes
31586 else
31587   echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.$ac_ext >&5
31589
31590         ac_cv_header_sys_wait_h=no
31591 fi
31592
31593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31594 fi
31595 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31596 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31597 if test $ac_cv_header_sys_wait_h = yes; then
31598
31599 cat >>confdefs.h <<\_ACEOF
31600 #define HAVE_SYS_WAIT_H 1
31601 _ACEOF
31602
31603 fi
31604
31605 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31606 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31607 if test "${ac_cv_header_time+set}" = set; then
31608   echo $ECHO_N "(cached) $ECHO_C" >&6
31609 else
31610   cat >conftest.$ac_ext <<_ACEOF
31611 /* confdefs.h.  */
31612 _ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h.  */
31616 #include <sys/types.h>
31617 #include <sys/time.h>
31618 #include <time.h>
31619
31620 int
31621 main ()
31622 {
31623 if ((struct tm *) 0)
31624 return 0;
31625   ;
31626   return 0;
31627 }
31628 _ACEOF
31629 rm -f conftest.$ac_objext
31630 if { (ac_try="$ac_compile"
31631 case "(($ac_try" in
31632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633   *) ac_try_echo=$ac_try;;
31634 esac
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636   (eval "$ac_compile") 2>conftest.er1
31637   ac_status=$?
31638   grep -v '^ *+' conftest.er1 >conftest.err
31639   rm -f conftest.er1
31640   cat conftest.err >&5
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); } && {
31643          test -z "$ac_c_werror_flag" ||
31644          test ! -s conftest.err
31645        } && test -s conftest.$ac_objext; then
31646   ac_cv_header_time=yes
31647 else
31648   echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31650
31651         ac_cv_header_time=no
31652 fi
31653
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 fi
31656 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31657 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31658 if test $ac_cv_header_time = yes; then
31659
31660 cat >>confdefs.h <<\_ACEOF
31661 #define TIME_WITH_SYS_TIME 1
31662 _ACEOF
31663
31664 fi
31665
31666 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31667 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31668 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31669   echo $ECHO_N "(cached) $ECHO_C" >&6
31670 else
31671   cat >conftest.$ac_ext <<_ACEOF
31672 /* confdefs.h.  */
31673 _ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h.  */
31677 $ac_includes_default
31678 int
31679 main ()
31680 {
31681 static struct stat ac_aggr;
31682 if (ac_aggr.st_blksize)
31683 return 0;
31684   ;
31685   return 0;
31686 }
31687 _ACEOF
31688 rm -f conftest.$ac_objext
31689 if { (ac_try="$ac_compile"
31690 case "(($ac_try" in
31691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692   *) ac_try_echo=$ac_try;;
31693 esac
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695   (eval "$ac_compile") 2>conftest.er1
31696   ac_status=$?
31697   grep -v '^ *+' conftest.er1 >conftest.err
31698   rm -f conftest.er1
31699   cat conftest.err >&5
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); } && {
31702          test -z "$ac_c_werror_flag" ||
31703          test ! -s conftest.err
31704        } && test -s conftest.$ac_objext; then
31705   ac_cv_member_struct_stat_st_blksize=yes
31706 else
31707   echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31709
31710         cat >conftest.$ac_ext <<_ACEOF
31711 /* confdefs.h.  */
31712 _ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h.  */
31716 $ac_includes_default
31717 int
31718 main ()
31719 {
31720 static struct stat ac_aggr;
31721 if (sizeof ac_aggr.st_blksize)
31722 return 0;
31723   ;
31724   return 0;
31725 }
31726 _ACEOF
31727 rm -f conftest.$ac_objext
31728 if { (ac_try="$ac_compile"
31729 case "(($ac_try" in
31730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731   *) ac_try_echo=$ac_try;;
31732 esac
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734   (eval "$ac_compile") 2>conftest.er1
31735   ac_status=$?
31736   grep -v '^ *+' conftest.er1 >conftest.err
31737   rm -f conftest.er1
31738   cat conftest.err >&5
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); } && {
31741          test -z "$ac_c_werror_flag" ||
31742          test ! -s conftest.err
31743        } && test -s conftest.$ac_objext; then
31744   ac_cv_member_struct_stat_st_blksize=yes
31745 else
31746   echo "$as_me: failed program was:" >&5
31747 sed 's/^/| /' conftest.$ac_ext >&5
31748
31749         ac_cv_member_struct_stat_st_blksize=no
31750 fi
31751
31752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31753 fi
31754
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 fi
31757 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31758 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31759 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31760
31761 cat >>confdefs.h <<_ACEOF
31762 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31763 _ACEOF
31764
31765
31766 cat >>confdefs.h <<\_ACEOF
31767 #define HAVE_ST_BLKSIZE 1
31768 _ACEOF
31769
31770 fi
31771
31772
31773 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31774 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31775 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31776   echo $ECHO_N "(cached) $ECHO_C" >&6
31777 else
31778   cat >conftest.$ac_ext <<_ACEOF
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784 $ac_includes_default
31785 int
31786 main ()
31787 {
31788 static struct stat ac_aggr;
31789 if (ac_aggr.st_blocks)
31790 return 0;
31791   ;
31792   return 0;
31793 }
31794 _ACEOF
31795 rm -f conftest.$ac_objext
31796 if { (ac_try="$ac_compile"
31797 case "(($ac_try" in
31798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799   *) ac_try_echo=$ac_try;;
31800 esac
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802   (eval "$ac_compile") 2>conftest.er1
31803   ac_status=$?
31804   grep -v '^ *+' conftest.er1 >conftest.err
31805   rm -f conftest.er1
31806   cat conftest.err >&5
31807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808   (exit $ac_status); } && {
31809          test -z "$ac_c_werror_flag" ||
31810          test ! -s conftest.err
31811        } && test -s conftest.$ac_objext; then
31812   ac_cv_member_struct_stat_st_blocks=yes
31813 else
31814   echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.$ac_ext >&5
31816
31817         cat >conftest.$ac_ext <<_ACEOF
31818 /* confdefs.h.  */
31819 _ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h.  */
31823 $ac_includes_default
31824 int
31825 main ()
31826 {
31827 static struct stat ac_aggr;
31828 if (sizeof ac_aggr.st_blocks)
31829 return 0;
31830   ;
31831   return 0;
31832 }
31833 _ACEOF
31834 rm -f conftest.$ac_objext
31835 if { (ac_try="$ac_compile"
31836 case "(($ac_try" in
31837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31838   *) ac_try_echo=$ac_try;;
31839 esac
31840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31841   (eval "$ac_compile") 2>conftest.er1
31842   ac_status=$?
31843   grep -v '^ *+' conftest.er1 >conftest.err
31844   rm -f conftest.er1
31845   cat conftest.err >&5
31846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); } && {
31848          test -z "$ac_c_werror_flag" ||
31849          test ! -s conftest.err
31850        } && test -s conftest.$ac_objext; then
31851   ac_cv_member_struct_stat_st_blocks=yes
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856         ac_cv_member_struct_stat_st_blocks=no
31857 fi
31858
31859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31860 fi
31861
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31863 fi
31864 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31865 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31866 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31867
31868 cat >>confdefs.h <<_ACEOF
31869 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31870 _ACEOF
31871
31872
31873 cat >>confdefs.h <<\_ACEOF
31874 #define HAVE_ST_BLOCKS 1
31875 _ACEOF
31876
31877 else
31878   case " $LIBOBJS " in
31879   *" fileblocks.$ac_objext "* ) ;;
31880   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31881  ;;
31882 esac
31883
31884 fi
31885
31886
31887 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31888 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31889 if test "${ac_cv_struct_tm+set}" = set; then
31890   echo $ECHO_N "(cached) $ECHO_C" >&6
31891 else
31892   cat >conftest.$ac_ext <<_ACEOF
31893 /* confdefs.h.  */
31894 _ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h.  */
31898 #include <sys/types.h>
31899 #include <time.h>
31900
31901 int
31902 main ()
31903 {
31904 struct tm tm;
31905                                      int *p = &tm.tm_sec;
31906                                      return !p;
31907   ;
31908   return 0;
31909 }
31910 _ACEOF
31911 rm -f conftest.$ac_objext
31912 if { (ac_try="$ac_compile"
31913 case "(($ac_try" in
31914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915   *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918   (eval "$ac_compile") 2>conftest.er1
31919   ac_status=$?
31920   grep -v '^ *+' conftest.er1 >conftest.err
31921   rm -f conftest.er1
31922   cat conftest.err >&5
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); } && {
31925          test -z "$ac_c_werror_flag" ||
31926          test ! -s conftest.err
31927        } && test -s conftest.$ac_objext; then
31928   ac_cv_struct_tm=time.h
31929 else
31930   echo "$as_me: failed program was:" >&5
31931 sed 's/^/| /' conftest.$ac_ext >&5
31932
31933         ac_cv_struct_tm=sys/time.h
31934 fi
31935
31936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31937 fi
31938 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31939 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31940 if test $ac_cv_struct_tm = sys/time.h; then
31941
31942 cat >>confdefs.h <<\_ACEOF
31943 #define TM_IN_SYS_TIME 1
31944 _ACEOF
31945
31946 fi
31947
31948 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31949 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31950 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31951   echo $ECHO_N "(cached) $ECHO_C" >&6
31952 else
31953   cat >conftest.$ac_ext <<_ACEOF
31954 /* confdefs.h.  */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h.  */
31959 #include <sys/types.h>
31960 #include <$ac_cv_struct_tm>
31961
31962
31963 int
31964 main ()
31965 {
31966 static struct tm ac_aggr;
31967 if (ac_aggr.tm_zone)
31968 return 0;
31969   ;
31970   return 0;
31971 }
31972 _ACEOF
31973 rm -f conftest.$ac_objext
31974 if { (ac_try="$ac_compile"
31975 case "(($ac_try" in
31976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977   *) ac_try_echo=$ac_try;;
31978 esac
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980   (eval "$ac_compile") 2>conftest.er1
31981   ac_status=$?
31982   grep -v '^ *+' conftest.er1 >conftest.err
31983   rm -f conftest.er1
31984   cat conftest.err >&5
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); } && {
31987          test -z "$ac_c_werror_flag" ||
31988          test ! -s conftest.err
31989        } && test -s conftest.$ac_objext; then
31990   ac_cv_member_struct_tm_tm_zone=yes
31991 else
31992   echo "$as_me: failed program was:" >&5
31993 sed 's/^/| /' conftest.$ac_ext >&5
31994
31995         cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h.  */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h.  */
32001 #include <sys/types.h>
32002 #include <$ac_cv_struct_tm>
32003
32004
32005 int
32006 main ()
32007 {
32008 static struct tm ac_aggr;
32009 if (sizeof ac_aggr.tm_zone)
32010 return 0;
32011   ;
32012   return 0;
32013 }
32014 _ACEOF
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_compile") 2>conftest.er1
32023   ac_status=$?
32024   grep -v '^ *+' conftest.er1 >conftest.err
32025   rm -f conftest.er1
32026   cat conftest.err >&5
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); } && {
32029          test -z "$ac_c_werror_flag" ||
32030          test ! -s conftest.err
32031        } && test -s conftest.$ac_objext; then
32032   ac_cv_member_struct_tm_tm_zone=yes
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32036
32037         ac_cv_member_struct_tm_tm_zone=no
32038 fi
32039
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32041 fi
32042
32043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32044 fi
32045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32046 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32047 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32048
32049 cat >>confdefs.h <<_ACEOF
32050 #define HAVE_STRUCT_TM_TM_ZONE 1
32051 _ACEOF
32052
32053
32054 fi
32055
32056 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32057
32058 cat >>confdefs.h <<\_ACEOF
32059 #define HAVE_TM_ZONE 1
32060 _ACEOF
32061
32062 else
32063   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32064 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32065 if test "${ac_cv_have_decl_tzname+set}" = set; then
32066   echo $ECHO_N "(cached) $ECHO_C" >&6
32067 else
32068   cat >conftest.$ac_ext <<_ACEOF
32069 /* confdefs.h.  */
32070 _ACEOF
32071 cat confdefs.h >>conftest.$ac_ext
32072 cat >>conftest.$ac_ext <<_ACEOF
32073 /* end confdefs.h.  */
32074 #include <time.h>
32075
32076 int
32077 main ()
32078 {
32079 #ifndef tzname
32080   (void) tzname;
32081 #endif
32082
32083   ;
32084   return 0;
32085 }
32086 _ACEOF
32087 rm -f conftest.$ac_objext
32088 if { (ac_try="$ac_compile"
32089 case "(($ac_try" in
32090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091   *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094   (eval "$ac_compile") 2>conftest.er1
32095   ac_status=$?
32096   grep -v '^ *+' conftest.er1 >conftest.err
32097   rm -f conftest.er1
32098   cat conftest.err >&5
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); } && {
32101          test -z "$ac_c_werror_flag" ||
32102          test ! -s conftest.err
32103        } && test -s conftest.$ac_objext; then
32104   ac_cv_have_decl_tzname=yes
32105 else
32106   echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32108
32109         ac_cv_have_decl_tzname=no
32110 fi
32111
32112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32113 fi
32114 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32115 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32116 if test $ac_cv_have_decl_tzname = yes; then
32117
32118 cat >>confdefs.h <<_ACEOF
32119 #define HAVE_DECL_TZNAME 1
32120 _ACEOF
32121
32122
32123 else
32124   cat >>confdefs.h <<_ACEOF
32125 #define HAVE_DECL_TZNAME 0
32126 _ACEOF
32127
32128
32129 fi
32130
32131
32132   { echo "$as_me:$LINENO: checking for tzname" >&5
32133 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32134 if test "${ac_cv_var_tzname+set}" = set; then
32135   echo $ECHO_N "(cached) $ECHO_C" >&6
32136 else
32137   cat >conftest.$ac_ext <<_ACEOF
32138 /* confdefs.h.  */
32139 _ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h.  */
32143 #include <time.h>
32144 #if !HAVE_DECL_TZNAME
32145 extern char *tzname[];
32146 #endif
32147
32148 int
32149 main ()
32150 {
32151 return tzname[0][0];
32152   ;
32153   return 0;
32154 }
32155 _ACEOF
32156 rm -f conftest.$ac_objext conftest$ac_exeext
32157 if { (ac_try="$ac_link"
32158 case "(($ac_try" in
32159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160   *) ac_try_echo=$ac_try;;
32161 esac
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163   (eval "$ac_link") 2>conftest.er1
32164   ac_status=$?
32165   grep -v '^ *+' conftest.er1 >conftest.err
32166   rm -f conftest.er1
32167   cat conftest.err >&5
32168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169   (exit $ac_status); } && {
32170          test -z "$ac_c_werror_flag" ||
32171          test ! -s conftest.err
32172        } && test -s conftest$ac_exeext &&
32173        $as_test_x conftest$ac_exeext; then
32174   ac_cv_var_tzname=yes
32175 else
32176   echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32178
32179         ac_cv_var_tzname=no
32180 fi
32181
32182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32183       conftest$ac_exeext conftest.$ac_ext
32184 fi
32185 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32186 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32187   if test $ac_cv_var_tzname = yes; then
32188
32189 cat >>confdefs.h <<\_ACEOF
32190 #define HAVE_TZNAME 1
32191 _ACEOF
32192
32193   fi
32194 fi
32195
32196
32197 { echo "$as_me:$LINENO: checking for utime.h" >&5
32198 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32199 if test "${ba_cv_header_utime_h+set}" = set; then
32200   echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202
32203        cat >conftest.$ac_ext <<_ACEOF
32204 /* confdefs.h.  */
32205 _ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h.  */
32209
32210               #include <sys/types.h>
32211               #include <utime.h>
32212
32213 int
32214 main ()
32215 {
32216
32217               struct utimbuf foo
32218
32219   ;
32220   return 0;
32221 }
32222 _ACEOF
32223 rm -f conftest.$ac_objext
32224 if { (ac_try="$ac_compile"
32225 case "(($ac_try" in
32226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227   *) ac_try_echo=$ac_try;;
32228 esac
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230   (eval "$ac_compile") 2>conftest.er1
32231   ac_status=$?
32232   grep -v '^ *+' conftest.er1 >conftest.err
32233   rm -f conftest.er1
32234   cat conftest.err >&5
32235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236   (exit $ac_status); } && {
32237          test -z "$ac_c_werror_flag" ||
32238          test ! -s conftest.err
32239        } && test -s conftest.$ac_objext; then
32240
32241               ba_cv_header_utime_h=yes
32242
32243 else
32244   echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32246
32247
32248               ba_cv_header_utime_h=no
32249
32250
32251 fi
32252
32253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254
32255
32256 fi
32257 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32258 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32259 test $ba_cv_header_utime_h = yes &&
32260 cat >>confdefs.h <<\_ACEOF
32261 #define HAVE_UTIME_H 1
32262 _ACEOF
32263
32264
32265 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32266 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32267 if test "${ba_cv_header_socklen_t+set}" = set; then
32268   echo $ECHO_N "(cached) $ECHO_C" >&6
32269 else
32270
32271        cat >conftest.$ac_ext <<_ACEOF
32272 /* confdefs.h.  */
32273 _ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h.  */
32277
32278               #include <sys/types.h>
32279               #include <sys/socket.h>
32280
32281 int
32282 main ()
32283 {
32284
32285               socklen_t x
32286
32287   ;
32288   return 0;
32289 }
32290 _ACEOF
32291 rm -f conftest.$ac_objext
32292 if { (ac_try="$ac_compile"
32293 case "(($ac_try" in
32294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295   *) ac_try_echo=$ac_try;;
32296 esac
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298   (eval "$ac_compile") 2>conftest.er1
32299   ac_status=$?
32300   grep -v '^ *+' conftest.er1 >conftest.err
32301   rm -f conftest.er1
32302   cat conftest.err >&5
32303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304   (exit $ac_status); } && {
32305          test -z "$ac_c_werror_flag" ||
32306          test ! -s conftest.err
32307        } && test -s conftest.$ac_objext; then
32308
32309              ba_cv_header_socklen_t=yes
32310
32311 else
32312   echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32314
32315
32316              ba_cv_header_socklen_t=no
32317
32318
32319 fi
32320
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322
32323
32324 fi
32325 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32326 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32327 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_SOCKLEN_T 1
32329 _ACEOF
32330
32331
32332 { echo "$as_me:$LINENO: checking for bigendian" >&5
32333 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32334 if test "${ba_cv_bigendian+set}" = set; then
32335   echo $ECHO_N "(cached) $ECHO_C" >&6
32336 else
32337
32338        if test "$cross_compiling" = yes; then
32339
32340              ba_cv_bigendian=no
32341
32342
32343 else
32344   cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350
32351               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32352
32353 _ACEOF
32354 rm -f conftest$ac_exeext
32355 if { (ac_try="$ac_link"
32356 case "(($ac_try" in
32357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358   *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361   (eval "$ac_link") 2>&5
32362   ac_status=$?
32363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32365   { (case "(($ac_try" in
32366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367   *) ac_try_echo=$ac_try;;
32368 esac
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370   (eval "$ac_try") 2>&5
32371   ac_status=$?
32372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373   (exit $ac_status); }; }; then
32374
32375              ba_cv_bigendian=yes
32376
32377 else
32378   echo "$as_me: program exited with status $ac_status" >&5
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32381
32382 ( exit $ac_status )
32383
32384              ba_cv_bigendian=no
32385
32386 fi
32387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32388 fi
32389
32390
32391
32392
32393 fi
32394 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32395 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32396 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_BIGENDIAN 1
32398 _ACEOF
32399
32400
32401 ac_ext=cpp
32402 ac_cpp='$CXXCPP $CPPFLAGS'
32403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32406
32407 { echo "$as_me:$LINENO: checking for typeof" >&5
32408 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32409 if test "${ba_cv_have_typeof+set}" = set; then
32410   echo $ECHO_N "(cached) $ECHO_C" >&6
32411 else
32412
32413        if test "$cross_compiling" = yes; then
32414
32415               ba_cv_have_typeof=no
32416
32417
32418 else
32419   cat >conftest.$ac_ext <<_ACEOF
32420 /* confdefs.h.  */
32421 _ACEOF
32422 cat confdefs.h >>conftest.$ac_ext
32423 cat >>conftest.$ac_ext <<_ACEOF
32424 /* end confdefs.h.  */
32425
32426               main(){char *a = 0; a = (typeof a)a;}
32427
32428 _ACEOF
32429 rm -f conftest$ac_exeext
32430 if { (ac_try="$ac_link"
32431 case "(($ac_try" in
32432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433   *) ac_try_echo=$ac_try;;
32434 esac
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436   (eval "$ac_link") 2>&5
32437   ac_status=$?
32438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32440   { (case "(($ac_try" in
32441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442   *) ac_try_echo=$ac_try;;
32443 esac
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445   (eval "$ac_try") 2>&5
32446   ac_status=$?
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); }; }; then
32449
32450               ba_cv_have_typeof=yes
32451
32452 else
32453   echo "$as_me: program exited with status $ac_status" >&5
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32456
32457 ( exit $ac_status )
32458
32459               ba_cv_have_typeof=no
32460
32461 fi
32462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32463 fi
32464
32465
32466
32467
32468 fi
32469 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32470 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32471 test $ba_cv_have_typeof = yes &&
32472 cat >>confdefs.h <<\_ACEOF
32473 #define HAVE_TYPEOF 1
32474 _ACEOF
32475
32476 ac_ext=c
32477 ac_cpp='$CPP $CPPFLAGS'
32478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32481
32482
32483 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32484 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32485 if test "${ac_cv_c_const+set}" = set; then
32486   echo $ECHO_N "(cached) $ECHO_C" >&6
32487 else
32488   cat >conftest.$ac_ext <<_ACEOF
32489 /* confdefs.h.  */
32490 _ACEOF
32491 cat confdefs.h >>conftest.$ac_ext
32492 cat >>conftest.$ac_ext <<_ACEOF
32493 /* end confdefs.h.  */
32494
32495 int
32496 main ()
32497 {
32498 /* FIXME: Include the comments suggested by Paul. */
32499 #ifndef __cplusplus
32500   /* Ultrix mips cc rejects this.  */
32501   typedef int charset[2];
32502   const charset cs;
32503   /* SunOS 4.1.1 cc rejects this.  */
32504   char const *const *pcpcc;
32505   char **ppc;
32506   /* NEC SVR4.0.2 mips cc rejects this.  */
32507   struct point {int x, y;};
32508   static struct point const zero = {0,0};
32509   /* AIX XL C 1.02.0.0 rejects this.
32510      It does not let you subtract one const X* pointer from another in
32511      an arm of an if-expression whose if-part is not a constant
32512      expression */
32513   const char *g = "string";
32514   pcpcc = &g + (g ? g-g : 0);
32515   /* HPUX 7.0 cc rejects these. */
32516   ++pcpcc;
32517   ppc = (char**) pcpcc;
32518   pcpcc = (char const *const *) ppc;
32519   { /* SCO 3.2v4 cc rejects this.  */
32520     char *t;
32521     char const *s = 0 ? (char *) 0 : (char const *) 0;
32522
32523     *t++ = 0;
32524     if (s) return 0;
32525   }
32526   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32527     int x[] = {25, 17};
32528     const int *foo = &x[0];
32529     ++foo;
32530   }
32531   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32532     typedef const int *iptr;
32533     iptr p = 0;
32534     ++p;
32535   }
32536   { /* AIX XL C 1.02.0.0 rejects this saying
32537        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32538     struct s { int j; const int *ap[3]; };
32539     struct s *b; b->j = 5;
32540   }
32541   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32542     const int foo = 10;
32543     if (!foo) return 0;
32544   }
32545   return !cs[0] && !zero.x;
32546 #endif
32547
32548   ;
32549   return 0;
32550 }
32551 _ACEOF
32552 rm -f conftest.$ac_objext
32553 if { (ac_try="$ac_compile"
32554 case "(($ac_try" in
32555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556   *) ac_try_echo=$ac_try;;
32557 esac
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559   (eval "$ac_compile") 2>conftest.er1
32560   ac_status=$?
32561   grep -v '^ *+' conftest.er1 >conftest.err
32562   rm -f conftest.er1
32563   cat conftest.err >&5
32564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565   (exit $ac_status); } && {
32566          test -z "$ac_c_werror_flag" ||
32567          test ! -s conftest.err
32568        } && test -s conftest.$ac_objext; then
32569   ac_cv_c_const=yes
32570 else
32571   echo "$as_me: failed program was:" >&5
32572 sed 's/^/| /' conftest.$ac_ext >&5
32573
32574         ac_cv_c_const=no
32575 fi
32576
32577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32578 fi
32579 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32580 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32581 if test $ac_cv_c_const = no; then
32582
32583 cat >>confdefs.h <<\_ACEOF
32584 #define const
32585 _ACEOF
32586
32587 fi
32588
32589
32590 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32591 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32592 fstype=no
32593 # The order of these tests is important.
32594 cat >conftest.$ac_ext <<_ACEOF
32595 /* confdefs.h.  */
32596 _ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h.  */
32600
32601        #include <sys/statvfs.h>
32602        #include <sys/fstyp.h>
32603
32604 _ACEOF
32605 if { (ac_try="$ac_cpp conftest.$ac_ext"
32606 case "(($ac_try" in
32607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608   *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32612   ac_status=$?
32613   grep -v '^ *+' conftest.er1 >conftest.err
32614   rm -f conftest.er1
32615   cat conftest.err >&5
32616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617   (exit $ac_status); } >/dev/null && {
32618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32619          test ! -s conftest.err
32620        }; then
32621   cat >>confdefs.h <<\_ACEOF
32622 #define FSTYPE_STATVFS 1
32623 _ACEOF
32624  fstype=SVR4
32625
32626 else
32627   echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32629
32630
32631 fi
32632
32633 rm -f conftest.err conftest.$ac_ext
32634 if test $fstype = no; then
32635    cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h.  */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h.  */
32641
32642           #include <sys/statfs.h>
32643           #include <sys/fstyp.h>
32644
32645 _ACEOF
32646 if { (ac_try="$ac_cpp conftest.$ac_ext"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } >/dev/null && {
32659          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        }; then
32662   cat >>confdefs.h <<\_ACEOF
32663 #define FSTYPE_USG_STATFS 1
32664 _ACEOF
32665  fstype=SVR3
32666
32667 else
32668   echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32670
32671
32672 fi
32673
32674 rm -f conftest.err conftest.$ac_ext
32675 fi
32676 if test $fstype = no; then
32677    cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h.  */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h.  */
32683
32684           #include <sys/statfs.h>
32685           #include <sys/vmount.h>
32686
32687 _ACEOF
32688 if { (ac_try="$ac_cpp conftest.$ac_ext"
32689 case "(($ac_try" in
32690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691   *) ac_try_echo=$ac_try;;
32692 esac
32693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32695   ac_status=$?
32696   grep -v '^ *+' conftest.er1 >conftest.err
32697   rm -f conftest.er1
32698   cat conftest.err >&5
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); } >/dev/null && {
32701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32702          test ! -s conftest.err
32703        }; then
32704   cat >>confdefs.h <<\_ACEOF
32705 #define FSTYPE_AIX_STATFS 1
32706 _ACEOF
32707  fstype=AIX
32708
32709 else
32710   echo "$as_me: failed program was:" >&5
32711 sed 's/^/| /' conftest.$ac_ext >&5
32712
32713
32714 fi
32715
32716 rm -f conftest.err conftest.$ac_ext
32717 fi
32718 if test $fstype = no; then
32719    cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h.  */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h.  */
32725
32726           #include <mntent.h>
32727
32728 _ACEOF
32729 if { (ac_try="$ac_cpp conftest.$ac_ext"
32730 case "(($ac_try" in
32731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732   *) ac_try_echo=$ac_try;;
32733 esac
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32736   ac_status=$?
32737   grep -v '^ *+' conftest.er1 >conftest.err
32738   rm -f conftest.er1
32739   cat conftest.err >&5
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); } >/dev/null && {
32742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32743          test ! -s conftest.err
32744        }; then
32745   cat >>confdefs.h <<\_ACEOF
32746 #define FSTYPE_MNTENT 1
32747 _ACEOF
32748  fstype=4.3BSD
32749
32750 else
32751   echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32753
32754
32755 fi
32756
32757 rm -f conftest.err conftest.$ac_ext
32758 fi
32759 if test $fstype = no; then
32760    cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766 #include <sys/mount.h>
32767
32768 _ACEOF
32769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32770   $EGREP "f_type;" >/dev/null 2>&1; then
32771   cat >>confdefs.h <<\_ACEOF
32772 #define FSTYPE_STATFS 1
32773 _ACEOF
32774  fstype=4.4BSD/OSF1
32775 fi
32776 rm -f conftest*
32777
32778 fi
32779 if test $fstype = no; then
32780    cat >conftest.$ac_ext <<_ACEOF
32781 /* confdefs.h.  */
32782 _ACEOF
32783 cat confdefs.h >>conftest.$ac_ext
32784 cat >>conftest.$ac_ext <<_ACEOF
32785 /* end confdefs.h.  */
32786
32787           #include <sys/mount.h>
32788           #include <sys/fs_types.h>
32789
32790 _ACEOF
32791 if { (ac_try="$ac_cpp conftest.$ac_ext"
32792 case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32798   ac_status=$?
32799   grep -v '^ *+' conftest.er1 >conftest.err
32800   rm -f conftest.er1
32801   cat conftest.err >&5
32802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803   (exit $ac_status); } >/dev/null && {
32804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32805          test ! -s conftest.err
32806        }; then
32807   cat >>confdefs.h <<\_ACEOF
32808 #define FSTYPE_GETMNT 1
32809 _ACEOF
32810  fstype=Ultrix
32811
32812 else
32813   echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32815
32816
32817 fi
32818
32819 rm -f conftest.err conftest.$ac_ext
32820 fi
32821 { echo "$as_me:$LINENO: result: $fstype" >&5
32822 echo "${ECHO_T}$fstype" >&6; }
32823
32824 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32825   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32826 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32827 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32828   echo $ECHO_N "(cached) $ECHO_C" >&6
32829 fi
32830 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32831 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32832 else
32833   # Is the header compilable?
32834 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32835 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32836 cat >conftest.$ac_ext <<_ACEOF
32837 /* confdefs.h.  */
32838 _ACEOF
32839 cat confdefs.h >>conftest.$ac_ext
32840 cat >>conftest.$ac_ext <<_ACEOF
32841 /* end confdefs.h.  */
32842 $ac_includes_default
32843 #include <sys/statvfs.h>
32844 _ACEOF
32845 rm -f conftest.$ac_objext
32846 if { (ac_try="$ac_compile"
32847 case "(($ac_try" in
32848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849   *) ac_try_echo=$ac_try;;
32850 esac
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852   (eval "$ac_compile") 2>conftest.er1
32853   ac_status=$?
32854   grep -v '^ *+' conftest.er1 >conftest.err
32855   rm -f conftest.er1
32856   cat conftest.err >&5
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); } && {
32859          test -z "$ac_c_werror_flag" ||
32860          test ! -s conftest.err
32861        } && test -s conftest.$ac_objext; then
32862   ac_header_compiler=yes
32863 else
32864   echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32866
32867         ac_header_compiler=no
32868 fi
32869
32870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32872 echo "${ECHO_T}$ac_header_compiler" >&6; }
32873
32874 # Is the header present?
32875 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32876 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32877 cat >conftest.$ac_ext <<_ACEOF
32878 /* confdefs.h.  */
32879 _ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h.  */
32883 #include <sys/statvfs.h>
32884 _ACEOF
32885 if { (ac_try="$ac_cpp conftest.$ac_ext"
32886 case "(($ac_try" in
32887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888   *) ac_try_echo=$ac_try;;
32889 esac
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32892   ac_status=$?
32893   grep -v '^ *+' conftest.er1 >conftest.err
32894   rm -f conftest.er1
32895   cat conftest.err >&5
32896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897   (exit $ac_status); } >/dev/null && {
32898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32899          test ! -s conftest.err
32900        }; then
32901   ac_header_preproc=yes
32902 else
32903   echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32905
32906   ac_header_preproc=no
32907 fi
32908
32909 rm -f conftest.err conftest.$ac_ext
32910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32911 echo "${ECHO_T}$ac_header_preproc" >&6; }
32912
32913 # So?  What about this header?
32914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32915   yes:no: )
32916     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32917 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32918     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32919 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32920     ac_header_preproc=yes
32921     ;;
32922   no:yes:* )
32923     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32924 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32925     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32926 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32927     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32928 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32929     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32930 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32931     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32932 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32933     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32934 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32935
32936     ;;
32937 esac
32938 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32939 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32940 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32941   echo $ECHO_N "(cached) $ECHO_C" >&6
32942 else
32943   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32944 fi
32945 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32946 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32947
32948 fi
32949 if test $ac_cv_header_sys_statvfs_h = yes; then
32950
32951 cat >>confdefs.h <<\_ACEOF
32952 #define HAVE_SYS_STATVFS_H 1
32953 _ACEOF
32954
32955 fi
32956
32957
32958
32959 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32960 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32961 if test "${ac_cv_type_signal+set}" = set; then
32962   echo $ECHO_N "(cached) $ECHO_C" >&6
32963 else
32964   cat >conftest.$ac_ext <<_ACEOF
32965 /* confdefs.h.  */
32966 _ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h.  */
32970 #include <sys/types.h>
32971 #include <signal.h>
32972
32973 int
32974 main ()
32975 {
32976 return *(signal (0, 0)) (0) == 1;
32977   ;
32978   return 0;
32979 }
32980 _ACEOF
32981 rm -f conftest.$ac_objext
32982 if { (ac_try="$ac_compile"
32983 case "(($ac_try" in
32984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985   *) ac_try_echo=$ac_try;;
32986 esac
32987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988   (eval "$ac_compile") 2>conftest.er1
32989   ac_status=$?
32990   grep -v '^ *+' conftest.er1 >conftest.err
32991   rm -f conftest.er1
32992   cat conftest.err >&5
32993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994   (exit $ac_status); } && {
32995          test -z "$ac_c_werror_flag" ||
32996          test ! -s conftest.err
32997        } && test -s conftest.$ac_objext; then
32998   ac_cv_type_signal=int
32999 else
33000   echo "$as_me: failed program was:" >&5
33001 sed 's/^/| /' conftest.$ac_ext >&5
33002
33003         ac_cv_type_signal=void
33004 fi
33005
33006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33007 fi
33008 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33009 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33010
33011 cat >>confdefs.h <<_ACEOF
33012 #define RETSIGTYPE $ac_cv_type_signal
33013 _ACEOF
33014
33015
33016
33017   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33018 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33019   if test "${bash_cv_signal_vintage+set}" = set; then
33020   echo $ECHO_N "(cached) $ECHO_C" >&6
33021 else
33022
33023     cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029 #include <signal.h>
33030 int
33031 main ()
33032 {
33033
33034       sigset_t ss;
33035       struct sigaction sa;
33036       sigemptyset(&ss); sigsuspend(&ss);
33037       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33038       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33039
33040   ;
33041   return 0;
33042 }
33043 _ACEOF
33044 rm -f conftest.$ac_objext conftest$ac_exeext
33045 if { (ac_try="$ac_link"
33046 case "(($ac_try" in
33047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048   *) ac_try_echo=$ac_try;;
33049 esac
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051   (eval "$ac_link") 2>conftest.er1
33052   ac_status=$?
33053   grep -v '^ *+' conftest.er1 >conftest.err
33054   rm -f conftest.er1
33055   cat conftest.err >&5
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); } && {
33058          test -z "$ac_c_werror_flag" ||
33059          test ! -s conftest.err
33060        } && test -s conftest$ac_exeext &&
33061        $as_test_x conftest$ac_exeext; then
33062   bash_cv_signal_vintage="posix"
33063 else
33064   echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33066
33067
33068       cat >conftest.$ac_ext <<_ACEOF
33069 /* confdefs.h.  */
33070 _ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h.  */
33074 #include <signal.h>
33075 int
33076 main ()
33077 {
33078
33079           int mask = sigmask(SIGINT);
33080           sigsetmask(mask); sigblock(mask); sigpause(mask);
33081
33082   ;
33083   return 0;
33084 }
33085 _ACEOF
33086 rm -f conftest.$ac_objext conftest$ac_exeext
33087 if { (ac_try="$ac_link"
33088 case "(($ac_try" in
33089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090   *) ac_try_echo=$ac_try;;
33091 esac
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093   (eval "$ac_link") 2>conftest.er1
33094   ac_status=$?
33095   grep -v '^ *+' conftest.er1 >conftest.err
33096   rm -f conftest.er1
33097   cat conftest.err >&5
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); } && {
33100          test -z "$ac_c_werror_flag" ||
33101          test ! -s conftest.err
33102        } && test -s conftest$ac_exeext &&
33103        $as_test_x conftest$ac_exeext; then
33104   bash_cv_signal_vintage="4.2bsd"
33105 else
33106   echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33108
33109
33110         cat >conftest.$ac_ext <<_ACEOF
33111 /* confdefs.h.  */
33112 _ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h.  */
33116
33117           #include <signal.h>
33118           RETSIGTYPE foo() { }
33119 int
33120 main ()
33121 {
33122
33123                   int mask = sigmask(SIGINT);
33124                   sigset(SIGINT, foo); sigrelse(SIGINT);
33125                   sighold(SIGINT); sigpause(SIGINT);
33126
33127   ;
33128   return 0;
33129 }
33130 _ACEOF
33131 rm -f conftest.$ac_objext conftest$ac_exeext
33132 if { (ac_try="$ac_link"
33133 case "(($ac_try" in
33134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135   *) ac_try_echo=$ac_try;;
33136 esac
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138   (eval "$ac_link") 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } && {
33145          test -z "$ac_c_werror_flag" ||
33146          test ! -s conftest.err
33147        } && test -s conftest$ac_exeext &&
33148        $as_test_x conftest$ac_exeext; then
33149   bash_cv_signal_vintage="svr3"
33150 else
33151   echo "$as_me: failed program was:" >&5
33152 sed 's/^/| /' conftest.$ac_ext >&5
33153
33154         bash_cv_signal_vintage="v7"
33155
33156 fi
33157
33158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33159       conftest$ac_exeext conftest.$ac_ext
33160
33161 fi
33162
33163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33164       conftest$ac_exeext conftest.$ac_ext
33165
33166 fi
33167
33168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33169       conftest$ac_exeext conftest.$ac_ext
33170
33171 fi
33172
33173   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33174 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33175   if test "$bash_cv_signal_vintage" = "posix"; then
33176     cat >>confdefs.h <<\_ACEOF
33177 #define HAVE_POSIX_SIGNALS 1
33178 _ACEOF
33179
33180   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33181     cat >>confdefs.h <<\_ACEOF
33182 #define HAVE_BSD_SIGNALS 1
33183 _ACEOF
33184
33185   elif test "$bash_cv_signal_vintage" = "svr3"; then
33186     cat >>confdefs.h <<\_ACEOF
33187 #define HAVE_USG_SIGHOLD 1
33188 _ACEOF
33189
33190   fi
33191
33192 { echo "$as_me:$LINENO: checking for mode_t" >&5
33193 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33194 if test "${ac_cv_type_mode_t+set}" = set; then
33195   echo $ECHO_N "(cached) $ECHO_C" >&6
33196 else
33197   cat >conftest.$ac_ext <<_ACEOF
33198 /* confdefs.h.  */
33199 _ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h.  */
33203 $ac_includes_default
33204 typedef mode_t ac__type_new_;
33205 int
33206 main ()
33207 {
33208 if ((ac__type_new_ *) 0)
33209   return 0;
33210 if (sizeof (ac__type_new_))
33211   return 0;
33212   ;
33213   return 0;
33214 }
33215 _ACEOF
33216 rm -f conftest.$ac_objext
33217 if { (ac_try="$ac_compile"
33218 case "(($ac_try" in
33219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220   *) ac_try_echo=$ac_try;;
33221 esac
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223   (eval "$ac_compile") 2>conftest.er1
33224   ac_status=$?
33225   grep -v '^ *+' conftest.er1 >conftest.err
33226   rm -f conftest.er1
33227   cat conftest.err >&5
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); } && {
33230          test -z "$ac_c_werror_flag" ||
33231          test ! -s conftest.err
33232        } && test -s conftest.$ac_objext; then
33233   ac_cv_type_mode_t=yes
33234 else
33235   echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33237
33238         ac_cv_type_mode_t=no
33239 fi
33240
33241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 fi
33243 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33244 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33245 if test $ac_cv_type_mode_t = yes; then
33246   :
33247 else
33248
33249 cat >>confdefs.h <<_ACEOF
33250 #define mode_t int
33251 _ACEOF
33252
33253 fi
33254
33255 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33256 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33257 if test "${ac_cv_type_uid_t+set}" = set; then
33258   echo $ECHO_N "(cached) $ECHO_C" >&6
33259 else
33260   cat >conftest.$ac_ext <<_ACEOF
33261 /* confdefs.h.  */
33262 _ACEOF
33263 cat confdefs.h >>conftest.$ac_ext
33264 cat >>conftest.$ac_ext <<_ACEOF
33265 /* end confdefs.h.  */
33266 #include <sys/types.h>
33267
33268 _ACEOF
33269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33270   $EGREP "uid_t" >/dev/null 2>&1; then
33271   ac_cv_type_uid_t=yes
33272 else
33273   ac_cv_type_uid_t=no
33274 fi
33275 rm -f conftest*
33276
33277 fi
33278 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33279 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33280 if test $ac_cv_type_uid_t = no; then
33281
33282 cat >>confdefs.h <<\_ACEOF
33283 #define uid_t int
33284 _ACEOF
33285
33286
33287 cat >>confdefs.h <<\_ACEOF
33288 #define gid_t int
33289 _ACEOF
33290
33291 fi
33292
33293 { echo "$as_me:$LINENO: checking for size_t" >&5
33294 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33295 if test "${ac_cv_type_size_t+set}" = set; then
33296   echo $ECHO_N "(cached) $ECHO_C" >&6
33297 else
33298   cat >conftest.$ac_ext <<_ACEOF
33299 /* confdefs.h.  */
33300 _ACEOF
33301 cat confdefs.h >>conftest.$ac_ext
33302 cat >>conftest.$ac_ext <<_ACEOF
33303 /* end confdefs.h.  */
33304 $ac_includes_default
33305 typedef size_t ac__type_new_;
33306 int
33307 main ()
33308 {
33309 if ((ac__type_new_ *) 0)
33310   return 0;
33311 if (sizeof (ac__type_new_))
33312   return 0;
33313   ;
33314   return 0;
33315 }
33316 _ACEOF
33317 rm -f conftest.$ac_objext
33318 if { (ac_try="$ac_compile"
33319 case "(($ac_try" in
33320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33321   *) ac_try_echo=$ac_try;;
33322 esac
33323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33324   (eval "$ac_compile") 2>conftest.er1
33325   ac_status=$?
33326   grep -v '^ *+' conftest.er1 >conftest.err
33327   rm -f conftest.er1
33328   cat conftest.err >&5
33329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330   (exit $ac_status); } && {
33331          test -z "$ac_c_werror_flag" ||
33332          test ! -s conftest.err
33333        } && test -s conftest.$ac_objext; then
33334   ac_cv_type_size_t=yes
33335 else
33336   echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.$ac_ext >&5
33338
33339         ac_cv_type_size_t=no
33340 fi
33341
33342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33343 fi
33344 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33345 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33346 if test $ac_cv_type_size_t = yes; then
33347   :
33348 else
33349
33350 cat >>confdefs.h <<_ACEOF
33351 #define size_t unsigned int
33352 _ACEOF
33353
33354 fi
33355
33356 { echo "$as_me:$LINENO: checking for pid_t" >&5
33357 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33358 if test "${ac_cv_type_pid_t+set}" = set; then
33359   echo $ECHO_N "(cached) $ECHO_C" >&6
33360 else
33361   cat >conftest.$ac_ext <<_ACEOF
33362 /* confdefs.h.  */
33363 _ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h.  */
33367 $ac_includes_default
33368 typedef pid_t ac__type_new_;
33369 int
33370 main ()
33371 {
33372 if ((ac__type_new_ *) 0)
33373   return 0;
33374 if (sizeof (ac__type_new_))
33375   return 0;
33376   ;
33377   return 0;
33378 }
33379 _ACEOF
33380 rm -f conftest.$ac_objext
33381 if { (ac_try="$ac_compile"
33382 case "(($ac_try" in
33383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384   *) ac_try_echo=$ac_try;;
33385 esac
33386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33387   (eval "$ac_compile") 2>conftest.er1
33388   ac_status=$?
33389   grep -v '^ *+' conftest.er1 >conftest.err
33390   rm -f conftest.er1
33391   cat conftest.err >&5
33392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393   (exit $ac_status); } && {
33394          test -z "$ac_c_werror_flag" ||
33395          test ! -s conftest.err
33396        } && test -s conftest.$ac_objext; then
33397   ac_cv_type_pid_t=yes
33398 else
33399   echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33401
33402         ac_cv_type_pid_t=no
33403 fi
33404
33405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33406 fi
33407 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33408 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33409 if test $ac_cv_type_pid_t = yes; then
33410   :
33411 else
33412
33413 cat >>confdefs.h <<_ACEOF
33414 #define pid_t int
33415 _ACEOF
33416
33417 fi
33418
33419 { echo "$as_me:$LINENO: checking for off_t" >&5
33420 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33421 if test "${ac_cv_type_off_t+set}" = set; then
33422   echo $ECHO_N "(cached) $ECHO_C" >&6
33423 else
33424   cat >conftest.$ac_ext <<_ACEOF
33425 /* confdefs.h.  */
33426 _ACEOF
33427 cat confdefs.h >>conftest.$ac_ext
33428 cat >>conftest.$ac_ext <<_ACEOF
33429 /* end confdefs.h.  */
33430 $ac_includes_default
33431 typedef off_t ac__type_new_;
33432 int
33433 main ()
33434 {
33435 if ((ac__type_new_ *) 0)
33436   return 0;
33437 if (sizeof (ac__type_new_))
33438   return 0;
33439   ;
33440   return 0;
33441 }
33442 _ACEOF
33443 rm -f conftest.$ac_objext
33444 if { (ac_try="$ac_compile"
33445 case "(($ac_try" in
33446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447   *) ac_try_echo=$ac_try;;
33448 esac
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450   (eval "$ac_compile") 2>conftest.er1
33451   ac_status=$?
33452   grep -v '^ *+' conftest.er1 >conftest.err
33453   rm -f conftest.er1
33454   cat conftest.err >&5
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); } && {
33457          test -z "$ac_c_werror_flag" ||
33458          test ! -s conftest.err
33459        } && test -s conftest.$ac_objext; then
33460   ac_cv_type_off_t=yes
33461 else
33462   echo "$as_me: failed program was:" >&5
33463 sed 's/^/| /' conftest.$ac_ext >&5
33464
33465         ac_cv_type_off_t=no
33466 fi
33467
33468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33469 fi
33470 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33471 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33472 if test $ac_cv_type_off_t = yes; then
33473   :
33474 else
33475
33476 cat >>confdefs.h <<_ACEOF
33477 #define off_t long int
33478 _ACEOF
33479
33480 fi
33481
33482
33483   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33484 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33485 if test "${ac_cv_type_intptr_t+set}" = set; then
33486   echo $ECHO_N "(cached) $ECHO_C" >&6
33487 else
33488   cat >conftest.$ac_ext <<_ACEOF
33489 /* confdefs.h.  */
33490 _ACEOF
33491 cat confdefs.h >>conftest.$ac_ext
33492 cat >>conftest.$ac_ext <<_ACEOF
33493 /* end confdefs.h.  */
33494 $ac_includes_default
33495 typedef intptr_t ac__type_new_;
33496 int
33497 main ()
33498 {
33499 if ((ac__type_new_ *) 0)
33500   return 0;
33501 if (sizeof (ac__type_new_))
33502   return 0;
33503   ;
33504   return 0;
33505 }
33506 _ACEOF
33507 rm -f conftest.$ac_objext
33508 if { (ac_try="$ac_compile"
33509 case "(($ac_try" in
33510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33511   *) ac_try_echo=$ac_try;;
33512 esac
33513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33514   (eval "$ac_compile") 2>conftest.er1
33515   ac_status=$?
33516   grep -v '^ *+' conftest.er1 >conftest.err
33517   rm -f conftest.er1
33518   cat conftest.err >&5
33519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520   (exit $ac_status); } && {
33521          test -z "$ac_c_werror_flag" ||
33522          test ! -s conftest.err
33523        } && test -s conftest.$ac_objext; then
33524   ac_cv_type_intptr_t=yes
33525 else
33526   echo "$as_me: failed program was:" >&5
33527 sed 's/^/| /' conftest.$ac_ext >&5
33528
33529         ac_cv_type_intptr_t=no
33530 fi
33531
33532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33533 fi
33534 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33535 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33536 if test $ac_cv_type_intptr_t = yes; then
33537
33538 cat >>confdefs.h <<\_ACEOF
33539 #define HAVE_INTPTR_T 1
33540 _ACEOF
33541
33542 else
33543   for ac_type in 'int' 'long int' 'long long int'; do
33544        cat >conftest.$ac_ext <<_ACEOF
33545 /* confdefs.h.  */
33546 _ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h.  */
33550 $ac_includes_default
33551 int
33552 main ()
33553 {
33554 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33555 test_array [0] = 0
33556
33557   ;
33558   return 0;
33559 }
33560 _ACEOF
33561 rm -f conftest.$ac_objext
33562 if { (ac_try="$ac_compile"
33563 case "(($ac_try" in
33564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565   *) ac_try_echo=$ac_try;;
33566 esac
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568   (eval "$ac_compile") 2>conftest.er1
33569   ac_status=$?
33570   grep -v '^ *+' conftest.er1 >conftest.err
33571   rm -f conftest.er1
33572   cat conftest.err >&5
33573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574   (exit $ac_status); } && {
33575          test -z "$ac_c_werror_flag" ||
33576          test ! -s conftest.err
33577        } && test -s conftest.$ac_objext; then
33578
33579 cat >>confdefs.h <<_ACEOF
33580 #define intptr_t $ac_type
33581 _ACEOF
33582
33583           ac_type=
33584 else
33585   echo "$as_me: failed program was:" >&5
33586 sed 's/^/| /' conftest.$ac_ext >&5
33587
33588
33589 fi
33590
33591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33592        test -z "$ac_type" && break
33593      done
33594 fi
33595
33596
33597
33598   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33599 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33600 if test "${ac_cv_type_uintptr_t+set}" = set; then
33601   echo $ECHO_N "(cached) $ECHO_C" >&6
33602 else
33603   cat >conftest.$ac_ext <<_ACEOF
33604 /* confdefs.h.  */
33605 _ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h.  */
33609 $ac_includes_default
33610 typedef uintptr_t ac__type_new_;
33611 int
33612 main ()
33613 {
33614 if ((ac__type_new_ *) 0)
33615   return 0;
33616 if (sizeof (ac__type_new_))
33617   return 0;
33618   ;
33619   return 0;
33620 }
33621 _ACEOF
33622 rm -f conftest.$ac_objext
33623 if { (ac_try="$ac_compile"
33624 case "(($ac_try" in
33625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626   *) ac_try_echo=$ac_try;;
33627 esac
33628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629   (eval "$ac_compile") 2>conftest.er1
33630   ac_status=$?
33631   grep -v '^ *+' conftest.er1 >conftest.err
33632   rm -f conftest.er1
33633   cat conftest.err >&5
33634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635   (exit $ac_status); } && {
33636          test -z "$ac_c_werror_flag" ||
33637          test ! -s conftest.err
33638        } && test -s conftest.$ac_objext; then
33639   ac_cv_type_uintptr_t=yes
33640 else
33641   echo "$as_me: failed program was:" >&5
33642 sed 's/^/| /' conftest.$ac_ext >&5
33643
33644         ac_cv_type_uintptr_t=no
33645 fi
33646
33647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33648 fi
33649 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33650 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33651 if test $ac_cv_type_uintptr_t = yes; then
33652
33653 cat >>confdefs.h <<\_ACEOF
33654 #define HAVE_UINTPTR_T 1
33655 _ACEOF
33656
33657 else
33658   for ac_type in 'unsigned int' 'unsigned long int' \
33659         'unsigned long long int'; do
33660        cat >conftest.$ac_ext <<_ACEOF
33661 /* confdefs.h.  */
33662 _ACEOF
33663 cat confdefs.h >>conftest.$ac_ext
33664 cat >>conftest.$ac_ext <<_ACEOF
33665 /* end confdefs.h.  */
33666 $ac_includes_default
33667 int
33668 main ()
33669 {
33670 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33671 test_array [0] = 0
33672
33673   ;
33674   return 0;
33675 }
33676 _ACEOF
33677 rm -f conftest.$ac_objext
33678 if { (ac_try="$ac_compile"
33679 case "(($ac_try" in
33680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33681   *) ac_try_echo=$ac_try;;
33682 esac
33683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33684   (eval "$ac_compile") 2>conftest.er1
33685   ac_status=$?
33686   grep -v '^ *+' conftest.er1 >conftest.err
33687   rm -f conftest.er1
33688   cat conftest.err >&5
33689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690   (exit $ac_status); } && {
33691          test -z "$ac_c_werror_flag" ||
33692          test ! -s conftest.err
33693        } && test -s conftest.$ac_objext; then
33694
33695 cat >>confdefs.h <<_ACEOF
33696 #define uintptr_t $ac_type
33697 _ACEOF
33698
33699           ac_type=
33700 else
33701   echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33703
33704
33705 fi
33706
33707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33708        test -z "$ac_type" && break
33709      done
33710 fi
33711
33712
33713 { echo "$as_me:$LINENO: checking for ino_t" >&5
33714 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33715 if test "${ac_cv_type_ino_t+set}" = set; then
33716   echo $ECHO_N "(cached) $ECHO_C" >&6
33717 else
33718   cat >conftest.$ac_ext <<_ACEOF
33719 /* confdefs.h.  */
33720 _ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h.  */
33724 $ac_includes_default
33725 typedef ino_t ac__type_new_;
33726 int
33727 main ()
33728 {
33729 if ((ac__type_new_ *) 0)
33730   return 0;
33731 if (sizeof (ac__type_new_))
33732   return 0;
33733   ;
33734   return 0;
33735 }
33736 _ACEOF
33737 rm -f conftest.$ac_objext
33738 if { (ac_try="$ac_compile"
33739 case "(($ac_try" in
33740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33741   *) ac_try_echo=$ac_try;;
33742 esac
33743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33744   (eval "$ac_compile") 2>conftest.er1
33745   ac_status=$?
33746   grep -v '^ *+' conftest.er1 >conftest.err
33747   rm -f conftest.er1
33748   cat conftest.err >&5
33749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); } && {
33751          test -z "$ac_c_werror_flag" ||
33752          test ! -s conftest.err
33753        } && test -s conftest.$ac_objext; then
33754   ac_cv_type_ino_t=yes
33755 else
33756   echo "$as_me: failed program was:" >&5
33757 sed 's/^/| /' conftest.$ac_ext >&5
33758
33759         ac_cv_type_ino_t=no
33760 fi
33761
33762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33763 fi
33764 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33765 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33766 if test $ac_cv_type_ino_t = yes; then
33767   :
33768 else
33769
33770 cat >>confdefs.h <<_ACEOF
33771 #define ino_t unsigned long
33772 _ACEOF
33773
33774 fi
33775
33776 { echo "$as_me:$LINENO: checking for dev_t" >&5
33777 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33778 if test "${ac_cv_type_dev_t+set}" = set; then
33779   echo $ECHO_N "(cached) $ECHO_C" >&6
33780 else
33781   cat >conftest.$ac_ext <<_ACEOF
33782 /* confdefs.h.  */
33783 _ACEOF
33784 cat confdefs.h >>conftest.$ac_ext
33785 cat >>conftest.$ac_ext <<_ACEOF
33786 /* end confdefs.h.  */
33787 $ac_includes_default
33788 typedef dev_t ac__type_new_;
33789 int
33790 main ()
33791 {
33792 if ((ac__type_new_ *) 0)
33793   return 0;
33794 if (sizeof (ac__type_new_))
33795   return 0;
33796   ;
33797   return 0;
33798 }
33799 _ACEOF
33800 rm -f conftest.$ac_objext
33801 if { (ac_try="$ac_compile"
33802 case "(($ac_try" in
33803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33804   *) ac_try_echo=$ac_try;;
33805 esac
33806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33807   (eval "$ac_compile") 2>conftest.er1
33808   ac_status=$?
33809   grep -v '^ *+' conftest.er1 >conftest.err
33810   rm -f conftest.er1
33811   cat conftest.err >&5
33812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813   (exit $ac_status); } && {
33814          test -z "$ac_c_werror_flag" ||
33815          test ! -s conftest.err
33816        } && test -s conftest.$ac_objext; then
33817   ac_cv_type_dev_t=yes
33818 else
33819   echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33821
33822         ac_cv_type_dev_t=no
33823 fi
33824
33825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33826 fi
33827 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33828 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33829 if test $ac_cv_type_dev_t = yes; then
33830   :
33831 else
33832
33833 cat >>confdefs.h <<_ACEOF
33834 #define dev_t unsigned long
33835 _ACEOF
33836
33837 fi
33838
33839 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33840 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33841 if test "${ac_cv_type_daddr_t+set}" = set; then
33842   echo $ECHO_N "(cached) $ECHO_C" >&6
33843 else
33844   cat >conftest.$ac_ext <<_ACEOF
33845 /* confdefs.h.  */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h.  */
33850 $ac_includes_default
33851 typedef daddr_t ac__type_new_;
33852 int
33853 main ()
33854 {
33855 if ((ac__type_new_ *) 0)
33856   return 0;
33857 if (sizeof (ac__type_new_))
33858   return 0;
33859   ;
33860   return 0;
33861 }
33862 _ACEOF
33863 rm -f conftest.$ac_objext
33864 if { (ac_try="$ac_compile"
33865 case "(($ac_try" in
33866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33867   *) ac_try_echo=$ac_try;;
33868 esac
33869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33870   (eval "$ac_compile") 2>conftest.er1
33871   ac_status=$?
33872   grep -v '^ *+' conftest.er1 >conftest.err
33873   rm -f conftest.er1
33874   cat conftest.err >&5
33875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876   (exit $ac_status); } && {
33877          test -z "$ac_c_werror_flag" ||
33878          test ! -s conftest.err
33879        } && test -s conftest.$ac_objext; then
33880   ac_cv_type_daddr_t=yes
33881 else
33882   echo "$as_me: failed program was:" >&5
33883 sed 's/^/| /' conftest.$ac_ext >&5
33884
33885         ac_cv_type_daddr_t=no
33886 fi
33887
33888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33889 fi
33890 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33891 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33892 if test $ac_cv_type_daddr_t = yes; then
33893   :
33894 else
33895
33896 cat >>confdefs.h <<_ACEOF
33897 #define daddr_t long
33898 _ACEOF
33899
33900 fi
33901
33902 { echo "$as_me:$LINENO: checking for major_t" >&5
33903 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33904 if test "${ac_cv_type_major_t+set}" = set; then
33905   echo $ECHO_N "(cached) $ECHO_C" >&6
33906 else
33907   cat >conftest.$ac_ext <<_ACEOF
33908 /* confdefs.h.  */
33909 _ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h.  */
33913 $ac_includes_default
33914 typedef major_t ac__type_new_;
33915 int
33916 main ()
33917 {
33918 if ((ac__type_new_ *) 0)
33919   return 0;
33920 if (sizeof (ac__type_new_))
33921   return 0;
33922   ;
33923   return 0;
33924 }
33925 _ACEOF
33926 rm -f conftest.$ac_objext
33927 if { (ac_try="$ac_compile"
33928 case "(($ac_try" in
33929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930   *) ac_try_echo=$ac_try;;
33931 esac
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933   (eval "$ac_compile") 2>conftest.er1
33934   ac_status=$?
33935   grep -v '^ *+' conftest.er1 >conftest.err
33936   rm -f conftest.er1
33937   cat conftest.err >&5
33938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939   (exit $ac_status); } && {
33940          test -z "$ac_c_werror_flag" ||
33941          test ! -s conftest.err
33942        } && test -s conftest.$ac_objext; then
33943   ac_cv_type_major_t=yes
33944 else
33945   echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33947
33948         ac_cv_type_major_t=no
33949 fi
33950
33951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33952 fi
33953 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33954 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33955 if test $ac_cv_type_major_t = yes; then
33956   :
33957 else
33958
33959 cat >>confdefs.h <<_ACEOF
33960 #define major_t int
33961 _ACEOF
33962
33963 fi
33964
33965 { echo "$as_me:$LINENO: checking for minor_t" >&5
33966 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33967 if test "${ac_cv_type_minor_t+set}" = set; then
33968   echo $ECHO_N "(cached) $ECHO_C" >&6
33969 else
33970   cat >conftest.$ac_ext <<_ACEOF
33971 /* confdefs.h.  */
33972 _ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h.  */
33976 $ac_includes_default
33977 typedef minor_t ac__type_new_;
33978 int
33979 main ()
33980 {
33981 if ((ac__type_new_ *) 0)
33982   return 0;
33983 if (sizeof (ac__type_new_))
33984   return 0;
33985   ;
33986   return 0;
33987 }
33988 _ACEOF
33989 rm -f conftest.$ac_objext
33990 if { (ac_try="$ac_compile"
33991 case "(($ac_try" in
33992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993   *) ac_try_echo=$ac_try;;
33994 esac
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996   (eval "$ac_compile") 2>conftest.er1
33997   ac_status=$?
33998   grep -v '^ *+' conftest.er1 >conftest.err
33999   rm -f conftest.er1
34000   cat conftest.err >&5
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); } && {
34003          test -z "$ac_c_werror_flag" ||
34004          test ! -s conftest.err
34005        } && test -s conftest.$ac_objext; then
34006   ac_cv_type_minor_t=yes
34007 else
34008   echo "$as_me: failed program was:" >&5
34009 sed 's/^/| /' conftest.$ac_ext >&5
34010
34011         ac_cv_type_minor_t=no
34012 fi
34013
34014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34015 fi
34016 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34017 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34018 if test $ac_cv_type_minor_t = yes; then
34019   :
34020 else
34021
34022 cat >>confdefs.h <<_ACEOF
34023 #define minor_t int
34024 _ACEOF
34025
34026 fi
34027
34028 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34029 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34030 if test "${ac_cv_type_ssize_t+set}" = set; then
34031   echo $ECHO_N "(cached) $ECHO_C" >&6
34032 else
34033   cat >conftest.$ac_ext <<_ACEOF
34034 /* confdefs.h.  */
34035 _ACEOF
34036 cat confdefs.h >>conftest.$ac_ext
34037 cat >>conftest.$ac_ext <<_ACEOF
34038 /* end confdefs.h.  */
34039 $ac_includes_default
34040 typedef ssize_t ac__type_new_;
34041 int
34042 main ()
34043 {
34044 if ((ac__type_new_ *) 0)
34045   return 0;
34046 if (sizeof (ac__type_new_))
34047   return 0;
34048   ;
34049   return 0;
34050 }
34051 _ACEOF
34052 rm -f conftest.$ac_objext
34053 if { (ac_try="$ac_compile"
34054 case "(($ac_try" in
34055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34056   *) ac_try_echo=$ac_try;;
34057 esac
34058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34059   (eval "$ac_compile") 2>conftest.er1
34060   ac_status=$?
34061   grep -v '^ *+' conftest.er1 >conftest.err
34062   rm -f conftest.er1
34063   cat conftest.err >&5
34064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065   (exit $ac_status); } && {
34066          test -z "$ac_c_werror_flag" ||
34067          test ! -s conftest.err
34068        } && test -s conftest.$ac_objext; then
34069   ac_cv_type_ssize_t=yes
34070 else
34071   echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34073
34074         ac_cv_type_ssize_t=no
34075 fi
34076
34077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34078 fi
34079 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34080 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34081 if test $ac_cv_type_ssize_t = yes; then
34082   :
34083 else
34084
34085 cat >>confdefs.h <<_ACEOF
34086 #define ssize_t int
34087 _ACEOF
34088
34089 fi
34090
34091 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34092 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34093 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34094   echo $ECHO_N "(cached) $ECHO_C" >&6
34095 else
34096   cat >conftest.$ac_ext <<_ACEOF
34097 /* confdefs.h.  */
34098 _ACEOF
34099 cat confdefs.h >>conftest.$ac_ext
34100 cat >>conftest.$ac_ext <<_ACEOF
34101 /* end confdefs.h.  */
34102 $ac_includes_default
34103 int
34104 main ()
34105 {
34106 static struct stat ac_aggr;
34107 if (ac_aggr.st_blocks)
34108 return 0;
34109   ;
34110   return 0;
34111 }
34112 _ACEOF
34113 rm -f conftest.$ac_objext
34114 if { (ac_try="$ac_compile"
34115 case "(($ac_try" in
34116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34117   *) ac_try_echo=$ac_try;;
34118 esac
34119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34120   (eval "$ac_compile") 2>conftest.er1
34121   ac_status=$?
34122   grep -v '^ *+' conftest.er1 >conftest.err
34123   rm -f conftest.er1
34124   cat conftest.err >&5
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); } && {
34127          test -z "$ac_c_werror_flag" ||
34128          test ! -s conftest.err
34129        } && test -s conftest.$ac_objext; then
34130   ac_cv_member_struct_stat_st_blocks=yes
34131 else
34132   echo "$as_me: failed program was:" >&5
34133 sed 's/^/| /' conftest.$ac_ext >&5
34134
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 int
34143 main ()
34144 {
34145 static struct stat ac_aggr;
34146 if (sizeof ac_aggr.st_blocks)
34147 return 0;
34148   ;
34149   return 0;
34150 }
34151 _ACEOF
34152 rm -f conftest.$ac_objext
34153 if { (ac_try="$ac_compile"
34154 case "(($ac_try" in
34155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156   *) ac_try_echo=$ac_try;;
34157 esac
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159   (eval "$ac_compile") 2>conftest.er1
34160   ac_status=$?
34161   grep -v '^ *+' conftest.er1 >conftest.err
34162   rm -f conftest.er1
34163   cat conftest.err >&5
34164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165   (exit $ac_status); } && {
34166          test -z "$ac_c_werror_flag" ||
34167          test ! -s conftest.err
34168        } && test -s conftest.$ac_objext; then
34169   ac_cv_member_struct_stat_st_blocks=yes
34170 else
34171   echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34173
34174         ac_cv_member_struct_stat_st_blocks=no
34175 fi
34176
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 fi
34179
34180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34181 fi
34182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34183 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34184 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34185
34186 cat >>confdefs.h <<_ACEOF
34187 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34188 _ACEOF
34189
34190
34191 cat >>confdefs.h <<\_ACEOF
34192 #define HAVE_ST_BLOCKS 1
34193 _ACEOF
34194
34195 else
34196   case " $LIBOBJS " in
34197   *" fileblocks.$ac_objext "* ) ;;
34198   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34199  ;;
34200 esac
34201
34202 fi
34203
34204
34205 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34206 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34207 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34208   echo $ECHO_N "(cached) $ECHO_C" >&6
34209 else
34210   cat >conftest.$ac_ext <<_ACEOF
34211 /* confdefs.h.  */
34212 _ACEOF
34213 cat confdefs.h >>conftest.$ac_ext
34214 cat >>conftest.$ac_ext <<_ACEOF
34215 /* end confdefs.h.  */
34216 $ac_includes_default
34217 int
34218 main ()
34219 {
34220 static struct stat ac_aggr;
34221 if (ac_aggr.st_rdev)
34222 return 0;
34223   ;
34224   return 0;
34225 }
34226 _ACEOF
34227 rm -f conftest.$ac_objext
34228 if { (ac_try="$ac_compile"
34229 case "(($ac_try" in
34230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231   *) ac_try_echo=$ac_try;;
34232 esac
34233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234   (eval "$ac_compile") 2>conftest.er1
34235   ac_status=$?
34236   grep -v '^ *+' conftest.er1 >conftest.err
34237   rm -f conftest.er1
34238   cat conftest.err >&5
34239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240   (exit $ac_status); } && {
34241          test -z "$ac_c_werror_flag" ||
34242          test ! -s conftest.err
34243        } && test -s conftest.$ac_objext; then
34244   ac_cv_member_struct_stat_st_rdev=yes
34245 else
34246   echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34248
34249         cat >conftest.$ac_ext <<_ACEOF
34250 /* confdefs.h.  */
34251 _ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h.  */
34255 $ac_includes_default
34256 int
34257 main ()
34258 {
34259 static struct stat ac_aggr;
34260 if (sizeof ac_aggr.st_rdev)
34261 return 0;
34262   ;
34263   return 0;
34264 }
34265 _ACEOF
34266 rm -f conftest.$ac_objext
34267 if { (ac_try="$ac_compile"
34268 case "(($ac_try" in
34269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270   *) ac_try_echo=$ac_try;;
34271 esac
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273   (eval "$ac_compile") 2>conftest.er1
34274   ac_status=$?
34275   grep -v '^ *+' conftest.er1 >conftest.err
34276   rm -f conftest.er1
34277   cat conftest.err >&5
34278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279   (exit $ac_status); } && {
34280          test -z "$ac_c_werror_flag" ||
34281          test ! -s conftest.err
34282        } && test -s conftest.$ac_objext; then
34283   ac_cv_member_struct_stat_st_rdev=yes
34284 else
34285   echo "$as_me: failed program was:" >&5
34286 sed 's/^/| /' conftest.$ac_ext >&5
34287
34288         ac_cv_member_struct_stat_st_rdev=no
34289 fi
34290
34291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34292 fi
34293
34294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34295 fi
34296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34297 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34298 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34299
34300 cat >>confdefs.h <<_ACEOF
34301 #define HAVE_STRUCT_STAT_ST_RDEV 1
34302 _ACEOF
34303
34304
34305 cat >>confdefs.h <<\_ACEOF
34306 #define HAVE_ST_RDEV 1
34307 _ACEOF
34308
34309 fi
34310
34311
34312 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34313 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34314 if test "${ac_cv_struct_tm+set}" = set; then
34315   echo $ECHO_N "(cached) $ECHO_C" >&6
34316 else
34317   cat >conftest.$ac_ext <<_ACEOF
34318 /* confdefs.h.  */
34319 _ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h.  */
34323 #include <sys/types.h>
34324 #include <time.h>
34325
34326 int
34327 main ()
34328 {
34329 struct tm tm;
34330                                      int *p = &tm.tm_sec;
34331                                      return !p;
34332   ;
34333   return 0;
34334 }
34335 _ACEOF
34336 rm -f conftest.$ac_objext
34337 if { (ac_try="$ac_compile"
34338 case "(($ac_try" in
34339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34340   *) ac_try_echo=$ac_try;;
34341 esac
34342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34343   (eval "$ac_compile") 2>conftest.er1
34344   ac_status=$?
34345   grep -v '^ *+' conftest.er1 >conftest.err
34346   rm -f conftest.er1
34347   cat conftest.err >&5
34348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349   (exit $ac_status); } && {
34350          test -z "$ac_c_werror_flag" ||
34351          test ! -s conftest.err
34352        } && test -s conftest.$ac_objext; then
34353   ac_cv_struct_tm=time.h
34354 else
34355   echo "$as_me: failed program was:" >&5
34356 sed 's/^/| /' conftest.$ac_ext >&5
34357
34358         ac_cv_struct_tm=sys/time.h
34359 fi
34360
34361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34362 fi
34363 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34364 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34365 if test $ac_cv_struct_tm = sys/time.h; then
34366
34367 cat >>confdefs.h <<\_ACEOF
34368 #define TM_IN_SYS_TIME 1
34369 _ACEOF
34370
34371 fi
34372
34373 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34374 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34375 if test "${ac_cv_c_const+set}" = set; then
34376   echo $ECHO_N "(cached) $ECHO_C" >&6
34377 else
34378   cat >conftest.$ac_ext <<_ACEOF
34379 /* confdefs.h.  */
34380 _ACEOF
34381 cat confdefs.h >>conftest.$ac_ext
34382 cat >>conftest.$ac_ext <<_ACEOF
34383 /* end confdefs.h.  */
34384
34385 int
34386 main ()
34387 {
34388 /* FIXME: Include the comments suggested by Paul. */
34389 #ifndef __cplusplus
34390   /* Ultrix mips cc rejects this.  */
34391   typedef int charset[2];
34392   const charset cs;
34393   /* SunOS 4.1.1 cc rejects this.  */
34394   char const *const *pcpcc;
34395   char **ppc;
34396   /* NEC SVR4.0.2 mips cc rejects this.  */
34397   struct point {int x, y;};
34398   static struct point const zero = {0,0};
34399   /* AIX XL C 1.02.0.0 rejects this.
34400      It does not let you subtract one const X* pointer from another in
34401      an arm of an if-expression whose if-part is not a constant
34402      expression */
34403   const char *g = "string";
34404   pcpcc = &g + (g ? g-g : 0);
34405   /* HPUX 7.0 cc rejects these. */
34406   ++pcpcc;
34407   ppc = (char**) pcpcc;
34408   pcpcc = (char const *const *) ppc;
34409   { /* SCO 3.2v4 cc rejects this.  */
34410     char *t;
34411     char const *s = 0 ? (char *) 0 : (char const *) 0;
34412
34413     *t++ = 0;
34414     if (s) return 0;
34415   }
34416   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34417     int x[] = {25, 17};
34418     const int *foo = &x[0];
34419     ++foo;
34420   }
34421   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34422     typedef const int *iptr;
34423     iptr p = 0;
34424     ++p;
34425   }
34426   { /* AIX XL C 1.02.0.0 rejects this saying
34427        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34428     struct s { int j; const int *ap[3]; };
34429     struct s *b; b->j = 5;
34430   }
34431   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34432     const int foo = 10;
34433     if (!foo) return 0;
34434   }
34435   return !cs[0] && !zero.x;
34436 #endif
34437
34438   ;
34439   return 0;
34440 }
34441 _ACEOF
34442 rm -f conftest.$ac_objext
34443 if { (ac_try="$ac_compile"
34444 case "(($ac_try" in
34445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34446   *) ac_try_echo=$ac_try;;
34447 esac
34448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34449   (eval "$ac_compile") 2>conftest.er1
34450   ac_status=$?
34451   grep -v '^ *+' conftest.er1 >conftest.err
34452   rm -f conftest.er1
34453   cat conftest.err >&5
34454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455   (exit $ac_status); } && {
34456          test -z "$ac_c_werror_flag" ||
34457          test ! -s conftest.err
34458        } && test -s conftest.$ac_objext; then
34459   ac_cv_c_const=yes
34460 else
34461   echo "$as_me: failed program was:" >&5
34462 sed 's/^/| /' conftest.$ac_ext >&5
34463
34464         ac_cv_c_const=no
34465 fi
34466
34467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34468 fi
34469 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34470 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34471 if test $ac_cv_c_const = no; then
34472
34473 cat >>confdefs.h <<\_ACEOF
34474 #define const
34475 _ACEOF
34476
34477 fi
34478
34479
34480 { echo "$as_me:$LINENO: checking for char" >&5
34481 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34482 if test "${ac_cv_type_char+set}" = set; then
34483   echo $ECHO_N "(cached) $ECHO_C" >&6
34484 else
34485   cat >conftest.$ac_ext <<_ACEOF
34486 /* confdefs.h.  */
34487 _ACEOF
34488 cat confdefs.h >>conftest.$ac_ext
34489 cat >>conftest.$ac_ext <<_ACEOF
34490 /* end confdefs.h.  */
34491 $ac_includes_default
34492 typedef char ac__type_new_;
34493 int
34494 main ()
34495 {
34496 if ((ac__type_new_ *) 0)
34497   return 0;
34498 if (sizeof (ac__type_new_))
34499   return 0;
34500   ;
34501   return 0;
34502 }
34503 _ACEOF
34504 rm -f conftest.$ac_objext
34505 if { (ac_try="$ac_compile"
34506 case "(($ac_try" in
34507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34508   *) ac_try_echo=$ac_try;;
34509 esac
34510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34511   (eval "$ac_compile") 2>conftest.er1
34512   ac_status=$?
34513   grep -v '^ *+' conftest.er1 >conftest.err
34514   rm -f conftest.er1
34515   cat conftest.err >&5
34516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517   (exit $ac_status); } && {
34518          test -z "$ac_c_werror_flag" ||
34519          test ! -s conftest.err
34520        } && test -s conftest.$ac_objext; then
34521   ac_cv_type_char=yes
34522 else
34523   echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.$ac_ext >&5
34525
34526         ac_cv_type_char=no
34527 fi
34528
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34530 fi
34531 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34532 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34533
34534 # The cast to long int works around a bug in the HP C Compiler
34535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34537 # This bug is HP SR number 8606223364.
34538 { echo "$as_me:$LINENO: checking size of char" >&5
34539 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34540 if test "${ac_cv_sizeof_char+set}" = set; then
34541   echo $ECHO_N "(cached) $ECHO_C" >&6
34542 else
34543   if test "$cross_compiling" = yes; then
34544   # Depending upon the size, compute the lo and hi bounds.
34545 cat >conftest.$ac_ext <<_ACEOF
34546 /* confdefs.h.  */
34547 _ACEOF
34548 cat confdefs.h >>conftest.$ac_ext
34549 cat >>conftest.$ac_ext <<_ACEOF
34550 /* end confdefs.h.  */
34551 $ac_includes_default
34552    typedef char ac__type_sizeof_;
34553 int
34554 main ()
34555 {
34556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34557 test_array [0] = 0
34558
34559   ;
34560   return 0;
34561 }
34562 _ACEOF
34563 rm -f conftest.$ac_objext
34564 if { (ac_try="$ac_compile"
34565 case "(($ac_try" in
34566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34567   *) ac_try_echo=$ac_try;;
34568 esac
34569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34570   (eval "$ac_compile") 2>conftest.er1
34571   ac_status=$?
34572   grep -v '^ *+' conftest.er1 >conftest.err
34573   rm -f conftest.er1
34574   cat conftest.err >&5
34575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576   (exit $ac_status); } && {
34577          test -z "$ac_c_werror_flag" ||
34578          test ! -s conftest.err
34579        } && test -s conftest.$ac_objext; then
34580   ac_lo=0 ac_mid=0
34581   while :; do
34582     cat >conftest.$ac_ext <<_ACEOF
34583 /* confdefs.h.  */
34584 _ACEOF
34585 cat confdefs.h >>conftest.$ac_ext
34586 cat >>conftest.$ac_ext <<_ACEOF
34587 /* end confdefs.h.  */
34588 $ac_includes_default
34589    typedef char ac__type_sizeof_;
34590 int
34591 main ()
34592 {
34593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34594 test_array [0] = 0
34595
34596   ;
34597   return 0;
34598 }
34599 _ACEOF
34600 rm -f conftest.$ac_objext
34601 if { (ac_try="$ac_compile"
34602 case "(($ac_try" in
34603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34604   *) ac_try_echo=$ac_try;;
34605 esac
34606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34607   (eval "$ac_compile") 2>conftest.er1
34608   ac_status=$?
34609   grep -v '^ *+' conftest.er1 >conftest.err
34610   rm -f conftest.er1
34611   cat conftest.err >&5
34612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613   (exit $ac_status); } && {
34614          test -z "$ac_c_werror_flag" ||
34615          test ! -s conftest.err
34616        } && test -s conftest.$ac_objext; then
34617   ac_hi=$ac_mid; break
34618 else
34619   echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34621
34622         ac_lo=`expr $ac_mid + 1`
34623                         if test $ac_lo -le $ac_mid; then
34624                           ac_lo= ac_hi=
34625                           break
34626                         fi
34627                         ac_mid=`expr 2 '*' $ac_mid + 1`
34628 fi
34629
34630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34631   done
34632 else
34633   echo "$as_me: failed program was:" >&5
34634 sed 's/^/| /' conftest.$ac_ext >&5
34635
34636         cat >conftest.$ac_ext <<_ACEOF
34637 /* confdefs.h.  */
34638 _ACEOF
34639 cat confdefs.h >>conftest.$ac_ext
34640 cat >>conftest.$ac_ext <<_ACEOF
34641 /* end confdefs.h.  */
34642 $ac_includes_default
34643    typedef char ac__type_sizeof_;
34644 int
34645 main ()
34646 {
34647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34648 test_array [0] = 0
34649
34650   ;
34651   return 0;
34652 }
34653 _ACEOF
34654 rm -f conftest.$ac_objext
34655 if { (ac_try="$ac_compile"
34656 case "(($ac_try" in
34657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34658   *) ac_try_echo=$ac_try;;
34659 esac
34660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34661   (eval "$ac_compile") 2>conftest.er1
34662   ac_status=$?
34663   grep -v '^ *+' conftest.er1 >conftest.err
34664   rm -f conftest.er1
34665   cat conftest.err >&5
34666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667   (exit $ac_status); } && {
34668          test -z "$ac_c_werror_flag" ||
34669          test ! -s conftest.err
34670        } && test -s conftest.$ac_objext; then
34671   ac_hi=-1 ac_mid=-1
34672   while :; do
34673     cat >conftest.$ac_ext <<_ACEOF
34674 /* confdefs.h.  */
34675 _ACEOF
34676 cat confdefs.h >>conftest.$ac_ext
34677 cat >>conftest.$ac_ext <<_ACEOF
34678 /* end confdefs.h.  */
34679 $ac_includes_default
34680    typedef char ac__type_sizeof_;
34681 int
34682 main ()
34683 {
34684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34685 test_array [0] = 0
34686
34687   ;
34688   return 0;
34689 }
34690 _ACEOF
34691 rm -f conftest.$ac_objext
34692 if { (ac_try="$ac_compile"
34693 case "(($ac_try" in
34694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34695   *) ac_try_echo=$ac_try;;
34696 esac
34697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34698   (eval "$ac_compile") 2>conftest.er1
34699   ac_status=$?
34700   grep -v '^ *+' conftest.er1 >conftest.err
34701   rm -f conftest.er1
34702   cat conftest.err >&5
34703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704   (exit $ac_status); } && {
34705          test -z "$ac_c_werror_flag" ||
34706          test ! -s conftest.err
34707        } && test -s conftest.$ac_objext; then
34708   ac_lo=$ac_mid; break
34709 else
34710   echo "$as_me: failed program was:" >&5
34711 sed 's/^/| /' conftest.$ac_ext >&5
34712
34713         ac_hi=`expr '(' $ac_mid ')' - 1`
34714                         if test $ac_mid -le $ac_hi; then
34715                           ac_lo= ac_hi=
34716                           break
34717                         fi
34718                         ac_mid=`expr 2 '*' $ac_mid`
34719 fi
34720
34721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34722   done
34723 else
34724   echo "$as_me: failed program was:" >&5
34725 sed 's/^/| /' conftest.$ac_ext >&5
34726
34727         ac_lo= ac_hi=
34728 fi
34729
34730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34731 fi
34732
34733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34734 # Binary search between lo and hi bounds.
34735 while test "x$ac_lo" != "x$ac_hi"; do
34736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34737   cat >conftest.$ac_ext <<_ACEOF
34738 /* confdefs.h.  */
34739 _ACEOF
34740 cat confdefs.h >>conftest.$ac_ext
34741 cat >>conftest.$ac_ext <<_ACEOF
34742 /* end confdefs.h.  */
34743 $ac_includes_default
34744    typedef char ac__type_sizeof_;
34745 int
34746 main ()
34747 {
34748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34749 test_array [0] = 0
34750
34751   ;
34752   return 0;
34753 }
34754 _ACEOF
34755 rm -f conftest.$ac_objext
34756 if { (ac_try="$ac_compile"
34757 case "(($ac_try" in
34758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34759   *) ac_try_echo=$ac_try;;
34760 esac
34761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34762   (eval "$ac_compile") 2>conftest.er1
34763   ac_status=$?
34764   grep -v '^ *+' conftest.er1 >conftest.err
34765   rm -f conftest.er1
34766   cat conftest.err >&5
34767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768   (exit $ac_status); } && {
34769          test -z "$ac_c_werror_flag" ||
34770          test ! -s conftest.err
34771        } && test -s conftest.$ac_objext; then
34772   ac_hi=$ac_mid
34773 else
34774   echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34776
34777         ac_lo=`expr '(' $ac_mid ')' + 1`
34778 fi
34779
34780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34781 done
34782 case $ac_lo in
34783 ?*) ac_cv_sizeof_char=$ac_lo;;
34784 '') if test "$ac_cv_type_char" = yes; then
34785      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34786 See \`config.log' for more details." >&5
34787 echo "$as_me: error: cannot compute sizeof (char)
34788 See \`config.log' for more details." >&2;}
34789    { (exit 77); exit 77; }; }
34790    else
34791      ac_cv_sizeof_char=0
34792    fi ;;
34793 esac
34794 else
34795   cat >conftest.$ac_ext <<_ACEOF
34796 /* confdefs.h.  */
34797 _ACEOF
34798 cat confdefs.h >>conftest.$ac_ext
34799 cat >>conftest.$ac_ext <<_ACEOF
34800 /* end confdefs.h.  */
34801 $ac_includes_default
34802    typedef char ac__type_sizeof_;
34803 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34804 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34805 #include <stdio.h>
34806 #include <stdlib.h>
34807 int
34808 main ()
34809 {
34810
34811   FILE *f = fopen ("conftest.val", "w");
34812   if (! f)
34813     return 1;
34814   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34815     {
34816       long int i = longval ();
34817       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34818         return 1;
34819       fprintf (f, "%ld\n", i);
34820     }
34821   else
34822     {
34823       unsigned long int i = ulongval ();
34824       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34825         return 1;
34826       fprintf (f, "%lu\n", i);
34827     }
34828   return ferror (f) || fclose (f) != 0;
34829
34830   ;
34831   return 0;
34832 }
34833 _ACEOF
34834 rm -f conftest$ac_exeext
34835 if { (ac_try="$ac_link"
34836 case "(($ac_try" in
34837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838   *) ac_try_echo=$ac_try;;
34839 esac
34840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841   (eval "$ac_link") 2>&5
34842   ac_status=$?
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34845   { (case "(($ac_try" in
34846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34847   *) ac_try_echo=$ac_try;;
34848 esac
34849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34850   (eval "$ac_try") 2>&5
34851   ac_status=$?
34852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853   (exit $ac_status); }; }; then
34854   ac_cv_sizeof_char=`cat conftest.val`
34855 else
34856   echo "$as_me: program exited with status $ac_status" >&5
34857 echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860 ( exit $ac_status )
34861 if test "$ac_cv_type_char" = yes; then
34862      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34863 See \`config.log' for more details." >&5
34864 echo "$as_me: error: cannot compute sizeof (char)
34865 See \`config.log' for more details." >&2;}
34866    { (exit 77); exit 77; }; }
34867    else
34868      ac_cv_sizeof_char=0
34869    fi
34870 fi
34871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34872 fi
34873 rm -f conftest.val
34874 fi
34875 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34876 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34877
34878
34879
34880 cat >>confdefs.h <<_ACEOF
34881 #define SIZEOF_CHAR $ac_cv_sizeof_char
34882 _ACEOF
34883
34884
34885 { echo "$as_me:$LINENO: checking for short int" >&5
34886 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34887 if test "${ac_cv_type_short_int+set}" = set; then
34888   echo $ECHO_N "(cached) $ECHO_C" >&6
34889 else
34890   cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896 $ac_includes_default
34897 typedef short int ac__type_new_;
34898 int
34899 main ()
34900 {
34901 if ((ac__type_new_ *) 0)
34902   return 0;
34903 if (sizeof (ac__type_new_))
34904   return 0;
34905   ;
34906   return 0;
34907 }
34908 _ACEOF
34909 rm -f conftest.$ac_objext
34910 if { (ac_try="$ac_compile"
34911 case "(($ac_try" in
34912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913   *) ac_try_echo=$ac_try;;
34914 esac
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916   (eval "$ac_compile") 2>conftest.er1
34917   ac_status=$?
34918   grep -v '^ *+' conftest.er1 >conftest.err
34919   rm -f conftest.er1
34920   cat conftest.err >&5
34921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922   (exit $ac_status); } && {
34923          test -z "$ac_c_werror_flag" ||
34924          test ! -s conftest.err
34925        } && test -s conftest.$ac_objext; then
34926   ac_cv_type_short_int=yes
34927 else
34928   echo "$as_me: failed program was:" >&5
34929 sed 's/^/| /' conftest.$ac_ext >&5
34930
34931         ac_cv_type_short_int=no
34932 fi
34933
34934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34935 fi
34936 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34937 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34938
34939 # The cast to long int works around a bug in the HP C Compiler
34940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34942 # This bug is HP SR number 8606223364.
34943 { echo "$as_me:$LINENO: checking size of short int" >&5
34944 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34945 if test "${ac_cv_sizeof_short_int+set}" = set; then
34946   echo $ECHO_N "(cached) $ECHO_C" >&6
34947 else
34948   if test "$cross_compiling" = yes; then
34949   # Depending upon the size, compute the lo and hi bounds.
34950 cat >conftest.$ac_ext <<_ACEOF
34951 /* confdefs.h.  */
34952 _ACEOF
34953 cat confdefs.h >>conftest.$ac_ext
34954 cat >>conftest.$ac_ext <<_ACEOF
34955 /* end confdefs.h.  */
34956 $ac_includes_default
34957    typedef short int ac__type_sizeof_;
34958 int
34959 main ()
34960 {
34961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34962 test_array [0] = 0
34963
34964   ;
34965   return 0;
34966 }
34967 _ACEOF
34968 rm -f conftest.$ac_objext
34969 if { (ac_try="$ac_compile"
34970 case "(($ac_try" in
34971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34972   *) ac_try_echo=$ac_try;;
34973 esac
34974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34975   (eval "$ac_compile") 2>conftest.er1
34976   ac_status=$?
34977   grep -v '^ *+' conftest.er1 >conftest.err
34978   rm -f conftest.er1
34979   cat conftest.err >&5
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); } && {
34982          test -z "$ac_c_werror_flag" ||
34983          test ! -s conftest.err
34984        } && test -s conftest.$ac_objext; then
34985   ac_lo=0 ac_mid=0
34986   while :; do
34987     cat >conftest.$ac_ext <<_ACEOF
34988 /* confdefs.h.  */
34989 _ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h.  */
34993 $ac_includes_default
34994    typedef short int ac__type_sizeof_;
34995 int
34996 main ()
34997 {
34998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34999 test_array [0] = 0
35000
35001   ;
35002   return 0;
35003 }
35004 _ACEOF
35005 rm -f conftest.$ac_objext
35006 if { (ac_try="$ac_compile"
35007 case "(($ac_try" in
35008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35009   *) ac_try_echo=$ac_try;;
35010 esac
35011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35012   (eval "$ac_compile") 2>conftest.er1
35013   ac_status=$?
35014   grep -v '^ *+' conftest.er1 >conftest.err
35015   rm -f conftest.er1
35016   cat conftest.err >&5
35017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018   (exit $ac_status); } && {
35019          test -z "$ac_c_werror_flag" ||
35020          test ! -s conftest.err
35021        } && test -s conftest.$ac_objext; then
35022   ac_hi=$ac_mid; break
35023 else
35024   echo "$as_me: failed program was:" >&5
35025 sed 's/^/| /' conftest.$ac_ext >&5
35026
35027         ac_lo=`expr $ac_mid + 1`
35028                         if test $ac_lo -le $ac_mid; then
35029                           ac_lo= ac_hi=
35030                           break
35031                         fi
35032                         ac_mid=`expr 2 '*' $ac_mid + 1`
35033 fi
35034
35035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35036   done
35037 else
35038   echo "$as_me: failed program was:" >&5
35039 sed 's/^/| /' conftest.$ac_ext >&5
35040
35041         cat >conftest.$ac_ext <<_ACEOF
35042 /* confdefs.h.  */
35043 _ACEOF
35044 cat confdefs.h >>conftest.$ac_ext
35045 cat >>conftest.$ac_ext <<_ACEOF
35046 /* end confdefs.h.  */
35047 $ac_includes_default
35048    typedef short int ac__type_sizeof_;
35049 int
35050 main ()
35051 {
35052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35053 test_array [0] = 0
35054
35055   ;
35056   return 0;
35057 }
35058 _ACEOF
35059 rm -f conftest.$ac_objext
35060 if { (ac_try="$ac_compile"
35061 case "(($ac_try" in
35062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35063   *) ac_try_echo=$ac_try;;
35064 esac
35065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35066   (eval "$ac_compile") 2>conftest.er1
35067   ac_status=$?
35068   grep -v '^ *+' conftest.er1 >conftest.err
35069   rm -f conftest.er1
35070   cat conftest.err >&5
35071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072   (exit $ac_status); } && {
35073          test -z "$ac_c_werror_flag" ||
35074          test ! -s conftest.err
35075        } && test -s conftest.$ac_objext; then
35076   ac_hi=-1 ac_mid=-1
35077   while :; do
35078     cat >conftest.$ac_ext <<_ACEOF
35079 /* confdefs.h.  */
35080 _ACEOF
35081 cat confdefs.h >>conftest.$ac_ext
35082 cat >>conftest.$ac_ext <<_ACEOF
35083 /* end confdefs.h.  */
35084 $ac_includes_default
35085    typedef short int ac__type_sizeof_;
35086 int
35087 main ()
35088 {
35089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35090 test_array [0] = 0
35091
35092   ;
35093   return 0;
35094 }
35095 _ACEOF
35096 rm -f conftest.$ac_objext
35097 if { (ac_try="$ac_compile"
35098 case "(($ac_try" in
35099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35100   *) ac_try_echo=$ac_try;;
35101 esac
35102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35103   (eval "$ac_compile") 2>conftest.er1
35104   ac_status=$?
35105   grep -v '^ *+' conftest.er1 >conftest.err
35106   rm -f conftest.er1
35107   cat conftest.err >&5
35108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109   (exit $ac_status); } && {
35110          test -z "$ac_c_werror_flag" ||
35111          test ! -s conftest.err
35112        } && test -s conftest.$ac_objext; then
35113   ac_lo=$ac_mid; break
35114 else
35115   echo "$as_me: failed program was:" >&5
35116 sed 's/^/| /' conftest.$ac_ext >&5
35117
35118         ac_hi=`expr '(' $ac_mid ')' - 1`
35119                         if test $ac_mid -le $ac_hi; then
35120                           ac_lo= ac_hi=
35121                           break
35122                         fi
35123                         ac_mid=`expr 2 '*' $ac_mid`
35124 fi
35125
35126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35127   done
35128 else
35129   echo "$as_me: failed program was:" >&5
35130 sed 's/^/| /' conftest.$ac_ext >&5
35131
35132         ac_lo= ac_hi=
35133 fi
35134
35135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35136 fi
35137
35138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35139 # Binary search between lo and hi bounds.
35140 while test "x$ac_lo" != "x$ac_hi"; do
35141   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35142   cat >conftest.$ac_ext <<_ACEOF
35143 /* confdefs.h.  */
35144 _ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h.  */
35148 $ac_includes_default
35149    typedef short int ac__type_sizeof_;
35150 int
35151 main ()
35152 {
35153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35154 test_array [0] = 0
35155
35156   ;
35157   return 0;
35158 }
35159 _ACEOF
35160 rm -f conftest.$ac_objext
35161 if { (ac_try="$ac_compile"
35162 case "(($ac_try" in
35163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35164   *) ac_try_echo=$ac_try;;
35165 esac
35166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35167   (eval "$ac_compile") 2>conftest.er1
35168   ac_status=$?
35169   grep -v '^ *+' conftest.er1 >conftest.err
35170   rm -f conftest.er1
35171   cat conftest.err >&5
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); } && {
35174          test -z "$ac_c_werror_flag" ||
35175          test ! -s conftest.err
35176        } && test -s conftest.$ac_objext; then
35177   ac_hi=$ac_mid
35178 else
35179   echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35181
35182         ac_lo=`expr '(' $ac_mid ')' + 1`
35183 fi
35184
35185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35186 done
35187 case $ac_lo in
35188 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35189 '') if test "$ac_cv_type_short_int" = yes; then
35190      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35191 See \`config.log' for more details." >&5
35192 echo "$as_me: error: cannot compute sizeof (short int)
35193 See \`config.log' for more details." >&2;}
35194    { (exit 77); exit 77; }; }
35195    else
35196      ac_cv_sizeof_short_int=0
35197    fi ;;
35198 esac
35199 else
35200   cat >conftest.$ac_ext <<_ACEOF
35201 /* confdefs.h.  */
35202 _ACEOF
35203 cat confdefs.h >>conftest.$ac_ext
35204 cat >>conftest.$ac_ext <<_ACEOF
35205 /* end confdefs.h.  */
35206 $ac_includes_default
35207    typedef short int ac__type_sizeof_;
35208 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35209 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35210 #include <stdio.h>
35211 #include <stdlib.h>
35212 int
35213 main ()
35214 {
35215
35216   FILE *f = fopen ("conftest.val", "w");
35217   if (! f)
35218     return 1;
35219   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35220     {
35221       long int i = longval ();
35222       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35223         return 1;
35224       fprintf (f, "%ld\n", i);
35225     }
35226   else
35227     {
35228       unsigned long int i = ulongval ();
35229       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35230         return 1;
35231       fprintf (f, "%lu\n", i);
35232     }
35233   return ferror (f) || fclose (f) != 0;
35234
35235   ;
35236   return 0;
35237 }
35238 _ACEOF
35239 rm -f conftest$ac_exeext
35240 if { (ac_try="$ac_link"
35241 case "(($ac_try" in
35242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35243   *) ac_try_echo=$ac_try;;
35244 esac
35245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35246   (eval "$ac_link") 2>&5
35247   ac_status=$?
35248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35250   { (case "(($ac_try" in
35251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35252   *) ac_try_echo=$ac_try;;
35253 esac
35254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35255   (eval "$ac_try") 2>&5
35256   ac_status=$?
35257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258   (exit $ac_status); }; }; then
35259   ac_cv_sizeof_short_int=`cat conftest.val`
35260 else
35261   echo "$as_me: program exited with status $ac_status" >&5
35262 echo "$as_me: failed program was:" >&5
35263 sed 's/^/| /' conftest.$ac_ext >&5
35264
35265 ( exit $ac_status )
35266 if test "$ac_cv_type_short_int" = yes; then
35267      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35268 See \`config.log' for more details." >&5
35269 echo "$as_me: error: cannot compute sizeof (short int)
35270 See \`config.log' for more details." >&2;}
35271    { (exit 77); exit 77; }; }
35272    else
35273      ac_cv_sizeof_short_int=0
35274    fi
35275 fi
35276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35277 fi
35278 rm -f conftest.val
35279 fi
35280 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35281 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35282
35283
35284
35285 cat >>confdefs.h <<_ACEOF
35286 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35287 _ACEOF
35288
35289
35290 { echo "$as_me:$LINENO: checking for int" >&5
35291 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35292 if test "${ac_cv_type_int+set}" = set; then
35293   echo $ECHO_N "(cached) $ECHO_C" >&6
35294 else
35295   cat >conftest.$ac_ext <<_ACEOF
35296 /* confdefs.h.  */
35297 _ACEOF
35298 cat confdefs.h >>conftest.$ac_ext
35299 cat >>conftest.$ac_ext <<_ACEOF
35300 /* end confdefs.h.  */
35301 $ac_includes_default
35302 typedef int ac__type_new_;
35303 int
35304 main ()
35305 {
35306 if ((ac__type_new_ *) 0)
35307   return 0;
35308 if (sizeof (ac__type_new_))
35309   return 0;
35310   ;
35311   return 0;
35312 }
35313 _ACEOF
35314 rm -f conftest.$ac_objext
35315 if { (ac_try="$ac_compile"
35316 case "(($ac_try" in
35317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35318   *) ac_try_echo=$ac_try;;
35319 esac
35320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35321   (eval "$ac_compile") 2>conftest.er1
35322   ac_status=$?
35323   grep -v '^ *+' conftest.er1 >conftest.err
35324   rm -f conftest.er1
35325   cat conftest.err >&5
35326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327   (exit $ac_status); } && {
35328          test -z "$ac_c_werror_flag" ||
35329          test ! -s conftest.err
35330        } && test -s conftest.$ac_objext; then
35331   ac_cv_type_int=yes
35332 else
35333   echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35335
35336         ac_cv_type_int=no
35337 fi
35338
35339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35340 fi
35341 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35342 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35343
35344 # The cast to long int works around a bug in the HP C Compiler
35345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35347 # This bug is HP SR number 8606223364.
35348 { echo "$as_me:$LINENO: checking size of int" >&5
35349 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35350 if test "${ac_cv_sizeof_int+set}" = set; then
35351   echo $ECHO_N "(cached) $ECHO_C" >&6
35352 else
35353   if test "$cross_compiling" = yes; then
35354   # Depending upon the size, compute the lo and hi bounds.
35355 cat >conftest.$ac_ext <<_ACEOF
35356 /* confdefs.h.  */
35357 _ACEOF
35358 cat confdefs.h >>conftest.$ac_ext
35359 cat >>conftest.$ac_ext <<_ACEOF
35360 /* end confdefs.h.  */
35361 $ac_includes_default
35362    typedef int ac__type_sizeof_;
35363 int
35364 main ()
35365 {
35366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35367 test_array [0] = 0
35368
35369   ;
35370   return 0;
35371 }
35372 _ACEOF
35373 rm -f conftest.$ac_objext
35374 if { (ac_try="$ac_compile"
35375 case "(($ac_try" in
35376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35377   *) ac_try_echo=$ac_try;;
35378 esac
35379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35380   (eval "$ac_compile") 2>conftest.er1
35381   ac_status=$?
35382   grep -v '^ *+' conftest.er1 >conftest.err
35383   rm -f conftest.er1
35384   cat conftest.err >&5
35385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386   (exit $ac_status); } && {
35387          test -z "$ac_c_werror_flag" ||
35388          test ! -s conftest.err
35389        } && test -s conftest.$ac_objext; then
35390   ac_lo=0 ac_mid=0
35391   while :; do
35392     cat >conftest.$ac_ext <<_ACEOF
35393 /* confdefs.h.  */
35394 _ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h.  */
35398 $ac_includes_default
35399    typedef int ac__type_sizeof_;
35400 int
35401 main ()
35402 {
35403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35404 test_array [0] = 0
35405
35406   ;
35407   return 0;
35408 }
35409 _ACEOF
35410 rm -f conftest.$ac_objext
35411 if { (ac_try="$ac_compile"
35412 case "(($ac_try" in
35413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35414   *) ac_try_echo=$ac_try;;
35415 esac
35416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35417   (eval "$ac_compile") 2>conftest.er1
35418   ac_status=$?
35419   grep -v '^ *+' conftest.er1 >conftest.err
35420   rm -f conftest.er1
35421   cat conftest.err >&5
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); } && {
35424          test -z "$ac_c_werror_flag" ||
35425          test ! -s conftest.err
35426        } && test -s conftest.$ac_objext; then
35427   ac_hi=$ac_mid; break
35428 else
35429   echo "$as_me: failed program was:" >&5
35430 sed 's/^/| /' conftest.$ac_ext >&5
35431
35432         ac_lo=`expr $ac_mid + 1`
35433                         if test $ac_lo -le $ac_mid; then
35434                           ac_lo= ac_hi=
35435                           break
35436                         fi
35437                         ac_mid=`expr 2 '*' $ac_mid + 1`
35438 fi
35439
35440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35441   done
35442 else
35443   echo "$as_me: failed program was:" >&5
35444 sed 's/^/| /' conftest.$ac_ext >&5
35445
35446         cat >conftest.$ac_ext <<_ACEOF
35447 /* confdefs.h.  */
35448 _ACEOF
35449 cat confdefs.h >>conftest.$ac_ext
35450 cat >>conftest.$ac_ext <<_ACEOF
35451 /* end confdefs.h.  */
35452 $ac_includes_default
35453    typedef int ac__type_sizeof_;
35454 int
35455 main ()
35456 {
35457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35458 test_array [0] = 0
35459
35460   ;
35461   return 0;
35462 }
35463 _ACEOF
35464 rm -f conftest.$ac_objext
35465 if { (ac_try="$ac_compile"
35466 case "(($ac_try" in
35467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35468   *) ac_try_echo=$ac_try;;
35469 esac
35470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35471   (eval "$ac_compile") 2>conftest.er1
35472   ac_status=$?
35473   grep -v '^ *+' conftest.er1 >conftest.err
35474   rm -f conftest.er1
35475   cat conftest.err >&5
35476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477   (exit $ac_status); } && {
35478          test -z "$ac_c_werror_flag" ||
35479          test ! -s conftest.err
35480        } && test -s conftest.$ac_objext; then
35481   ac_hi=-1 ac_mid=-1
35482   while :; do
35483     cat >conftest.$ac_ext <<_ACEOF
35484 /* confdefs.h.  */
35485 _ACEOF
35486 cat confdefs.h >>conftest.$ac_ext
35487 cat >>conftest.$ac_ext <<_ACEOF
35488 /* end confdefs.h.  */
35489 $ac_includes_default
35490    typedef int ac__type_sizeof_;
35491 int
35492 main ()
35493 {
35494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35495 test_array [0] = 0
35496
35497   ;
35498   return 0;
35499 }
35500 _ACEOF
35501 rm -f conftest.$ac_objext
35502 if { (ac_try="$ac_compile"
35503 case "(($ac_try" in
35504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505   *) ac_try_echo=$ac_try;;
35506 esac
35507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35508   (eval "$ac_compile") 2>conftest.er1
35509   ac_status=$?
35510   grep -v '^ *+' conftest.er1 >conftest.err
35511   rm -f conftest.er1
35512   cat conftest.err >&5
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); } && {
35515          test -z "$ac_c_werror_flag" ||
35516          test ! -s conftest.err
35517        } && test -s conftest.$ac_objext; then
35518   ac_lo=$ac_mid; break
35519 else
35520   echo "$as_me: failed program was:" >&5
35521 sed 's/^/| /' conftest.$ac_ext >&5
35522
35523         ac_hi=`expr '(' $ac_mid ')' - 1`
35524                         if test $ac_mid -le $ac_hi; then
35525                           ac_lo= ac_hi=
35526                           break
35527                         fi
35528                         ac_mid=`expr 2 '*' $ac_mid`
35529 fi
35530
35531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35532   done
35533 else
35534   echo "$as_me: failed program was:" >&5
35535 sed 's/^/| /' conftest.$ac_ext >&5
35536
35537         ac_lo= ac_hi=
35538 fi
35539
35540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35541 fi
35542
35543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35544 # Binary search between lo and hi bounds.
35545 while test "x$ac_lo" != "x$ac_hi"; do
35546   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35547   cat >conftest.$ac_ext <<_ACEOF
35548 /* confdefs.h.  */
35549 _ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h.  */
35553 $ac_includes_default
35554    typedef int ac__type_sizeof_;
35555 int
35556 main ()
35557 {
35558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35559 test_array [0] = 0
35560
35561   ;
35562   return 0;
35563 }
35564 _ACEOF
35565 rm -f conftest.$ac_objext
35566 if { (ac_try="$ac_compile"
35567 case "(($ac_try" in
35568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35569   *) ac_try_echo=$ac_try;;
35570 esac
35571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35572   (eval "$ac_compile") 2>conftest.er1
35573   ac_status=$?
35574   grep -v '^ *+' conftest.er1 >conftest.err
35575   rm -f conftest.er1
35576   cat conftest.err >&5
35577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578   (exit $ac_status); } && {
35579          test -z "$ac_c_werror_flag" ||
35580          test ! -s conftest.err
35581        } && test -s conftest.$ac_objext; then
35582   ac_hi=$ac_mid
35583 else
35584   echo "$as_me: failed program was:" >&5
35585 sed 's/^/| /' conftest.$ac_ext >&5
35586
35587         ac_lo=`expr '(' $ac_mid ')' + 1`
35588 fi
35589
35590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35591 done
35592 case $ac_lo in
35593 ?*) ac_cv_sizeof_int=$ac_lo;;
35594 '') if test "$ac_cv_type_int" = yes; then
35595      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35596 See \`config.log' for more details." >&5
35597 echo "$as_me: error: cannot compute sizeof (int)
35598 See \`config.log' for more details." >&2;}
35599    { (exit 77); exit 77; }; }
35600    else
35601      ac_cv_sizeof_int=0
35602    fi ;;
35603 esac
35604 else
35605   cat >conftest.$ac_ext <<_ACEOF
35606 /* confdefs.h.  */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h.  */
35611 $ac_includes_default
35612    typedef int ac__type_sizeof_;
35613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35615 #include <stdio.h>
35616 #include <stdlib.h>
35617 int
35618 main ()
35619 {
35620
35621   FILE *f = fopen ("conftest.val", "w");
35622   if (! f)
35623     return 1;
35624   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35625     {
35626       long int i = longval ();
35627       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35628         return 1;
35629       fprintf (f, "%ld\n", i);
35630     }
35631   else
35632     {
35633       unsigned long int i = ulongval ();
35634       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35635         return 1;
35636       fprintf (f, "%lu\n", i);
35637     }
35638   return ferror (f) || fclose (f) != 0;
35639
35640   ;
35641   return 0;
35642 }
35643 _ACEOF
35644 rm -f conftest$ac_exeext
35645 if { (ac_try="$ac_link"
35646 case "(($ac_try" in
35647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648   *) ac_try_echo=$ac_try;;
35649 esac
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651   (eval "$ac_link") 2>&5
35652   ac_status=$?
35653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35655   { (case "(($ac_try" in
35656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657   *) ac_try_echo=$ac_try;;
35658 esac
35659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35660   (eval "$ac_try") 2>&5
35661   ac_status=$?
35662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35663   (exit $ac_status); }; }; then
35664   ac_cv_sizeof_int=`cat conftest.val`
35665 else
35666   echo "$as_me: program exited with status $ac_status" >&5
35667 echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35669
35670 ( exit $ac_status )
35671 if test "$ac_cv_type_int" = yes; then
35672      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35673 See \`config.log' for more details." >&5
35674 echo "$as_me: error: cannot compute sizeof (int)
35675 See \`config.log' for more details." >&2;}
35676    { (exit 77); exit 77; }; }
35677    else
35678      ac_cv_sizeof_int=0
35679    fi
35680 fi
35681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35682 fi
35683 rm -f conftest.val
35684 fi
35685 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35686 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35687
35688
35689
35690 cat >>confdefs.h <<_ACEOF
35691 #define SIZEOF_INT $ac_cv_sizeof_int
35692 _ACEOF
35693
35694
35695 { echo "$as_me:$LINENO: checking for long int" >&5
35696 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35697 if test "${ac_cv_type_long_int+set}" = set; then
35698   echo $ECHO_N "(cached) $ECHO_C" >&6
35699 else
35700   cat >conftest.$ac_ext <<_ACEOF
35701 /* confdefs.h.  */
35702 _ACEOF
35703 cat confdefs.h >>conftest.$ac_ext
35704 cat >>conftest.$ac_ext <<_ACEOF
35705 /* end confdefs.h.  */
35706 $ac_includes_default
35707 typedef long int ac__type_new_;
35708 int
35709 main ()
35710 {
35711 if ((ac__type_new_ *) 0)
35712   return 0;
35713 if (sizeof (ac__type_new_))
35714   return 0;
35715   ;
35716   return 0;
35717 }
35718 _ACEOF
35719 rm -f conftest.$ac_objext
35720 if { (ac_try="$ac_compile"
35721 case "(($ac_try" in
35722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35723   *) ac_try_echo=$ac_try;;
35724 esac
35725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35726   (eval "$ac_compile") 2>conftest.er1
35727   ac_status=$?
35728   grep -v '^ *+' conftest.er1 >conftest.err
35729   rm -f conftest.er1
35730   cat conftest.err >&5
35731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732   (exit $ac_status); } && {
35733          test -z "$ac_c_werror_flag" ||
35734          test ! -s conftest.err
35735        } && test -s conftest.$ac_objext; then
35736   ac_cv_type_long_int=yes
35737 else
35738   echo "$as_me: failed program was:" >&5
35739 sed 's/^/| /' conftest.$ac_ext >&5
35740
35741         ac_cv_type_long_int=no
35742 fi
35743
35744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35745 fi
35746 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35747 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35748
35749 # The cast to long int works around a bug in the HP C Compiler
35750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35752 # This bug is HP SR number 8606223364.
35753 { echo "$as_me:$LINENO: checking size of long int" >&5
35754 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35755 if test "${ac_cv_sizeof_long_int+set}" = set; then
35756   echo $ECHO_N "(cached) $ECHO_C" >&6
35757 else
35758   if test "$cross_compiling" = yes; then
35759   # Depending upon the size, compute the lo and hi bounds.
35760 cat >conftest.$ac_ext <<_ACEOF
35761 /* confdefs.h.  */
35762 _ACEOF
35763 cat confdefs.h >>conftest.$ac_ext
35764 cat >>conftest.$ac_ext <<_ACEOF
35765 /* end confdefs.h.  */
35766 $ac_includes_default
35767    typedef long int ac__type_sizeof_;
35768 int
35769 main ()
35770 {
35771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35772 test_array [0] = 0
35773
35774   ;
35775   return 0;
35776 }
35777 _ACEOF
35778 rm -f conftest.$ac_objext
35779 if { (ac_try="$ac_compile"
35780 case "(($ac_try" in
35781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35782   *) ac_try_echo=$ac_try;;
35783 esac
35784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35785   (eval "$ac_compile") 2>conftest.er1
35786   ac_status=$?
35787   grep -v '^ *+' conftest.er1 >conftest.err
35788   rm -f conftest.er1
35789   cat conftest.err >&5
35790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791   (exit $ac_status); } && {
35792          test -z "$ac_c_werror_flag" ||
35793          test ! -s conftest.err
35794        } && test -s conftest.$ac_objext; then
35795   ac_lo=0 ac_mid=0
35796   while :; do
35797     cat >conftest.$ac_ext <<_ACEOF
35798 /* confdefs.h.  */
35799 _ACEOF
35800 cat confdefs.h >>conftest.$ac_ext
35801 cat >>conftest.$ac_ext <<_ACEOF
35802 /* end confdefs.h.  */
35803 $ac_includes_default
35804    typedef long int ac__type_sizeof_;
35805 int
35806 main ()
35807 {
35808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35809 test_array [0] = 0
35810
35811   ;
35812   return 0;
35813 }
35814 _ACEOF
35815 rm -f conftest.$ac_objext
35816 if { (ac_try="$ac_compile"
35817 case "(($ac_try" in
35818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35819   *) ac_try_echo=$ac_try;;
35820 esac
35821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35822   (eval "$ac_compile") 2>conftest.er1
35823   ac_status=$?
35824   grep -v '^ *+' conftest.er1 >conftest.err
35825   rm -f conftest.er1
35826   cat conftest.err >&5
35827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828   (exit $ac_status); } && {
35829          test -z "$ac_c_werror_flag" ||
35830          test ! -s conftest.err
35831        } && test -s conftest.$ac_objext; then
35832   ac_hi=$ac_mid; break
35833 else
35834   echo "$as_me: failed program was:" >&5
35835 sed 's/^/| /' conftest.$ac_ext >&5
35836
35837         ac_lo=`expr $ac_mid + 1`
35838                         if test $ac_lo -le $ac_mid; then
35839                           ac_lo= ac_hi=
35840                           break
35841                         fi
35842                         ac_mid=`expr 2 '*' $ac_mid + 1`
35843 fi
35844
35845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35846   done
35847 else
35848   echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.$ac_ext >&5
35850
35851         cat >conftest.$ac_ext <<_ACEOF
35852 /* confdefs.h.  */
35853 _ACEOF
35854 cat confdefs.h >>conftest.$ac_ext
35855 cat >>conftest.$ac_ext <<_ACEOF
35856 /* end confdefs.h.  */
35857 $ac_includes_default
35858    typedef long int ac__type_sizeof_;
35859 int
35860 main ()
35861 {
35862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35863 test_array [0] = 0
35864
35865   ;
35866   return 0;
35867 }
35868 _ACEOF
35869 rm -f conftest.$ac_objext
35870 if { (ac_try="$ac_compile"
35871 case "(($ac_try" in
35872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35873   *) ac_try_echo=$ac_try;;
35874 esac
35875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35876   (eval "$ac_compile") 2>conftest.er1
35877   ac_status=$?
35878   grep -v '^ *+' conftest.er1 >conftest.err
35879   rm -f conftest.er1
35880   cat conftest.err >&5
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); } && {
35883          test -z "$ac_c_werror_flag" ||
35884          test ! -s conftest.err
35885        } && test -s conftest.$ac_objext; then
35886   ac_hi=-1 ac_mid=-1
35887   while :; do
35888     cat >conftest.$ac_ext <<_ACEOF
35889 /* confdefs.h.  */
35890 _ACEOF
35891 cat confdefs.h >>conftest.$ac_ext
35892 cat >>conftest.$ac_ext <<_ACEOF
35893 /* end confdefs.h.  */
35894 $ac_includes_default
35895    typedef long int ac__type_sizeof_;
35896 int
35897 main ()
35898 {
35899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35900 test_array [0] = 0
35901
35902   ;
35903   return 0;
35904 }
35905 _ACEOF
35906 rm -f conftest.$ac_objext
35907 if { (ac_try="$ac_compile"
35908 case "(($ac_try" in
35909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35910   *) ac_try_echo=$ac_try;;
35911 esac
35912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35913   (eval "$ac_compile") 2>conftest.er1
35914   ac_status=$?
35915   grep -v '^ *+' conftest.er1 >conftest.err
35916   rm -f conftest.er1
35917   cat conftest.err >&5
35918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919   (exit $ac_status); } && {
35920          test -z "$ac_c_werror_flag" ||
35921          test ! -s conftest.err
35922        } && test -s conftest.$ac_objext; then
35923   ac_lo=$ac_mid; break
35924 else
35925   echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35927
35928         ac_hi=`expr '(' $ac_mid ')' - 1`
35929                         if test $ac_mid -le $ac_hi; then
35930                           ac_lo= ac_hi=
35931                           break
35932                         fi
35933                         ac_mid=`expr 2 '*' $ac_mid`
35934 fi
35935
35936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35937   done
35938 else
35939   echo "$as_me: failed program was:" >&5
35940 sed 's/^/| /' conftest.$ac_ext >&5
35941
35942         ac_lo= ac_hi=
35943 fi
35944
35945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35946 fi
35947
35948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35949 # Binary search between lo and hi bounds.
35950 while test "x$ac_lo" != "x$ac_hi"; do
35951   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35952   cat >conftest.$ac_ext <<_ACEOF
35953 /* confdefs.h.  */
35954 _ACEOF
35955 cat confdefs.h >>conftest.$ac_ext
35956 cat >>conftest.$ac_ext <<_ACEOF
35957 /* end confdefs.h.  */
35958 $ac_includes_default
35959    typedef long int ac__type_sizeof_;
35960 int
35961 main ()
35962 {
35963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35964 test_array [0] = 0
35965
35966   ;
35967   return 0;
35968 }
35969 _ACEOF
35970 rm -f conftest.$ac_objext
35971 if { (ac_try="$ac_compile"
35972 case "(($ac_try" in
35973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35974   *) ac_try_echo=$ac_try;;
35975 esac
35976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35977   (eval "$ac_compile") 2>conftest.er1
35978   ac_status=$?
35979   grep -v '^ *+' conftest.er1 >conftest.err
35980   rm -f conftest.er1
35981   cat conftest.err >&5
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); } && {
35984          test -z "$ac_c_werror_flag" ||
35985          test ! -s conftest.err
35986        } && test -s conftest.$ac_objext; then
35987   ac_hi=$ac_mid
35988 else
35989   echo "$as_me: failed program was:" >&5
35990 sed 's/^/| /' conftest.$ac_ext >&5
35991
35992         ac_lo=`expr '(' $ac_mid ')' + 1`
35993 fi
35994
35995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35996 done
35997 case $ac_lo in
35998 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35999 '') if test "$ac_cv_type_long_int" = yes; then
36000      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36001 See \`config.log' for more details." >&5
36002 echo "$as_me: error: cannot compute sizeof (long int)
36003 See \`config.log' for more details." >&2;}
36004    { (exit 77); exit 77; }; }
36005    else
36006      ac_cv_sizeof_long_int=0
36007    fi ;;
36008 esac
36009 else
36010   cat >conftest.$ac_ext <<_ACEOF
36011 /* confdefs.h.  */
36012 _ACEOF
36013 cat confdefs.h >>conftest.$ac_ext
36014 cat >>conftest.$ac_ext <<_ACEOF
36015 /* end confdefs.h.  */
36016 $ac_includes_default
36017    typedef long int ac__type_sizeof_;
36018 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36019 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36020 #include <stdio.h>
36021 #include <stdlib.h>
36022 int
36023 main ()
36024 {
36025
36026   FILE *f = fopen ("conftest.val", "w");
36027   if (! f)
36028     return 1;
36029   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36030     {
36031       long int i = longval ();
36032       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36033         return 1;
36034       fprintf (f, "%ld\n", i);
36035     }
36036   else
36037     {
36038       unsigned long int i = ulongval ();
36039       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36040         return 1;
36041       fprintf (f, "%lu\n", i);
36042     }
36043   return ferror (f) || fclose (f) != 0;
36044
36045   ;
36046   return 0;
36047 }
36048 _ACEOF
36049 rm -f conftest$ac_exeext
36050 if { (ac_try="$ac_link"
36051 case "(($ac_try" in
36052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36053   *) ac_try_echo=$ac_try;;
36054 esac
36055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36056   (eval "$ac_link") 2>&5
36057   ac_status=$?
36058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36060   { (case "(($ac_try" in
36061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36062   *) ac_try_echo=$ac_try;;
36063 esac
36064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36065   (eval "$ac_try") 2>&5
36066   ac_status=$?
36067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068   (exit $ac_status); }; }; then
36069   ac_cv_sizeof_long_int=`cat conftest.val`
36070 else
36071   echo "$as_me: program exited with status $ac_status" >&5
36072 echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36074
36075 ( exit $ac_status )
36076 if test "$ac_cv_type_long_int" = yes; then
36077      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36078 See \`config.log' for more details." >&5
36079 echo "$as_me: error: cannot compute sizeof (long int)
36080 See \`config.log' for more details." >&2;}
36081    { (exit 77); exit 77; }; }
36082    else
36083      ac_cv_sizeof_long_int=0
36084    fi
36085 fi
36086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36087 fi
36088 rm -f conftest.val
36089 fi
36090 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36091 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36092
36093
36094
36095 cat >>confdefs.h <<_ACEOF
36096 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36097 _ACEOF
36098
36099
36100 { echo "$as_me:$LINENO: checking for long long int" >&5
36101 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36102 if test "${ac_cv_type_long_long_int+set}" = set; then
36103   echo $ECHO_N "(cached) $ECHO_C" >&6
36104 else
36105   cat >conftest.$ac_ext <<_ACEOF
36106 /* confdefs.h.  */
36107 _ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h.  */
36111 $ac_includes_default
36112 typedef long long int ac__type_new_;
36113 int
36114 main ()
36115 {
36116 if ((ac__type_new_ *) 0)
36117   return 0;
36118 if (sizeof (ac__type_new_))
36119   return 0;
36120   ;
36121   return 0;
36122 }
36123 _ACEOF
36124 rm -f conftest.$ac_objext
36125 if { (ac_try="$ac_compile"
36126 case "(($ac_try" in
36127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36128   *) ac_try_echo=$ac_try;;
36129 esac
36130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36131   (eval "$ac_compile") 2>conftest.er1
36132   ac_status=$?
36133   grep -v '^ *+' conftest.er1 >conftest.err
36134   rm -f conftest.er1
36135   cat conftest.err >&5
36136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137   (exit $ac_status); } && {
36138          test -z "$ac_c_werror_flag" ||
36139          test ! -s conftest.err
36140        } && test -s conftest.$ac_objext; then
36141   ac_cv_type_long_long_int=yes
36142 else
36143   echo "$as_me: failed program was:" >&5
36144 sed 's/^/| /' conftest.$ac_ext >&5
36145
36146         ac_cv_type_long_long_int=no
36147 fi
36148
36149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36150 fi
36151 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36152 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36153
36154 # The cast to long int works around a bug in the HP C Compiler
36155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36157 # This bug is HP SR number 8606223364.
36158 { echo "$as_me:$LINENO: checking size of long long int" >&5
36159 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36160 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36161   echo $ECHO_N "(cached) $ECHO_C" >&6
36162 else
36163   if test "$cross_compiling" = yes; then
36164   # Depending upon the size, compute the lo and hi bounds.
36165 cat >conftest.$ac_ext <<_ACEOF
36166 /* confdefs.h.  */
36167 _ACEOF
36168 cat confdefs.h >>conftest.$ac_ext
36169 cat >>conftest.$ac_ext <<_ACEOF
36170 /* end confdefs.h.  */
36171 $ac_includes_default
36172    typedef long long int ac__type_sizeof_;
36173 int
36174 main ()
36175 {
36176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36177 test_array [0] = 0
36178
36179   ;
36180   return 0;
36181 }
36182 _ACEOF
36183 rm -f conftest.$ac_objext
36184 if { (ac_try="$ac_compile"
36185 case "(($ac_try" in
36186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36187   *) ac_try_echo=$ac_try;;
36188 esac
36189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36190   (eval "$ac_compile") 2>conftest.er1
36191   ac_status=$?
36192   grep -v '^ *+' conftest.er1 >conftest.err
36193   rm -f conftest.er1
36194   cat conftest.err >&5
36195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196   (exit $ac_status); } && {
36197          test -z "$ac_c_werror_flag" ||
36198          test ! -s conftest.err
36199        } && test -s conftest.$ac_objext; then
36200   ac_lo=0 ac_mid=0
36201   while :; do
36202     cat >conftest.$ac_ext <<_ACEOF
36203 /* confdefs.h.  */
36204 _ACEOF
36205 cat confdefs.h >>conftest.$ac_ext
36206 cat >>conftest.$ac_ext <<_ACEOF
36207 /* end confdefs.h.  */
36208 $ac_includes_default
36209    typedef long long int ac__type_sizeof_;
36210 int
36211 main ()
36212 {
36213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36214 test_array [0] = 0
36215
36216   ;
36217   return 0;
36218 }
36219 _ACEOF
36220 rm -f conftest.$ac_objext
36221 if { (ac_try="$ac_compile"
36222 case "(($ac_try" in
36223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36224   *) ac_try_echo=$ac_try;;
36225 esac
36226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36227   (eval "$ac_compile") 2>conftest.er1
36228   ac_status=$?
36229   grep -v '^ *+' conftest.er1 >conftest.err
36230   rm -f conftest.er1
36231   cat conftest.err >&5
36232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233   (exit $ac_status); } && {
36234          test -z "$ac_c_werror_flag" ||
36235          test ! -s conftest.err
36236        } && test -s conftest.$ac_objext; then
36237   ac_hi=$ac_mid; break
36238 else
36239   echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.$ac_ext >&5
36241
36242         ac_lo=`expr $ac_mid + 1`
36243                         if test $ac_lo -le $ac_mid; then
36244                           ac_lo= ac_hi=
36245                           break
36246                         fi
36247                         ac_mid=`expr 2 '*' $ac_mid + 1`
36248 fi
36249
36250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36251   done
36252 else
36253   echo "$as_me: failed program was:" >&5
36254 sed 's/^/| /' conftest.$ac_ext >&5
36255
36256         cat >conftest.$ac_ext <<_ACEOF
36257 /* confdefs.h.  */
36258 _ACEOF
36259 cat confdefs.h >>conftest.$ac_ext
36260 cat >>conftest.$ac_ext <<_ACEOF
36261 /* end confdefs.h.  */
36262 $ac_includes_default
36263    typedef long long int ac__type_sizeof_;
36264 int
36265 main ()
36266 {
36267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36268 test_array [0] = 0
36269
36270   ;
36271   return 0;
36272 }
36273 _ACEOF
36274 rm -f conftest.$ac_objext
36275 if { (ac_try="$ac_compile"
36276 case "(($ac_try" in
36277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36278   *) ac_try_echo=$ac_try;;
36279 esac
36280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36281   (eval "$ac_compile") 2>conftest.er1
36282   ac_status=$?
36283   grep -v '^ *+' conftest.er1 >conftest.err
36284   rm -f conftest.er1
36285   cat conftest.err >&5
36286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287   (exit $ac_status); } && {
36288          test -z "$ac_c_werror_flag" ||
36289          test ! -s conftest.err
36290        } && test -s conftest.$ac_objext; then
36291   ac_hi=-1 ac_mid=-1
36292   while :; do
36293     cat >conftest.$ac_ext <<_ACEOF
36294 /* confdefs.h.  */
36295 _ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h.  */
36299 $ac_includes_default
36300    typedef long long int ac__type_sizeof_;
36301 int
36302 main ()
36303 {
36304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36305 test_array [0] = 0
36306
36307   ;
36308   return 0;
36309 }
36310 _ACEOF
36311 rm -f conftest.$ac_objext
36312 if { (ac_try="$ac_compile"
36313 case "(($ac_try" in
36314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36315   *) ac_try_echo=$ac_try;;
36316 esac
36317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36318   (eval "$ac_compile") 2>conftest.er1
36319   ac_status=$?
36320   grep -v '^ *+' conftest.er1 >conftest.err
36321   rm -f conftest.er1
36322   cat conftest.err >&5
36323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36324   (exit $ac_status); } && {
36325          test -z "$ac_c_werror_flag" ||
36326          test ! -s conftest.err
36327        } && test -s conftest.$ac_objext; then
36328   ac_lo=$ac_mid; break
36329 else
36330   echo "$as_me: failed program was:" >&5
36331 sed 's/^/| /' conftest.$ac_ext >&5
36332
36333         ac_hi=`expr '(' $ac_mid ')' - 1`
36334                         if test $ac_mid -le $ac_hi; then
36335                           ac_lo= ac_hi=
36336                           break
36337                         fi
36338                         ac_mid=`expr 2 '*' $ac_mid`
36339 fi
36340
36341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36342   done
36343 else
36344   echo "$as_me: failed program was:" >&5
36345 sed 's/^/| /' conftest.$ac_ext >&5
36346
36347         ac_lo= ac_hi=
36348 fi
36349
36350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351 fi
36352
36353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36354 # Binary search between lo and hi bounds.
36355 while test "x$ac_lo" != "x$ac_hi"; do
36356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36357   cat >conftest.$ac_ext <<_ACEOF
36358 /* confdefs.h.  */
36359 _ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h.  */
36363 $ac_includes_default
36364    typedef long long int ac__type_sizeof_;
36365 int
36366 main ()
36367 {
36368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36369 test_array [0] = 0
36370
36371   ;
36372   return 0;
36373 }
36374 _ACEOF
36375 rm -f conftest.$ac_objext
36376 if { (ac_try="$ac_compile"
36377 case "(($ac_try" in
36378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36379   *) ac_try_echo=$ac_try;;
36380 esac
36381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36382   (eval "$ac_compile") 2>conftest.er1
36383   ac_status=$?
36384   grep -v '^ *+' conftest.er1 >conftest.err
36385   rm -f conftest.er1
36386   cat conftest.err >&5
36387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388   (exit $ac_status); } && {
36389          test -z "$ac_c_werror_flag" ||
36390          test ! -s conftest.err
36391        } && test -s conftest.$ac_objext; then
36392   ac_hi=$ac_mid
36393 else
36394   echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36396
36397         ac_lo=`expr '(' $ac_mid ')' + 1`
36398 fi
36399
36400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36401 done
36402 case $ac_lo in
36403 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36404 '') if test "$ac_cv_type_long_long_int" = yes; then
36405      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36406 See \`config.log' for more details." >&5
36407 echo "$as_me: error: cannot compute sizeof (long long int)
36408 See \`config.log' for more details." >&2;}
36409    { (exit 77); exit 77; }; }
36410    else
36411      ac_cv_sizeof_long_long_int=0
36412    fi ;;
36413 esac
36414 else
36415   cat >conftest.$ac_ext <<_ACEOF
36416 /* confdefs.h.  */
36417 _ACEOF
36418 cat confdefs.h >>conftest.$ac_ext
36419 cat >>conftest.$ac_ext <<_ACEOF
36420 /* end confdefs.h.  */
36421 $ac_includes_default
36422    typedef long long int ac__type_sizeof_;
36423 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36424 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36425 #include <stdio.h>
36426 #include <stdlib.h>
36427 int
36428 main ()
36429 {
36430
36431   FILE *f = fopen ("conftest.val", "w");
36432   if (! f)
36433     return 1;
36434   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36435     {
36436       long int i = longval ();
36437       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36438         return 1;
36439       fprintf (f, "%ld\n", i);
36440     }
36441   else
36442     {
36443       unsigned long int i = ulongval ();
36444       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36445         return 1;
36446       fprintf (f, "%lu\n", i);
36447     }
36448   return ferror (f) || fclose (f) != 0;
36449
36450   ;
36451   return 0;
36452 }
36453 _ACEOF
36454 rm -f conftest$ac_exeext
36455 if { (ac_try="$ac_link"
36456 case "(($ac_try" in
36457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36458   *) ac_try_echo=$ac_try;;
36459 esac
36460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36461   (eval "$ac_link") 2>&5
36462   ac_status=$?
36463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36465   { (case "(($ac_try" in
36466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36467   *) ac_try_echo=$ac_try;;
36468 esac
36469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36470   (eval "$ac_try") 2>&5
36471   ac_status=$?
36472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36473   (exit $ac_status); }; }; then
36474   ac_cv_sizeof_long_long_int=`cat conftest.val`
36475 else
36476   echo "$as_me: program exited with status $ac_status" >&5
36477 echo "$as_me: failed program was:" >&5
36478 sed 's/^/| /' conftest.$ac_ext >&5
36479
36480 ( exit $ac_status )
36481 if test "$ac_cv_type_long_long_int" = yes; then
36482      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36483 See \`config.log' for more details." >&5
36484 echo "$as_me: error: cannot compute sizeof (long long int)
36485 See \`config.log' for more details." >&2;}
36486    { (exit 77); exit 77; }; }
36487    else
36488      ac_cv_sizeof_long_long_int=0
36489    fi
36490 fi
36491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36492 fi
36493 rm -f conftest.val
36494 fi
36495 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36496 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36497
36498
36499
36500 cat >>confdefs.h <<_ACEOF
36501 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36502 _ACEOF
36503
36504
36505 { echo "$as_me:$LINENO: checking for int *" >&5
36506 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36507 if test "${ac_cv_type_int_p+set}" = set; then
36508   echo $ECHO_N "(cached) $ECHO_C" >&6
36509 else
36510   cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516 $ac_includes_default
36517 typedef int * ac__type_new_;
36518 int
36519 main ()
36520 {
36521 if ((ac__type_new_ *) 0)
36522   return 0;
36523 if (sizeof (ac__type_new_))
36524   return 0;
36525   ;
36526   return 0;
36527 }
36528 _ACEOF
36529 rm -f conftest.$ac_objext
36530 if { (ac_try="$ac_compile"
36531 case "(($ac_try" in
36532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36533   *) ac_try_echo=$ac_try;;
36534 esac
36535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36536   (eval "$ac_compile") 2>conftest.er1
36537   ac_status=$?
36538   grep -v '^ *+' conftest.er1 >conftest.err
36539   rm -f conftest.er1
36540   cat conftest.err >&5
36541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542   (exit $ac_status); } && {
36543          test -z "$ac_c_werror_flag" ||
36544          test ! -s conftest.err
36545        } && test -s conftest.$ac_objext; then
36546   ac_cv_type_int_p=yes
36547 else
36548   echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36550
36551         ac_cv_type_int_p=no
36552 fi
36553
36554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36555 fi
36556 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36557 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36558
36559 # The cast to long int works around a bug in the HP C Compiler
36560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36562 # This bug is HP SR number 8606223364.
36563 { echo "$as_me:$LINENO: checking size of int *" >&5
36564 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36565 if test "${ac_cv_sizeof_int_p+set}" = set; then
36566   echo $ECHO_N "(cached) $ECHO_C" >&6
36567 else
36568   if test "$cross_compiling" = yes; then
36569   # Depending upon the size, compute the lo and hi bounds.
36570 cat >conftest.$ac_ext <<_ACEOF
36571 /* confdefs.h.  */
36572 _ACEOF
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h.  */
36576 $ac_includes_default
36577    typedef int * ac__type_sizeof_;
36578 int
36579 main ()
36580 {
36581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36582 test_array [0] = 0
36583
36584   ;
36585   return 0;
36586 }
36587 _ACEOF
36588 rm -f conftest.$ac_objext
36589 if { (ac_try="$ac_compile"
36590 case "(($ac_try" in
36591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36592   *) ac_try_echo=$ac_try;;
36593 esac
36594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36595   (eval "$ac_compile") 2>conftest.er1
36596   ac_status=$?
36597   grep -v '^ *+' conftest.er1 >conftest.err
36598   rm -f conftest.er1
36599   cat conftest.err >&5
36600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601   (exit $ac_status); } && {
36602          test -z "$ac_c_werror_flag" ||
36603          test ! -s conftest.err
36604        } && test -s conftest.$ac_objext; then
36605   ac_lo=0 ac_mid=0
36606   while :; do
36607     cat >conftest.$ac_ext <<_ACEOF
36608 /* confdefs.h.  */
36609 _ACEOF
36610 cat confdefs.h >>conftest.$ac_ext
36611 cat >>conftest.$ac_ext <<_ACEOF
36612 /* end confdefs.h.  */
36613 $ac_includes_default
36614    typedef int * ac__type_sizeof_;
36615 int
36616 main ()
36617 {
36618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36619 test_array [0] = 0
36620
36621   ;
36622   return 0;
36623 }
36624 _ACEOF
36625 rm -f conftest.$ac_objext
36626 if { (ac_try="$ac_compile"
36627 case "(($ac_try" in
36628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36629   *) ac_try_echo=$ac_try;;
36630 esac
36631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36632   (eval "$ac_compile") 2>conftest.er1
36633   ac_status=$?
36634   grep -v '^ *+' conftest.er1 >conftest.err
36635   rm -f conftest.er1
36636   cat conftest.err >&5
36637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638   (exit $ac_status); } && {
36639          test -z "$ac_c_werror_flag" ||
36640          test ! -s conftest.err
36641        } && test -s conftest.$ac_objext; then
36642   ac_hi=$ac_mid; break
36643 else
36644   echo "$as_me: failed program was:" >&5
36645 sed 's/^/| /' conftest.$ac_ext >&5
36646
36647         ac_lo=`expr $ac_mid + 1`
36648                         if test $ac_lo -le $ac_mid; then
36649                           ac_lo= ac_hi=
36650                           break
36651                         fi
36652                         ac_mid=`expr 2 '*' $ac_mid + 1`
36653 fi
36654
36655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36656   done
36657 else
36658   echo "$as_me: failed program was:" >&5
36659 sed 's/^/| /' conftest.$ac_ext >&5
36660
36661         cat >conftest.$ac_ext <<_ACEOF
36662 /* confdefs.h.  */
36663 _ACEOF
36664 cat confdefs.h >>conftest.$ac_ext
36665 cat >>conftest.$ac_ext <<_ACEOF
36666 /* end confdefs.h.  */
36667 $ac_includes_default
36668    typedef int * ac__type_sizeof_;
36669 int
36670 main ()
36671 {
36672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36673 test_array [0] = 0
36674
36675   ;
36676   return 0;
36677 }
36678 _ACEOF
36679 rm -f conftest.$ac_objext
36680 if { (ac_try="$ac_compile"
36681 case "(($ac_try" in
36682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36683   *) ac_try_echo=$ac_try;;
36684 esac
36685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36686   (eval "$ac_compile") 2>conftest.er1
36687   ac_status=$?
36688   grep -v '^ *+' conftest.er1 >conftest.err
36689   rm -f conftest.er1
36690   cat conftest.err >&5
36691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692   (exit $ac_status); } && {
36693          test -z "$ac_c_werror_flag" ||
36694          test ! -s conftest.err
36695        } && test -s conftest.$ac_objext; then
36696   ac_hi=-1 ac_mid=-1
36697   while :; do
36698     cat >conftest.$ac_ext <<_ACEOF
36699 /* confdefs.h.  */
36700 _ACEOF
36701 cat confdefs.h >>conftest.$ac_ext
36702 cat >>conftest.$ac_ext <<_ACEOF
36703 /* end confdefs.h.  */
36704 $ac_includes_default
36705    typedef int * ac__type_sizeof_;
36706 int
36707 main ()
36708 {
36709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36710 test_array [0] = 0
36711
36712   ;
36713   return 0;
36714 }
36715 _ACEOF
36716 rm -f conftest.$ac_objext
36717 if { (ac_try="$ac_compile"
36718 case "(($ac_try" in
36719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36720   *) ac_try_echo=$ac_try;;
36721 esac
36722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36723   (eval "$ac_compile") 2>conftest.er1
36724   ac_status=$?
36725   grep -v '^ *+' conftest.er1 >conftest.err
36726   rm -f conftest.er1
36727   cat conftest.err >&5
36728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729   (exit $ac_status); } && {
36730          test -z "$ac_c_werror_flag" ||
36731          test ! -s conftest.err
36732        } && test -s conftest.$ac_objext; then
36733   ac_lo=$ac_mid; break
36734 else
36735   echo "$as_me: failed program was:" >&5
36736 sed 's/^/| /' conftest.$ac_ext >&5
36737
36738         ac_hi=`expr '(' $ac_mid ')' - 1`
36739                         if test $ac_mid -le $ac_hi; then
36740                           ac_lo= ac_hi=
36741                           break
36742                         fi
36743                         ac_mid=`expr 2 '*' $ac_mid`
36744 fi
36745
36746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36747   done
36748 else
36749   echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36751
36752         ac_lo= ac_hi=
36753 fi
36754
36755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36756 fi
36757
36758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36759 # Binary search between lo and hi bounds.
36760 while test "x$ac_lo" != "x$ac_hi"; do
36761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36762   cat >conftest.$ac_ext <<_ACEOF
36763 /* confdefs.h.  */
36764 _ACEOF
36765 cat confdefs.h >>conftest.$ac_ext
36766 cat >>conftest.$ac_ext <<_ACEOF
36767 /* end confdefs.h.  */
36768 $ac_includes_default
36769    typedef int * ac__type_sizeof_;
36770 int
36771 main ()
36772 {
36773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36774 test_array [0] = 0
36775
36776   ;
36777   return 0;
36778 }
36779 _ACEOF
36780 rm -f conftest.$ac_objext
36781 if { (ac_try="$ac_compile"
36782 case "(($ac_try" in
36783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36784   *) ac_try_echo=$ac_try;;
36785 esac
36786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36787   (eval "$ac_compile") 2>conftest.er1
36788   ac_status=$?
36789   grep -v '^ *+' conftest.er1 >conftest.err
36790   rm -f conftest.er1
36791   cat conftest.err >&5
36792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793   (exit $ac_status); } && {
36794          test -z "$ac_c_werror_flag" ||
36795          test ! -s conftest.err
36796        } && test -s conftest.$ac_objext; then
36797   ac_hi=$ac_mid
36798 else
36799   echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36801
36802         ac_lo=`expr '(' $ac_mid ')' + 1`
36803 fi
36804
36805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36806 done
36807 case $ac_lo in
36808 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36809 '') if test "$ac_cv_type_int_p" = yes; then
36810      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36811 See \`config.log' for more details." >&5
36812 echo "$as_me: error: cannot compute sizeof (int *)
36813 See \`config.log' for more details." >&2;}
36814    { (exit 77); exit 77; }; }
36815    else
36816      ac_cv_sizeof_int_p=0
36817    fi ;;
36818 esac
36819 else
36820   cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h.  */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h.  */
36826 $ac_includes_default
36827    typedef int * ac__type_sizeof_;
36828 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36829 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36830 #include <stdio.h>
36831 #include <stdlib.h>
36832 int
36833 main ()
36834 {
36835
36836   FILE *f = fopen ("conftest.val", "w");
36837   if (! f)
36838     return 1;
36839   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36840     {
36841       long int i = longval ();
36842       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36843         return 1;
36844       fprintf (f, "%ld\n", i);
36845     }
36846   else
36847     {
36848       unsigned long int i = ulongval ();
36849       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36850         return 1;
36851       fprintf (f, "%lu\n", i);
36852     }
36853   return ferror (f) || fclose (f) != 0;
36854
36855   ;
36856   return 0;
36857 }
36858 _ACEOF
36859 rm -f conftest$ac_exeext
36860 if { (ac_try="$ac_link"
36861 case "(($ac_try" in
36862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36863   *) ac_try_echo=$ac_try;;
36864 esac
36865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36866   (eval "$ac_link") 2>&5
36867   ac_status=$?
36868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36870   { (case "(($ac_try" in
36871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36872   *) ac_try_echo=$ac_try;;
36873 esac
36874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36875   (eval "$ac_try") 2>&5
36876   ac_status=$?
36877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878   (exit $ac_status); }; }; then
36879   ac_cv_sizeof_int_p=`cat conftest.val`
36880 else
36881   echo "$as_me: program exited with status $ac_status" >&5
36882 echo "$as_me: failed program was:" >&5
36883 sed 's/^/| /' conftest.$ac_ext >&5
36884
36885 ( exit $ac_status )
36886 if test "$ac_cv_type_int_p" = yes; then
36887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36888 See \`config.log' for more details." >&5
36889 echo "$as_me: error: cannot compute sizeof (int *)
36890 See \`config.log' for more details." >&2;}
36891    { (exit 77); exit 77; }; }
36892    else
36893      ac_cv_sizeof_int_p=0
36894    fi
36895 fi
36896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36897 fi
36898 rm -f conftest.val
36899 fi
36900 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36901 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36902
36903
36904
36905 cat >>confdefs.h <<_ACEOF
36906 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36907 _ACEOF
36908
36909
36910
36911 { echo "$as_me:$LINENO: checking for u_int type" >&5
36912 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36913 if test "${ac_cv_have_u_int+set}" = set; then
36914   echo $ECHO_N "(cached) $ECHO_C" >&6
36915 else
36916
36917        cat >conftest.$ac_ext <<_ACEOF
36918 /* confdefs.h.  */
36919 _ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h.  */
36923
36924               #include <sys/types.h>
36925
36926 int
36927 main ()
36928 {
36929
36930               u_int a; a = 1;
36931
36932   ;
36933   return 0;
36934 }
36935 _ACEOF
36936 rm -f conftest.$ac_objext
36937 if { (ac_try="$ac_compile"
36938 case "(($ac_try" in
36939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36940   *) ac_try_echo=$ac_try;;
36941 esac
36942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36943   (eval "$ac_compile") 2>conftest.er1
36944   ac_status=$?
36945   grep -v '^ *+' conftest.er1 >conftest.err
36946   rm -f conftest.er1
36947   cat conftest.err >&5
36948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949   (exit $ac_status); } && {
36950          test -z "$ac_c_werror_flag" ||
36951          test ! -s conftest.err
36952        } && test -s conftest.$ac_objext; then
36953
36954               ac_cv_have_u_int="yes"
36955
36956 else
36957   echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36959
36960
36961               ac_cv_have_u_int="no"
36962
36963
36964 fi
36965
36966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36967
36968
36969 fi
36970 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36971 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36972 if test "x$ac_cv_have_u_int" = "xyes" ; then
36973    cat >>confdefs.h <<\_ACEOF
36974 #define HAVE_U_INT 1
36975 _ACEOF
36976
36977    have_u_int=1
36978 fi
36979
36980 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36981 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36982 if test "${ac_cv_have_intmax_t+set}" = set; then
36983   echo $ECHO_N "(cached) $ECHO_C" >&6
36984 else
36985
36986        cat >conftest.$ac_ext <<_ACEOF
36987 /* confdefs.h.  */
36988 _ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h.  */
36992
36993               #include <sys/types.h>
36994
36995 int
36996 main ()
36997 {
36998
36999               intmax_t a; a = 1;
37000
37001   ;
37002   return 0;
37003 }
37004 _ACEOF
37005 rm -f conftest.$ac_objext
37006 if { (ac_try="$ac_compile"
37007 case "(($ac_try" in
37008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37009   *) ac_try_echo=$ac_try;;
37010 esac
37011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37012   (eval "$ac_compile") 2>conftest.er1
37013   ac_status=$?
37014   grep -v '^ *+' conftest.er1 >conftest.err
37015   rm -f conftest.er1
37016   cat conftest.err >&5
37017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018   (exit $ac_status); } && {
37019          test -z "$ac_c_werror_flag" ||
37020          test ! -s conftest.err
37021        } && test -s conftest.$ac_objext; then
37022
37023               ac_cv_have_intmax_t="yes"
37024
37025 else
37026   echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37028
37029
37030               cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036
37037                      #include <stdint.h>
37038
37039 int
37040 main ()
37041 {
37042
37043                      intmax_t a; a = 1;
37044
37045   ;
37046   return 0;
37047 }
37048 _ACEOF
37049 rm -f conftest.$ac_objext
37050 if { (ac_try="$ac_compile"
37051 case "(($ac_try" in
37052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37053   *) ac_try_echo=$ac_try;;
37054 esac
37055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37056   (eval "$ac_compile") 2>conftest.er1
37057   ac_status=$?
37058   grep -v '^ *+' conftest.er1 >conftest.err
37059   rm -f conftest.er1
37060   cat conftest.err >&5
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); } && {
37063          test -z "$ac_c_werror_flag" ||
37064          test ! -s conftest.err
37065        } && test -s conftest.$ac_objext; then
37066
37067                      ac_cv_have_intmax_t="yes"
37068
37069 else
37070   echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37072
37073
37074                      ac_cv_have_intmax_t="no"
37075
37076
37077 fi
37078
37079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37080
37081
37082 fi
37083
37084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37085
37086
37087 fi
37088 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37089 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37090 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37091    cat >>confdefs.h <<\_ACEOF
37092 #define HAVE_INTMAX_T 1
37093 _ACEOF
37094
37095    have_intmax_t=1
37096 fi
37097
37098 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37099 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37100 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37101   echo $ECHO_N "(cached) $ECHO_C" >&6
37102 else
37103
37104        cat >conftest.$ac_ext <<_ACEOF
37105 /* confdefs.h.  */
37106 _ACEOF
37107 cat confdefs.h >>conftest.$ac_ext
37108 cat >>conftest.$ac_ext <<_ACEOF
37109 /* end confdefs.h.  */
37110
37111               #include <sys/types.h>
37112
37113 int
37114 main ()
37115 {
37116
37117               u_intmax_t a; a = 1;
37118
37119   ;
37120   return 0;
37121 }
37122 _ACEOF
37123 rm -f conftest.$ac_objext
37124 if { (ac_try="$ac_compile"
37125 case "(($ac_try" in
37126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37127   *) ac_try_echo=$ac_try;;
37128 esac
37129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37130   (eval "$ac_compile") 2>conftest.er1
37131   ac_status=$?
37132   grep -v '^ *+' conftest.er1 >conftest.err
37133   rm -f conftest.er1
37134   cat conftest.err >&5
37135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136   (exit $ac_status); } && {
37137          test -z "$ac_c_werror_flag" ||
37138          test ! -s conftest.err
37139        } && test -s conftest.$ac_objext; then
37140
37141               ac_cv_have_u_intmax_t="yes"
37142
37143 else
37144   echo "$as_me: failed program was:" >&5
37145 sed 's/^/| /' conftest.$ac_ext >&5
37146
37147
37148               cat >conftest.$ac_ext <<_ACEOF
37149 /* confdefs.h.  */
37150 _ACEOF
37151 cat confdefs.h >>conftest.$ac_ext
37152 cat >>conftest.$ac_ext <<_ACEOF
37153 /* end confdefs.h.  */
37154
37155                      #include <stdint.h>
37156
37157 int
37158 main ()
37159 {
37160
37161                     u_intmax_t a; a = 1;
37162
37163   ;
37164   return 0;
37165 }
37166 _ACEOF
37167 rm -f conftest.$ac_objext
37168 if { (ac_try="$ac_compile"
37169 case "(($ac_try" in
37170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37171   *) ac_try_echo=$ac_try;;
37172 esac
37173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37174   (eval "$ac_compile") 2>conftest.er1
37175   ac_status=$?
37176   grep -v '^ *+' conftest.er1 >conftest.err
37177   rm -f conftest.er1
37178   cat conftest.err >&5
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); } && {
37181          test -z "$ac_c_werror_flag" ||
37182          test ! -s conftest.err
37183        } && test -s conftest.$ac_objext; then
37184
37185                     ac_cv_have_u_intmax_t="yes"
37186
37187 else
37188   echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37190
37191
37192                     ac_cv_have_u_intmax_t="no"
37193
37194
37195 fi
37196
37197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37198
37199
37200 fi
37201
37202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37203
37204
37205 fi
37206 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37207 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37208 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37209    cat >>confdefs.h <<\_ACEOF
37210 #define HAVE_U_INTMAX_T 1
37211 _ACEOF
37212
37213    have_u_intmax_t=1
37214 fi
37215
37216 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37217 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37218 if test "${ac_cv_have_intxx_t+set}" = set; then
37219   echo $ECHO_N "(cached) $ECHO_C" >&6
37220 else
37221
37222        cat >conftest.$ac_ext <<_ACEOF
37223 /* confdefs.h.  */
37224 _ACEOF
37225 cat confdefs.h >>conftest.$ac_ext
37226 cat >>conftest.$ac_ext <<_ACEOF
37227 /* end confdefs.h.  */
37228
37229               #include <sys/types.h>
37230
37231 int
37232 main ()
37233 {
37234
37235               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37236
37237   ;
37238   return 0;
37239 }
37240 _ACEOF
37241 rm -f conftest.$ac_objext
37242 if { (ac_try="$ac_compile"
37243 case "(($ac_try" in
37244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245   *) ac_try_echo=$ac_try;;
37246 esac
37247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37248   (eval "$ac_compile") 2>conftest.er1
37249   ac_status=$?
37250   grep -v '^ *+' conftest.er1 >conftest.err
37251   rm -f conftest.er1
37252   cat conftest.err >&5
37253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254   (exit $ac_status); } && {
37255          test -z "$ac_c_werror_flag" ||
37256          test ! -s conftest.err
37257        } && test -s conftest.$ac_objext; then
37258
37259               ac_cv_have_intxx_t="yes"
37260
37261 else
37262   echo "$as_me: failed program was:" >&5
37263 sed 's/^/| /' conftest.$ac_ext >&5
37264
37265
37266               ac_cv_have_intxx_t="no"
37267
37268
37269 fi
37270
37271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37272
37273
37274 fi
37275 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37276 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37277 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37278    cat >>confdefs.h <<\_ACEOF
37279 #define HAVE_INTXX_T 1
37280 _ACEOF
37281
37282    have_intxx_t=1
37283 fi
37284
37285 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37286 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37287 if test "${ac_cv_have_int64_t+set}" = set; then
37288   echo $ECHO_N "(cached) $ECHO_C" >&6
37289 else
37290
37291        cat >conftest.$ac_ext <<_ACEOF
37292 /* confdefs.h.  */
37293 _ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h.  */
37297
37298               #include <sys/types.h>
37299
37300 int
37301 main ()
37302 {
37303
37304               int64_t a; a = 1;
37305
37306   ;
37307   return 0;
37308 }
37309 _ACEOF
37310 rm -f conftest.$ac_objext
37311 if { (ac_try="$ac_compile"
37312 case "(($ac_try" in
37313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37314   *) ac_try_echo=$ac_try;;
37315 esac
37316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37317   (eval "$ac_compile") 2>conftest.er1
37318   ac_status=$?
37319   grep -v '^ *+' conftest.er1 >conftest.err
37320   rm -f conftest.er1
37321   cat conftest.err >&5
37322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323   (exit $ac_status); } && {
37324          test -z "$ac_c_werror_flag" ||
37325          test ! -s conftest.err
37326        } && test -s conftest.$ac_objext; then
37327
37328               ac_cv_have_int64_t="yes"
37329
37330 else
37331   echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37333
37334
37335               ac_cv_have_int64_t="no"
37336
37337
37338 fi
37339
37340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37341
37342
37343 fi
37344 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37345 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37346 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37347    cat >>confdefs.h <<\_ACEOF
37348 #define HAVE_INT64_T 1
37349 _ACEOF
37350
37351    have_int64_t=1
37352 fi
37353
37354 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37355 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37356 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37357   echo $ECHO_N "(cached) $ECHO_C" >&6
37358 else
37359
37360        cat >conftest.$ac_ext <<_ACEOF
37361 /* confdefs.h.  */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h.  */
37366
37367               #include <sys/types.h>
37368
37369 int
37370 main ()
37371 {
37372
37373               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37374
37375   ;
37376   return 0;
37377 }
37378 _ACEOF
37379 rm -f conftest.$ac_objext
37380 if { (ac_try="$ac_compile"
37381 case "(($ac_try" in
37382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37383   *) ac_try_echo=$ac_try;;
37384 esac
37385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37386   (eval "$ac_compile") 2>conftest.er1
37387   ac_status=$?
37388   grep -v '^ *+' conftest.er1 >conftest.err
37389   rm -f conftest.er1
37390   cat conftest.err >&5
37391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392   (exit $ac_status); } && {
37393          test -z "$ac_c_werror_flag" ||
37394          test ! -s conftest.err
37395        } && test -s conftest.$ac_objext; then
37396
37397              ac_cv_have_u_intxx_t="yes"
37398
37399 else
37400   echo "$as_me: failed program was:" >&5
37401 sed 's/^/| /' conftest.$ac_ext >&5
37402
37403
37404              ac_cv_have_u_intxx_t="no"
37405
37406
37407 fi
37408
37409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37410
37411
37412 fi
37413 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37414 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37415 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37416    cat >>confdefs.h <<\_ACEOF
37417 #define HAVE_U_INTXX_T 1
37418 _ACEOF
37419
37420    have_u_intxx_t=1
37421 fi
37422
37423 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37424 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37425 if test "${ac_cv_have_u_int64_t+set}" = set; then
37426   echo $ECHO_N "(cached) $ECHO_C" >&6
37427 else
37428
37429        cat >conftest.$ac_ext <<_ACEOF
37430 /* confdefs.h.  */
37431 _ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h.  */
37435
37436               #include <sys/types.h>
37437
37438 int
37439 main ()
37440 {
37441
37442               u_int64_t a; a = 1;
37443
37444   ;
37445   return 0;
37446 }
37447 _ACEOF
37448 rm -f conftest.$ac_objext
37449 if { (ac_try="$ac_compile"
37450 case "(($ac_try" in
37451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37452   *) ac_try_echo=$ac_try;;
37453 esac
37454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37455   (eval "$ac_compile") 2>conftest.er1
37456   ac_status=$?
37457   grep -v '^ *+' conftest.er1 >conftest.err
37458   rm -f conftest.er1
37459   cat conftest.err >&5
37460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461   (exit $ac_status); } && {
37462          test -z "$ac_c_werror_flag" ||
37463          test ! -s conftest.err
37464        } && test -s conftest.$ac_objext; then
37465
37466              ac_cv_have_u_int64_t="yes"
37467
37468 else
37469   echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37471
37472
37473              ac_cv_have_u_int64_t="no"
37474
37475
37476 fi
37477
37478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37479
37480
37481 fi
37482 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37483 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37484 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37485    cat >>confdefs.h <<\_ACEOF
37486 #define HAVE_U_INT64_T 1
37487 _ACEOF
37488
37489    have_u_int64_t=1
37490 fi
37491
37492 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37493     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37494 then
37495    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37496 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37497    cat >conftest.$ac_ext <<_ACEOF
37498 /* confdefs.h.  */
37499 _ACEOF
37500 cat confdefs.h >>conftest.$ac_ext
37501 cat >>conftest.$ac_ext <<_ACEOF
37502 /* end confdefs.h.  */
37503
37504           #include <sys/bitypes.h>
37505
37506 int
37507 main ()
37508 {
37509
37510           int8_t a; int16_t b; int32_t c;
37511           u_int8_t e; u_int16_t f; u_int32_t g;
37512           a = b = c = e = f = g = 1;
37513
37514   ;
37515   return 0;
37516 }
37517 _ACEOF
37518 rm -f conftest.$ac_objext
37519 if { (ac_try="$ac_compile"
37520 case "(($ac_try" in
37521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37522   *) ac_try_echo=$ac_try;;
37523 esac
37524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37525   (eval "$ac_compile") 2>conftest.er1
37526   ac_status=$?
37527   grep -v '^ *+' conftest.er1 >conftest.err
37528   rm -f conftest.er1
37529   cat conftest.err >&5
37530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531   (exit $ac_status); } && {
37532          test -z "$ac_c_werror_flag" ||
37533          test ! -s conftest.err
37534        } && test -s conftest.$ac_objext; then
37535
37536           cat >>confdefs.h <<\_ACEOF
37537 #define HAVE_U_INTXX_T 1
37538 _ACEOF
37539
37540           cat >>confdefs.h <<\_ACEOF
37541 #define HAVE_INTXX_T 1
37542 _ACEOF
37543
37544           cat >>confdefs.h <<\_ACEOF
37545 #define HAVE_SYS_BITYPES_H 1
37546 _ACEOF
37547
37548           { echo "$as_me:$LINENO: result: yes" >&5
37549 echo "${ECHO_T}yes" >&6; }
37550
37551 else
37552   echo "$as_me: failed program was:" >&5
37553 sed 's/^/| /' conftest.$ac_ext >&5
37554
37555
37556           { echo "$as_me:$LINENO: result: no" >&5
37557 echo "${ECHO_T}no" >&6; }
37558
37559
37560 fi
37561
37562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37563 fi
37564
37565 if test -z "$have_u_intxx_t" ; then
37566    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37567 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37568 if test "${ac_cv_have_uintxx_t+set}" = set; then
37569   echo $ECHO_N "(cached) $ECHO_C" >&6
37570 else
37571
37572           cat >conftest.$ac_ext <<_ACEOF
37573 /* confdefs.h.  */
37574 _ACEOF
37575 cat confdefs.h >>conftest.$ac_ext
37576 cat >>conftest.$ac_ext <<_ACEOF
37577 /* end confdefs.h.  */
37578
37579                  #include <sys/types.h>
37580
37581 int
37582 main ()
37583 {
37584
37585                  uint8_t a; uint16_t b;
37586                  uint32_t c; a = b = c = 1;
37587
37588   ;
37589   return 0;
37590 }
37591 _ACEOF
37592 rm -f conftest.$ac_objext
37593 if { (ac_try="$ac_compile"
37594 case "(($ac_try" in
37595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37596   *) ac_try_echo=$ac_try;;
37597 esac
37598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37599   (eval "$ac_compile") 2>conftest.er1
37600   ac_status=$?
37601   grep -v '^ *+' conftest.er1 >conftest.err
37602   rm -f conftest.er1
37603   cat conftest.err >&5
37604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605   (exit $ac_status); } && {
37606          test -z "$ac_c_werror_flag" ||
37607          test ! -s conftest.err
37608        } && test -s conftest.$ac_objext; then
37609
37610                 ac_cv_have_uintxx_t="yes"
37611
37612 else
37613   echo "$as_me: failed program was:" >&5
37614 sed 's/^/| /' conftest.$ac_ext >&5
37615
37616
37617                 ac_cv_have_uintxx_t="no"
37618
37619
37620 fi
37621
37622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37623
37624
37625 fi
37626 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37627 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37628    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37629       cat >>confdefs.h <<\_ACEOF
37630 #define HAVE_UINTXX_T 1
37631 _ACEOF
37632
37633    fi
37634 fi
37635
37636 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37637     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37638 then
37639    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37640 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37641    cat >conftest.$ac_ext <<_ACEOF
37642 /* confdefs.h.  */
37643 _ACEOF
37644 cat confdefs.h >>conftest.$ac_ext
37645 cat >>conftest.$ac_ext <<_ACEOF
37646 /* end confdefs.h.  */
37647
37648           #include <sys/bitypes.h>
37649
37650 int
37651 main ()
37652 {
37653
37654           int64_t a; u_int64_t b;
37655           a = b = 1;
37656
37657   ;
37658   return 0;
37659 }
37660 _ACEOF
37661 rm -f conftest.$ac_objext
37662 if { (ac_try="$ac_compile"
37663 case "(($ac_try" in
37664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37665   *) ac_try_echo=$ac_try;;
37666 esac
37667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37668   (eval "$ac_compile") 2>conftest.er1
37669   ac_status=$?
37670   grep -v '^ *+' conftest.er1 >conftest.err
37671   rm -f conftest.er1
37672   cat conftest.err >&5
37673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674   (exit $ac_status); } && {
37675          test -z "$ac_c_werror_flag" ||
37676          test ! -s conftest.err
37677        } && test -s conftest.$ac_objext; then
37678
37679           cat >>confdefs.h <<\_ACEOF
37680 #define HAVE_U_INT64_T 1
37681 _ACEOF
37682
37683           cat >>confdefs.h <<\_ACEOF
37684 #define HAVE_INT64_T 1
37685 _ACEOF
37686
37687           { echo "$as_me:$LINENO: result: yes" >&5
37688 echo "${ECHO_T}yes" >&6; }
37689
37690 else
37691   echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37693
37694
37695           { echo "$as_me:$LINENO: result: no" >&5
37696 echo "${ECHO_T}no" >&6; }
37697
37698
37699 fi
37700
37701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37702 fi
37703
37704 if (test -z "$have_uintxx_t" && \
37705     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37706 then
37707    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37708 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37709    cat >conftest.$ac_ext <<_ACEOF
37710 /* confdefs.h.  */
37711 _ACEOF
37712 cat confdefs.h >>conftest.$ac_ext
37713 cat >>conftest.$ac_ext <<_ACEOF
37714 /* end confdefs.h.  */
37715
37716           #include <sys/bitypes.h>
37717
37718 int
37719 main ()
37720 {
37721
37722           uint8_t a; uint16_t b;
37723           uint32_t c; a = b = c = 1;
37724
37725   ;
37726   return 0;
37727 }
37728 _ACEOF
37729 rm -f conftest.$ac_objext
37730 if { (ac_try="$ac_compile"
37731 case "(($ac_try" in
37732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37733   *) ac_try_echo=$ac_try;;
37734 esac
37735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37736   (eval "$ac_compile") 2>conftest.er1
37737   ac_status=$?
37738   grep -v '^ *+' conftest.er1 >conftest.err
37739   rm -f conftest.er1
37740   cat conftest.err >&5
37741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742   (exit $ac_status); } && {
37743          test -z "$ac_c_werror_flag" ||
37744          test ! -s conftest.err
37745        } && test -s conftest.$ac_objext; then
37746
37747           cat >>confdefs.h <<\_ACEOF
37748 #define HAVE_UINTXX_T 1
37749 _ACEOF
37750
37751           { echo "$as_me:$LINENO: result: yes" >&5
37752 echo "${ECHO_T}yes" >&6; }
37753
37754 else
37755   echo "$as_me: failed program was:" >&5
37756 sed 's/^/| /' conftest.$ac_ext >&5
37757
37758
37759           { echo "$as_me:$LINENO: result: no" >&5
37760 echo "${ECHO_T}no" >&6; }
37761
37762
37763 fi
37764
37765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37766 fi
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781 for ac_func in \
37782    fork \
37783    getcwd \
37784    gethostname \
37785    getpid \
37786    gettimeofday \
37787    setpgid \
37788    setpgrp \
37789    setsid \
37790    signal \
37791    strerror \
37792    strncmp \
37793    strncpy \
37794    vfprintf \
37795
37796 do
37797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37801   echo $ECHO_N "(cached) $ECHO_C" >&6
37802 else
37803   cat >conftest.$ac_ext <<_ACEOF
37804 /* confdefs.h.  */
37805 _ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h.  */
37809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37811 #define $ac_func innocuous_$ac_func
37812
37813 /* System header to define __stub macros and hopefully few prototypes,
37814     which can conflict with char $ac_func (); below.
37815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37816     <limits.h> exists even on freestanding compilers.  */
37817
37818 #ifdef __STDC__
37819 # include <limits.h>
37820 #else
37821 # include <assert.h>
37822 #endif
37823
37824 #undef $ac_func
37825
37826 /* Override any GCC internal prototype to avoid an error.
37827    Use char because int might match the return type of a GCC
37828    builtin and then its argument prototype would still apply.  */
37829 #ifdef __cplusplus
37830 extern "C"
37831 #endif
37832 char $ac_func ();
37833 /* The GNU C library defines this for functions which it implements
37834     to always fail with ENOSYS.  Some functions are actually named
37835     something starting with __ and the normal name is an alias.  */
37836 #if defined __stub_$ac_func || defined __stub___$ac_func
37837 choke me
37838 #endif
37839
37840 int
37841 main ()
37842 {
37843 return $ac_func ();
37844   ;
37845   return 0;
37846 }
37847 _ACEOF
37848 rm -f conftest.$ac_objext conftest$ac_exeext
37849 if { (ac_try="$ac_link"
37850 case "(($ac_try" in
37851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37852   *) ac_try_echo=$ac_try;;
37853 esac
37854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37855   (eval "$ac_link") 2>conftest.er1
37856   ac_status=$?
37857   grep -v '^ *+' conftest.er1 >conftest.err
37858   rm -f conftest.er1
37859   cat conftest.err >&5
37860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861   (exit $ac_status); } && {
37862          test -z "$ac_c_werror_flag" ||
37863          test ! -s conftest.err
37864        } && test -s conftest$ac_exeext &&
37865        $as_test_x conftest$ac_exeext; then
37866   eval "$as_ac_var=yes"
37867 else
37868   echo "$as_me: failed program was:" >&5
37869 sed 's/^/| /' conftest.$ac_ext >&5
37870
37871         eval "$as_ac_var=no"
37872 fi
37873
37874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37875       conftest$ac_exeext conftest.$ac_ext
37876 fi
37877 ac_res=`eval echo '${'$as_ac_var'}'`
37878                { echo "$as_me:$LINENO: result: $ac_res" >&5
37879 echo "${ECHO_T}$ac_res" >&6; }
37880 if test `eval echo '${'$as_ac_var'}'` = yes; then
37881   cat >>confdefs.h <<_ACEOF
37882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37883 _ACEOF
37884
37885 else
37886   echo 'configure: cannot find needed function.'; exit 1
37887
37888 fi
37889 done
37890
37891
37892
37893 for ac_func in fchdir
37894 do
37895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37899   echo $ECHO_N "(cached) $ECHO_C" >&6
37900 else
37901   cat >conftest.$ac_ext <<_ACEOF
37902 /* confdefs.h.  */
37903 _ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h.  */
37907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37909 #define $ac_func innocuous_$ac_func
37910
37911 /* System header to define __stub macros and hopefully few prototypes,
37912     which can conflict with char $ac_func (); below.
37913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37914     <limits.h> exists even on freestanding compilers.  */
37915
37916 #ifdef __STDC__
37917 # include <limits.h>
37918 #else
37919 # include <assert.h>
37920 #endif
37921
37922 #undef $ac_func
37923
37924 /* Override any GCC internal prototype to avoid an error.
37925    Use char because int might match the return type of a GCC
37926    builtin and then its argument prototype would still apply.  */
37927 #ifdef __cplusplus
37928 extern "C"
37929 #endif
37930 char $ac_func ();
37931 /* The GNU C library defines this for functions which it implements
37932     to always fail with ENOSYS.  Some functions are actually named
37933     something starting with __ and the normal name is an alias.  */
37934 #if defined __stub_$ac_func || defined __stub___$ac_func
37935 choke me
37936 #endif
37937
37938 int
37939 main ()
37940 {
37941 return $ac_func ();
37942   ;
37943   return 0;
37944 }
37945 _ACEOF
37946 rm -f conftest.$ac_objext conftest$ac_exeext
37947 if { (ac_try="$ac_link"
37948 case "(($ac_try" in
37949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950   *) ac_try_echo=$ac_try;;
37951 esac
37952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37953   (eval "$ac_link") 2>conftest.er1
37954   ac_status=$?
37955   grep -v '^ *+' conftest.er1 >conftest.err
37956   rm -f conftest.er1
37957   cat conftest.err >&5
37958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37959   (exit $ac_status); } && {
37960          test -z "$ac_c_werror_flag" ||
37961          test ! -s conftest.err
37962        } && test -s conftest$ac_exeext &&
37963        $as_test_x conftest$ac_exeext; then
37964   eval "$as_ac_var=yes"
37965 else
37966   echo "$as_me: failed program was:" >&5
37967 sed 's/^/| /' conftest.$ac_ext >&5
37968
37969         eval "$as_ac_var=no"
37970 fi
37971
37972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37973       conftest$ac_exeext conftest.$ac_ext
37974 fi
37975 ac_res=`eval echo '${'$as_ac_var'}'`
37976                { echo "$as_me:$LINENO: result: $ac_res" >&5
37977 echo "${ECHO_T}$ac_res" >&6; }
37978 if test `eval echo '${'$as_ac_var'}'` = yes; then
37979   cat >>confdefs.h <<_ACEOF
37980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37981 _ACEOF
37982  cat >>confdefs.h <<\_ACEOF
37983 #define HAVE_FCHDIR 1
37984 _ACEOF
37985
37986 fi
37987 done
37988
37989
37990 for ac_func in strtoll
37991 do
37992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37996   echo $ECHO_N "(cached) $ECHO_C" >&6
37997 else
37998   cat >conftest.$ac_ext <<_ACEOF
37999 /* confdefs.h.  */
38000 _ACEOF
38001 cat confdefs.h >>conftest.$ac_ext
38002 cat >>conftest.$ac_ext <<_ACEOF
38003 /* end confdefs.h.  */
38004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38006 #define $ac_func innocuous_$ac_func
38007
38008 /* System header to define __stub macros and hopefully few prototypes,
38009     which can conflict with char $ac_func (); below.
38010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38011     <limits.h> exists even on freestanding compilers.  */
38012
38013 #ifdef __STDC__
38014 # include <limits.h>
38015 #else
38016 # include <assert.h>
38017 #endif
38018
38019 #undef $ac_func
38020
38021 /* Override any GCC internal prototype to avoid an error.
38022    Use char because int might match the return type of a GCC
38023    builtin and then its argument prototype would still apply.  */
38024 #ifdef __cplusplus
38025 extern "C"
38026 #endif
38027 char $ac_func ();
38028 /* The GNU C library defines this for functions which it implements
38029     to always fail with ENOSYS.  Some functions are actually named
38030     something starting with __ and the normal name is an alias.  */
38031 #if defined __stub_$ac_func || defined __stub___$ac_func
38032 choke me
38033 #endif
38034
38035 int
38036 main ()
38037 {
38038 return $ac_func ();
38039   ;
38040   return 0;
38041 }
38042 _ACEOF
38043 rm -f conftest.$ac_objext conftest$ac_exeext
38044 if { (ac_try="$ac_link"
38045 case "(($ac_try" in
38046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38047   *) ac_try_echo=$ac_try;;
38048 esac
38049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38050   (eval "$ac_link") 2>conftest.er1
38051   ac_status=$?
38052   grep -v '^ *+' conftest.er1 >conftest.err
38053   rm -f conftest.er1
38054   cat conftest.err >&5
38055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056   (exit $ac_status); } && {
38057          test -z "$ac_c_werror_flag" ||
38058          test ! -s conftest.err
38059        } && test -s conftest$ac_exeext &&
38060        $as_test_x conftest$ac_exeext; then
38061   eval "$as_ac_var=yes"
38062 else
38063   echo "$as_me: failed program was:" >&5
38064 sed 's/^/| /' conftest.$ac_ext >&5
38065
38066         eval "$as_ac_var=no"
38067 fi
38068
38069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38070       conftest$ac_exeext conftest.$ac_ext
38071 fi
38072 ac_res=`eval echo '${'$as_ac_var'}'`
38073                { echo "$as_me:$LINENO: result: $ac_res" >&5
38074 echo "${ECHO_T}$ac_res" >&6; }
38075 if test `eval echo '${'$as_ac_var'}'` = yes; then
38076   cat >>confdefs.h <<_ACEOF
38077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38078 _ACEOF
38079  cat >>confdefs.h <<\_ACEOF
38080 #define HAVE_STRTOLL 1
38081 _ACEOF
38082
38083 fi
38084 done
38085
38086
38087 for ac_func in posix_fadvise
38088 do
38089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38093   echo $ECHO_N "(cached) $ECHO_C" >&6
38094 else
38095   cat >conftest.$ac_ext <<_ACEOF
38096 /* confdefs.h.  */
38097 _ACEOF
38098 cat confdefs.h >>conftest.$ac_ext
38099 cat >>conftest.$ac_ext <<_ACEOF
38100 /* end confdefs.h.  */
38101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38103 #define $ac_func innocuous_$ac_func
38104
38105 /* System header to define __stub macros and hopefully few prototypes,
38106     which can conflict with char $ac_func (); below.
38107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38108     <limits.h> exists even on freestanding compilers.  */
38109
38110 #ifdef __STDC__
38111 # include <limits.h>
38112 #else
38113 # include <assert.h>
38114 #endif
38115
38116 #undef $ac_func
38117
38118 /* Override any GCC internal prototype to avoid an error.
38119    Use char because int might match the return type of a GCC
38120    builtin and then its argument prototype would still apply.  */
38121 #ifdef __cplusplus
38122 extern "C"
38123 #endif
38124 char $ac_func ();
38125 /* The GNU C library defines this for functions which it implements
38126     to always fail with ENOSYS.  Some functions are actually named
38127     something starting with __ and the normal name is an alias.  */
38128 #if defined __stub_$ac_func || defined __stub___$ac_func
38129 choke me
38130 #endif
38131
38132 int
38133 main ()
38134 {
38135 return $ac_func ();
38136   ;
38137   return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext conftest$ac_exeext
38141 if { (ac_try="$ac_link"
38142 case "(($ac_try" in
38143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38144   *) ac_try_echo=$ac_try;;
38145 esac
38146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38147   (eval "$ac_link") 2>conftest.er1
38148   ac_status=$?
38149   grep -v '^ *+' conftest.er1 >conftest.err
38150   rm -f conftest.er1
38151   cat conftest.err >&5
38152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153   (exit $ac_status); } && {
38154          test -z "$ac_c_werror_flag" ||
38155          test ! -s conftest.err
38156        } && test -s conftest$ac_exeext &&
38157        $as_test_x conftest$ac_exeext; then
38158   eval "$as_ac_var=yes"
38159 else
38160   echo "$as_me: failed program was:" >&5
38161 sed 's/^/| /' conftest.$ac_ext >&5
38162
38163         eval "$as_ac_var=no"
38164 fi
38165
38166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38167       conftest$ac_exeext conftest.$ac_ext
38168 fi
38169 ac_res=`eval echo '${'$as_ac_var'}'`
38170                { echo "$as_me:$LINENO: result: $ac_res" >&5
38171 echo "${ECHO_T}$ac_res" >&6; }
38172 if test `eval echo '${'$as_ac_var'}'` = yes; then
38173   cat >>confdefs.h <<_ACEOF
38174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38175 _ACEOF
38176
38177 fi
38178 done
38179
38180
38181 for ac_func in fdatasync
38182 do
38183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38187   echo $ECHO_N "(cached) $ECHO_C" >&6
38188 else
38189   cat >conftest.$ac_ext <<_ACEOF
38190 /* confdefs.h.  */
38191 _ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h.  */
38195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38197 #define $ac_func innocuous_$ac_func
38198
38199 /* System header to define __stub macros and hopefully few prototypes,
38200     which can conflict with char $ac_func (); below.
38201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38202     <limits.h> exists even on freestanding compilers.  */
38203
38204 #ifdef __STDC__
38205 # include <limits.h>
38206 #else
38207 # include <assert.h>
38208 #endif
38209
38210 #undef $ac_func
38211
38212 /* Override any GCC internal prototype to avoid an error.
38213    Use char because int might match the return type of a GCC
38214    builtin and then its argument prototype would still apply.  */
38215 #ifdef __cplusplus
38216 extern "C"
38217 #endif
38218 char $ac_func ();
38219 /* The GNU C library defines this for functions which it implements
38220     to always fail with ENOSYS.  Some functions are actually named
38221     something starting with __ and the normal name is an alias.  */
38222 #if defined __stub_$ac_func || defined __stub___$ac_func
38223 choke me
38224 #endif
38225
38226 int
38227 main ()
38228 {
38229 return $ac_func ();
38230   ;
38231   return 0;
38232 }
38233 _ACEOF
38234 rm -f conftest.$ac_objext conftest$ac_exeext
38235 if { (ac_try="$ac_link"
38236 case "(($ac_try" in
38237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38238   *) ac_try_echo=$ac_try;;
38239 esac
38240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38241   (eval "$ac_link") 2>conftest.er1
38242   ac_status=$?
38243   grep -v '^ *+' conftest.er1 >conftest.err
38244   rm -f conftest.er1
38245   cat conftest.err >&5
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); } && {
38248          test -z "$ac_c_werror_flag" ||
38249          test ! -s conftest.err
38250        } && test -s conftest$ac_exeext &&
38251        $as_test_x conftest$ac_exeext; then
38252   eval "$as_ac_var=yes"
38253 else
38254   echo "$as_me: failed program was:" >&5
38255 sed 's/^/| /' conftest.$ac_ext >&5
38256
38257         eval "$as_ac_var=no"
38258 fi
38259
38260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38261       conftest$ac_exeext conftest.$ac_ext
38262 fi
38263 ac_res=`eval echo '${'$as_ac_var'}'`
38264                { echo "$as_me:$LINENO: result: $ac_res" >&5
38265 echo "${ECHO_T}$ac_res" >&6; }
38266 if test `eval echo '${'$as_ac_var'}'` = yes; then
38267   cat >>confdefs.h <<_ACEOF
38268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38269 _ACEOF
38270
38271 fi
38272 done
38273
38274
38275
38276 for ac_func in chflags
38277 do
38278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38282   echo $ECHO_N "(cached) $ECHO_C" >&6
38283 else
38284   cat >conftest.$ac_ext <<_ACEOF
38285 /* confdefs.h.  */
38286 _ACEOF
38287 cat confdefs.h >>conftest.$ac_ext
38288 cat >>conftest.$ac_ext <<_ACEOF
38289 /* end confdefs.h.  */
38290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38292 #define $ac_func innocuous_$ac_func
38293
38294 /* System header to define __stub macros and hopefully few prototypes,
38295     which can conflict with char $ac_func (); below.
38296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38297     <limits.h> exists even on freestanding compilers.  */
38298
38299 #ifdef __STDC__
38300 # include <limits.h>
38301 #else
38302 # include <assert.h>
38303 #endif
38304
38305 #undef $ac_func
38306
38307 /* Override any GCC internal prototype to avoid an error.
38308    Use char because int might match the return type of a GCC
38309    builtin and then its argument prototype would still apply.  */
38310 #ifdef __cplusplus
38311 extern "C"
38312 #endif
38313 char $ac_func ();
38314 /* The GNU C library defines this for functions which it implements
38315     to always fail with ENOSYS.  Some functions are actually named
38316     something starting with __ and the normal name is an alias.  */
38317 #if defined __stub_$ac_func || defined __stub___$ac_func
38318 choke me
38319 #endif
38320
38321 int
38322 main ()
38323 {
38324 return $ac_func ();
38325   ;
38326   return 0;
38327 }
38328 _ACEOF
38329 rm -f conftest.$ac_objext conftest$ac_exeext
38330 if { (ac_try="$ac_link"
38331 case "(($ac_try" in
38332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38333   *) ac_try_echo=$ac_try;;
38334 esac
38335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38336   (eval "$ac_link") 2>conftest.er1
38337   ac_status=$?
38338   grep -v '^ *+' conftest.er1 >conftest.err
38339   rm -f conftest.er1
38340   cat conftest.err >&5
38341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38342   (exit $ac_status); } && {
38343          test -z "$ac_c_werror_flag" ||
38344          test ! -s conftest.err
38345        } && test -s conftest$ac_exeext &&
38346        $as_test_x conftest$ac_exeext; then
38347   eval "$as_ac_var=yes"
38348 else
38349   echo "$as_me: failed program was:" >&5
38350 sed 's/^/| /' conftest.$ac_ext >&5
38351
38352         eval "$as_ac_var=no"
38353 fi
38354
38355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38356       conftest$ac_exeext conftest.$ac_ext
38357 fi
38358 ac_res=`eval echo '${'$as_ac_var'}'`
38359                { echo "$as_me:$LINENO: result: $ac_res" >&5
38360 echo "${ECHO_T}$ac_res" >&6; }
38361 if test `eval echo '${'$as_ac_var'}'` = yes; then
38362   cat >>confdefs.h <<_ACEOF
38363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38364 _ACEOF
38365
38366 fi
38367 done
38368
38369
38370
38371
38372
38373
38374 for ac_func in snprintf vsnprintf gethostid fseeko
38375 do
38376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38380   echo $ECHO_N "(cached) $ECHO_C" >&6
38381 else
38382   cat >conftest.$ac_ext <<_ACEOF
38383 /* confdefs.h.  */
38384 _ACEOF
38385 cat confdefs.h >>conftest.$ac_ext
38386 cat >>conftest.$ac_ext <<_ACEOF
38387 /* end confdefs.h.  */
38388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38390 #define $ac_func innocuous_$ac_func
38391
38392 /* System header to define __stub macros and hopefully few prototypes,
38393     which can conflict with char $ac_func (); below.
38394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38395     <limits.h> exists even on freestanding compilers.  */
38396
38397 #ifdef __STDC__
38398 # include <limits.h>
38399 #else
38400 # include <assert.h>
38401 #endif
38402
38403 #undef $ac_func
38404
38405 /* Override any GCC internal prototype to avoid an error.
38406    Use char because int might match the return type of a GCC
38407    builtin and then its argument prototype would still apply.  */
38408 #ifdef __cplusplus
38409 extern "C"
38410 #endif
38411 char $ac_func ();
38412 /* The GNU C library defines this for functions which it implements
38413     to always fail with ENOSYS.  Some functions are actually named
38414     something starting with __ and the normal name is an alias.  */
38415 #if defined __stub_$ac_func || defined __stub___$ac_func
38416 choke me
38417 #endif
38418
38419 int
38420 main ()
38421 {
38422 return $ac_func ();
38423   ;
38424   return 0;
38425 }
38426 _ACEOF
38427 rm -f conftest.$ac_objext conftest$ac_exeext
38428 if { (ac_try="$ac_link"
38429 case "(($ac_try" in
38430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38431   *) ac_try_echo=$ac_try;;
38432 esac
38433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38434   (eval "$ac_link") 2>conftest.er1
38435   ac_status=$?
38436   grep -v '^ *+' conftest.er1 >conftest.err
38437   rm -f conftest.er1
38438   cat conftest.err >&5
38439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440   (exit $ac_status); } && {
38441          test -z "$ac_c_werror_flag" ||
38442          test ! -s conftest.err
38443        } && test -s conftest$ac_exeext &&
38444        $as_test_x conftest$ac_exeext; then
38445   eval "$as_ac_var=yes"
38446 else
38447   echo "$as_me: failed program was:" >&5
38448 sed 's/^/| /' conftest.$ac_ext >&5
38449
38450         eval "$as_ac_var=no"
38451 fi
38452
38453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38454       conftest$ac_exeext conftest.$ac_ext
38455 fi
38456 ac_res=`eval echo '${'$as_ac_var'}'`
38457                { echo "$as_me:$LINENO: result: $ac_res" >&5
38458 echo "${ECHO_T}$ac_res" >&6; }
38459 if test `eval echo '${'$as_ac_var'}'` = yes; then
38460   cat >>confdefs.h <<_ACEOF
38461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38462 _ACEOF
38463
38464 fi
38465 done
38466
38467
38468 { echo "$as_me:$LINENO: checking for va_copy" >&5
38469 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38470 if test "${ba_cv_va_copy+set}" = set; then
38471   echo $ECHO_N "(cached) $ECHO_C" >&6
38472 else
38473
38474        cat >conftest.$ac_ext <<_ACEOF
38475 /* confdefs.h.  */
38476 _ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h.  */
38480
38481               #include <stdarg.h>
38482               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38483               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38484
38485 int
38486 main ()
38487 {
38488
38489               call_use_va_copy(1,2,3)
38490
38491   ;
38492   return 0;
38493 }
38494 _ACEOF
38495 rm -f conftest.$ac_objext conftest$ac_exeext
38496 if { (ac_try="$ac_link"
38497 case "(($ac_try" in
38498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38499   *) ac_try_echo=$ac_try;;
38500 esac
38501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38502   (eval "$ac_link") 2>conftest.er1
38503   ac_status=$?
38504   grep -v '^ *+' conftest.er1 >conftest.err
38505   rm -f conftest.er1
38506   cat conftest.err >&5
38507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508   (exit $ac_status); } && {
38509          test -z "$ac_c_werror_flag" ||
38510          test ! -s conftest.err
38511        } && test -s conftest$ac_exeext &&
38512        $as_test_x conftest$ac_exeext; then
38513
38514               ba_cv_va_copy=yes,
38515
38516 else
38517   echo "$as_me: failed program was:" >&5
38518 sed 's/^/| /' conftest.$ac_ext >&5
38519
38520
38521               ba_cv_va_copy=no
38522
38523
38524 fi
38525
38526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38527       conftest$ac_exeext conftest.$ac_ext
38528
38529
38530 fi
38531 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38532 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38533 test $ba_cv_va_copy = yes &&
38534 cat >>confdefs.h <<\_ACEOF
38535 #define HAVE_VA_COPY 1
38536 _ACEOF
38537
38538
38539
38540
38541
38542
38543 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38544 do
38545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38549   echo $ECHO_N "(cached) $ECHO_C" >&6
38550 else
38551   cat >conftest.$ac_ext <<_ACEOF
38552 /* confdefs.h.  */
38553 _ACEOF
38554 cat confdefs.h >>conftest.$ac_ext
38555 cat >>conftest.$ac_ext <<_ACEOF
38556 /* end confdefs.h.  */
38557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38559 #define $ac_func innocuous_$ac_func
38560
38561 /* System header to define __stub macros and hopefully few prototypes,
38562     which can conflict with char $ac_func (); below.
38563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38564     <limits.h> exists even on freestanding compilers.  */
38565
38566 #ifdef __STDC__
38567 # include <limits.h>
38568 #else
38569 # include <assert.h>
38570 #endif
38571
38572 #undef $ac_func
38573
38574 /* Override any GCC internal prototype to avoid an error.
38575    Use char because int might match the return type of a GCC
38576    builtin and then its argument prototype would still apply.  */
38577 #ifdef __cplusplus
38578 extern "C"
38579 #endif
38580 char $ac_func ();
38581 /* The GNU C library defines this for functions which it implements
38582     to always fail with ENOSYS.  Some functions are actually named
38583     something starting with __ and the normal name is an alias.  */
38584 #if defined __stub_$ac_func || defined __stub___$ac_func
38585 choke me
38586 #endif
38587
38588 int
38589 main ()
38590 {
38591 return $ac_func ();
38592   ;
38593   return 0;
38594 }
38595 _ACEOF
38596 rm -f conftest.$ac_objext conftest$ac_exeext
38597 if { (ac_try="$ac_link"
38598 case "(($ac_try" in
38599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38600   *) ac_try_echo=$ac_try;;
38601 esac
38602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38603   (eval "$ac_link") 2>conftest.er1
38604   ac_status=$?
38605   grep -v '^ *+' conftest.er1 >conftest.err
38606   rm -f conftest.er1
38607   cat conftest.err >&5
38608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609   (exit $ac_status); } && {
38610          test -z "$ac_c_werror_flag" ||
38611          test ! -s conftest.err
38612        } && test -s conftest$ac_exeext &&
38613        $as_test_x conftest$ac_exeext; then
38614   eval "$as_ac_var=yes"
38615 else
38616   echo "$as_me: failed program was:" >&5
38617 sed 's/^/| /' conftest.$ac_ext >&5
38618
38619         eval "$as_ac_var=no"
38620 fi
38621
38622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38623       conftest$ac_exeext conftest.$ac_ext
38624 fi
38625 ac_res=`eval echo '${'$as_ac_var'}'`
38626                { echo "$as_me:$LINENO: result: $ac_res" >&5
38627 echo "${ECHO_T}$ac_res" >&6; }
38628 if test `eval echo '${'$as_ac_var'}'` = yes; then
38629   cat >>confdefs.h <<_ACEOF
38630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38631 _ACEOF
38632
38633 fi
38634 done
38635
38636
38637 # If resolver functions are not in libc check for -lnsl or -lresolv.
38638 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38639 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38640 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38641   echo $ECHO_N "(cached) $ECHO_C" >&6
38642 else
38643   cat >conftest.$ac_ext <<_ACEOF
38644 /* confdefs.h.  */
38645 _ACEOF
38646 cat confdefs.h >>conftest.$ac_ext
38647 cat >>conftest.$ac_ext <<_ACEOF
38648 /* end confdefs.h.  */
38649 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38651 #define gethostbyname_r innocuous_gethostbyname_r
38652
38653 /* System header to define __stub macros and hopefully few prototypes,
38654     which can conflict with char gethostbyname_r (); below.
38655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38656     <limits.h> exists even on freestanding compilers.  */
38657
38658 #ifdef __STDC__
38659 # include <limits.h>
38660 #else
38661 # include <assert.h>
38662 #endif
38663
38664 #undef gethostbyname_r
38665
38666 /* Override any GCC internal prototype to avoid an error.
38667    Use char because int might match the return type of a GCC
38668    builtin and then its argument prototype would still apply.  */
38669 #ifdef __cplusplus
38670 extern "C"
38671 #endif
38672 char gethostbyname_r ();
38673 /* The GNU C library defines this for functions which it implements
38674     to always fail with ENOSYS.  Some functions are actually named
38675     something starting with __ and the normal name is an alias.  */
38676 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38677 choke me
38678 #endif
38679
38680 int
38681 main ()
38682 {
38683 return gethostbyname_r ();
38684   ;
38685   return 0;
38686 }
38687 _ACEOF
38688 rm -f conftest.$ac_objext conftest$ac_exeext
38689 if { (ac_try="$ac_link"
38690 case "(($ac_try" in
38691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38692   *) ac_try_echo=$ac_try;;
38693 esac
38694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38695   (eval "$ac_link") 2>conftest.er1
38696   ac_status=$?
38697   grep -v '^ *+' conftest.er1 >conftest.err
38698   rm -f conftest.er1
38699   cat conftest.err >&5
38700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701   (exit $ac_status); } && {
38702          test -z "$ac_c_werror_flag" ||
38703          test ! -s conftest.err
38704        } && test -s conftest$ac_exeext &&
38705        $as_test_x conftest$ac_exeext; then
38706   ac_cv_func_gethostbyname_r=yes
38707 else
38708   echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38710
38711         ac_cv_func_gethostbyname_r=no
38712 fi
38713
38714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38715       conftest$ac_exeext conftest.$ac_ext
38716 fi
38717 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38718 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38719 if test $ac_cv_func_gethostbyname_r = yes; then
38720   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38721 echo "${ECHO_T}using libc's resolver" >&6; }
38722 else
38723
38724 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38725 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38726 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38727   echo $ECHO_N "(cached) $ECHO_C" >&6
38728 else
38729   ac_check_lib_save_LIBS=$LIBS
38730 LIBS="-lnsl  $LIBS"
38731 cat >conftest.$ac_ext <<_ACEOF
38732 /* confdefs.h.  */
38733 _ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h.  */
38737
38738 /* Override any GCC internal prototype to avoid an error.
38739    Use char because int might match the return type of a GCC
38740    builtin and then its argument prototype would still apply.  */
38741 #ifdef __cplusplus
38742 extern "C"
38743 #endif
38744 char gethostbyname_r ();
38745 int
38746 main ()
38747 {
38748 return gethostbyname_r ();
38749   ;
38750   return 0;
38751 }
38752 _ACEOF
38753 rm -f conftest.$ac_objext conftest$ac_exeext
38754 if { (ac_try="$ac_link"
38755 case "(($ac_try" in
38756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38757   *) ac_try_echo=$ac_try;;
38758 esac
38759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38760   (eval "$ac_link") 2>conftest.er1
38761   ac_status=$?
38762   grep -v '^ *+' conftest.er1 >conftest.err
38763   rm -f conftest.er1
38764   cat conftest.err >&5
38765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766   (exit $ac_status); } && {
38767          test -z "$ac_c_werror_flag" ||
38768          test ! -s conftest.err
38769        } && test -s conftest$ac_exeext &&
38770        $as_test_x conftest$ac_exeext; then
38771   ac_cv_lib_nsl_gethostbyname_r=yes
38772 else
38773   echo "$as_me: failed program was:" >&5
38774 sed 's/^/| /' conftest.$ac_ext >&5
38775
38776         ac_cv_lib_nsl_gethostbyname_r=no
38777 fi
38778
38779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38780       conftest$ac_exeext conftest.$ac_ext
38781 LIBS=$ac_check_lib_save_LIBS
38782 fi
38783 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38784 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38785 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38786   cat >>confdefs.h <<_ACEOF
38787 #define HAVE_LIBNSL 1
38788 _ACEOF
38789
38790   LIBS="-lnsl $LIBS"
38791
38792 fi
38793
38794
38795 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38796 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38797 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38798   echo $ECHO_N "(cached) $ECHO_C" >&6
38799 else
38800   ac_check_lib_save_LIBS=$LIBS
38801 LIBS="-lresolv  $LIBS"
38802 cat >conftest.$ac_ext <<_ACEOF
38803 /* confdefs.h.  */
38804 _ACEOF
38805 cat confdefs.h >>conftest.$ac_ext
38806 cat >>conftest.$ac_ext <<_ACEOF
38807 /* end confdefs.h.  */
38808
38809 /* Override any GCC internal prototype to avoid an error.
38810    Use char because int might match the return type of a GCC
38811    builtin and then its argument prototype would still apply.  */
38812 #ifdef __cplusplus
38813 extern "C"
38814 #endif
38815 char gethostbyname_r ();
38816 int
38817 main ()
38818 {
38819 return gethostbyname_r ();
38820   ;
38821   return 0;
38822 }
38823 _ACEOF
38824 rm -f conftest.$ac_objext conftest$ac_exeext
38825 if { (ac_try="$ac_link"
38826 case "(($ac_try" in
38827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38828   *) ac_try_echo=$ac_try;;
38829 esac
38830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38831   (eval "$ac_link") 2>conftest.er1
38832   ac_status=$?
38833   grep -v '^ *+' conftest.er1 >conftest.err
38834   rm -f conftest.er1
38835   cat conftest.err >&5
38836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837   (exit $ac_status); } && {
38838          test -z "$ac_c_werror_flag" ||
38839          test ! -s conftest.err
38840        } && test -s conftest$ac_exeext &&
38841        $as_test_x conftest$ac_exeext; then
38842   ac_cv_lib_resolv_gethostbyname_r=yes
38843 else
38844   echo "$as_me: failed program was:" >&5
38845 sed 's/^/| /' conftest.$ac_ext >&5
38846
38847         ac_cv_lib_resolv_gethostbyname_r=no
38848 fi
38849
38850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38851       conftest$ac_exeext conftest.$ac_ext
38852 LIBS=$ac_check_lib_save_LIBS
38853 fi
38854 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38855 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38856 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38857   cat >>confdefs.h <<_ACEOF
38858 #define HAVE_LIBRESOLV 1
38859 _ACEOF
38860
38861   LIBS="-lresolv $LIBS"
38862
38863 fi
38864
38865 fi
38866
38867
38868
38869 for ac_func in inet_pton
38870 do
38871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38875   echo $ECHO_N "(cached) $ECHO_C" >&6
38876 else
38877   cat >conftest.$ac_ext <<_ACEOF
38878 /* confdefs.h.  */
38879 _ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h.  */
38883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38885 #define $ac_func innocuous_$ac_func
38886
38887 /* System header to define __stub macros and hopefully few prototypes,
38888     which can conflict with char $ac_func (); below.
38889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38890     <limits.h> exists even on freestanding compilers.  */
38891
38892 #ifdef __STDC__
38893 # include <limits.h>
38894 #else
38895 # include <assert.h>
38896 #endif
38897
38898 #undef $ac_func
38899
38900 /* Override any GCC internal prototype to avoid an error.
38901    Use char because int might match the return type of a GCC
38902    builtin and then its argument prototype would still apply.  */
38903 #ifdef __cplusplus
38904 extern "C"
38905 #endif
38906 char $ac_func ();
38907 /* The GNU C library defines this for functions which it implements
38908     to always fail with ENOSYS.  Some functions are actually named
38909     something starting with __ and the normal name is an alias.  */
38910 #if defined __stub_$ac_func || defined __stub___$ac_func
38911 choke me
38912 #endif
38913
38914 int
38915 main ()
38916 {
38917 return $ac_func ();
38918   ;
38919   return 0;
38920 }
38921 _ACEOF
38922 rm -f conftest.$ac_objext conftest$ac_exeext
38923 if { (ac_try="$ac_link"
38924 case "(($ac_try" in
38925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38926   *) ac_try_echo=$ac_try;;
38927 esac
38928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38929   (eval "$ac_link") 2>conftest.er1
38930   ac_status=$?
38931   grep -v '^ *+' conftest.er1 >conftest.err
38932   rm -f conftest.er1
38933   cat conftest.err >&5
38934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935   (exit $ac_status); } && {
38936          test -z "$ac_c_werror_flag" ||
38937          test ! -s conftest.err
38938        } && test -s conftest$ac_exeext &&
38939        $as_test_x conftest$ac_exeext; then
38940   eval "$as_ac_var=yes"
38941 else
38942   echo "$as_me: failed program was:" >&5
38943 sed 's/^/| /' conftest.$ac_ext >&5
38944
38945         eval "$as_ac_var=no"
38946 fi
38947
38948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38949       conftest$ac_exeext conftest.$ac_ext
38950 fi
38951 ac_res=`eval echo '${'$as_ac_var'}'`
38952                { echo "$as_me:$LINENO: result: $ac_res" >&5
38953 echo "${ECHO_T}$ac_res" >&6; }
38954 if test `eval echo '${'$as_ac_var'}'` = yes; then
38955   cat >>confdefs.h <<_ACEOF
38956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38957 _ACEOF
38958  cat >>confdefs.h <<\_ACEOF
38959 #define HAVE_INET_PTON 1
38960 _ACEOF
38961
38962 fi
38963 done
38964
38965
38966 for ac_func in inet_ntop
38967 do
38968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38972   echo $ECHO_N "(cached) $ECHO_C" >&6
38973 else
38974   cat >conftest.$ac_ext <<_ACEOF
38975 /* confdefs.h.  */
38976 _ACEOF
38977 cat confdefs.h >>conftest.$ac_ext
38978 cat >>conftest.$ac_ext <<_ACEOF
38979 /* end confdefs.h.  */
38980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38982 #define $ac_func innocuous_$ac_func
38983
38984 /* System header to define __stub macros and hopefully few prototypes,
38985     which can conflict with char $ac_func (); below.
38986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38987     <limits.h> exists even on freestanding compilers.  */
38988
38989 #ifdef __STDC__
38990 # include <limits.h>
38991 #else
38992 # include <assert.h>
38993 #endif
38994
38995 #undef $ac_func
38996
38997 /* Override any GCC internal prototype to avoid an error.
38998    Use char because int might match the return type of a GCC
38999    builtin and then its argument prototype would still apply.  */
39000 #ifdef __cplusplus
39001 extern "C"
39002 #endif
39003 char $ac_func ();
39004 /* The GNU C library defines this for functions which it implements
39005     to always fail with ENOSYS.  Some functions are actually named
39006     something starting with __ and the normal name is an alias.  */
39007 #if defined __stub_$ac_func || defined __stub___$ac_func
39008 choke me
39009 #endif
39010
39011 int
39012 main ()
39013 {
39014 return $ac_func ();
39015   ;
39016   return 0;
39017 }
39018 _ACEOF
39019 rm -f conftest.$ac_objext conftest$ac_exeext
39020 if { (ac_try="$ac_link"
39021 case "(($ac_try" in
39022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39023   *) ac_try_echo=$ac_try;;
39024 esac
39025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39026   (eval "$ac_link") 2>conftest.er1
39027   ac_status=$?
39028   grep -v '^ *+' conftest.er1 >conftest.err
39029   rm -f conftest.er1
39030   cat conftest.err >&5
39031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032   (exit $ac_status); } && {
39033          test -z "$ac_c_werror_flag" ||
39034          test ! -s conftest.err
39035        } && test -s conftest$ac_exeext &&
39036        $as_test_x conftest$ac_exeext; then
39037   eval "$as_ac_var=yes"
39038 else
39039   echo "$as_me: failed program was:" >&5
39040 sed 's/^/| /' conftest.$ac_ext >&5
39041
39042         eval "$as_ac_var=no"
39043 fi
39044
39045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39046       conftest$ac_exeext conftest.$ac_ext
39047 fi
39048 ac_res=`eval echo '${'$as_ac_var'}'`
39049                { echo "$as_me:$LINENO: result: $ac_res" >&5
39050 echo "${ECHO_T}$ac_res" >&6; }
39051 if test `eval echo '${'$as_ac_var'}'` = yes; then
39052   cat >>confdefs.h <<_ACEOF
39053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39054 _ACEOF
39055  cat >>confdefs.h <<\_ACEOF
39056 #define HAVE_INET_NTOP 1
39057 _ACEOF
39058
39059 fi
39060 done
39061
39062
39063 for ac_func in gethostbyname2
39064 do
39065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39069   echo $ECHO_N "(cached) $ECHO_C" >&6
39070 else
39071   cat >conftest.$ac_ext <<_ACEOF
39072 /* confdefs.h.  */
39073 _ACEOF
39074 cat confdefs.h >>conftest.$ac_ext
39075 cat >>conftest.$ac_ext <<_ACEOF
39076 /* end confdefs.h.  */
39077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39079 #define $ac_func innocuous_$ac_func
39080
39081 /* System header to define __stub macros and hopefully few prototypes,
39082     which can conflict with char $ac_func (); below.
39083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39084     <limits.h> exists even on freestanding compilers.  */
39085
39086 #ifdef __STDC__
39087 # include <limits.h>
39088 #else
39089 # include <assert.h>
39090 #endif
39091
39092 #undef $ac_func
39093
39094 /* Override any GCC internal prototype to avoid an error.
39095    Use char because int might match the return type of a GCC
39096    builtin and then its argument prototype would still apply.  */
39097 #ifdef __cplusplus
39098 extern "C"
39099 #endif
39100 char $ac_func ();
39101 /* The GNU C library defines this for functions which it implements
39102     to always fail with ENOSYS.  Some functions are actually named
39103     something starting with __ and the normal name is an alias.  */
39104 #if defined __stub_$ac_func || defined __stub___$ac_func
39105 choke me
39106 #endif
39107
39108 int
39109 main ()
39110 {
39111 return $ac_func ();
39112   ;
39113   return 0;
39114 }
39115 _ACEOF
39116 rm -f conftest.$ac_objext conftest$ac_exeext
39117 if { (ac_try="$ac_link"
39118 case "(($ac_try" in
39119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39120   *) ac_try_echo=$ac_try;;
39121 esac
39122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39123   (eval "$ac_link") 2>conftest.er1
39124   ac_status=$?
39125   grep -v '^ *+' conftest.er1 >conftest.err
39126   rm -f conftest.er1
39127   cat conftest.err >&5
39128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129   (exit $ac_status); } && {
39130          test -z "$ac_c_werror_flag" ||
39131          test ! -s conftest.err
39132        } && test -s conftest$ac_exeext &&
39133        $as_test_x conftest$ac_exeext; then
39134   eval "$as_ac_var=yes"
39135 else
39136   echo "$as_me: failed program was:" >&5
39137 sed 's/^/| /' conftest.$ac_ext >&5
39138
39139         eval "$as_ac_var=no"
39140 fi
39141
39142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39143       conftest$ac_exeext conftest.$ac_ext
39144 fi
39145 ac_res=`eval echo '${'$as_ac_var'}'`
39146                { echo "$as_me:$LINENO: result: $ac_res" >&5
39147 echo "${ECHO_T}$ac_res" >&6; }
39148 if test `eval echo '${'$as_ac_var'}'` = yes; then
39149   cat >>confdefs.h <<_ACEOF
39150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39151 _ACEOF
39152  cat >>confdefs.h <<\_ACEOF
39153 #define HAVE_GETHOSTBYNAME2 1
39154 _ACEOF
39155
39156 fi
39157 done
39158
39159
39160 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39161 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39162 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39163   echo $ECHO_N "(cached) $ECHO_C" >&6
39164 else
39165
39166        cat >conftest.$ac_ext <<_ACEOF
39167 /* confdefs.h.  */
39168 _ACEOF
39169 cat confdefs.h >>conftest.$ac_ext
39170 cat >>conftest.$ac_ext <<_ACEOF
39171 /* end confdefs.h.  */
39172
39173               #include <sys/socket.h>
39174
39175 int
39176 main ()
39177 {
39178
39179               struct sockaddr s; s.sa_len;
39180
39181   ;
39182   return 0;
39183 }
39184 _ACEOF
39185 rm -f conftest.$ac_objext
39186 if { (ac_try="$ac_compile"
39187 case "(($ac_try" in
39188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39189   *) ac_try_echo=$ac_try;;
39190 esac
39191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39192   (eval "$ac_compile") 2>conftest.er1
39193   ac_status=$?
39194   grep -v '^ *+' conftest.er1 >conftest.err
39195   rm -f conftest.er1
39196   cat conftest.err >&5
39197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198   (exit $ac_status); } && {
39199          test -z "$ac_c_werror_flag" ||
39200          test ! -s conftest.err
39201        } && test -s conftest.$ac_objext; then
39202
39203              ac_cv_struct_sockaddr_sa_len=yes
39204
39205 else
39206   echo "$as_me: failed program was:" >&5
39207 sed 's/^/| /' conftest.$ac_ext >&5
39208
39209         ac_cv_struct_sockaddr_sa_len=no
39210
39211
39212 fi
39213
39214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39215
39216
39217 fi
39218 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39219 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39220
39221 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39222
39223 cat >>confdefs.h <<\_ACEOF
39224 #define HAVE_SA_LEN 1
39225 _ACEOF
39226
39227 fi
39228
39229
39230 for ac_func in strftime
39231 do
39232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39236   echo $ECHO_N "(cached) $ECHO_C" >&6
39237 else
39238   cat >conftest.$ac_ext <<_ACEOF
39239 /* confdefs.h.  */
39240 _ACEOF
39241 cat confdefs.h >>conftest.$ac_ext
39242 cat >>conftest.$ac_ext <<_ACEOF
39243 /* end confdefs.h.  */
39244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39246 #define $ac_func innocuous_$ac_func
39247
39248 /* System header to define __stub macros and hopefully few prototypes,
39249     which can conflict with char $ac_func (); below.
39250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39251     <limits.h> exists even on freestanding compilers.  */
39252
39253 #ifdef __STDC__
39254 # include <limits.h>
39255 #else
39256 # include <assert.h>
39257 #endif
39258
39259 #undef $ac_func
39260
39261 /* Override any GCC internal prototype to avoid an error.
39262    Use char because int might match the return type of a GCC
39263    builtin and then its argument prototype would still apply.  */
39264 #ifdef __cplusplus
39265 extern "C"
39266 #endif
39267 char $ac_func ();
39268 /* The GNU C library defines this for functions which it implements
39269     to always fail with ENOSYS.  Some functions are actually named
39270     something starting with __ and the normal name is an alias.  */
39271 #if defined __stub_$ac_func || defined __stub___$ac_func
39272 choke me
39273 #endif
39274
39275 int
39276 main ()
39277 {
39278 return $ac_func ();
39279   ;
39280   return 0;
39281 }
39282 _ACEOF
39283 rm -f conftest.$ac_objext conftest$ac_exeext
39284 if { (ac_try="$ac_link"
39285 case "(($ac_try" in
39286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39287   *) ac_try_echo=$ac_try;;
39288 esac
39289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39290   (eval "$ac_link") 2>conftest.er1
39291   ac_status=$?
39292   grep -v '^ *+' conftest.er1 >conftest.err
39293   rm -f conftest.er1
39294   cat conftest.err >&5
39295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39296   (exit $ac_status); } && {
39297          test -z "$ac_c_werror_flag" ||
39298          test ! -s conftest.err
39299        } && test -s conftest$ac_exeext &&
39300        $as_test_x conftest$ac_exeext; then
39301   eval "$as_ac_var=yes"
39302 else
39303   echo "$as_me: failed program was:" >&5
39304 sed 's/^/| /' conftest.$ac_ext >&5
39305
39306         eval "$as_ac_var=no"
39307 fi
39308
39309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39310       conftest$ac_exeext conftest.$ac_ext
39311 fi
39312 ac_res=`eval echo '${'$as_ac_var'}'`
39313                { echo "$as_me:$LINENO: result: $ac_res" >&5
39314 echo "${ECHO_T}$ac_res" >&6; }
39315 if test `eval echo '${'$as_ac_var'}'` = yes; then
39316   cat >>confdefs.h <<_ACEOF
39317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39318 _ACEOF
39319
39320 else
39321   # strftime is in -lintl on SCO UNIX.
39322 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39323 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39324 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39325   echo $ECHO_N "(cached) $ECHO_C" >&6
39326 else
39327   ac_check_lib_save_LIBS=$LIBS
39328 LIBS="-lintl  $LIBS"
39329 cat >conftest.$ac_ext <<_ACEOF
39330 /* confdefs.h.  */
39331 _ACEOF
39332 cat confdefs.h >>conftest.$ac_ext
39333 cat >>conftest.$ac_ext <<_ACEOF
39334 /* end confdefs.h.  */
39335
39336 /* Override any GCC internal prototype to avoid an error.
39337    Use char because int might match the return type of a GCC
39338    builtin and then its argument prototype would still apply.  */
39339 #ifdef __cplusplus
39340 extern "C"
39341 #endif
39342 char strftime ();
39343 int
39344 main ()
39345 {
39346 return strftime ();
39347   ;
39348   return 0;
39349 }
39350 _ACEOF
39351 rm -f conftest.$ac_objext conftest$ac_exeext
39352 if { (ac_try="$ac_link"
39353 case "(($ac_try" in
39354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39355   *) ac_try_echo=$ac_try;;
39356 esac
39357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39358   (eval "$ac_link") 2>conftest.er1
39359   ac_status=$?
39360   grep -v '^ *+' conftest.er1 >conftest.err
39361   rm -f conftest.er1
39362   cat conftest.err >&5
39363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364   (exit $ac_status); } && {
39365          test -z "$ac_c_werror_flag" ||
39366          test ! -s conftest.err
39367        } && test -s conftest$ac_exeext &&
39368        $as_test_x conftest$ac_exeext; then
39369   ac_cv_lib_intl_strftime=yes
39370 else
39371   echo "$as_me: failed program was:" >&5
39372 sed 's/^/| /' conftest.$ac_ext >&5
39373
39374         ac_cv_lib_intl_strftime=no
39375 fi
39376
39377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39378       conftest$ac_exeext conftest.$ac_ext
39379 LIBS=$ac_check_lib_save_LIBS
39380 fi
39381 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39382 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39383 if test $ac_cv_lib_intl_strftime = yes; then
39384   cat >>confdefs.h <<\_ACEOF
39385 #define HAVE_STRFTIME 1
39386 _ACEOF
39387
39388 LIBS="-lintl $LIBS"
39389 fi
39390
39391 fi
39392 done
39393
39394
39395 for ac_func in vprintf
39396 do
39397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39401   echo $ECHO_N "(cached) $ECHO_C" >&6
39402 else
39403   cat >conftest.$ac_ext <<_ACEOF
39404 /* confdefs.h.  */
39405 _ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h.  */
39409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39411 #define $ac_func innocuous_$ac_func
39412
39413 /* System header to define __stub macros and hopefully few prototypes,
39414     which can conflict with char $ac_func (); below.
39415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39416     <limits.h> exists even on freestanding compilers.  */
39417
39418 #ifdef __STDC__
39419 # include <limits.h>
39420 #else
39421 # include <assert.h>
39422 #endif
39423
39424 #undef $ac_func
39425
39426 /* Override any GCC internal prototype to avoid an error.
39427    Use char because int might match the return type of a GCC
39428    builtin and then its argument prototype would still apply.  */
39429 #ifdef __cplusplus
39430 extern "C"
39431 #endif
39432 char $ac_func ();
39433 /* The GNU C library defines this for functions which it implements
39434     to always fail with ENOSYS.  Some functions are actually named
39435     something starting with __ and the normal name is an alias.  */
39436 #if defined __stub_$ac_func || defined __stub___$ac_func
39437 choke me
39438 #endif
39439
39440 int
39441 main ()
39442 {
39443 return $ac_func ();
39444   ;
39445   return 0;
39446 }
39447 _ACEOF
39448 rm -f conftest.$ac_objext conftest$ac_exeext
39449 if { (ac_try="$ac_link"
39450 case "(($ac_try" in
39451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39452   *) ac_try_echo=$ac_try;;
39453 esac
39454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39455   (eval "$ac_link") 2>conftest.er1
39456   ac_status=$?
39457   grep -v '^ *+' conftest.er1 >conftest.err
39458   rm -f conftest.er1
39459   cat conftest.err >&5
39460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461   (exit $ac_status); } && {
39462          test -z "$ac_c_werror_flag" ||
39463          test ! -s conftest.err
39464        } && test -s conftest$ac_exeext &&
39465        $as_test_x conftest$ac_exeext; then
39466   eval "$as_ac_var=yes"
39467 else
39468   echo "$as_me: failed program was:" >&5
39469 sed 's/^/| /' conftest.$ac_ext >&5
39470
39471         eval "$as_ac_var=no"
39472 fi
39473
39474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39475       conftest$ac_exeext conftest.$ac_ext
39476 fi
39477 ac_res=`eval echo '${'$as_ac_var'}'`
39478                { echo "$as_me:$LINENO: result: $ac_res" >&5
39479 echo "${ECHO_T}$ac_res" >&6; }
39480 if test `eval echo '${'$as_ac_var'}'` = yes; then
39481   cat >>confdefs.h <<_ACEOF
39482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39483 _ACEOF
39484
39485 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39486 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39487 if test "${ac_cv_func__doprnt+set}" = set; then
39488   echo $ECHO_N "(cached) $ECHO_C" >&6
39489 else
39490   cat >conftest.$ac_ext <<_ACEOF
39491 /* confdefs.h.  */
39492 _ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h.  */
39496 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39498 #define _doprnt innocuous__doprnt
39499
39500 /* System header to define __stub macros and hopefully few prototypes,
39501     which can conflict with char _doprnt (); below.
39502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39503     <limits.h> exists even on freestanding compilers.  */
39504
39505 #ifdef __STDC__
39506 # include <limits.h>
39507 #else
39508 # include <assert.h>
39509 #endif
39510
39511 #undef _doprnt
39512
39513 /* Override any GCC internal prototype to avoid an error.
39514    Use char because int might match the return type of a GCC
39515    builtin and then its argument prototype would still apply.  */
39516 #ifdef __cplusplus
39517 extern "C"
39518 #endif
39519 char _doprnt ();
39520 /* The GNU C library defines this for functions which it implements
39521     to always fail with ENOSYS.  Some functions are actually named
39522     something starting with __ and the normal name is an alias.  */
39523 #if defined __stub__doprnt || defined __stub____doprnt
39524 choke me
39525 #endif
39526
39527 int
39528 main ()
39529 {
39530 return _doprnt ();
39531   ;
39532   return 0;
39533 }
39534 _ACEOF
39535 rm -f conftest.$ac_objext conftest$ac_exeext
39536 if { (ac_try="$ac_link"
39537 case "(($ac_try" in
39538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39539   *) ac_try_echo=$ac_try;;
39540 esac
39541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39542   (eval "$ac_link") 2>conftest.er1
39543   ac_status=$?
39544   grep -v '^ *+' conftest.er1 >conftest.err
39545   rm -f conftest.er1
39546   cat conftest.err >&5
39547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548   (exit $ac_status); } && {
39549          test -z "$ac_c_werror_flag" ||
39550          test ! -s conftest.err
39551        } && test -s conftest$ac_exeext &&
39552        $as_test_x conftest$ac_exeext; then
39553   ac_cv_func__doprnt=yes
39554 else
39555   echo "$as_me: failed program was:" >&5
39556 sed 's/^/| /' conftest.$ac_ext >&5
39557
39558         ac_cv_func__doprnt=no
39559 fi
39560
39561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39562       conftest$ac_exeext conftest.$ac_ext
39563 fi
39564 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39565 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39566 if test $ac_cv_func__doprnt = yes; then
39567
39568 cat >>confdefs.h <<\_ACEOF
39569 #define HAVE_DOPRNT 1
39570 _ACEOF
39571
39572 fi
39573
39574 fi
39575 done
39576
39577
39578 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39579 # for constant arguments.  Useless!
39580 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39581 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39582 if test "${ac_cv_working_alloca_h+set}" = set; then
39583   echo $ECHO_N "(cached) $ECHO_C" >&6
39584 else
39585   cat >conftest.$ac_ext <<_ACEOF
39586 /* confdefs.h.  */
39587 _ACEOF
39588 cat confdefs.h >>conftest.$ac_ext
39589 cat >>conftest.$ac_ext <<_ACEOF
39590 /* end confdefs.h.  */
39591 #include <alloca.h>
39592 int
39593 main ()
39594 {
39595 char *p = (char *) alloca (2 * sizeof (int));
39596                           if (p) return 0;
39597   ;
39598   return 0;
39599 }
39600 _ACEOF
39601 rm -f conftest.$ac_objext conftest$ac_exeext
39602 if { (ac_try="$ac_link"
39603 case "(($ac_try" in
39604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39605   *) ac_try_echo=$ac_try;;
39606 esac
39607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39608   (eval "$ac_link") 2>conftest.er1
39609   ac_status=$?
39610   grep -v '^ *+' conftest.er1 >conftest.err
39611   rm -f conftest.er1
39612   cat conftest.err >&5
39613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614   (exit $ac_status); } && {
39615          test -z "$ac_c_werror_flag" ||
39616          test ! -s conftest.err
39617        } && test -s conftest$ac_exeext &&
39618        $as_test_x conftest$ac_exeext; then
39619   ac_cv_working_alloca_h=yes
39620 else
39621   echo "$as_me: failed program was:" >&5
39622 sed 's/^/| /' conftest.$ac_ext >&5
39623
39624         ac_cv_working_alloca_h=no
39625 fi
39626
39627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39628       conftest$ac_exeext conftest.$ac_ext
39629 fi
39630 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39631 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39632 if test $ac_cv_working_alloca_h = yes; then
39633
39634 cat >>confdefs.h <<\_ACEOF
39635 #define HAVE_ALLOCA_H 1
39636 _ACEOF
39637
39638 fi
39639
39640 { echo "$as_me:$LINENO: checking for alloca" >&5
39641 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39642 if test "${ac_cv_func_alloca_works+set}" = set; then
39643   echo $ECHO_N "(cached) $ECHO_C" >&6
39644 else
39645   cat >conftest.$ac_ext <<_ACEOF
39646 /* confdefs.h.  */
39647 _ACEOF
39648 cat confdefs.h >>conftest.$ac_ext
39649 cat >>conftest.$ac_ext <<_ACEOF
39650 /* end confdefs.h.  */
39651 #ifdef __GNUC__
39652 # define alloca __builtin_alloca
39653 #else
39654 # ifdef _MSC_VER
39655 #  include <malloc.h>
39656 #  define alloca _alloca
39657 # else
39658 #  ifdef HAVE_ALLOCA_H
39659 #   include <alloca.h>
39660 #  else
39661 #   ifdef _AIX
39662  #pragma alloca
39663 #   else
39664 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39665 char *alloca ();
39666 #    endif
39667 #   endif
39668 #  endif
39669 # endif
39670 #endif
39671
39672 int
39673 main ()
39674 {
39675 char *p = (char *) alloca (1);
39676                                     if (p) return 0;
39677   ;
39678   return 0;
39679 }
39680 _ACEOF
39681 rm -f conftest.$ac_objext conftest$ac_exeext
39682 if { (ac_try="$ac_link"
39683 case "(($ac_try" in
39684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39685   *) ac_try_echo=$ac_try;;
39686 esac
39687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39688   (eval "$ac_link") 2>conftest.er1
39689   ac_status=$?
39690   grep -v '^ *+' conftest.er1 >conftest.err
39691   rm -f conftest.er1
39692   cat conftest.err >&5
39693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694   (exit $ac_status); } && {
39695          test -z "$ac_c_werror_flag" ||
39696          test ! -s conftest.err
39697        } && test -s conftest$ac_exeext &&
39698        $as_test_x conftest$ac_exeext; then
39699   ac_cv_func_alloca_works=yes
39700 else
39701   echo "$as_me: failed program was:" >&5
39702 sed 's/^/| /' conftest.$ac_ext >&5
39703
39704         ac_cv_func_alloca_works=no
39705 fi
39706
39707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39708       conftest$ac_exeext conftest.$ac_ext
39709 fi
39710 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39711 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39712
39713 if test $ac_cv_func_alloca_works = yes; then
39714
39715 cat >>confdefs.h <<\_ACEOF
39716 #define HAVE_ALLOCA 1
39717 _ACEOF
39718
39719 else
39720   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39721 # that cause trouble.  Some versions do not even contain alloca or
39722 # contain a buggy version.  If you still want to use their alloca,
39723 # use ar to extract alloca.o from them instead of compiling alloca.c.
39724
39725 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39726
39727 cat >>confdefs.h <<\_ACEOF
39728 #define C_ALLOCA 1
39729 _ACEOF
39730
39731
39732 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39733 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39734 if test "${ac_cv_os_cray+set}" = set; then
39735   echo $ECHO_N "(cached) $ECHO_C" >&6
39736 else
39737   cat >conftest.$ac_ext <<_ACEOF
39738 /* confdefs.h.  */
39739 _ACEOF
39740 cat confdefs.h >>conftest.$ac_ext
39741 cat >>conftest.$ac_ext <<_ACEOF
39742 /* end confdefs.h.  */
39743 #if defined CRAY && ! defined CRAY2
39744 webecray
39745 #else
39746 wenotbecray
39747 #endif
39748
39749 _ACEOF
39750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39751   $EGREP "webecray" >/dev/null 2>&1; then
39752   ac_cv_os_cray=yes
39753 else
39754   ac_cv_os_cray=no
39755 fi
39756 rm -f conftest*
39757
39758 fi
39759 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39760 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39761 if test $ac_cv_os_cray = yes; then
39762   for ac_func in _getb67 GETB67 getb67; do
39763     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39767   echo $ECHO_N "(cached) $ECHO_C" >&6
39768 else
39769   cat >conftest.$ac_ext <<_ACEOF
39770 /* confdefs.h.  */
39771 _ACEOF
39772 cat confdefs.h >>conftest.$ac_ext
39773 cat >>conftest.$ac_ext <<_ACEOF
39774 /* end confdefs.h.  */
39775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39777 #define $ac_func innocuous_$ac_func
39778
39779 /* System header to define __stub macros and hopefully few prototypes,
39780     which can conflict with char $ac_func (); below.
39781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39782     <limits.h> exists even on freestanding compilers.  */
39783
39784 #ifdef __STDC__
39785 # include <limits.h>
39786 #else
39787 # include <assert.h>
39788 #endif
39789
39790 #undef $ac_func
39791
39792 /* Override any GCC internal prototype to avoid an error.
39793    Use char because int might match the return type of a GCC
39794    builtin and then its argument prototype would still apply.  */
39795 #ifdef __cplusplus
39796 extern "C"
39797 #endif
39798 char $ac_func ();
39799 /* The GNU C library defines this for functions which it implements
39800     to always fail with ENOSYS.  Some functions are actually named
39801     something starting with __ and the normal name is an alias.  */
39802 #if defined __stub_$ac_func || defined __stub___$ac_func
39803 choke me
39804 #endif
39805
39806 int
39807 main ()
39808 {
39809 return $ac_func ();
39810   ;
39811   return 0;
39812 }
39813 _ACEOF
39814 rm -f conftest.$ac_objext conftest$ac_exeext
39815 if { (ac_try="$ac_link"
39816 case "(($ac_try" in
39817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39818   *) ac_try_echo=$ac_try;;
39819 esac
39820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39821   (eval "$ac_link") 2>conftest.er1
39822   ac_status=$?
39823   grep -v '^ *+' conftest.er1 >conftest.err
39824   rm -f conftest.er1
39825   cat conftest.err >&5
39826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827   (exit $ac_status); } && {
39828          test -z "$ac_c_werror_flag" ||
39829          test ! -s conftest.err
39830        } && test -s conftest$ac_exeext &&
39831        $as_test_x conftest$ac_exeext; then
39832   eval "$as_ac_var=yes"
39833 else
39834   echo "$as_me: failed program was:" >&5
39835 sed 's/^/| /' conftest.$ac_ext >&5
39836
39837         eval "$as_ac_var=no"
39838 fi
39839
39840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39841       conftest$ac_exeext conftest.$ac_ext
39842 fi
39843 ac_res=`eval echo '${'$as_ac_var'}'`
39844                { echo "$as_me:$LINENO: result: $ac_res" >&5
39845 echo "${ECHO_T}$ac_res" >&6; }
39846 if test `eval echo '${'$as_ac_var'}'` = yes; then
39847
39848 cat >>confdefs.h <<_ACEOF
39849 #define CRAY_STACKSEG_END $ac_func
39850 _ACEOF
39851
39852     break
39853 fi
39854
39855   done
39856 fi
39857
39858 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39859 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39860 if test "${ac_cv_c_stack_direction+set}" = set; then
39861   echo $ECHO_N "(cached) $ECHO_C" >&6
39862 else
39863   if test "$cross_compiling" = yes; then
39864   ac_cv_c_stack_direction=0
39865 else
39866   cat >conftest.$ac_ext <<_ACEOF
39867 /* confdefs.h.  */
39868 _ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h.  */
39872 $ac_includes_default
39873 int
39874 find_stack_direction ()
39875 {
39876   static char *addr = 0;
39877   auto char dummy;
39878   if (addr == 0)
39879     {
39880       addr = &dummy;
39881       return find_stack_direction ();
39882     }
39883   else
39884     return (&dummy > addr) ? 1 : -1;
39885 }
39886
39887 int
39888 main ()
39889 {
39890   return find_stack_direction () < 0;
39891 }
39892 _ACEOF
39893 rm -f conftest$ac_exeext
39894 if { (ac_try="$ac_link"
39895 case "(($ac_try" in
39896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897   *) ac_try_echo=$ac_try;;
39898 esac
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900   (eval "$ac_link") 2>&5
39901   ac_status=$?
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39904   { (case "(($ac_try" in
39905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39906   *) ac_try_echo=$ac_try;;
39907 esac
39908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39909   (eval "$ac_try") 2>&5
39910   ac_status=$?
39911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912   (exit $ac_status); }; }; then
39913   ac_cv_c_stack_direction=1
39914 else
39915   echo "$as_me: program exited with status $ac_status" >&5
39916 echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39918
39919 ( exit $ac_status )
39920 ac_cv_c_stack_direction=-1
39921 fi
39922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39923 fi
39924
39925
39926 fi
39927 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39928 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39929
39930 cat >>confdefs.h <<_ACEOF
39931 #define STACK_DIRECTION $ac_cv_c_stack_direction
39932 _ACEOF
39933
39934
39935 fi
39936
39937 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39938 # -lseq on Dynix/PTX, -lgen on Unixware.
39939 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39940 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39941 if test "${ac_cv_search_getmntent+set}" = set; then
39942   echo $ECHO_N "(cached) $ECHO_C" >&6
39943 else
39944   ac_func_search_save_LIBS=$LIBS
39945 cat >conftest.$ac_ext <<_ACEOF
39946 /* confdefs.h.  */
39947 _ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h.  */
39951
39952 /* Override any GCC internal prototype to avoid an error.
39953    Use char because int might match the return type of a GCC
39954    builtin and then its argument prototype would still apply.  */
39955 #ifdef __cplusplus
39956 extern "C"
39957 #endif
39958 char getmntent ();
39959 int
39960 main ()
39961 {
39962 return getmntent ();
39963   ;
39964   return 0;
39965 }
39966 _ACEOF
39967 for ac_lib in '' sun seq gen; do
39968   if test -z "$ac_lib"; then
39969     ac_res="none required"
39970   else
39971     ac_res=-l$ac_lib
39972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39973   fi
39974   rm -f conftest.$ac_objext conftest$ac_exeext
39975 if { (ac_try="$ac_link"
39976 case "(($ac_try" in
39977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39978   *) ac_try_echo=$ac_try;;
39979 esac
39980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39981   (eval "$ac_link") 2>conftest.er1
39982   ac_status=$?
39983   grep -v '^ *+' conftest.er1 >conftest.err
39984   rm -f conftest.er1
39985   cat conftest.err >&5
39986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39987   (exit $ac_status); } && {
39988          test -z "$ac_c_werror_flag" ||
39989          test ! -s conftest.err
39990        } && test -s conftest$ac_exeext &&
39991        $as_test_x conftest$ac_exeext; then
39992   ac_cv_search_getmntent=$ac_res
39993 else
39994   echo "$as_me: failed program was:" >&5
39995 sed 's/^/| /' conftest.$ac_ext >&5
39996
39997
39998 fi
39999
40000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40001       conftest$ac_exeext
40002   if test "${ac_cv_search_getmntent+set}" = set; then
40003   break
40004 fi
40005 done
40006 if test "${ac_cv_search_getmntent+set}" = set; then
40007   :
40008 else
40009   ac_cv_search_getmntent=no
40010 fi
40011 rm conftest.$ac_ext
40012 LIBS=$ac_func_search_save_LIBS
40013 fi
40014 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40015 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40016 ac_res=$ac_cv_search_getmntent
40017 if test "$ac_res" != no; then
40018   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40019   ac_cv_func_getmntent=yes
40020
40021 cat >>confdefs.h <<\_ACEOF
40022 #define HAVE_GETMNTENT
40023 _ACEOF
40024
40025 else
40026   ac_cv_func_getmntent=no
40027 fi
40028
40029
40030 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40031 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40032 if test "${ac_cv_func_closedir_void+set}" = set; then
40033   echo $ECHO_N "(cached) $ECHO_C" >&6
40034 else
40035   if test "$cross_compiling" = yes; then
40036   ac_cv_func_closedir_void=yes
40037 else
40038   cat >conftest.$ac_ext <<_ACEOF
40039 /* confdefs.h.  */
40040 _ACEOF
40041 cat confdefs.h >>conftest.$ac_ext
40042 cat >>conftest.$ac_ext <<_ACEOF
40043 /* end confdefs.h.  */
40044 $ac_includes_default
40045 #include <$ac_header_dirent>
40046 #ifndef __cplusplus
40047 int closedir ();
40048 #endif
40049
40050 int
40051 main ()
40052 {
40053 return closedir (opendir (".")) != 0;
40054   ;
40055   return 0;
40056 }
40057 _ACEOF
40058 rm -f conftest$ac_exeext
40059 if { (ac_try="$ac_link"
40060 case "(($ac_try" in
40061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062   *) ac_try_echo=$ac_try;;
40063 esac
40064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40065   (eval "$ac_link") 2>&5
40066   ac_status=$?
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40069   { (case "(($ac_try" in
40070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071   *) ac_try_echo=$ac_try;;
40072 esac
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074   (eval "$ac_try") 2>&5
40075   ac_status=$?
40076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077   (exit $ac_status); }; }; then
40078   ac_cv_func_closedir_void=no
40079 else
40080   echo "$as_me: program exited with status $ac_status" >&5
40081 echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40083
40084 ( exit $ac_status )
40085 ac_cv_func_closedir_void=yes
40086 fi
40087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40088 fi
40089
40090
40091 fi
40092 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40093 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40094 if test $ac_cv_func_closedir_void = yes; then
40095
40096 cat >>confdefs.h <<\_ACEOF
40097 #define CLOSEDIR_VOID 1
40098 _ACEOF
40099
40100 fi
40101
40102 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40103 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40104 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40105   echo $ECHO_N "(cached) $ECHO_C" >&6
40106 else
40107   if test "$cross_compiling" = yes; then
40108   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40109 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40110    { (exit 1); exit 1; }; }
40111 else
40112   cat >conftest.$ac_ext <<_ACEOF
40113 /* confdefs.h.  */
40114 _ACEOF
40115 cat confdefs.h >>conftest.$ac_ext
40116 cat >>conftest.$ac_ext <<_ACEOF
40117 /* end confdefs.h.  */
40118 $ac_includes_default
40119 int
40120 main ()
40121 {
40122 /* If this system has a BSD-style setpgrp which takes arguments,
40123   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40124   exit successfully. */
40125   return setpgrp (1,1) != -1;
40126   ;
40127   return 0;
40128 }
40129 _ACEOF
40130 rm -f conftest$ac_exeext
40131 if { (ac_try="$ac_link"
40132 case "(($ac_try" in
40133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40134   *) ac_try_echo=$ac_try;;
40135 esac
40136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40137   (eval "$ac_link") 2>&5
40138   ac_status=$?
40139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40141   { (case "(($ac_try" in
40142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143   *) ac_try_echo=$ac_try;;
40144 esac
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146   (eval "$ac_try") 2>&5
40147   ac_status=$?
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); }; }; then
40150   ac_cv_func_setpgrp_void=no
40151 else
40152   echo "$as_me: program exited with status $ac_status" >&5
40153 echo "$as_me: failed program was:" >&5
40154 sed 's/^/| /' conftest.$ac_ext >&5
40155
40156 ( exit $ac_status )
40157 ac_cv_func_setpgrp_void=yes
40158 fi
40159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40160 fi
40161
40162
40163 fi
40164 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40165 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40166 if test $ac_cv_func_setpgrp_void = yes; then
40167
40168 cat >>confdefs.h <<\_ACEOF
40169 #define SETPGRP_VOID 1
40170 _ACEOF
40171
40172 fi
40173             # AC_FUNC_FNMATCH    dnl use local version
40174
40175 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40176 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40177 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40178   echo $ECHO_N "(cached) $ECHO_C" >&6
40179 else
40180   ac_check_lib_save_LIBS=$LIBS
40181 LIBS="-lintl  $LIBS"
40182 cat >conftest.$ac_ext <<_ACEOF
40183 /* confdefs.h.  */
40184 _ACEOF
40185 cat confdefs.h >>conftest.$ac_ext
40186 cat >>conftest.$ac_ext <<_ACEOF
40187 /* end confdefs.h.  */
40188
40189 /* Override any GCC internal prototype to avoid an error.
40190    Use char because int might match the return type of a GCC
40191    builtin and then its argument prototype would still apply.  */
40192 #ifdef __cplusplus
40193 extern "C"
40194 #endif
40195 char gettext ();
40196 int
40197 main ()
40198 {
40199 return gettext ();
40200   ;
40201   return 0;
40202 }
40203 _ACEOF
40204 rm -f conftest.$ac_objext conftest$ac_exeext
40205 if { (ac_try="$ac_link"
40206 case "(($ac_try" in
40207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40208   *) ac_try_echo=$ac_try;;
40209 esac
40210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40211   (eval "$ac_link") 2>conftest.er1
40212   ac_status=$?
40213   grep -v '^ *+' conftest.er1 >conftest.err
40214   rm -f conftest.er1
40215   cat conftest.err >&5
40216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40217   (exit $ac_status); } && {
40218          test -z "$ac_c_werror_flag" ||
40219          test ! -s conftest.err
40220        } && test -s conftest$ac_exeext &&
40221        $as_test_x conftest$ac_exeext; then
40222   ac_cv_lib_intl_gettext=yes
40223 else
40224   echo "$as_me: failed program was:" >&5
40225 sed 's/^/| /' conftest.$ac_ext >&5
40226
40227         ac_cv_lib_intl_gettext=no
40228 fi
40229
40230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40231       conftest$ac_exeext conftest.$ac_ext
40232 LIBS=$ac_check_lib_save_LIBS
40233 fi
40234 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40235 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40236 if test $ac_cv_lib_intl_gettext = yes; then
40237   LIBS="$LIBS -lintl"
40238 fi
40239
40240
40241
40242 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40243 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40244 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40245   echo $ECHO_N "(cached) $ECHO_C" >&6
40246 else
40247   ac_check_lib_save_LIBS=$LIBS
40248 LIBS="-lsun  $LIBS"
40249 cat >conftest.$ac_ext <<_ACEOF
40250 /* confdefs.h.  */
40251 _ACEOF
40252 cat confdefs.h >>conftest.$ac_ext
40253 cat >>conftest.$ac_ext <<_ACEOF
40254 /* end confdefs.h.  */
40255
40256 /* Override any GCC internal prototype to avoid an error.
40257    Use char because int might match the return type of a GCC
40258    builtin and then its argument prototype would still apply.  */
40259 #ifdef __cplusplus
40260 extern "C"
40261 #endif
40262 char getpwnam ();
40263 int
40264 main ()
40265 {
40266 return getpwnam ();
40267   ;
40268   return 0;
40269 }
40270 _ACEOF
40271 rm -f conftest.$ac_objext conftest$ac_exeext
40272 if { (ac_try="$ac_link"
40273 case "(($ac_try" in
40274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40275   *) ac_try_echo=$ac_try;;
40276 esac
40277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40278   (eval "$ac_link") 2>conftest.er1
40279   ac_status=$?
40280   grep -v '^ *+' conftest.er1 >conftest.err
40281   rm -f conftest.er1
40282   cat conftest.err >&5
40283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284   (exit $ac_status); } && {
40285          test -z "$ac_c_werror_flag" ||
40286          test ! -s conftest.err
40287        } && test -s conftest$ac_exeext &&
40288        $as_test_x conftest$ac_exeext; then
40289   ac_cv_lib_sun_getpwnam=yes
40290 else
40291   echo "$as_me: failed program was:" >&5
40292 sed 's/^/| /' conftest.$ac_ext >&5
40293
40294         ac_cv_lib_sun_getpwnam=no
40295 fi
40296
40297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40298       conftest$ac_exeext conftest.$ac_ext
40299 LIBS=$ac_check_lib_save_LIBS
40300 fi
40301 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40302 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40303 if test $ac_cv_lib_sun_getpwnam = yes; then
40304   cat >>confdefs.h <<_ACEOF
40305 #define HAVE_LIBSUN 1
40306 _ACEOF
40307
40308   LIBS="-lsun $LIBS"
40309
40310 fi
40311
40312
40313
40314 for ac_header in zlib.h
40315 do
40316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40318   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40321   echo $ECHO_N "(cached) $ECHO_C" >&6
40322 fi
40323 ac_res=`eval echo '${'$as_ac_Header'}'`
40324                { echo "$as_me:$LINENO: result: $ac_res" >&5
40325 echo "${ECHO_T}$ac_res" >&6; }
40326 else
40327   # Is the header compilable?
40328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40330 cat >conftest.$ac_ext <<_ACEOF
40331 /* confdefs.h.  */
40332 _ACEOF
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h.  */
40336 $ac_includes_default
40337 #include <$ac_header>
40338 _ACEOF
40339 rm -f conftest.$ac_objext
40340 if { (ac_try="$ac_compile"
40341 case "(($ac_try" in
40342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40343   *) ac_try_echo=$ac_try;;
40344 esac
40345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40346   (eval "$ac_compile") 2>conftest.er1
40347   ac_status=$?
40348   grep -v '^ *+' conftest.er1 >conftest.err
40349   rm -f conftest.er1
40350   cat conftest.err >&5
40351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352   (exit $ac_status); } && {
40353          test -z "$ac_c_werror_flag" ||
40354          test ! -s conftest.err
40355        } && test -s conftest.$ac_objext; then
40356   ac_header_compiler=yes
40357 else
40358   echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40360
40361         ac_header_compiler=no
40362 fi
40363
40364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40366 echo "${ECHO_T}$ac_header_compiler" >&6; }
40367
40368 # Is the header present?
40369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40371 cat >conftest.$ac_ext <<_ACEOF
40372 /* confdefs.h.  */
40373 _ACEOF
40374 cat confdefs.h >>conftest.$ac_ext
40375 cat >>conftest.$ac_ext <<_ACEOF
40376 /* end confdefs.h.  */
40377 #include <$ac_header>
40378 _ACEOF
40379 if { (ac_try="$ac_cpp conftest.$ac_ext"
40380 case "(($ac_try" in
40381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40382   *) ac_try_echo=$ac_try;;
40383 esac
40384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40386   ac_status=$?
40387   grep -v '^ *+' conftest.er1 >conftest.err
40388   rm -f conftest.er1
40389   cat conftest.err >&5
40390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40391   (exit $ac_status); } >/dev/null && {
40392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40393          test ! -s conftest.err
40394        }; then
40395   ac_header_preproc=yes
40396 else
40397   echo "$as_me: failed program was:" >&5
40398 sed 's/^/| /' conftest.$ac_ext >&5
40399
40400   ac_header_preproc=no
40401 fi
40402
40403 rm -f conftest.err conftest.$ac_ext
40404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40405 echo "${ECHO_T}$ac_header_preproc" >&6; }
40406
40407 # So?  What about this header?
40408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40409   yes:no: )
40410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40414     ac_header_preproc=yes
40415     ;;
40416   no:yes:* )
40417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40429
40430     ;;
40431 esac
40432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40435   echo $ECHO_N "(cached) $ECHO_C" >&6
40436 else
40437   eval "$as_ac_Header=\$ac_header_preproc"
40438 fi
40439 ac_res=`eval echo '${'$as_ac_Header'}'`
40440                { echo "$as_me:$LINENO: result: $ac_res" >&5
40441 echo "${ECHO_T}$ac_res" >&6; }
40442
40443 fi
40444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40445   cat >>confdefs.h <<_ACEOF
40446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40447 _ACEOF
40448
40449 fi
40450
40451 done
40452
40453 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40454 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40455 if test "${ac_cv_lib_z_deflate+set}" = set; then
40456   echo $ECHO_N "(cached) $ECHO_C" >&6
40457 else
40458   ac_check_lib_save_LIBS=$LIBS
40459 LIBS="-lz  $LIBS"
40460 cat >conftest.$ac_ext <<_ACEOF
40461 /* confdefs.h.  */
40462 _ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h.  */
40466
40467 /* Override any GCC internal prototype to avoid an error.
40468    Use char because int might match the return type of a GCC
40469    builtin and then its argument prototype would still apply.  */
40470 #ifdef __cplusplus
40471 extern "C"
40472 #endif
40473 char deflate ();
40474 int
40475 main ()
40476 {
40477 return deflate ();
40478   ;
40479   return 0;
40480 }
40481 _ACEOF
40482 rm -f conftest.$ac_objext conftest$ac_exeext
40483 if { (ac_try="$ac_link"
40484 case "(($ac_try" in
40485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40486   *) ac_try_echo=$ac_try;;
40487 esac
40488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40489   (eval "$ac_link") 2>conftest.er1
40490   ac_status=$?
40491   grep -v '^ *+' conftest.er1 >conftest.err
40492   rm -f conftest.er1
40493   cat conftest.err >&5
40494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495   (exit $ac_status); } && {
40496          test -z "$ac_c_werror_flag" ||
40497          test ! -s conftest.err
40498        } && test -s conftest$ac_exeext &&
40499        $as_test_x conftest$ac_exeext; then
40500   ac_cv_lib_z_deflate=yes
40501 else
40502   echo "$as_me: failed program was:" >&5
40503 sed 's/^/| /' conftest.$ac_ext >&5
40504
40505         ac_cv_lib_z_deflate=no
40506 fi
40507
40508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40509       conftest$ac_exeext conftest.$ac_ext
40510 LIBS=$ac_check_lib_save_LIBS
40511 fi
40512 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40513 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40514 if test $ac_cv_lib_z_deflate = yes; then
40515   FDLIBS="-lz"
40516 fi
40517
40518 have_zlib=no
40519 if test x$FDLIBS = x-lz; then
40520    cat >>confdefs.h <<\_ACEOF
40521 #define HAVE_LIBZ 1
40522 _ACEOF
40523
40524    have_zlib=yes
40525 fi
40526
40527 support_acl=yes
40528 # Check whether --enable-acl was given.
40529 if test "${enable_acl+set}" = set; then
40530   enableval=$enable_acl;
40531        if test x$enableval = xno; then
40532           support_acl=no
40533        fi
40534
40535
40536 fi
40537
40538
40539 have_acl=no
40540 have_extended_acl=no
40541 if test x$support_acl = xyes; then
40542    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40543   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40544 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40545 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40546   echo $ECHO_N "(cached) $ECHO_C" >&6
40547 fi
40548 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40549 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40550 else
40551   # Is the header compilable?
40552 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40553 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40554 cat >conftest.$ac_ext <<_ACEOF
40555 /* confdefs.h.  */
40556 _ACEOF
40557 cat confdefs.h >>conftest.$ac_ext
40558 cat >>conftest.$ac_ext <<_ACEOF
40559 /* end confdefs.h.  */
40560 $ac_includes_default
40561 #include <sys/acl.h>
40562 _ACEOF
40563 rm -f conftest.$ac_objext
40564 if { (ac_try="$ac_compile"
40565 case "(($ac_try" in
40566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567   *) ac_try_echo=$ac_try;;
40568 esac
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570   (eval "$ac_compile") 2>conftest.er1
40571   ac_status=$?
40572   grep -v '^ *+' conftest.er1 >conftest.err
40573   rm -f conftest.er1
40574   cat conftest.err >&5
40575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576   (exit $ac_status); } && {
40577          test -z "$ac_c_werror_flag" ||
40578          test ! -s conftest.err
40579        } && test -s conftest.$ac_objext; then
40580   ac_header_compiler=yes
40581 else
40582   echo "$as_me: failed program was:" >&5
40583 sed 's/^/| /' conftest.$ac_ext >&5
40584
40585         ac_header_compiler=no
40586 fi
40587
40588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40590 echo "${ECHO_T}$ac_header_compiler" >&6; }
40591
40592 # Is the header present?
40593 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40594 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40595 cat >conftest.$ac_ext <<_ACEOF
40596 /* confdefs.h.  */
40597 _ACEOF
40598 cat confdefs.h >>conftest.$ac_ext
40599 cat >>conftest.$ac_ext <<_ACEOF
40600 /* end confdefs.h.  */
40601 #include <sys/acl.h>
40602 _ACEOF
40603 if { (ac_try="$ac_cpp conftest.$ac_ext"
40604 case "(($ac_try" in
40605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40606   *) ac_try_echo=$ac_try;;
40607 esac
40608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40610   ac_status=$?
40611   grep -v '^ *+' conftest.er1 >conftest.err
40612   rm -f conftest.er1
40613   cat conftest.err >&5
40614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615   (exit $ac_status); } >/dev/null && {
40616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40617          test ! -s conftest.err
40618        }; then
40619   ac_header_preproc=yes
40620 else
40621   echo "$as_me: failed program was:" >&5
40622 sed 's/^/| /' conftest.$ac_ext >&5
40623
40624   ac_header_preproc=no
40625 fi
40626
40627 rm -f conftest.err conftest.$ac_ext
40628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40629 echo "${ECHO_T}$ac_header_preproc" >&6; }
40630
40631 # So?  What about this header?
40632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40633   yes:no: )
40634     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40635 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40636     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40637 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40638     ac_header_preproc=yes
40639     ;;
40640   no:yes:* )
40641     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40642 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40643     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40644 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40645     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40646 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40647     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40648 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40649     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40650 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40651     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40652 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40653
40654     ;;
40655 esac
40656 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40657 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40658 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40659   echo $ECHO_N "(cached) $ECHO_C" >&6
40660 else
40661   ac_cv_header_sys_acl_h=$ac_header_preproc
40662 fi
40663 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40664 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40665
40666 fi
40667 if test $ac_cv_header_sys_acl_h = yes; then
40668
40669 cat >>confdefs.h <<\_ACEOF
40670 #define HAVE_SYS_ACL_H 1
40671 _ACEOF
40672
40673 fi
40674
40675
40676    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40677 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40678 if test "${ac_cv_func_acl_get_file+set}" = set; then
40679   echo $ECHO_N "(cached) $ECHO_C" >&6
40680 else
40681   cat >conftest.$ac_ext <<_ACEOF
40682 /* confdefs.h.  */
40683 _ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h.  */
40687 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40689 #define acl_get_file innocuous_acl_get_file
40690
40691 /* System header to define __stub macros and hopefully few prototypes,
40692     which can conflict with char acl_get_file (); below.
40693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40694     <limits.h> exists even on freestanding compilers.  */
40695
40696 #ifdef __STDC__
40697 # include <limits.h>
40698 #else
40699 # include <assert.h>
40700 #endif
40701
40702 #undef acl_get_file
40703
40704 /* Override any GCC internal prototype to avoid an error.
40705    Use char because int might match the return type of a GCC
40706    builtin and then its argument prototype would still apply.  */
40707 #ifdef __cplusplus
40708 extern "C"
40709 #endif
40710 char acl_get_file ();
40711 /* The GNU C library defines this for functions which it implements
40712     to always fail with ENOSYS.  Some functions are actually named
40713     something starting with __ and the normal name is an alias.  */
40714 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40715 choke me
40716 #endif
40717
40718 int
40719 main ()
40720 {
40721 return acl_get_file ();
40722   ;
40723   return 0;
40724 }
40725 _ACEOF
40726 rm -f conftest.$ac_objext conftest$ac_exeext
40727 if { (ac_try="$ac_link"
40728 case "(($ac_try" in
40729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40730   *) ac_try_echo=$ac_try;;
40731 esac
40732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40733   (eval "$ac_link") 2>conftest.er1
40734   ac_status=$?
40735   grep -v '^ *+' conftest.er1 >conftest.err
40736   rm -f conftest.er1
40737   cat conftest.err >&5
40738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739   (exit $ac_status); } && {
40740          test -z "$ac_c_werror_flag" ||
40741          test ! -s conftest.err
40742        } && test -s conftest$ac_exeext &&
40743        $as_test_x conftest$ac_exeext; then
40744   ac_cv_func_acl_get_file=yes
40745 else
40746   echo "$as_me: failed program was:" >&5
40747 sed 's/^/| /' conftest.$ac_ext >&5
40748
40749         ac_cv_func_acl_get_file=no
40750 fi
40751
40752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40753       conftest$ac_exeext conftest.$ac_ext
40754 fi
40755 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40756 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40757 if test $ac_cv_func_acl_get_file = yes; then
40758
40759           have_acl=yes
40760
40761 else
40762
40763           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40764 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40765 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40766   echo $ECHO_N "(cached) $ECHO_C" >&6
40767 else
40768   ac_check_lib_save_LIBS=$LIBS
40769 LIBS="-lacl  $LIBS"
40770 cat >conftest.$ac_ext <<_ACEOF
40771 /* confdefs.h.  */
40772 _ACEOF
40773 cat confdefs.h >>conftest.$ac_ext
40774 cat >>conftest.$ac_ext <<_ACEOF
40775 /* end confdefs.h.  */
40776
40777 /* Override any GCC internal prototype to avoid an error.
40778    Use char because int might match the return type of a GCC
40779    builtin and then its argument prototype would still apply.  */
40780 #ifdef __cplusplus
40781 extern "C"
40782 #endif
40783 char acl_get_file ();
40784 int
40785 main ()
40786 {
40787 return acl_get_file ();
40788   ;
40789   return 0;
40790 }
40791 _ACEOF
40792 rm -f conftest.$ac_objext conftest$ac_exeext
40793 if { (ac_try="$ac_link"
40794 case "(($ac_try" in
40795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40796   *) ac_try_echo=$ac_try;;
40797 esac
40798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40799   (eval "$ac_link") 2>conftest.er1
40800   ac_status=$?
40801   grep -v '^ *+' conftest.er1 >conftest.err
40802   rm -f conftest.er1
40803   cat conftest.err >&5
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); } && {
40806          test -z "$ac_c_werror_flag" ||
40807          test ! -s conftest.err
40808        } && test -s conftest$ac_exeext &&
40809        $as_test_x conftest$ac_exeext; then
40810   ac_cv_lib_acl_acl_get_file=yes
40811 else
40812   echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40814
40815         ac_cv_lib_acl_acl_get_file=no
40816 fi
40817
40818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40819       conftest$ac_exeext conftest.$ac_ext
40820 LIBS=$ac_check_lib_save_LIBS
40821 fi
40822 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40823 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40824 if test $ac_cv_lib_acl_acl_get_file = yes; then
40825
40826                  have_acl=yes;
40827                  FDLIBS="-lacl $FDLIBS"
40828
40829 else
40830
40831                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40832 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40833 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40834   echo $ECHO_N "(cached) $ECHO_C" >&6
40835 else
40836   ac_check_lib_save_LIBS=$LIBS
40837 LIBS="-lpacl  $LIBS"
40838 cat >conftest.$ac_ext <<_ACEOF
40839 /* confdefs.h.  */
40840 _ACEOF
40841 cat confdefs.h >>conftest.$ac_ext
40842 cat >>conftest.$ac_ext <<_ACEOF
40843 /* end confdefs.h.  */
40844
40845 /* Override any GCC internal prototype to avoid an error.
40846    Use char because int might match the return type of a GCC
40847    builtin and then its argument prototype would still apply.  */
40848 #ifdef __cplusplus
40849 extern "C"
40850 #endif
40851 char acl_get_file ();
40852 int
40853 main ()
40854 {
40855 return acl_get_file ();
40856   ;
40857   return 0;
40858 }
40859 _ACEOF
40860 rm -f conftest.$ac_objext conftest$ac_exeext
40861 if { (ac_try="$ac_link"
40862 case "(($ac_try" in
40863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40864   *) ac_try_echo=$ac_try;;
40865 esac
40866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40867   (eval "$ac_link") 2>conftest.er1
40868   ac_status=$?
40869   grep -v '^ *+' conftest.er1 >conftest.err
40870   rm -f conftest.er1
40871   cat conftest.err >&5
40872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40873   (exit $ac_status); } && {
40874          test -z "$ac_c_werror_flag" ||
40875          test ! -s conftest.err
40876        } && test -s conftest$ac_exeext &&
40877        $as_test_x conftest$ac_exeext; then
40878   ac_cv_lib_pacl_acl_get_file=yes
40879 else
40880   echo "$as_me: failed program was:" >&5
40881 sed 's/^/| /' conftest.$ac_ext >&5
40882
40883         ac_cv_lib_pacl_acl_get_file=no
40884 fi
40885
40886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40887       conftest$ac_exeext conftest.$ac_ext
40888 LIBS=$ac_check_lib_save_LIBS
40889 fi
40890 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40891 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40892 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40893
40894                         have_acl=yes;
40895                         FDLIBS="-lpacl $FDLIBS"
40896
40897 else
40898
40899                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40900 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40901 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40902   echo $ECHO_N "(cached) $ECHO_C" >&6
40903 else
40904   ac_check_lib_save_LIBS=$LIBS
40905 LIBS="-lsec  $LIBS"
40906 cat >conftest.$ac_ext <<_ACEOF
40907 /* confdefs.h.  */
40908 _ACEOF
40909 cat confdefs.h >>conftest.$ac_ext
40910 cat >>conftest.$ac_ext <<_ACEOF
40911 /* end confdefs.h.  */
40912
40913 /* Override any GCC internal prototype to avoid an error.
40914    Use char because int might match the return type of a GCC
40915    builtin and then its argument prototype would still apply.  */
40916 #ifdef __cplusplus
40917 extern "C"
40918 #endif
40919 char acltotext ();
40920 int
40921 main ()
40922 {
40923 return acltotext ();
40924   ;
40925   return 0;
40926 }
40927 _ACEOF
40928 rm -f conftest.$ac_objext conftest$ac_exeext
40929 if { (ac_try="$ac_link"
40930 case "(($ac_try" in
40931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40932   *) ac_try_echo=$ac_try;;
40933 esac
40934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40935   (eval "$ac_link") 2>conftest.er1
40936   ac_status=$?
40937   grep -v '^ *+' conftest.er1 >conftest.err
40938   rm -f conftest.er1
40939   cat conftest.err >&5
40940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941   (exit $ac_status); } && {
40942          test -z "$ac_c_werror_flag" ||
40943          test ! -s conftest.err
40944        } && test -s conftest$ac_exeext &&
40945        $as_test_x conftest$ac_exeext; then
40946   ac_cv_lib_sec_acltotext=yes
40947 else
40948   echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40950
40951         ac_cv_lib_sec_acltotext=no
40952 fi
40953
40954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40955       conftest$ac_exeext conftest.$ac_ext
40956 LIBS=$ac_check_lib_save_LIBS
40957 fi
40958 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40959 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40960 if test $ac_cv_lib_sec_acltotext = yes; then
40961
40962                                have_acl=yes;
40963                                FDLIBS="-lsec $FDLIBS"
40964
40965                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40966 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40967 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40968   echo $ECHO_N "(cached) $ECHO_C" >&6
40969 else
40970   ac_check_lib_save_LIBS=$LIBS
40971 LIBS="-lsec  $LIBS"
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
40979 /* Override any GCC internal prototype to avoid an error.
40980    Use char because int might match the return type of a GCC
40981    builtin and then its argument prototype would still apply.  */
40982 #ifdef __cplusplus
40983 extern "C"
40984 #endif
40985 char acl_totext ();
40986 int
40987 main ()
40988 {
40989 return acl_totext ();
40990   ;
40991   return 0;
40992 }
40993 _ACEOF
40994 rm -f conftest.$ac_objext conftest$ac_exeext
40995 if { (ac_try="$ac_link"
40996 case "(($ac_try" in
40997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40998   *) ac_try_echo=$ac_try;;
40999 esac
41000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41001   (eval "$ac_link") 2>conftest.er1
41002   ac_status=$?
41003   grep -v '^ *+' conftest.er1 >conftest.err
41004   rm -f conftest.er1
41005   cat conftest.err >&5
41006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41007   (exit $ac_status); } && {
41008          test -z "$ac_c_werror_flag" ||
41009          test ! -s conftest.err
41010        } && test -s conftest$ac_exeext &&
41011        $as_test_x conftest$ac_exeext; then
41012   ac_cv_lib_sec_acl_totext=yes
41013 else
41014   echo "$as_me: failed program was:" >&5
41015 sed 's/^/| /' conftest.$ac_ext >&5
41016
41017         ac_cv_lib_sec_acl_totext=no
41018 fi
41019
41020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41021       conftest$ac_exeext conftest.$ac_ext
41022 LIBS=$ac_check_lib_save_LIBS
41023 fi
41024 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41025 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41026 if test $ac_cv_lib_sec_acl_totext = yes; then
41027
41028                                       have_extended_acl=yes
41029
41030
41031 fi
41032
41033
41034
41035 fi
41036
41037
41038
41039 fi
41040
41041
41042
41043 fi
41044
41045
41046
41047 fi
41048
41049    if test $have_acl = yes; then
41050
41051 cat >>confdefs.h <<\_ACEOF
41052 #define HAVE_ACL
41053 _ACEOF
41054
41055    fi
41056
41057    if test $have_extended_acl = yes; then
41058
41059 cat >>confdefs.h <<\_ACEOF
41060 #define HAVE_EXTENDED_ACL
41061 _ACEOF
41062
41063    fi
41064 fi
41065
41066 support_xattr=yes
41067 # Check whether --enable-xattr was given.
41068 if test "${enable_xattr+set}" = set; then
41069   enableval=$enable_xattr;
41070        if test x$enableval = xno; then
41071           support_xattr=no
41072        fi
41073
41074
41075 fi
41076
41077
41078 have_xattr=no
41079 if test x$support_xattr = xyes; then
41080    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41081   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41082 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41083 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41084   echo $ECHO_N "(cached) $ECHO_C" >&6
41085 fi
41086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41087 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41088 else
41089   # Is the header compilable?
41090 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41091 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41092 cat >conftest.$ac_ext <<_ACEOF
41093 /* confdefs.h.  */
41094 _ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h.  */
41098 $ac_includes_default
41099 #include <sys/xattr.h>
41100 _ACEOF
41101 rm -f conftest.$ac_objext
41102 if { (ac_try="$ac_compile"
41103 case "(($ac_try" in
41104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41105   *) ac_try_echo=$ac_try;;
41106 esac
41107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41108   (eval "$ac_compile") 2>conftest.er1
41109   ac_status=$?
41110   grep -v '^ *+' conftest.er1 >conftest.err
41111   rm -f conftest.er1
41112   cat conftest.err >&5
41113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41114   (exit $ac_status); } && {
41115          test -z "$ac_c_werror_flag" ||
41116          test ! -s conftest.err
41117        } && test -s conftest.$ac_objext; then
41118   ac_header_compiler=yes
41119 else
41120   echo "$as_me: failed program was:" >&5
41121 sed 's/^/| /' conftest.$ac_ext >&5
41122
41123         ac_header_compiler=no
41124 fi
41125
41126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41128 echo "${ECHO_T}$ac_header_compiler" >&6; }
41129
41130 # Is the header present?
41131 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41132 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41133 cat >conftest.$ac_ext <<_ACEOF
41134 /* confdefs.h.  */
41135 _ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h.  */
41139 #include <sys/xattr.h>
41140 _ACEOF
41141 if { (ac_try="$ac_cpp conftest.$ac_ext"
41142 case "(($ac_try" in
41143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41144   *) ac_try_echo=$ac_try;;
41145 esac
41146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41148   ac_status=$?
41149   grep -v '^ *+' conftest.er1 >conftest.err
41150   rm -f conftest.er1
41151   cat conftest.err >&5
41152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41153   (exit $ac_status); } >/dev/null && {
41154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41155          test ! -s conftest.err
41156        }; then
41157   ac_header_preproc=yes
41158 else
41159   echo "$as_me: failed program was:" >&5
41160 sed 's/^/| /' conftest.$ac_ext >&5
41161
41162   ac_header_preproc=no
41163 fi
41164
41165 rm -f conftest.err conftest.$ac_ext
41166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41167 echo "${ECHO_T}$ac_header_preproc" >&6; }
41168
41169 # So?  What about this header?
41170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41171   yes:no: )
41172     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41173 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41174     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41175 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41176     ac_header_preproc=yes
41177     ;;
41178   no:yes:* )
41179     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41180 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41181     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41182 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41183     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41184 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41185     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41186 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41187     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41188 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41189     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41190 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41191
41192     ;;
41193 esac
41194 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41195 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41196 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41197   echo $ECHO_N "(cached) $ECHO_C" >&6
41198 else
41199   ac_cv_header_sys_xattr_h=$ac_header_preproc
41200 fi
41201 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41202 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41203
41204 fi
41205 if test $ac_cv_header_sys_xattr_h = yes; then
41206
41207 cat >>confdefs.h <<\_ACEOF
41208 #define HAVE_SYS_XATTR_H 1
41209 _ACEOF
41210
41211 fi
41212
41213
41214
41215
41216
41217 for ac_func in llistxattr lgetxattr lsetxattr
41218 do
41219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41223   echo $ECHO_N "(cached) $ECHO_C" >&6
41224 else
41225   cat >conftest.$ac_ext <<_ACEOF
41226 /* confdefs.h.  */
41227 _ACEOF
41228 cat confdefs.h >>conftest.$ac_ext
41229 cat >>conftest.$ac_ext <<_ACEOF
41230 /* end confdefs.h.  */
41231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41233 #define $ac_func innocuous_$ac_func
41234
41235 /* System header to define __stub macros and hopefully few prototypes,
41236     which can conflict with char $ac_func (); below.
41237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41238     <limits.h> exists even on freestanding compilers.  */
41239
41240 #ifdef __STDC__
41241 # include <limits.h>
41242 #else
41243 # include <assert.h>
41244 #endif
41245
41246 #undef $ac_func
41247
41248 /* Override any GCC internal prototype to avoid an error.
41249    Use char because int might match the return type of a GCC
41250    builtin and then its argument prototype would still apply.  */
41251 #ifdef __cplusplus
41252 extern "C"
41253 #endif
41254 char $ac_func ();
41255 /* The GNU C library defines this for functions which it implements
41256     to always fail with ENOSYS.  Some functions are actually named
41257     something starting with __ and the normal name is an alias.  */
41258 #if defined __stub_$ac_func || defined __stub___$ac_func
41259 choke me
41260 #endif
41261
41262 int
41263 main ()
41264 {
41265 return $ac_func ();
41266   ;
41267   return 0;
41268 }
41269 _ACEOF
41270 rm -f conftest.$ac_objext conftest$ac_exeext
41271 if { (ac_try="$ac_link"
41272 case "(($ac_try" in
41273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41274   *) ac_try_echo=$ac_try;;
41275 esac
41276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41277   (eval "$ac_link") 2>conftest.er1
41278   ac_status=$?
41279   grep -v '^ *+' conftest.er1 >conftest.err
41280   rm -f conftest.er1
41281   cat conftest.err >&5
41282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41283   (exit $ac_status); } && {
41284          test -z "$ac_c_werror_flag" ||
41285          test ! -s conftest.err
41286        } && test -s conftest$ac_exeext &&
41287        $as_test_x conftest$ac_exeext; then
41288   eval "$as_ac_var=yes"
41289 else
41290   echo "$as_me: failed program was:" >&5
41291 sed 's/^/| /' conftest.$ac_ext >&5
41292
41293         eval "$as_ac_var=no"
41294 fi
41295
41296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41297       conftest$ac_exeext conftest.$ac_ext
41298 fi
41299 ac_res=`eval echo '${'$as_ac_var'}'`
41300                { echo "$as_me:$LINENO: result: $ac_res" >&5
41301 echo "${ECHO_T}$ac_res" >&6; }
41302 if test `eval echo '${'$as_ac_var'}'` = yes; then
41303   cat >>confdefs.h <<_ACEOF
41304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41305 _ACEOF
41306
41307           have_xattr=yes
41308
41309 cat >>confdefs.h <<\_ACEOF
41310 #define HAVE_LLISTXATTR
41311 _ACEOF
41312
41313
41314 cat >>confdefs.h <<\_ACEOF
41315 #define HAVE_LGETXATTR
41316 _ACEOF
41317
41318
41319 cat >>confdefs.h <<\_ACEOF
41320 #define HAVE_LSETXATTR
41321 _ACEOF
41322
41323
41324
41325 fi
41326 done
41327
41328
41329    #
41330    # OSX specific
41331    #
41332    if test $have_xattr = no; then
41333
41334
41335
41336 for ac_func in listxattr getxattr setxattr
41337 do
41338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344   cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41352 #define $ac_func innocuous_$ac_func
41353
41354 /* System header to define __stub macros and hopefully few prototypes,
41355     which can conflict with char $ac_func (); below.
41356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41357     <limits.h> exists even on freestanding compilers.  */
41358
41359 #ifdef __STDC__
41360 # include <limits.h>
41361 #else
41362 # include <assert.h>
41363 #endif
41364
41365 #undef $ac_func
41366
41367 /* Override any GCC internal prototype to avoid an error.
41368    Use char because int might match the return type of a GCC
41369    builtin and then its argument prototype would still apply.  */
41370 #ifdef __cplusplus
41371 extern "C"
41372 #endif
41373 char $ac_func ();
41374 /* The GNU C library defines this for functions which it implements
41375     to always fail with ENOSYS.  Some functions are actually named
41376     something starting with __ and the normal name is an alias.  */
41377 #if defined __stub_$ac_func || defined __stub___$ac_func
41378 choke me
41379 #endif
41380
41381 int
41382 main ()
41383 {
41384 return $ac_func ();
41385   ;
41386   return 0;
41387 }
41388 _ACEOF
41389 rm -f conftest.$ac_objext conftest$ac_exeext
41390 if { (ac_try="$ac_link"
41391 case "(($ac_try" in
41392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41393   *) ac_try_echo=$ac_try;;
41394 esac
41395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41396   (eval "$ac_link") 2>conftest.er1
41397   ac_status=$?
41398   grep -v '^ *+' conftest.er1 >conftest.err
41399   rm -f conftest.er1
41400   cat conftest.err >&5
41401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402   (exit $ac_status); } && {
41403          test -z "$ac_c_werror_flag" ||
41404          test ! -s conftest.err
41405        } && test -s conftest$ac_exeext &&
41406        $as_test_x conftest$ac_exeext; then
41407   eval "$as_ac_var=yes"
41408 else
41409   echo "$as_me: failed program was:" >&5
41410 sed 's/^/| /' conftest.$ac_ext >&5
41411
41412         eval "$as_ac_var=no"
41413 fi
41414
41415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41416       conftest$ac_exeext conftest.$ac_ext
41417 fi
41418 ac_res=`eval echo '${'$as_ac_var'}'`
41419                { echo "$as_me:$LINENO: result: $ac_res" >&5
41420 echo "${ECHO_T}$ac_res" >&6; }
41421 if test `eval echo '${'$as_ac_var'}'` = yes; then
41422   cat >>confdefs.h <<_ACEOF
41423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41424 _ACEOF
41425
41426              have_xattr=yes
41427
41428 cat >>confdefs.h <<\_ACEOF
41429 #define HAVE_LLISTXATTR
41430 _ACEOF
41431
41432
41433 cat >>confdefs.h <<\_ACEOF
41434 #define HAVE_LGETXATTR
41435 _ACEOF
41436
41437
41438 cat >>confdefs.h <<\_ACEOF
41439 #define HAVE_LSETXATTR
41440 _ACEOF
41441
41442
41443
41444 fi
41445 done
41446
41447    fi
41448
41449    #
41450    # Solaris specific
41451    #
41452    if test $have_xattr = no; then
41453       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41454   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41455 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41456 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41457   echo $ECHO_N "(cached) $ECHO_C" >&6
41458 fi
41459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41460 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41461 else
41462   # Is the header compilable?
41463 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41464 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41465 cat >conftest.$ac_ext <<_ACEOF
41466 /* confdefs.h.  */
41467 _ACEOF
41468 cat confdefs.h >>conftest.$ac_ext
41469 cat >>conftest.$ac_ext <<_ACEOF
41470 /* end confdefs.h.  */
41471 $ac_includes_default
41472 #include <sys/attr.h>
41473 _ACEOF
41474 rm -f conftest.$ac_objext
41475 if { (ac_try="$ac_compile"
41476 case "(($ac_try" in
41477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41478   *) ac_try_echo=$ac_try;;
41479 esac
41480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41481   (eval "$ac_compile") 2>conftest.er1
41482   ac_status=$?
41483   grep -v '^ *+' conftest.er1 >conftest.err
41484   rm -f conftest.er1
41485   cat conftest.err >&5
41486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487   (exit $ac_status); } && {
41488          test -z "$ac_c_werror_flag" ||
41489          test ! -s conftest.err
41490        } && test -s conftest.$ac_objext; then
41491   ac_header_compiler=yes
41492 else
41493   echo "$as_me: failed program was:" >&5
41494 sed 's/^/| /' conftest.$ac_ext >&5
41495
41496         ac_header_compiler=no
41497 fi
41498
41499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41501 echo "${ECHO_T}$ac_header_compiler" >&6; }
41502
41503 # Is the header present?
41504 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41505 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41506 cat >conftest.$ac_ext <<_ACEOF
41507 /* confdefs.h.  */
41508 _ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h.  */
41512 #include <sys/attr.h>
41513 _ACEOF
41514 if { (ac_try="$ac_cpp conftest.$ac_ext"
41515 case "(($ac_try" in
41516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41517   *) ac_try_echo=$ac_try;;
41518 esac
41519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41521   ac_status=$?
41522   grep -v '^ *+' conftest.er1 >conftest.err
41523   rm -f conftest.er1
41524   cat conftest.err >&5
41525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526   (exit $ac_status); } >/dev/null && {
41527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41528          test ! -s conftest.err
41529        }; then
41530   ac_header_preproc=yes
41531 else
41532   echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41534
41535   ac_header_preproc=no
41536 fi
41537
41538 rm -f conftest.err conftest.$ac_ext
41539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41540 echo "${ECHO_T}$ac_header_preproc" >&6; }
41541
41542 # So?  What about this header?
41543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41544   yes:no: )
41545     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41546 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41547     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41548 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41549     ac_header_preproc=yes
41550     ;;
41551   no:yes:* )
41552     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41553 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41554     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41555 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41556     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41557 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41558     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41559 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41560     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41561 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41562     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41563 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41564
41565     ;;
41566 esac
41567 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41568 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41569 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41570   echo $ECHO_N "(cached) $ECHO_C" >&6
41571 else
41572   ac_cv_header_sys_attr_h=$ac_header_preproc
41573 fi
41574 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41575 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41576
41577 fi
41578 if test $ac_cv_header_sys_attr_h = yes; then
41579
41580 cat >>confdefs.h <<\_ACEOF
41581 #define HAVE_SYS_ATTR_H 1
41582 _ACEOF
41583
41584 fi
41585
41586
41587       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41588   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41589 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41590 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41591   echo $ECHO_N "(cached) $ECHO_C" >&6
41592 fi
41593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41594 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41595 else
41596   # Is the header compilable?
41597 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41598 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41599 cat >conftest.$ac_ext <<_ACEOF
41600 /* confdefs.h.  */
41601 _ACEOF
41602 cat confdefs.h >>conftest.$ac_ext
41603 cat >>conftest.$ac_ext <<_ACEOF
41604 /* end confdefs.h.  */
41605 $ac_includes_default
41606 #include <sys/nvpair.h>
41607 _ACEOF
41608 rm -f conftest.$ac_objext
41609 if { (ac_try="$ac_compile"
41610 case "(($ac_try" in
41611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41612   *) ac_try_echo=$ac_try;;
41613 esac
41614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41615   (eval "$ac_compile") 2>conftest.er1
41616   ac_status=$?
41617   grep -v '^ *+' conftest.er1 >conftest.err
41618   rm -f conftest.er1
41619   cat conftest.err >&5
41620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621   (exit $ac_status); } && {
41622          test -z "$ac_c_werror_flag" ||
41623          test ! -s conftest.err
41624        } && test -s conftest.$ac_objext; then
41625   ac_header_compiler=yes
41626 else
41627   echo "$as_me: failed program was:" >&5
41628 sed 's/^/| /' conftest.$ac_ext >&5
41629
41630         ac_header_compiler=no
41631 fi
41632
41633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41635 echo "${ECHO_T}$ac_header_compiler" >&6; }
41636
41637 # Is the header present?
41638 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41639 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41640 cat >conftest.$ac_ext <<_ACEOF
41641 /* confdefs.h.  */
41642 _ACEOF
41643 cat confdefs.h >>conftest.$ac_ext
41644 cat >>conftest.$ac_ext <<_ACEOF
41645 /* end confdefs.h.  */
41646 #include <sys/nvpair.h>
41647 _ACEOF
41648 if { (ac_try="$ac_cpp conftest.$ac_ext"
41649 case "(($ac_try" in
41650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41651   *) ac_try_echo=$ac_try;;
41652 esac
41653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41655   ac_status=$?
41656   grep -v '^ *+' conftest.er1 >conftest.err
41657   rm -f conftest.er1
41658   cat conftest.err >&5
41659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660   (exit $ac_status); } >/dev/null && {
41661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41662          test ! -s conftest.err
41663        }; then
41664   ac_header_preproc=yes
41665 else
41666   echo "$as_me: failed program was:" >&5
41667 sed 's/^/| /' conftest.$ac_ext >&5
41668
41669   ac_header_preproc=no
41670 fi
41671
41672 rm -f conftest.err conftest.$ac_ext
41673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41674 echo "${ECHO_T}$ac_header_preproc" >&6; }
41675
41676 # So?  What about this header?
41677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41678   yes:no: )
41679     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41680 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41681     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41682 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41683     ac_header_preproc=yes
41684     ;;
41685   no:yes:* )
41686     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41687 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41688     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41689 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41690     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41691 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41692     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41693 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41694     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41695 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41696     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41697 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41698
41699     ;;
41700 esac
41701 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41702 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41703 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41704   echo $ECHO_N "(cached) $ECHO_C" >&6
41705 else
41706   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41707 fi
41708 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41709 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41710
41711 fi
41712 if test $ac_cv_header_sys_nvpair_h = yes; then
41713
41714 cat >>confdefs.h <<\_ACEOF
41715 #define HAVE_SYS_NVPAIR_H 1
41716 _ACEOF
41717
41718 fi
41719
41720
41721       if test "${ac_cv_header_attr_h+set}" = set; then
41722   { echo "$as_me:$LINENO: checking for attr.h" >&5
41723 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41724 if test "${ac_cv_header_attr_h+set}" = set; then
41725   echo $ECHO_N "(cached) $ECHO_C" >&6
41726 fi
41727 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41728 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41729 else
41730   # Is the header compilable?
41731 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41732 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41733 cat >conftest.$ac_ext <<_ACEOF
41734 /* confdefs.h.  */
41735 _ACEOF
41736 cat confdefs.h >>conftest.$ac_ext
41737 cat >>conftest.$ac_ext <<_ACEOF
41738 /* end confdefs.h.  */
41739 $ac_includes_default
41740 #include <attr.h>
41741 _ACEOF
41742 rm -f conftest.$ac_objext
41743 if { (ac_try="$ac_compile"
41744 case "(($ac_try" in
41745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41746   *) ac_try_echo=$ac_try;;
41747 esac
41748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41749   (eval "$ac_compile") 2>conftest.er1
41750   ac_status=$?
41751   grep -v '^ *+' conftest.er1 >conftest.err
41752   rm -f conftest.er1
41753   cat conftest.err >&5
41754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755   (exit $ac_status); } && {
41756          test -z "$ac_c_werror_flag" ||
41757          test ! -s conftest.err
41758        } && test -s conftest.$ac_objext; then
41759   ac_header_compiler=yes
41760 else
41761   echo "$as_me: failed program was:" >&5
41762 sed 's/^/| /' conftest.$ac_ext >&5
41763
41764         ac_header_compiler=no
41765 fi
41766
41767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41769 echo "${ECHO_T}$ac_header_compiler" >&6; }
41770
41771 # Is the header present?
41772 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41773 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41774 cat >conftest.$ac_ext <<_ACEOF
41775 /* confdefs.h.  */
41776 _ACEOF
41777 cat confdefs.h >>conftest.$ac_ext
41778 cat >>conftest.$ac_ext <<_ACEOF
41779 /* end confdefs.h.  */
41780 #include <attr.h>
41781 _ACEOF
41782 if { (ac_try="$ac_cpp conftest.$ac_ext"
41783 case "(($ac_try" in
41784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41785   *) ac_try_echo=$ac_try;;
41786 esac
41787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41789   ac_status=$?
41790   grep -v '^ *+' conftest.er1 >conftest.err
41791   rm -f conftest.er1
41792   cat conftest.err >&5
41793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794   (exit $ac_status); } >/dev/null && {
41795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41796          test ! -s conftest.err
41797        }; then
41798   ac_header_preproc=yes
41799 else
41800   echo "$as_me: failed program was:" >&5
41801 sed 's/^/| /' conftest.$ac_ext >&5
41802
41803   ac_header_preproc=no
41804 fi
41805
41806 rm -f conftest.err conftest.$ac_ext
41807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41808 echo "${ECHO_T}$ac_header_preproc" >&6; }
41809
41810 # So?  What about this header?
41811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41812   yes:no: )
41813     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41814 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41815     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41816 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41817     ac_header_preproc=yes
41818     ;;
41819   no:yes:* )
41820     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41821 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41822     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41823 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41824     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41825 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41826     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41827 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41828     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41829 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41830     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41831 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41832
41833     ;;
41834 esac
41835 { echo "$as_me:$LINENO: checking for attr.h" >&5
41836 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41837 if test "${ac_cv_header_attr_h+set}" = set; then
41838   echo $ECHO_N "(cached) $ECHO_C" >&6
41839 else
41840   ac_cv_header_attr_h=$ac_header_preproc
41841 fi
41842 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41843 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41844
41845 fi
41846 if test $ac_cv_header_attr_h = yes; then
41847
41848 cat >>confdefs.h <<\_ACEOF
41849 #define HAVE_ATTR_H 1
41850 _ACEOF
41851
41852 fi
41853
41854
41855
41856
41857
41858
41859
41860
41861 for ac_func in openat fstatat unlinkat fchownat futimesat
41862 do
41863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41867   echo $ECHO_N "(cached) $ECHO_C" >&6
41868 else
41869   cat >conftest.$ac_ext <<_ACEOF
41870 /* confdefs.h.  */
41871 _ACEOF
41872 cat confdefs.h >>conftest.$ac_ext
41873 cat >>conftest.$ac_ext <<_ACEOF
41874 /* end confdefs.h.  */
41875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41877 #define $ac_func innocuous_$ac_func
41878
41879 /* System header to define __stub macros and hopefully few prototypes,
41880     which can conflict with char $ac_func (); below.
41881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41882     <limits.h> exists even on freestanding compilers.  */
41883
41884 #ifdef __STDC__
41885 # include <limits.h>
41886 #else
41887 # include <assert.h>
41888 #endif
41889
41890 #undef $ac_func
41891
41892 /* Override any GCC internal prototype to avoid an error.
41893    Use char because int might match the return type of a GCC
41894    builtin and then its argument prototype would still apply.  */
41895 #ifdef __cplusplus
41896 extern "C"
41897 #endif
41898 char $ac_func ();
41899 /* The GNU C library defines this for functions which it implements
41900     to always fail with ENOSYS.  Some functions are actually named
41901     something starting with __ and the normal name is an alias.  */
41902 #if defined __stub_$ac_func || defined __stub___$ac_func
41903 choke me
41904 #endif
41905
41906 int
41907 main ()
41908 {
41909 return $ac_func ();
41910   ;
41911   return 0;
41912 }
41913 _ACEOF
41914 rm -f conftest.$ac_objext conftest$ac_exeext
41915 if { (ac_try="$ac_link"
41916 case "(($ac_try" in
41917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41918   *) ac_try_echo=$ac_try;;
41919 esac
41920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41921   (eval "$ac_link") 2>conftest.er1
41922   ac_status=$?
41923   grep -v '^ *+' conftest.er1 >conftest.err
41924   rm -f conftest.er1
41925   cat conftest.err >&5
41926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927   (exit $ac_status); } && {
41928          test -z "$ac_c_werror_flag" ||
41929          test ! -s conftest.err
41930        } && test -s conftest$ac_exeext &&
41931        $as_test_x conftest$ac_exeext; then
41932   eval "$as_ac_var=yes"
41933 else
41934   echo "$as_me: failed program was:" >&5
41935 sed 's/^/| /' conftest.$ac_ext >&5
41936
41937         eval "$as_ac_var=no"
41938 fi
41939
41940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41941       conftest$ac_exeext conftest.$ac_ext
41942 fi
41943 ac_res=`eval echo '${'$as_ac_var'}'`
41944                { echo "$as_me:$LINENO: result: $ac_res" >&5
41945 echo "${ECHO_T}$ac_res" >&6; }
41946 if test `eval echo '${'$as_ac_var'}'` = yes; then
41947   cat >>confdefs.h <<_ACEOF
41948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41949 _ACEOF
41950
41951              have_xattr=yes
41952
41953 cat >>confdefs.h <<\_ACEOF
41954 #define HAVE_OPENAT
41955 _ACEOF
41956
41957
41958 cat >>confdefs.h <<\_ACEOF
41959 #define HAVE_FSTATAT
41960 _ACEOF
41961
41962
41963 cat >>confdefs.h <<\_ACEOF
41964 #define HAVE_UNLINKAT
41965 _ACEOF
41966
41967
41968 cat >>confdefs.h <<\_ACEOF
41969 #define HAVE_FCHOWNAT
41970 _ACEOF
41971
41972
41973 cat >>confdefs.h <<\_ACEOF
41974 #define HAVE_FUTIMESAT
41975 _ACEOF
41976
41977
41978
41979 fi
41980 done
41981
41982
41983       if test $have_xattr = yes; then
41984          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
41985 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
41986 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
41987   echo $ECHO_N "(cached) $ECHO_C" >&6
41988 else
41989   ac_check_lib_save_LIBS=$LIBS
41990 LIBS="-lnvpair  $LIBS"
41991 cat >conftest.$ac_ext <<_ACEOF
41992 /* confdefs.h.  */
41993 _ACEOF
41994 cat confdefs.h >>conftest.$ac_ext
41995 cat >>conftest.$ac_ext <<_ACEOF
41996 /* end confdefs.h.  */
41997
41998 /* Override any GCC internal prototype to avoid an error.
41999    Use char because int might match the return type of a GCC
42000    builtin and then its argument prototype would still apply.  */
42001 #ifdef __cplusplus
42002 extern "C"
42003 #endif
42004 char nvlist_next_nvpair ();
42005 int
42006 main ()
42007 {
42008 return nvlist_next_nvpair ();
42009   ;
42010   return 0;
42011 }
42012 _ACEOF
42013 rm -f conftest.$ac_objext conftest$ac_exeext
42014 if { (ac_try="$ac_link"
42015 case "(($ac_try" in
42016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42017   *) ac_try_echo=$ac_try;;
42018 esac
42019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42020   (eval "$ac_link") 2>conftest.er1
42021   ac_status=$?
42022   grep -v '^ *+' conftest.er1 >conftest.err
42023   rm -f conftest.er1
42024   cat conftest.err >&5
42025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42026   (exit $ac_status); } && {
42027          test -z "$ac_c_werror_flag" ||
42028          test ! -s conftest.err
42029        } && test -s conftest$ac_exeext &&
42030        $as_test_x conftest$ac_exeext; then
42031   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42032 else
42033   echo "$as_me: failed program was:" >&5
42034 sed 's/^/| /' conftest.$ac_ext >&5
42035
42036         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42037 fi
42038
42039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42040       conftest$ac_exeext conftest.$ac_ext
42041 LIBS=$ac_check_lib_save_LIBS
42042 fi
42043 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42044 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42045 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42046
42047                 FDLIBS="-lnvpair $FDLIBS"
42048
42049
42050 fi
42051
42052       fi
42053    fi
42054
42055    if test $have_xattr = yes; then
42056
42057 cat >>confdefs.h <<\_ACEOF
42058 #define HAVE_XATTR
42059 _ACEOF
42060
42061    fi
42062 fi
42063
42064 PTHREAD_LIB=""
42065 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42066 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42067 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42068   echo $ECHO_N "(cached) $ECHO_C" >&6
42069 else
42070   ac_check_lib_save_LIBS=$LIBS
42071 LIBS="-lpthread  $LIBS"
42072 cat >conftest.$ac_ext <<_ACEOF
42073 /* confdefs.h.  */
42074 _ACEOF
42075 cat confdefs.h >>conftest.$ac_ext
42076 cat >>conftest.$ac_ext <<_ACEOF
42077 /* end confdefs.h.  */
42078
42079 /* Override any GCC internal prototype to avoid an error.
42080    Use char because int might match the return type of a GCC
42081    builtin and then its argument prototype would still apply.  */
42082 #ifdef __cplusplus
42083 extern "C"
42084 #endif
42085 char pthread_create ();
42086 int
42087 main ()
42088 {
42089 return pthread_create ();
42090   ;
42091   return 0;
42092 }
42093 _ACEOF
42094 rm -f conftest.$ac_objext conftest$ac_exeext
42095 if { (ac_try="$ac_link"
42096 case "(($ac_try" in
42097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42098   *) ac_try_echo=$ac_try;;
42099 esac
42100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42101   (eval "$ac_link") 2>conftest.er1
42102   ac_status=$?
42103   grep -v '^ *+' conftest.er1 >conftest.err
42104   rm -f conftest.er1
42105   cat conftest.err >&5
42106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107   (exit $ac_status); } && {
42108          test -z "$ac_c_werror_flag" ||
42109          test ! -s conftest.err
42110        } && test -s conftest$ac_exeext &&
42111        $as_test_x conftest$ac_exeext; then
42112   ac_cv_lib_pthread_pthread_create=yes
42113 else
42114   echo "$as_me: failed program was:" >&5
42115 sed 's/^/| /' conftest.$ac_ext >&5
42116
42117         ac_cv_lib_pthread_pthread_create=no
42118 fi
42119
42120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42121       conftest$ac_exeext conftest.$ac_ext
42122 LIBS=$ac_check_lib_save_LIBS
42123 fi
42124 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42125 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42126 if test $ac_cv_lib_pthread_pthread_create = yes; then
42127   PTHREAD_LIB="-lpthread"
42128 else
42129
42130        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42131 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42132 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42133   echo $ECHO_N "(cached) $ECHO_C" >&6
42134 else
42135   ac_check_lib_save_LIBS=$LIBS
42136 LIBS="-lpthreads  $LIBS"
42137 cat >conftest.$ac_ext <<_ACEOF
42138 /* confdefs.h.  */
42139 _ACEOF
42140 cat confdefs.h >>conftest.$ac_ext
42141 cat >>conftest.$ac_ext <<_ACEOF
42142 /* end confdefs.h.  */
42143
42144 /* Override any GCC internal prototype to avoid an error.
42145    Use char because int might match the return type of a GCC
42146    builtin and then its argument prototype would still apply.  */
42147 #ifdef __cplusplus
42148 extern "C"
42149 #endif
42150 char pthread_create ();
42151 int
42152 main ()
42153 {
42154 return pthread_create ();
42155   ;
42156   return 0;
42157 }
42158 _ACEOF
42159 rm -f conftest.$ac_objext conftest$ac_exeext
42160 if { (ac_try="$ac_link"
42161 case "(($ac_try" in
42162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42163   *) ac_try_echo=$ac_try;;
42164 esac
42165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42166   (eval "$ac_link") 2>conftest.er1
42167   ac_status=$?
42168   grep -v '^ *+' conftest.er1 >conftest.err
42169   rm -f conftest.er1
42170   cat conftest.err >&5
42171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172   (exit $ac_status); } && {
42173          test -z "$ac_c_werror_flag" ||
42174          test ! -s conftest.err
42175        } && test -s conftest$ac_exeext &&
42176        $as_test_x conftest$ac_exeext; then
42177   ac_cv_lib_pthreads_pthread_create=yes
42178 else
42179   echo "$as_me: failed program was:" >&5
42180 sed 's/^/| /' conftest.$ac_ext >&5
42181
42182         ac_cv_lib_pthreads_pthread_create=no
42183 fi
42184
42185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42186       conftest$ac_exeext conftest.$ac_ext
42187 LIBS=$ac_check_lib_save_LIBS
42188 fi
42189 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42190 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42191 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42192   PTHREAD_LIB="-lpthreads"
42193 else
42194
42195               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42196 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42197 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42198   echo $ECHO_N "(cached) $ECHO_C" >&6
42199 else
42200   ac_check_lib_save_LIBS=$LIBS
42201 LIBS="-lc_r  $LIBS"
42202 cat >conftest.$ac_ext <<_ACEOF
42203 /* confdefs.h.  */
42204 _ACEOF
42205 cat confdefs.h >>conftest.$ac_ext
42206 cat >>conftest.$ac_ext <<_ACEOF
42207 /* end confdefs.h.  */
42208
42209 /* Override any GCC internal prototype to avoid an error.
42210    Use char because int might match the return type of a GCC
42211    builtin and then its argument prototype would still apply.  */
42212 #ifdef __cplusplus
42213 extern "C"
42214 #endif
42215 char pthread_create ();
42216 int
42217 main ()
42218 {
42219 return pthread_create ();
42220   ;
42221   return 0;
42222 }
42223 _ACEOF
42224 rm -f conftest.$ac_objext conftest$ac_exeext
42225 if { (ac_try="$ac_link"
42226 case "(($ac_try" in
42227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42228   *) ac_try_echo=$ac_try;;
42229 esac
42230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42231   (eval "$ac_link") 2>conftest.er1
42232   ac_status=$?
42233   grep -v '^ *+' conftest.er1 >conftest.err
42234   rm -f conftest.er1
42235   cat conftest.err >&5
42236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42237   (exit $ac_status); } && {
42238          test -z "$ac_c_werror_flag" ||
42239          test ! -s conftest.err
42240        } && test -s conftest$ac_exeext &&
42241        $as_test_x conftest$ac_exeext; then
42242   ac_cv_lib_c_r_pthread_create=yes
42243 else
42244   echo "$as_me: failed program was:" >&5
42245 sed 's/^/| /' conftest.$ac_ext >&5
42246
42247         ac_cv_lib_c_r_pthread_create=no
42248 fi
42249
42250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42251       conftest$ac_exeext conftest.$ac_ext
42252 LIBS=$ac_check_lib_save_LIBS
42253 fi
42254 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42255 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42256 if test $ac_cv_lib_c_r_pthread_create = yes; then
42257   PTHREAD_LIB="-lc_r"
42258 else
42259
42260                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42261 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42262 if test "${ac_cv_func_pthread_create+set}" = set; then
42263   echo $ECHO_N "(cached) $ECHO_C" >&6
42264 else
42265   cat >conftest.$ac_ext <<_ACEOF
42266 /* confdefs.h.  */
42267 _ACEOF
42268 cat confdefs.h >>conftest.$ac_ext
42269 cat >>conftest.$ac_ext <<_ACEOF
42270 /* end confdefs.h.  */
42271 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42273 #define pthread_create innocuous_pthread_create
42274
42275 /* System header to define __stub macros and hopefully few prototypes,
42276     which can conflict with char pthread_create (); below.
42277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42278     <limits.h> exists even on freestanding compilers.  */
42279
42280 #ifdef __STDC__
42281 # include <limits.h>
42282 #else
42283 # include <assert.h>
42284 #endif
42285
42286 #undef pthread_create
42287
42288 /* Override any GCC internal prototype to avoid an error.
42289    Use char because int might match the return type of a GCC
42290    builtin and then its argument prototype would still apply.  */
42291 #ifdef __cplusplus
42292 extern "C"
42293 #endif
42294 char pthread_create ();
42295 /* The GNU C library defines this for functions which it implements
42296     to always fail with ENOSYS.  Some functions are actually named
42297     something starting with __ and the normal name is an alias.  */
42298 #if defined __stub_pthread_create || defined __stub___pthread_create
42299 choke me
42300 #endif
42301
42302 int
42303 main ()
42304 {
42305 return pthread_create ();
42306   ;
42307   return 0;
42308 }
42309 _ACEOF
42310 rm -f conftest.$ac_objext conftest$ac_exeext
42311 if { (ac_try="$ac_link"
42312 case "(($ac_try" in
42313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42314   *) ac_try_echo=$ac_try;;
42315 esac
42316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42317   (eval "$ac_link") 2>conftest.er1
42318   ac_status=$?
42319   grep -v '^ *+' conftest.er1 >conftest.err
42320   rm -f conftest.er1
42321   cat conftest.err >&5
42322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42323   (exit $ac_status); } && {
42324          test -z "$ac_c_werror_flag" ||
42325          test ! -s conftest.err
42326        } && test -s conftest$ac_exeext &&
42327        $as_test_x conftest$ac_exeext; then
42328   ac_cv_func_pthread_create=yes
42329 else
42330   echo "$as_me: failed program was:" >&5
42331 sed 's/^/| /' conftest.$ac_ext >&5
42332
42333         ac_cv_func_pthread_create=no
42334 fi
42335
42336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42337       conftest$ac_exeext conftest.$ac_ext
42338 fi
42339 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42340 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42341
42342
42343
42344 fi
42345
42346
42347
42348 fi
42349
42350
42351
42352 fi
42353
42354
42355
42356 cat >>confdefs.h <<\_ACEOF
42357 #define FDLIBS 1
42358 _ACEOF
42359
42360
42361 CFLAGS=${CFLAGS--O}
42362
42363 if test x$have_gcc = xyes ; then
42364    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42365    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42366 fi
42367 LDFLAGS=${LDFLAGS--O}
42368 DB_LIBS="${SQL_LFLAGS}"
42369 CPPFLAGS="$CPPFLAGS"
42370 CFLAGS="$CFLAGS"
42371
42372
42373
42374
42375
42376
42377
42378
42379
42380
42381
42382
42383
42384
42385
42386
42387 OBJLIST=
42388
42389
42390 lld="lld"
42391 llu="llu"
42392
42393 WCFLAGS=
42394 WLDFLAGS=
42395
42396 PFILES="platforms/Makefile"
42397 PSCMD="ps -e"
42398 WIN32=
42399 MACOSX=
42400 hostname=`uname -n | cut -d '.' -f 1`
42401 if test x${hostname} = x ; then
42402    hostname="localhost"
42403 fi
42404 case "$DISTNAME" in
42405 aix)
42406    DISTVER=`uname -r`
42407    PSCMD="ps -e -o pid,comm"
42408    PFILES="${PFILES} \
42409       platforms/aix/Makefile"
42410    TAPEDRIVE="/dev/rmt0.1"
42411   ;;
42412 alpha)
42413    DISTVER=`uname -r`
42414    PTHREAD_LIB="-lpthread -lexc"
42415    if test "${CC}" = "gcc" ; then
42416       lld="lld"
42417       llu="llu"
42418    else
42419       lld="ld"
42420       llu="lu"
42421    fi
42422    TAPEDRIVE="/dev/nrmt0"
42423   ;;
42424 bsdi)
42425    DISTVER=`uname -a |awk '{print $3}'`
42426    TAPEDRIVE="/dev/nrmt0"
42427    PTHREAD_LIB="-pthread"
42428    CFLAGS="${CFLAGS} -pthread"
42429    PSCMD="ps -ax -o pid,command"
42430    lld="qd"
42431    llu="qu"
42432    PFILES="${PFILES} \
42433        platforms/bsdi/Makefile \
42434        platforms/bsdi/bacula-fd \
42435        platforms/bsdi/bacula-sd \
42436        platforms/bsdi/bacula-dir"
42437    largefile_support="yes"
42438   ;;
42439 cygwin)
42440    DISTVER=`uname -a |awk '{print $3}'`
42441    TAPEDRIVE="/dev/nrst0"
42442    WIN32=win32
42443    WCFLAGS="-mwindows"
42444    WLDFLAGS="-mwindows"
42445   ;;
42446 darwin)
42447    DISTVER=`uname -r`
42448    TAPEDRIVE="/dev/nst0"
42449    PSCMD="ps -e -o pid,command"
42450    MACOSX=macosx
42451    PFILES="${PFILES} \
42452       platforms/darwin/Makefile"
42453   ;;
42454 debian)
42455       ping -c 1 $hostname 2>&1 1>/dev/null
42456    if test ! $? = 0; then
42457       hostname="localhost"
42458    fi
42459    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42460       DISTNAME="ubuntu"
42461    fi
42462    DISTVER=`cat /etc/debian_version`
42463    if test -f /etc/lsb-release ; then
42464       . /etc/lsb-release
42465       if test "x$DISTRIB_ID" != "x" ; then
42466          DISTNAME=$DISTRIB_ID
42467       fi
42468       if test "x$DISTRIB_RELEASE" != "x" ; then
42469          DISTVER=$DISTRIB_RELEASE
42470       fi
42471    fi
42472    if test "$DISTNAME" = "Ubuntu" ; then
42473       DISTNAME="ubuntu"
42474    fi
42475    TAPEDRIVE="/dev/nst0"
42476    PSCMD="ps -e -o pid,command"
42477    if test "$DISTNAME" = "ubuntu" ; then
42478       PFILES="${PFILES} \
42479          platforms/ubuntu/Makefile \
42480          platforms/ubuntu/bacula-fd \
42481          platforms/ubuntu/bacula-sd \
42482          platforms/ubuntu/bacula-dir"
42483    else
42484       PFILES="${PFILES} \
42485          platforms/debian/Makefile \
42486          platforms/debian/bacula-fd \
42487          platforms/debian/bacula-sd \
42488          platforms/debian/bacula-dir"
42489    fi
42490   ;;
42491 freebsd)
42492       ping -c 1 $hostname 2>&1 1>/dev/null
42493    if test ! $? = 0; then
42494       hostname="localhost"
42495    fi
42496    DISTVER=`uname -a |awk '{print $3}'`
42497    VER=`echo $DISTVER | cut -c 1`
42498    if test x$VER = x4 ; then
42499       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42500       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42501    fi
42502    lld="qd"
42503    llu="qu"
42504    TAPEDRIVE="/dev/nrsa0"
42505    PSCMD="ps -ax -o pid,command"
42506    PFILES="${PFILES} \
42507        platforms/freebsd/Makefile \
42508        platforms/freebsd/bacula-fd \
42509        platforms/freebsd/bacula-sd \
42510        platforms/freebsd/bacula-dir"
42511    largefile_support="yes"
42512   ;;
42513 hpux)
42514    PSCMD="UNIX95=1; ps -e -o pid,comm"
42515    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42516    DISTVER=`uname -r`
42517    TAPEDRIVE="/dev/rmt/0hnb"
42518    PTHREAD_LIB="-lpthread"
42519    cat >>confdefs.h <<\_ACEOF
42520 #define _INCLUDE_LONGLONG 1
42521 _ACEOF
42522
42523   ;;
42524 irix)
42525    DISTVER=`uname -r`
42526    TAPEDRIVE="/dev/rmt/0cbn"
42527    PSCMD="ps -e -o pid,comm"
42528    PFILES="${PFILES} \
42529        platforms/irix/Makefile \
42530        platforms/irix/bacula-fd \
42531        platforms/irix/bacula-sd \
42532        platforms/irix/bacula-dir"
42533   ;;
42534 netbsd)
42535    DISTVER=`uname -a |awk '{print $3}'`
42536    lld="qd"
42537    llu="qu"
42538    TAPEDRIVE="/dev/nrst0"
42539    PSCMD="ps -ax -o pid,command"
42540    PTHREAD_LIB="-pthread"
42541    CFLAGS="${CFLAGS} -pthread"
42542   ;;
42543 openbsd)
42544    DISTVER=`uname -a |awk '{print $3}'`
42545    lld="qd"
42546    llu="qu"
42547    TAPEDRIVE="/dev/nrst0"
42548    PSCMD="ps -ax -o pid,command"
42549    PTHREAD_LIB="-pthread"
42550    CFLAGS="${CFLAGS} -pthread"
42551    PFILES="${PFILES} \
42552        platforms/openbsd/Makefile \
42553        platforms/openbsd/bacula-fd \
42554        platforms/openbsd/bacula-sd \
42555        platforms/openbsd/bacula-dir"
42556   ;;
42557 redhat)
42558       ping -c 1 $hostname 2>&1 1>/dev/null
42559    if test ! $? = 0; then
42560       hostname="localhost"
42561    fi
42562    if test -f /etc/whitebox-release ; then
42563       f=/etc/whitebox-release
42564    else
42565       f=/etc/redhat-release
42566    fi
42567    if test `cat $f | grep release |\
42568          cut -f 3 -d ' '`x = "Enterprise"x ; then
42569       DISTVER="Enterprise "`cat $f | grep release |\
42570           cut -f 6 -d ' '`
42571    else
42572        DISTVER=`cat /etc/redhat-release | grep release |\
42573            cut -f 5 -d ' '`
42574    fi
42575    TAPEDRIVE="/dev/nst0"
42576    PSCMD="ps -e -o pid,command"
42577    PFILES="${PFILES} \
42578        platforms/redhat/Makefile \
42579        platforms/redhat/bacula-fd \
42580        platforms/redhat/bacula-sd \
42581        platforms/redhat/bacula-dir \
42582        platforms/redhat/bacula.spec \
42583        "
42584   ;;
42585 mandrake)
42586       ping -c 1 $hostname 2>&1 1>/dev/null
42587    if test ! $? = 0; then
42588       hostname="localhost"
42589    fi
42590    DISTVER=`cat /etc/mandrake-release | grep release |\
42591       cut -f 5 -d ' '`
42592    TAPEDRIVE="/dev/nst0"
42593    PSCMD="ps -e -o pid,command"
42594    PFILES="${PFILES} \
42595        platforms/mandrake/Makefile \
42596        platforms/mandrake/bacula-fd \
42597        platforms/mandrake/bacula-sd \
42598        platforms/mandrake/bacula-dir \
42599        platforms/mandrake/bacula.spec \
42600        "
42601   ;;
42602 gentoo)
42603       ping -c 1 $hostname 2>&1 1>/dev/null
42604    if test ! $? = 0; then
42605       hostname="localhost"
42606    fi
42607    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42608    TAPEDRIVE="/dev/nst0"
42609    PSCMD="ps -e -o pid,command"
42610    PFILES="${PFILES} \
42611        platforms/gentoo/Makefile \
42612     platforms/gentoo/bacula-init \
42613        platforms/gentoo/bacula-fd \
42614        platforms/gentoo/bacula-sd \
42615        platforms/gentoo/bacula-dir"
42616   ;;
42617 slackware)
42618       ping -c 1 $hostname 2>&1 1>/dev/null
42619    if test ! $? = 0; then
42620       hostname="localhost"
42621    fi
42622    DISTVER=`cat /etc/slackware-version`
42623    TAPEDRIVE="/dev/nst0"
42624    PSCMD="ps -e -o pid,command"
42625    PFILES="${PFILES} \
42626        platforms/slackware/Makefile \
42627        platforms/slackware/rc.bacula-fd \
42628        platforms/slackware/rc.bacula-sd \
42629        platforms/slackware/rc.bacula-dir\
42630        platforms/slackware/functions.bacula"
42631   ;;
42632 solaris)
42633    DISTVER=`uname -r`
42634    TAPEDRIVE="/dev/rmt/0cbn"
42635    PSCMD="ps -e -o pid,comm"
42636    PFILES="${PFILES} \
42637        platforms/solaris/Makefile \
42638        platforms/solaris/bacula-fd \
42639        platforms/solaris/bacula-sd \
42640        platforms/solaris/bacula-dir"
42641    if test x$DISTVER = x5.6 ; then
42642        cat >>confdefs.h <<\_ACEOF
42643 #define HAVE_OLD_SOCKOPT 1
42644 _ACEOF
42645
42646    fi
42647    LIBS="$LIBS -lresolv"
42648   ;;
42649 suse)
42650       ping -c 1 $hostname 2>&1 1>/dev/null
42651    if test ! $? = 0; then
42652       hostname="localhost"
42653    fi
42654    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42655        cut -f 3 -d ' '`
42656    TAPEDRIVE="/dev/nst0"
42657    PSCMD="ps -e -o pid,command"
42658    PFILES="${PFILES} \
42659        platforms/suse/Makefile \
42660        platforms/suse/bacula-fd \
42661        platforms/suse/bacula-sd \
42662        platforms/suse/bacula-dir \
42663        platforms/suse/bacula \
42664        platforms/suse/bacula.spec"
42665   ;;
42666 suse5)
42667       ping -c 1 $hostname 2>&1 1>/dev/null
42668    if test ! $? = 0; then
42669       hostname="localhost"
42670    fi
42671    DISTNAME=suse
42672    DISTVER=5.x
42673    TAPEDRIVE="/dev/nst0"
42674    PSCMD="ps -e -o pid,command"
42675    PFILES="${PFILES} \
42676        platforms/suse/Makefile \
42677        platforms/suse/bacula-fd \
42678        platforms/suse/bacula-sd \
42679        platforms/suse/bacula-dir"
42680   ;;
42681 unknown)
42682    DISTVER=unknown
42683    TAPEDRIVE="/dev/nst0"
42684   ;;
42685 *)
42686   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42687   ;;
42688 esac
42689
42690
42691
42692 LIBS="$PTHREAD_LIB $LIBS"
42693
42694 cat >>confdefs.h <<_ACEOF
42695 #define lld "$lld"
42696 _ACEOF
42697
42698 cat >>confdefs.h <<_ACEOF
42699 #define llu "$llu"
42700 _ACEOF
42701
42702
42703
42704
42705
42706
42707
42708
42709 MCOMMON=./autoconf/Make.common
42710
42711
42712 if test "x${subsysdir}" = "x${sbindir}" ; then
42713    echo " "
42714    echo " "
42715    echo "You have set both --sbindir and --with-subsys-dir"
42716    echo "  equal to: ${subsysdir} "
42717    echo "This is not permitted. Please reconfigure."
42718    echo " "
42719    echo "Aborting configuration ..."
42720    echo " "
42721    echo " "
42722    exit 1
42723 fi
42724
42725 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile 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_sqlite_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_sqlite_tables_10_to_11 $PFILES"
42726
42727 ac_config_commands="$ac_config_commands default"
42728
42729 cat >confcache <<\_ACEOF
42730 # This file is a shell script that caches the results of configure
42731 # tests run on this system so they can be shared between configure
42732 # scripts and configure runs, see configure's option --config-cache.
42733 # It is not useful on other systems.  If it contains results you don't
42734 # want to keep, you may remove or edit it.
42735 #
42736 # config.status only pays attention to the cache file if you give it
42737 # the --recheck option to rerun configure.
42738 #
42739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42741 # following values.
42742
42743 _ACEOF
42744
42745 # The following way of writing the cache mishandles newlines in values,
42746 # but we know of no workaround that is simple, portable, and efficient.
42747 # So, we kill variables containing newlines.
42748 # Ultrix sh set writes to stderr and can't be redirected directly,
42749 # and sets the high bit in the cache file unless we assign to the vars.
42750 (
42751   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42752     eval ac_val=\$$ac_var
42753     case $ac_val in #(
42754     *${as_nl}*)
42755       case $ac_var in #(
42756       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42757 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42758       esac
42759       case $ac_var in #(
42760       _ | IFS | as_nl) ;; #(
42761       *) $as_unset $ac_var ;;
42762       esac ;;
42763     esac
42764   done
42765
42766   (set) 2>&1 |
42767     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42768     *${as_nl}ac_space=\ *)
42769       # `set' does not quote correctly, so add quotes (double-quote
42770       # substitution turns \\\\ into \\, and sed turns \\ into \).
42771       sed -n \
42772         "s/'/'\\\\''/g;
42773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42774       ;; #(
42775     *)
42776       # `set' quotes correctly as required by POSIX, so do not add quotes.
42777       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42778       ;;
42779     esac |
42780     sort
42781 ) |
42782   sed '
42783      /^ac_cv_env_/b end
42784      t clear
42785      :clear
42786      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42787      t end
42788      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42789      :end' >>confcache
42790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42791   if test -w "$cache_file"; then
42792     test "x$cache_file" != "x/dev/null" &&
42793       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42794 echo "$as_me: updating cache $cache_file" >&6;}
42795     cat confcache >$cache_file
42796   else
42797     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42798 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42799   fi
42800 fi
42801 rm -f confcache
42802
42803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42804 # Let make expand exec_prefix.
42805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42806
42807 DEFS=-DHAVE_CONFIG_H
42808
42809 ac_libobjs=
42810 ac_ltlibobjs=
42811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42812   # 1. Remove the extension, and $U if already installed.
42813   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42814   ac_i=`echo "$ac_i" | sed "$ac_script"`
42815   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42816   #    will be set to the directory where LIBOBJS objects are built.
42817   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42818   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42819 done
42820 LIBOBJS=$ac_libobjs
42821
42822 LTLIBOBJS=$ac_ltlibobjs
42823
42824
42825
42826 : ${CONFIG_STATUS=./config.status}
42827 ac_clean_files_save=$ac_clean_files
42828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42831 cat >$CONFIG_STATUS <<_ACEOF
42832 #! $SHELL
42833 # Generated by $as_me.
42834 # Run this file to recreate the current configuration.
42835 # Compiler output produced by configure, useful for debugging
42836 # configure, is in config.log if it exists.
42837
42838 debug=false
42839 ac_cs_recheck=false
42840 ac_cs_silent=false
42841 SHELL=\${CONFIG_SHELL-$SHELL}
42842 _ACEOF
42843
42844 cat >>$CONFIG_STATUS <<\_ACEOF
42845 ## --------------------- ##
42846 ## M4sh Initialization.  ##
42847 ## --------------------- ##
42848
42849 # Be more Bourne compatible
42850 DUALCASE=1; export DUALCASE # for MKS sh
42851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42852   emulate sh
42853   NULLCMD=:
42854   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42855   # is contrary to our usage.  Disable this feature.
42856   alias -g '${1+"$@"}'='"$@"'
42857   setopt NO_GLOB_SUBST
42858 else
42859   case `(set -o) 2>/dev/null` in
42860   *posix*) set -o posix ;;
42861 esac
42862
42863 fi
42864
42865
42866
42867
42868 # PATH needs CR
42869 # Avoid depending upon Character Ranges.
42870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42873 as_cr_digits='0123456789'
42874 as_cr_alnum=$as_cr_Letters$as_cr_digits
42875
42876 # The user is always right.
42877 if test "${PATH_SEPARATOR+set}" != set; then
42878   echo "#! /bin/sh" >conf$$.sh
42879   echo  "exit 0"   >>conf$$.sh
42880   chmod +x conf$$.sh
42881   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42882     PATH_SEPARATOR=';'
42883   else
42884     PATH_SEPARATOR=:
42885   fi
42886   rm -f conf$$.sh
42887 fi
42888
42889 # Support unset when possible.
42890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42891   as_unset=unset
42892 else
42893   as_unset=false
42894 fi
42895
42896
42897 # IFS
42898 # We need space, tab and new line, in precisely that order.  Quoting is
42899 # there to prevent editors from complaining about space-tab.
42900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42901 # splitting by setting IFS to empty value.)
42902 as_nl='
42903 '
42904 IFS=" ""        $as_nl"
42905
42906 # Find who we are.  Look in the path if we contain no directory separator.
42907 case $0 in
42908   *[\\/]* ) as_myself=$0 ;;
42909   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42910 for as_dir in $PATH
42911 do
42912   IFS=$as_save_IFS
42913   test -z "$as_dir" && as_dir=.
42914   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42915 done
42916 IFS=$as_save_IFS
42917
42918      ;;
42919 esac
42920 # We did not find ourselves, most probably we were run as `sh COMMAND'
42921 # in which case we are not to be found in the path.
42922 if test "x$as_myself" = x; then
42923   as_myself=$0
42924 fi
42925 if test ! -f "$as_myself"; then
42926   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42927   { (exit 1); exit 1; }
42928 fi
42929
42930 # Work around bugs in pre-3.0 UWIN ksh.
42931 for as_var in ENV MAIL MAILPATH
42932 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42933 done
42934 PS1='$ '
42935 PS2='> '
42936 PS4='+ '
42937
42938 # NLS nuisances.
42939 for as_var in \
42940   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42941   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42942   LC_TELEPHONE LC_TIME
42943 do
42944   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42945     eval $as_var=C; export $as_var
42946   else
42947     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42948   fi
42949 done
42950
42951 # Required to use basename.
42952 if expr a : '\(a\)' >/dev/null 2>&1 &&
42953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42954   as_expr=expr
42955 else
42956   as_expr=false
42957 fi
42958
42959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42960   as_basename=basename
42961 else
42962   as_basename=false
42963 fi
42964
42965
42966 # Name of the executable.
42967 as_me=`$as_basename -- "$0" ||
42968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42969          X"$0" : 'X\(//\)$' \| \
42970          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42971 echo X/"$0" |
42972     sed '/^.*\/\([^/][^/]*\)\/*$/{
42973             s//\1/
42974             q
42975           }
42976           /^X\/\(\/\/\)$/{
42977             s//\1/
42978             q
42979           }
42980           /^X\/\(\/\).*/{
42981             s//\1/
42982             q
42983           }
42984           s/.*/./; q'`
42985
42986 # CDPATH.
42987 $as_unset CDPATH
42988
42989
42990
42991   as_lineno_1=$LINENO
42992   as_lineno_2=$LINENO
42993   test "x$as_lineno_1" != "x$as_lineno_2" &&
42994   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42995
42996   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42997   # uniformly replaced by the line number.  The first 'sed' inserts a
42998   # line-number line after each line using $LINENO; the second 'sed'
42999   # does the real work.  The second script uses 'N' to pair each
43000   # line-number line with the line containing $LINENO, and appends
43001   # trailing '-' during substitution so that $LINENO is not a special
43002   # case at line end.
43003   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43004   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43005   # E. McMahon (1931-1989) for sed's syntax.  :-)
43006   sed -n '
43007     p
43008     /[$]LINENO/=
43009   ' <$as_myself |
43010     sed '
43011       s/[$]LINENO.*/&-/
43012       t lineno
43013       b
43014       :lineno
43015       N
43016       :loop
43017       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43018       t loop
43019       s/-\n.*//
43020     ' >$as_me.lineno &&
43021   chmod +x "$as_me.lineno" ||
43022     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43023    { (exit 1); exit 1; }; }
43024
43025   # Don't try to exec as it changes $[0], causing all sort of problems
43026   # (the dirname of $[0] is not the place where we might find the
43027   # original and so on.  Autoconf is especially sensitive to this).
43028   . "./$as_me.lineno"
43029   # Exit status is that of the last command.
43030   exit
43031 }
43032
43033
43034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43035   as_dirname=dirname
43036 else
43037   as_dirname=false
43038 fi
43039
43040 ECHO_C= ECHO_N= ECHO_T=
43041 case `echo -n x` in
43042 -n*)
43043   case `echo 'x\c'` in
43044   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43045   *)   ECHO_C='\c';;
43046   esac;;
43047 *)
43048   ECHO_N='-n';;
43049 esac
43050
43051 if expr a : '\(a\)' >/dev/null 2>&1 &&
43052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43053   as_expr=expr
43054 else
43055   as_expr=false
43056 fi
43057
43058 rm -f conf$$ conf$$.exe conf$$.file
43059 if test -d conf$$.dir; then
43060   rm -f conf$$.dir/conf$$.file
43061 else
43062   rm -f conf$$.dir
43063   mkdir conf$$.dir
43064 fi
43065 echo >conf$$.file
43066 if ln -s conf$$.file conf$$ 2>/dev/null; then
43067   as_ln_s='ln -s'
43068   # ... but there are two gotchas:
43069   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43070   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43071   # In both cases, we have to default to `cp -p'.
43072   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43073     as_ln_s='cp -p'
43074 elif ln conf$$.file conf$$ 2>/dev/null; then
43075   as_ln_s=ln
43076 else
43077   as_ln_s='cp -p'
43078 fi
43079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43080 rmdir conf$$.dir 2>/dev/null
43081
43082 if mkdir -p . 2>/dev/null; then
43083   as_mkdir_p=:
43084 else
43085   test -d ./-p && rmdir ./-p
43086   as_mkdir_p=false
43087 fi
43088
43089 if test -x / >/dev/null 2>&1; then
43090   as_test_x='test -x'
43091 else
43092   if ls -dL / >/dev/null 2>&1; then
43093     as_ls_L_option=L
43094   else
43095     as_ls_L_option=
43096   fi
43097   as_test_x='
43098     eval sh -c '\''
43099       if test -d "$1"; then
43100         test -d "$1/.";
43101       else
43102         case $1 in
43103         -*)set "./$1";;
43104         esac;
43105         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43106         ???[sx]*):;;*)false;;esac;fi
43107     '\'' sh
43108   '
43109 fi
43110 as_executable_p=$as_test_x
43111
43112 # Sed expression to map a string onto a valid CPP name.
43113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43114
43115 # Sed expression to map a string onto a valid variable name.
43116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43117
43118
43119 exec 6>&1
43120
43121 # Save the log message, to keep $[0] and so on meaningful, and to
43122 # report actual input values of CONFIG_FILES etc. instead of their
43123 # values after options handling.
43124 ac_log="
43125 This file was extended by $as_me, which was
43126 generated by GNU Autoconf 2.61.  Invocation command line was
43127
43128   CONFIG_FILES    = $CONFIG_FILES
43129   CONFIG_HEADERS  = $CONFIG_HEADERS
43130   CONFIG_LINKS    = $CONFIG_LINKS
43131   CONFIG_COMMANDS = $CONFIG_COMMANDS
43132   $ $0 $@
43133
43134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43135 "
43136
43137 _ACEOF
43138
43139 cat >>$CONFIG_STATUS <<_ACEOF
43140 # Files that config.status was made for.
43141 config_files="$ac_config_files"
43142 config_headers="$ac_config_headers"
43143 config_commands="$ac_config_commands"
43144
43145 _ACEOF
43146
43147 cat >>$CONFIG_STATUS <<\_ACEOF
43148 ac_cs_usage="\
43149 \`$as_me' instantiates files from templates according to the
43150 current configuration.
43151
43152 Usage: $0 [OPTIONS] [FILE]...
43153
43154   -h, --help       print this help, then exit
43155   -V, --version    print version number and configuration settings, then exit
43156   -q, --quiet      do not print progress messages
43157   -d, --debug      don't remove temporary files
43158       --recheck    update $as_me by reconfiguring in the same conditions
43159   --file=FILE[:TEMPLATE]
43160                    instantiate the configuration file FILE
43161   --header=FILE[:TEMPLATE]
43162                    instantiate the configuration header FILE
43163
43164 Configuration files:
43165 $config_files
43166
43167 Configuration headers:
43168 $config_headers
43169
43170 Configuration commands:
43171 $config_commands
43172
43173 Report bugs to <bug-autoconf@gnu.org>."
43174
43175 _ACEOF
43176 cat >>$CONFIG_STATUS <<_ACEOF
43177 ac_cs_version="\\
43178 config.status
43179 configured by $0, generated by GNU Autoconf 2.61,
43180   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43181
43182 Copyright (C) 2006 Free Software Foundation, Inc.
43183 This config.status script is free software; the Free Software Foundation
43184 gives unlimited permission to copy, distribute and modify it."
43185
43186 ac_pwd='$ac_pwd'
43187 srcdir='$srcdir'
43188 INSTALL='$INSTALL'
43189 _ACEOF
43190
43191 cat >>$CONFIG_STATUS <<\_ACEOF
43192 # If no file are specified by the user, then we need to provide default
43193 # value.  By we need to know if files were specified by the user.
43194 ac_need_defaults=:
43195 while test $# != 0
43196 do
43197   case $1 in
43198   --*=*)
43199     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43200     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43201     ac_shift=:
43202     ;;
43203   *)
43204     ac_option=$1
43205     ac_optarg=$2
43206     ac_shift=shift
43207     ;;
43208   esac
43209
43210   case $ac_option in
43211   # Handling of the options.
43212   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43213     ac_cs_recheck=: ;;
43214   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43215     echo "$ac_cs_version"; exit ;;
43216   --debug | --debu | --deb | --de | --d | -d )
43217     debug=: ;;
43218   --file | --fil | --fi | --f )
43219     $ac_shift
43220     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43221     ac_need_defaults=false;;
43222   --header | --heade | --head | --hea )
43223     $ac_shift
43224     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43225     ac_need_defaults=false;;
43226   --he | --h)
43227     # Conflict between --help and --header
43228     { echo "$as_me: error: ambiguous option: $1
43229 Try \`$0 --help' for more information." >&2
43230    { (exit 1); exit 1; }; };;
43231   --help | --hel | -h )
43232     echo "$ac_cs_usage"; exit ;;
43233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43234   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43235     ac_cs_silent=: ;;
43236
43237   # This is an error.
43238   -*) { echo "$as_me: error: unrecognized option: $1
43239 Try \`$0 --help' for more information." >&2
43240    { (exit 1); exit 1; }; } ;;
43241
43242   *) ac_config_targets="$ac_config_targets $1"
43243      ac_need_defaults=false ;;
43244
43245   esac
43246   shift
43247 done
43248
43249 ac_configure_extra_args=
43250
43251 if $ac_cs_silent; then
43252   exec 6>/dev/null
43253   ac_configure_extra_args="$ac_configure_extra_args --silent"
43254 fi
43255
43256 _ACEOF
43257 cat >>$CONFIG_STATUS <<_ACEOF
43258 if \$ac_cs_recheck; then
43259   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43260   CONFIG_SHELL=$SHELL
43261   export CONFIG_SHELL
43262   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43263 fi
43264
43265 _ACEOF
43266 cat >>$CONFIG_STATUS <<\_ACEOF
43267 exec 5>>config.log
43268 {
43269   echo
43270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43271 ## Running $as_me. ##
43272 _ASBOX
43273   echo "$ac_log"
43274 } >&5
43275
43276 _ACEOF
43277 cat >>$CONFIG_STATUS <<_ACEOF
43278 #
43279 # INIT-COMMANDS
43280 #
43281
43282
43283 # The HP-UX ksh and POSIX shell print the target directory to stdout
43284 # if CDPATH is set.
43285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43286
43287 sed_quote_subst='$sed_quote_subst'
43288 double_quote_subst='$double_quote_subst'
43289 delay_variable_subst='$delay_variable_subst'
43290 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43291 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43292 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43293 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43294 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43295 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43296 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43297 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43298 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43299 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43300 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43301 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43302 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43303 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43304 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43305 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43306 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43307 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43308 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43309 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43310 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43311 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43312 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43313 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43314 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43315 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43316 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43317 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43318 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43319 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43320 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43321 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43322 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43323 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43324 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43325 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43326 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43327 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43328 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43329 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43330 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43331 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43332 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43334 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"`'
43335 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"`'
43336 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43337 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43338 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43339 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43340 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43341 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43342 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43343 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43344 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43345 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43346 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43347 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43348 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43349 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43350 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43351 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43352 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43353 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43354 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43355 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43356 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43357 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43358 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43359 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43360 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43361 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43362 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43363 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43364 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43365 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43366 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43367 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43368 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43369 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43370 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43371 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43372 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43373 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43374 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43375 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43376 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43377 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43378 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43379 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43380 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43381 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43382 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43383 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43384 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43385 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43386 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43387 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43388 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43389 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43390 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43391 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43392 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43393 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43394 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43395 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43396 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43397 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43398 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43399 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43400 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43401 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43402 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43403 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43404 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43405 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43406 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43407 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43408 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43409 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43410 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43411 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43412 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43413 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43414 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43415 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43416 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43417 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43418 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43419 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43420 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43421 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43422 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43423 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43424 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43425 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43426 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43427 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43428 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43429 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43430 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43431 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43432 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43433 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43434 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43435 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43436 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43437 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43438 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43439 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43440 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43441 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43442 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43443 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43444 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43445 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43446 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43447 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43448 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43449 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43450 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43451 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43452 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43453 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43454 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43455 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43456 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43457 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43458 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43459 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43460 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43461
43462 LTCC='$LTCC'
43463 LTCFLAGS='$LTCFLAGS'
43464 compiler='$compiler_DEFAULT'
43465
43466 # Quote evaled strings.
43467 for var in SED \
43468 GREP \
43469 EGREP \
43470 FGREP \
43471 LD \
43472 NM \
43473 LN_S \
43474 lt_SP2NL \
43475 lt_NL2SP \
43476 reload_flag \
43477 OBJDUMP \
43478 deplibs_check_method \
43479 file_magic_cmd \
43480 AR \
43481 AR_FLAGS \
43482 STRIP \
43483 RANLIB \
43484 CC \
43485 CFLAGS \
43486 compiler \
43487 lt_cv_sys_global_symbol_pipe \
43488 lt_cv_sys_global_symbol_to_cdecl \
43489 lt_cv_sys_global_symbol_to_c_name_address \
43490 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43491 SHELL \
43492 ECHO \
43493 lt_prog_compiler_no_builtin_flag \
43494 lt_prog_compiler_wl \
43495 lt_prog_compiler_pic \
43496 lt_prog_compiler_static \
43497 lt_cv_prog_compiler_c_o \
43498 need_locks \
43499 DSYMUTIL \
43500 NMEDIT \
43501 LIPO \
43502 OTOOL \
43503 OTOOL64 \
43504 shrext_cmds \
43505 export_dynamic_flag_spec \
43506 whole_archive_flag_spec \
43507 compiler_needs_object \
43508 with_gnu_ld \
43509 allow_undefined_flag \
43510 no_undefined_flag \
43511 hardcode_libdir_flag_spec \
43512 hardcode_libdir_flag_spec_ld \
43513 hardcode_libdir_separator \
43514 fix_srcfile_path \
43515 exclude_expsyms \
43516 include_expsyms \
43517 file_list_spec \
43518 variables_saved_for_relink \
43519 libname_spec \
43520 library_names_spec \
43521 soname_spec \
43522 finish_eval \
43523 old_striplib \
43524 striplib \
43525 compiler_lib_search_dirs \
43526 predep_objects \
43527 postdep_objects \
43528 predeps \
43529 postdeps \
43530 compiler_lib_search_path \
43531 LD_CXX \
43532 compiler_CXX \
43533 lt_prog_compiler_no_builtin_flag_CXX \
43534 lt_prog_compiler_wl_CXX \
43535 lt_prog_compiler_pic_CXX \
43536 lt_prog_compiler_static_CXX \
43537 lt_cv_prog_compiler_c_o_CXX \
43538 export_dynamic_flag_spec_CXX \
43539 whole_archive_flag_spec_CXX \
43540 compiler_needs_object_CXX \
43541 with_gnu_ld_CXX \
43542 allow_undefined_flag_CXX \
43543 no_undefined_flag_CXX \
43544 hardcode_libdir_flag_spec_CXX \
43545 hardcode_libdir_flag_spec_ld_CXX \
43546 hardcode_libdir_separator_CXX \
43547 fix_srcfile_path_CXX \
43548 exclude_expsyms_CXX \
43549 include_expsyms_CXX \
43550 file_list_spec_CXX \
43551 compiler_lib_search_dirs_CXX \
43552 predep_objects_CXX \
43553 postdep_objects_CXX \
43554 predeps_CXX \
43555 postdeps_CXX \
43556 compiler_lib_search_path_CXX; do
43557     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43558     *[\\\\\\\`\\"\\\$]*)
43559       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43560       ;;
43561     *)
43562       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43563       ;;
43564     esac
43565 done
43566
43567 # Double-quote double-evaled strings.
43568 for var in reload_cmds \
43569 old_postinstall_cmds \
43570 old_postuninstall_cmds \
43571 old_archive_cmds \
43572 extract_expsyms_cmds \
43573 old_archive_from_new_cmds \
43574 old_archive_from_expsyms_cmds \
43575 archive_cmds \
43576 archive_expsym_cmds \
43577 module_cmds \
43578 module_expsym_cmds \
43579 export_symbols_cmds \
43580 prelink_cmds \
43581 postinstall_cmds \
43582 postuninstall_cmds \
43583 finish_cmds \
43584 sys_lib_search_path_spec \
43585 sys_lib_dlsearch_path_spec \
43586 old_archive_cmds_CXX \
43587 old_archive_from_new_cmds_CXX \
43588 old_archive_from_expsyms_cmds_CXX \
43589 archive_cmds_CXX \
43590 archive_expsym_cmds_CXX \
43591 module_cmds_CXX \
43592 module_expsym_cmds_CXX \
43593 export_symbols_cmds_CXX \
43594 prelink_cmds_CXX; do
43595     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43596     *[\\\\\\\`\\"\\\$]*)
43597       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43598       ;;
43599     *)
43600       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43601       ;;
43602     esac
43603 done
43604
43605 # Fix-up fallback echo if it was mangled by the above quoting rules.
43606 case \$lt_ECHO in
43607 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43608   ;;
43609 esac
43610
43611 ac_aux_dir='$ac_aux_dir'
43612 xsi_shell='$xsi_shell'
43613 lt_shell_append='$lt_shell_append'
43614
43615 # See if we are running on zsh, and set the options which allow our
43616 # commands through without removal of \ escapes INIT.
43617 if test -n "\${ZSH_VERSION+set}" ; then
43618    setopt NO_GLOB_SUBST
43619 fi
43620
43621
43622     PACKAGE='$PACKAGE'
43623     VERSION='$VERSION'
43624     TIMESTAMP='$TIMESTAMP'
43625     RM='$RM'
43626     ofile='$ofile'
43627
43628
43629
43630
43631
43632 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43633     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43634     # from automake.
43635     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43636     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43637     LINGUAS="${LINGUAS-%UNSET%}"
43638
43639
43640 _ACEOF
43641
43642 cat >>$CONFIG_STATUS <<\_ACEOF
43643
43644 # Handling of arguments.
43645 for ac_config_target in $ac_config_targets
43646 do
43647   case $ac_config_target in
43648     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43649     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43650     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43651     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43652     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43653     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43654     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43655     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43656     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43657     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43658     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43659     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43660     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43661     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43662     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43663     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43664     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43665     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43666     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43667     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43668     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43669     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43670     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43671     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43672     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43673     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43674     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43675     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43676     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43677     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43678     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43679     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43680     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43681     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43682     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43683     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43684     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43685     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43686     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43687     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43688     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43689     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43690     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43691     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43692     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43693     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43694     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43695     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43696     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43697     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43698     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43699     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43700     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43701     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43702     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43703     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43704     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43705     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43706     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43707     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43708     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43709     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43710     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43711     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43712     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43713     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43714     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43715     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43716     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43717     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43718     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43719     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43720     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43721     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43722     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43723     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43724     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43725     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43726     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43727     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43728     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43729     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43730     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43731     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43732     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43733     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43734     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43735     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43736     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43737     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43738     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43739     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43740     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43741     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43742     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43743     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43744     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43745     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43746     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43747     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43748     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43749     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43750     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43751     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43752     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43753     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43754     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43755     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43756     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43757     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43758     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43759     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43760     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43761     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43762     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43763     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43764     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43765     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43766     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43767     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43768
43769   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43771    { (exit 1); exit 1; }; };;
43772   esac
43773 done
43774
43775
43776 # If the user did not use the arguments to specify the items to instantiate,
43777 # then the envvar interface is used.  Set only those that are not.
43778 # We use the long form for the default assignment because of an extremely
43779 # bizarre bug on SunOS 4.1.3.
43780 if $ac_need_defaults; then
43781   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43782   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43783   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43784 fi
43785
43786 # Have a temporary directory for convenience.  Make it in the build tree
43787 # simply because there is no reason against having it here, and in addition,
43788 # creating and moving files from /tmp can sometimes cause problems.
43789 # Hook for its removal unless debugging.
43790 # Note that there is a small window in which the directory will not be cleaned:
43791 # after its creation but before its name has been assigned to `$tmp'.
43792 $debug ||
43793 {
43794   tmp=
43795   trap 'exit_status=$?
43796   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43797 ' 0
43798   trap '{ (exit 1); exit 1; }' 1 2 13 15
43799 }
43800 # Create a (secure) tmp directory for tmp files.
43801
43802 {
43803   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43804   test -n "$tmp" && test -d "$tmp"
43805 }  ||
43806 {
43807   tmp=./conf$$-$RANDOM
43808   (umask 077 && mkdir "$tmp")
43809 } ||
43810 {
43811    echo "$me: cannot create a temporary directory in ." >&2
43812    { (exit 1); exit 1; }
43813 }
43814
43815 #
43816 # Set up the sed scripts for CONFIG_FILES section.
43817 #
43818
43819 # No need to generate the scripts if there are no CONFIG_FILES.
43820 # This happens for instance when ./config.status config.h
43821 if test -n "$CONFIG_FILES"; then
43822
43823 _ACEOF
43824
43825 # Create sed commands to just substitute file output variables.
43826
43827 # Remaining file output variables are in a fragment that also has non-file
43828 # output varibles.
43829
43830
43831
43832 ac_delim='%!_!# '
43833 for ac_last_try in false false false false false :; do
43834   cat >conf$$subs.sed <<_ACEOF
43835 SHELL!$SHELL$ac_delim
43836 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43837 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43838 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43839 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43840 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43841 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43842 exec_prefix!$exec_prefix$ac_delim
43843 prefix!$prefix$ac_delim
43844 program_transform_name!$program_transform_name$ac_delim
43845 bindir!$bindir$ac_delim
43846 sbindir!$sbindir$ac_delim
43847 libexecdir!$libexecdir$ac_delim
43848 datarootdir!$datarootdir$ac_delim
43849 datadir!$datadir$ac_delim
43850 sysconfdir!$sysconfdir$ac_delim
43851 sharedstatedir!$sharedstatedir$ac_delim
43852 localstatedir!$localstatedir$ac_delim
43853 includedir!$includedir$ac_delim
43854 oldincludedir!$oldincludedir$ac_delim
43855 docdir!$docdir$ac_delim
43856 infodir!$infodir$ac_delim
43857 htmldir!$htmldir$ac_delim
43858 dvidir!$dvidir$ac_delim
43859 pdfdir!$pdfdir$ac_delim
43860 psdir!$psdir$ac_delim
43861 libdir!$libdir$ac_delim
43862 localedir!$localedir$ac_delim
43863 mandir!$mandir$ac_delim
43864 DEFS!$DEFS$ac_delim
43865 ECHO_C!$ECHO_C$ac_delim
43866 ECHO_N!$ECHO_N$ac_delim
43867 ECHO_T!$ECHO_T$ac_delim
43868 LIBS!$LIBS$ac_delim
43869 build_alias!$build_alias$ac_delim
43870 host_alias!$host_alias$ac_delim
43871 target_alias!$target_alias$ac_delim
43872 BUILD_DIR!$BUILD_DIR$ac_delim
43873 TOP_DIR!$TOP_DIR$ac_delim
43874 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43875 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43876 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43877 TRUEPRG!$TRUEPRG$ac_delim
43878 FALSEPRG!$FALSEPRG$ac_delim
43879 VERSION!$VERSION$ac_delim
43880 DATE!$DATE$ac_delim
43881 LSMDATE!$LSMDATE$ac_delim
43882 BACULA!$BACULA$ac_delim
43883 post_host!$post_host$ac_delim
43884 CC!$CC$ac_delim
43885 CFLAGS!$CFLAGS$ac_delim
43886 LDFLAGS!$LDFLAGS$ac_delim
43887 CPPFLAGS!$CPPFLAGS$ac_delim
43888 ac_ct_CC!$ac_ct_CC$ac_delim
43889 EXEEXT!$EXEEXT$ac_delim
43890 OBJEXT!$OBJEXT$ac_delim
43891 CXX!$CXX$ac_delim
43892 CXXFLAGS!$CXXFLAGS$ac_delim
43893 ac_ct_CXX!$ac_ct_CXX$ac_delim
43894 CPP!$CPP$ac_delim
43895 GREP!$GREP$ac_delim
43896 EGREP!$EGREP$ac_delim
43897 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43898 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43899 INSTALL_DATA!$INSTALL_DATA$ac_delim
43900 MV!$MV$ac_delim
43901 REMOVE!$REMOVE$ac_delim
43902 CP!$CP$ac_delim
43903 SED!$SED$ac_delim
43904 ECHO!$ECHO$ac_delim
43905 CMP!$CMP$ac_delim
43906 TBL!$TBL$ac_delim
43907 AR!$AR$ac_delim
43908 OPENSSL!$OPENSSL$ac_delim
43909 MTX!$MTX$ac_delim
43910 DD!$DD$ac_delim
43911 MKISOFS!$MKISOFS$ac_delim
43912 PYTHON!$PYTHON$ac_delim
43913 GROWISOFS!$GROWISOFS$ac_delim
43914 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43915 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43916 PKGCONFIG!$PKGCONFIG$ac_delim
43917 QMAKE!$QMAKE$ac_delim
43918 QMAKEQT4!$QMAKEQT4$ac_delim
43919 GMAKE!$GMAKE$ac_delim
43920 WXCONFIG!$WXCONFIG$ac_delim
43921 WXFLAGS!$WXFLAGS$ac_delim
43922 CDRECORD!$CDRECORD$ac_delim
43923 PIDOF!$PIDOF$ac_delim
43924 AWK!$AWK$ac_delim
43925 ARFLAGS!$ARFLAGS$ac_delim
43926 MAKE_SHELL!$MAKE_SHELL$ac_delim
43927 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43928 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43929 _ACEOF
43930
43931   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43932     break
43933   elif $ac_last_try; then
43934     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43935 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43936    { (exit 1); exit 1; }; }
43937   else
43938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43939   fi
43940 done
43941
43942 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43943 if test -n "$ac_eof"; then
43944   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43945   ac_eof=`expr $ac_eof + 1`
43946 fi
43947
43948 cat >>$CONFIG_STATUS <<_ACEOF
43949 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43951 /^[      ]*@MCOMMON@[    ]*$/{
43952 r $MCOMMON
43953 d
43954 }
43955 _ACEOF
43956 sed '
43957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43958 s/^/s,@/; s/!/@,|#_!!_#|/
43959 :n
43960 t n
43961 s/'"$ac_delim"'$/,g/; t
43962 s/$/\\/; p
43963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43964 ' >>$CONFIG_STATUS <conf$$subs.sed
43965 rm -f conf$$subs.sed
43966 cat >>$CONFIG_STATUS <<_ACEOF
43967 CEOF$ac_eof
43968 _ACEOF
43969
43970
43971 ac_delim='%!_!# '
43972 for ac_last_try in false false false false false :; do
43973   cat >conf$$subs.sed <<_ACEOF
43974 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43975 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43976 LIBTOOL!$LIBTOOL$ac_delim
43977 build!$build$ac_delim
43978 build_cpu!$build_cpu$ac_delim
43979 build_vendor!$build_vendor$ac_delim
43980 build_os!$build_os$ac_delim
43981 host!$host$ac_delim
43982 host_cpu!$host_cpu$ac_delim
43983 host_vendor!$host_vendor$ac_delim
43984 host_os!$host_os$ac_delim
43985 FGREP!$FGREP$ac_delim
43986 LD!$LD$ac_delim
43987 DUMPBIN!$DUMPBIN$ac_delim
43988 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43989 NM!$NM$ac_delim
43990 LN_S!$LN_S$ac_delim
43991 OBJDUMP!$OBJDUMP$ac_delim
43992 STRIP!$STRIP$ac_delim
43993 RANLIB!$RANLIB$ac_delim
43994 lt_ECHO!$lt_ECHO$ac_delim
43995 DSYMUTIL!$DSYMUTIL$ac_delim
43996 NMEDIT!$NMEDIT$ac_delim
43997 LIPO!$LIPO$ac_delim
43998 OTOOL!$OTOOL$ac_delim
43999 OTOOL64!$OTOOL64$ac_delim
44000 CXXCPP!$CXXCPP$ac_delim
44001 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44002 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44003 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44004 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44005 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44006 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44007 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44008 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44009 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44010 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44011 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44012 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44013 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44014 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44015 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44016 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44017 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44018 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44019 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44020 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44021 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44022 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44023 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44024 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44025 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44026 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44027 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44028 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44029 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44030 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44031 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44032 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44033 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44034 SET_MAKE!$SET_MAKE$ac_delim
44035 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44036 USE_NLS!$USE_NLS$ac_delim
44037 MSGFMT!$MSGFMT$ac_delim
44038 GMSGFMT!$GMSGFMT$ac_delim
44039 XGETTEXT!$XGETTEXT$ac_delim
44040 MSGMERGE!$MSGMERGE$ac_delim
44041 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44042 LIBICONV!$LIBICONV$ac_delim
44043 LTLIBICONV!$LTLIBICONV$ac_delim
44044 INTLLIBS!$INTLLIBS$ac_delim
44045 LIBINTL!$LIBINTL$ac_delim
44046 LTLIBINTL!$LTLIBINTL$ac_delim
44047 POSUB!$POSUB$ac_delim
44048 GLIBC2!$GLIBC2$ac_delim
44049 ALLOCA!$ALLOCA$ac_delim
44050 GLIBC21!$GLIBC21$ac_delim
44051 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44052 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44053 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44054 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44055 INTLBISON!$INTLBISON$ac_delim
44056 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44057 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44058 CATOBJEXT!$CATOBJEXT$ac_delim
44059 DATADIRNAME!$DATADIRNAME$ac_delim
44060 INSTOBJEXT!$INSTOBJEXT$ac_delim
44061 GENCAT!$GENCAT$ac_delim
44062 INTLOBJS!$INTLOBJS$ac_delim
44063 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44064 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44065 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44066 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44067 GNOME_LIBS!$GNOME_LIBS$ac_delim
44068 GNOME_DIR!$GNOME_DIR$ac_delim
44069 BAT_DIR!$BAT_DIR$ac_delim
44070 QWT_INC!$QWT_INC$ac_delim
44071 _ACEOF
44072
44073   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44074     break
44075   elif $ac_last_try; then
44076     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44078    { (exit 1); exit 1; }; }
44079   else
44080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44081   fi
44082 done
44083
44084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44085 if test -n "$ac_eof"; then
44086   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44087   ac_eof=`expr $ac_eof + 1`
44088 fi
44089
44090 cat >>$CONFIG_STATUS <<_ACEOF
44091 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44093 _ACEOF
44094 sed '
44095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44096 s/^/s,@/; s/!/@,|#_!!_#|/
44097 :n
44098 t n
44099 s/'"$ac_delim"'$/,g/; t
44100 s/$/\\/; p
44101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44102 ' >>$CONFIG_STATUS <conf$$subs.sed
44103 rm -f conf$$subs.sed
44104 cat >>$CONFIG_STATUS <<_ACEOF
44105 CEOF$ac_eof
44106 _ACEOF
44107
44108
44109 ac_delim='%!_!# '
44110 for ac_last_try in false false false false false :; do
44111   cat >conf$$subs.sed <<_ACEOF
44112 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44113 QWT_LIB!$QWT_LIB$ac_delim
44114 QWT!$QWT$ac_delim
44115 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44116 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44117 WX_DIR!$WX_DIR$ac_delim
44118 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44119 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44120 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44121 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44122 STATIC_FD!$STATIC_FD$ac_delim
44123 STATIC_SD!$STATIC_SD$ac_delim
44124 STATIC_DIR!$STATIC_DIR$ac_delim
44125 STATIC_CONS!$STATIC_CONS$ac_delim
44126 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44127 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44128 ALL_DIRS!$ALL_DIRS$ac_delim
44129 DIRD_DIR!$DIRD_DIR$ac_delim
44130 DIR_TOOLS!$DIR_TOOLS$ac_delim
44131 STORED_DIR!$STORED_DIR$ac_delim
44132 CONS_INC!$CONS_INC$ac_delim
44133 CONS_OBJ!$CONS_OBJ$ac_delim
44134 CONS_SRC!$CONS_SRC$ac_delim
44135 CONS_LIBS!$CONS_LIBS$ac_delim
44136 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44137 READLINE_SRC!$READLINE_SRC$ac_delim
44138 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44139 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44140 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44141 OPENSSL_INC!$OPENSSL_INC$ac_delim
44142 working_dir!$working_dir$ac_delim
44143 archivedir!$archivedir$ac_delim
44144 scriptdir!$scriptdir$ac_delim
44145 plugindir!$plugindir$ac_delim
44146 dump_email!$dump_email$ac_delim
44147 job_email!$job_email$ac_delim
44148 smtp_host!$smtp_host$ac_delim
44149 piddir!$piddir$ac_delim
44150 subsysdir!$subsysdir$ac_delim
44151 baseport!$baseport$ac_delim
44152 dir_port!$dir_port$ac_delim
44153 fd_port!$fd_port$ac_delim
44154 sd_port!$sd_port$ac_delim
44155 dir_password!$dir_password$ac_delim
44156 fd_password!$fd_password$ac_delim
44157 sd_password!$sd_password$ac_delim
44158 mon_dir_password!$mon_dir_password$ac_delim
44159 mon_fd_password!$mon_fd_password$ac_delim
44160 mon_sd_password!$mon_sd_password$ac_delim
44161 db_name!$db_name$ac_delim
44162 db_user!$db_user$ac_delim
44163 db_password!$db_password$ac_delim
44164 db_port!$db_port$ac_delim
44165 dir_user!$dir_user$ac_delim
44166 dir_group!$dir_group$ac_delim
44167 sd_user!$sd_user$ac_delim
44168 sd_group!$sd_group$ac_delim
44169 fd_user!$fd_user$ac_delim
44170 fd_group!$fd_group$ac_delim
44171 SBINPERM!$SBINPERM$ac_delim
44172 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44173 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44174 SQL_BINDIR!$SQL_BINDIR$ac_delim
44175 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44176 uncomment_dbi!$uncomment_dbi$ac_delim
44177 DB_PROG!$DB_PROG$ac_delim
44178 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44179 cats!$cats$ac_delim
44180 DB_TYPE!$DB_TYPE$ac_delim
44181 GETCONF!$GETCONF$ac_delim
44182 XMKMF!$XMKMF$ac_delim
44183 X_CFLAGS!$X_CFLAGS$ac_delim
44184 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44185 X_LIBS!$X_LIBS$ac_delim
44186 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44187 LIBOBJS!$LIBOBJS$ac_delim
44188 FDLIBS!$FDLIBS$ac_delim
44189 DEBUG!$DEBUG$ac_delim
44190 DINCLUDE!$DINCLUDE$ac_delim
44191 DLIB!$DLIB$ac_delim
44192 DB_LIBS!$DB_LIBS$ac_delim
44193 WCFLAGS!$WCFLAGS$ac_delim
44194 WLDFLAGS!$WLDFLAGS$ac_delim
44195 WRAPLIBS!$WRAPLIBS$ac_delim
44196 OBJLIST!$OBJLIST$ac_delim
44197 hostname!$hostname$ac_delim
44198 TAPEDRIVE!$TAPEDRIVE$ac_delim
44199 PSCMD!$PSCMD$ac_delim
44200 WIN32!$WIN32$ac_delim
44201 MACOSX!$MACOSX$ac_delim
44202 DISTNAME!$DISTNAME$ac_delim
44203 DISTVER!$DISTVER$ac_delim
44204 LTLIBOBJS!$LTLIBOBJS$ac_delim
44205 _ACEOF
44206
44207   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
44208     break
44209   elif $ac_last_try; then
44210     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44212    { (exit 1); exit 1; }; }
44213   else
44214     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44215   fi
44216 done
44217
44218 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44219 if test -n "$ac_eof"; then
44220   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44221   ac_eof=`expr $ac_eof + 1`
44222 fi
44223
44224 cat >>$CONFIG_STATUS <<_ACEOF
44225 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
44227 _ACEOF
44228 sed '
44229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44230 s/^/s,@/; s/!/@,|#_!!_#|/
44231 :n
44232 t n
44233 s/'"$ac_delim"'$/,g/; t
44234 s/$/\\/; p
44235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44236 ' >>$CONFIG_STATUS <conf$$subs.sed
44237 rm -f conf$$subs.sed
44238 cat >>$CONFIG_STATUS <<_ACEOF
44239 :end
44240 s/|#_!!_#|//g
44241 CEOF$ac_eof
44242 _ACEOF
44243
44244
44245 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44246 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44247 # trailing colons and then remove the whole line if VPATH becomes empty
44248 # (actually we leave an empty line to preserve line numbers).
44249 if test "x$srcdir" = x.; then
44250   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44251 s/:*\$(srcdir):*/:/
44252 s/:*\${srcdir}:*/:/
44253 s/:*@srcdir@:*/:/
44254 s/^\([^=]*=[     ]*\):*/\1/
44255 s/:*$//
44256 s/^[^=]*=[       ]*$//
44257 }'
44258 fi
44259
44260 cat >>$CONFIG_STATUS <<\_ACEOF
44261 fi # test -n "$CONFIG_FILES"
44262
44263
44264 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44265 do
44266   case $ac_tag in
44267   :[FHLC]) ac_mode=$ac_tag; continue;;
44268   esac
44269   case $ac_mode$ac_tag in
44270   :[FHL]*:*);;
44271   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44272 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44273    { (exit 1); exit 1; }; };;
44274   :[FH]-) ac_tag=-:-;;
44275   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44276   esac
44277   ac_save_IFS=$IFS
44278   IFS=:
44279   set x $ac_tag
44280   IFS=$ac_save_IFS
44281   shift
44282   ac_file=$1
44283   shift
44284
44285   case $ac_mode in
44286   :L) ac_source=$1;;
44287   :[FH])
44288     ac_file_inputs=
44289     for ac_f
44290     do
44291       case $ac_f in
44292       -) ac_f="$tmp/stdin";;
44293       *) # Look for the file first in the build tree, then in the source tree
44294          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44295          # because $ac_f cannot contain `:'.
44296          test -f "$ac_f" ||
44297            case $ac_f in
44298            [\\/$]*) false;;
44299            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44300            esac ||
44301            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44302 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44303    { (exit 1); exit 1; }; };;
44304       esac
44305       ac_file_inputs="$ac_file_inputs $ac_f"
44306     done
44307
44308     # Let's still pretend it is `configure' which instantiates (i.e., don't
44309     # use $as_me), people would be surprised to read:
44310     #    /* config.h.  Generated by config.status.  */
44311     configure_input="Generated from "`IFS=:
44312           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44313     if test x"$ac_file" != x-; then
44314       configure_input="$ac_file.  $configure_input"
44315       { echo "$as_me:$LINENO: creating $ac_file" >&5
44316 echo "$as_me: creating $ac_file" >&6;}
44317     fi
44318
44319     case $ac_tag in
44320     *:-:* | *:-) cat >"$tmp/stdin";;
44321     esac
44322     ;;
44323   esac
44324
44325   ac_dir=`$as_dirname -- "$ac_file" ||
44326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44327          X"$ac_file" : 'X\(//\)[^/]' \| \
44328          X"$ac_file" : 'X\(//\)$' \| \
44329          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44330 echo X"$ac_file" |
44331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44332             s//\1/
44333             q
44334           }
44335           /^X\(\/\/\)[^/].*/{
44336             s//\1/
44337             q
44338           }
44339           /^X\(\/\/\)$/{
44340             s//\1/
44341             q
44342           }
44343           /^X\(\/\).*/{
44344             s//\1/
44345             q
44346           }
44347           s/.*/./; q'`
44348   { as_dir="$ac_dir"
44349   case $as_dir in #(
44350   -*) as_dir=./$as_dir;;
44351   esac
44352   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44353     as_dirs=
44354     while :; do
44355       case $as_dir in #(
44356       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44357       *) as_qdir=$as_dir;;
44358       esac
44359       as_dirs="'$as_qdir' $as_dirs"
44360       as_dir=`$as_dirname -- "$as_dir" ||
44361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44362          X"$as_dir" : 'X\(//\)[^/]' \| \
44363          X"$as_dir" : 'X\(//\)$' \| \
44364          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44365 echo X"$as_dir" |
44366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44367             s//\1/
44368             q
44369           }
44370           /^X\(\/\/\)[^/].*/{
44371             s//\1/
44372             q
44373           }
44374           /^X\(\/\/\)$/{
44375             s//\1/
44376             q
44377           }
44378           /^X\(\/\).*/{
44379             s//\1/
44380             q
44381           }
44382           s/.*/./; q'`
44383       test -d "$as_dir" && break
44384     done
44385     test -z "$as_dirs" || eval "mkdir $as_dirs"
44386   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44387 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44388    { (exit 1); exit 1; }; }; }
44389   ac_builddir=.
44390
44391 case "$ac_dir" in
44392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44393 *)
44394   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44395   # A ".." for each directory in $ac_dir_suffix.
44396   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44397   case $ac_top_builddir_sub in
44398   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44399   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44400   esac ;;
44401 esac
44402 ac_abs_top_builddir=$ac_pwd
44403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44404 # for backward compatibility:
44405 ac_top_builddir=$ac_top_build_prefix
44406
44407 case $srcdir in
44408   .)  # We are building in place.
44409     ac_srcdir=.
44410     ac_top_srcdir=$ac_top_builddir_sub
44411     ac_abs_top_srcdir=$ac_pwd ;;
44412   [\\/]* | ?:[\\/]* )  # Absolute name.
44413     ac_srcdir=$srcdir$ac_dir_suffix;
44414     ac_top_srcdir=$srcdir
44415     ac_abs_top_srcdir=$srcdir ;;
44416   *) # Relative name.
44417     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44418     ac_top_srcdir=$ac_top_build_prefix$srcdir
44419     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44420 esac
44421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44422
44423
44424   case $ac_mode in
44425   :F)
44426   #
44427   # CONFIG_FILE
44428   #
44429
44430   case $INSTALL in
44431   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44432   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44433   esac
44434 _ACEOF
44435
44436 cat >>$CONFIG_STATUS <<\_ACEOF
44437 # If the template does not know about datarootdir, expand it.
44438 # FIXME: This hack should be removed a few years after 2.60.
44439 ac_datarootdir_hack=; ac_datarootdir_seen=
44440
44441 case `sed -n '/datarootdir/ {
44442   p
44443   q
44444 }
44445 /@datadir@/p
44446 /@docdir@/p
44447 /@infodir@/p
44448 /@localedir@/p
44449 /@mandir@/p
44450 ' $ac_file_inputs` in
44451 *datarootdir*) ac_datarootdir_seen=yes;;
44452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44453   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44454 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44455 _ACEOF
44456 cat >>$CONFIG_STATUS <<_ACEOF
44457   ac_datarootdir_hack='
44458   s&@datadir@&$datadir&g
44459   s&@docdir@&$docdir&g
44460   s&@infodir@&$infodir&g
44461   s&@localedir@&$localedir&g
44462   s&@mandir@&$mandir&g
44463     s&\\\${datarootdir}&$datarootdir&g' ;;
44464 esac
44465 _ACEOF
44466
44467 # Neutralize VPATH when `$srcdir' = `.'.
44468 # Shell code in configure.ac might set extrasub.
44469 # FIXME: do we really want to maintain this feature?
44470 cat >>$CONFIG_STATUS <<_ACEOF
44471   sed "$ac_vpsub
44472 $extrasub
44473 _ACEOF
44474 cat >>$CONFIG_STATUS <<\_ACEOF
44475 :t
44476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44477 s&@configure_input@&$configure_input&;t t
44478 s&@top_builddir@&$ac_top_builddir_sub&;t t
44479 s&@srcdir@&$ac_srcdir&;t t
44480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44481 s&@top_srcdir@&$ac_top_srcdir&;t t
44482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44483 s&@builddir@&$ac_builddir&;t t
44484 s&@abs_builddir@&$ac_abs_builddir&;t t
44485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44486 s&@INSTALL@&$ac_INSTALL&;t t
44487 $ac_datarootdir_hack
44488 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
44489
44490 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44491   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44492   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44493   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44494 which seems to be undefined.  Please make sure it is defined." >&5
44495 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44496 which seems to be undefined.  Please make sure it is defined." >&2;}
44497
44498   rm -f "$tmp/stdin"
44499   case $ac_file in
44500   -) cat "$tmp/out"; rm -f "$tmp/out";;
44501   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44502   esac
44503  ;;
44504   :H)
44505   #
44506   # CONFIG_HEADER
44507   #
44508 _ACEOF
44509
44510 # Transform confdefs.h into a sed script `conftest.defines', that
44511 # substitutes the proper values into config.h.in to produce config.h.
44512 rm -f conftest.defines conftest.tail
44513 # First, append a space to every undef/define line, to ease matching.
44514 echo 's/$/ /' >conftest.defines
44515 # Then, protect against being on the right side of a sed subst, or in
44516 # an unquoted here document, in config.status.  If some macros were
44517 # called several times there might be several #defines for the same
44518 # symbol, which is useless.  But do not sort them, since the last
44519 # AC_DEFINE must be honored.
44520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44521 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44522 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44523 # PARAMS is the parameter list in the macro definition--in most cases, it's
44524 # just an empty string.
44525 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44526 ac_dB='\\)[      (].*,\\1define\\2'
44527 ac_dC=' '
44528 ac_dD=' ,'
44529
44530 uniq confdefs.h |
44531   sed -n '
44532         t rset
44533         :rset
44534         s/^[     ]*#[    ]*define[       ][      ]*//
44535         t ok
44536         d
44537         :ok
44538         s/[\\&,]/\\&/g
44539         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44540         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44541   ' >>conftest.defines
44542
44543 # Remove the space that was appended to ease matching.
44544 # Then replace #undef with comments.  This is necessary, for
44545 # example, in the case of _POSIX_SOURCE, which is predefined and required
44546 # on some systems where configure will not decide to define it.
44547 # (The regexp can be short, since the line contains either #define or #undef.)
44548 echo 's/ $//
44549 s,^[     #]*u.*,/* & */,' >>conftest.defines
44550
44551 # Break up conftest.defines:
44552 ac_max_sed_lines=50
44553
44554 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44555 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44556 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44557 # et cetera.
44558 ac_in='$ac_file_inputs'
44559 ac_out='"$tmp/out1"'
44560 ac_nxt='"$tmp/out2"'
44561
44562 while :
44563 do
44564   # Write a here document:
44565     cat >>$CONFIG_STATUS <<_ACEOF
44566     # First, check the format of the line:
44567     cat >"\$tmp/defines.sed" <<\\CEOF
44568 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44569 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44570 b
44571 :def
44572 _ACEOF
44573   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44574   echo 'CEOF
44575     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44576   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44577   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44578   grep . conftest.tail >/dev/null || break
44579   rm -f conftest.defines
44580   mv conftest.tail conftest.defines
44581 done
44582 rm -f conftest.defines conftest.tail
44583
44584 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44585 cat >>$CONFIG_STATUS <<\_ACEOF
44586   if test x"$ac_file" != x-; then
44587     echo "/* $configure_input  */" >"$tmp/config.h"
44588     cat "$ac_result" >>"$tmp/config.h"
44589     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44590       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44591 echo "$as_me: $ac_file is unchanged" >&6;}
44592     else
44593       rm -f $ac_file
44594       mv "$tmp/config.h" $ac_file
44595     fi
44596   else
44597     echo "/* $configure_input  */"
44598     cat "$ac_result"
44599   fi
44600   rm -f "$tmp/out12"
44601  ;;
44602
44603   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44604 echo "$as_me: executing $ac_file commands" >&6;}
44605  ;;
44606   esac
44607
44608
44609   case $ac_file$ac_mode in
44610     "libtool":C)
44611
44612     # See if we are running on zsh, and set the options which allow our
44613     # commands through without removal of \ escapes.
44614     if test -n "${ZSH_VERSION+set}" ; then
44615       setopt NO_GLOB_SUBST
44616     fi
44617
44618     cfgfile="${ofile}T"
44619     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44620     $RM "$cfgfile"
44621
44622     cat <<_LT_EOF >> "$cfgfile"
44623 #! $SHELL
44624
44625 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44626 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44629 #
44630 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44631 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44632 #   Written by Gordon Matzigkeit, 1996
44633 #
44634 #   This file is part of GNU Libtool.
44635 #
44636 # GNU Libtool is free software; you can redistribute it and/or
44637 # modify it under the terms of the GNU General Public License as
44638 # published by the Free Software Foundation; either version 2 of
44639 # the License, or (at your option) any later version.
44640 #
44641 # As a special exception to the GNU General Public License,
44642 # if you distribute this file as part of a program or library that
44643 # is built using GNU Libtool, you may include this file under the
44644 # same distribution terms that you use for the rest of that program.
44645 #
44646 # GNU Libtool is distributed in the hope that it will be useful,
44647 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44648 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44649 # GNU General Public License for more details.
44650 #
44651 # You should have received a copy of the GNU General Public License
44652 # along with GNU Libtool; see the file COPYING.  If not, a copy
44653 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44654 # obtained by writing to the Free Software Foundation, Inc.,
44655 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44656
44657
44658 # The names of the tagged configurations supported by this script.
44659 available_tags="CXX "
44660
44661 # ### BEGIN LIBTOOL CONFIG
44662
44663 # Which release of libtool.m4 was used?
44664 macro_version=$macro_version
44665 macro_revision=$macro_revision
44666
44667 # Whether or not to build shared libraries.
44668 build_libtool_libs=$enable_shared
44669
44670 # Whether or not to build static libraries.
44671 build_old_libs=$enable_static
44672
44673 # What type of objects to build.
44674 pic_mode=$pic_mode
44675
44676 # Whether or not to optimize for fast installation.
44677 fast_install=$enable_fast_install
44678
44679 # The host system.
44680 host_alias=$host_alias
44681 host=$host
44682 host_os=$host_os
44683
44684 # The build system.
44685 build_alias=$build_alias
44686 build=$build
44687 build_os=$build_os
44688
44689 # A sed program that does not truncate output.
44690 SED=$lt_SED
44691
44692 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44693 Xsed="\$SED -e 1s/^X//"
44694
44695 # A grep program that handles long lines.
44696 GREP=$lt_GREP
44697
44698 # An ERE matcher.
44699 EGREP=$lt_EGREP
44700
44701 # A literal string matcher.
44702 FGREP=$lt_FGREP
44703
44704 # A BSD- or MS-compatible name lister.
44705 NM=$lt_NM
44706
44707 # Whether we need soft or hard links.
44708 LN_S=$lt_LN_S
44709
44710 # What is the maximum length of a command?
44711 max_cmd_len=$max_cmd_len
44712
44713 # Object file suffix (normally "o").
44714 objext=$ac_objext
44715
44716 # Executable file suffix (normally "").
44717 exeext=$exeext
44718
44719 # whether the shell understands "unset".
44720 lt_unset=$lt_unset
44721
44722 # turn spaces into newlines.
44723 SP2NL=$lt_lt_SP2NL
44724
44725 # turn newlines into spaces.
44726 NL2SP=$lt_lt_NL2SP
44727
44728 # How to create reloadable object files.
44729 reload_flag=$lt_reload_flag
44730 reload_cmds=$lt_reload_cmds
44731
44732 # An object symbol dumper.
44733 OBJDUMP=$lt_OBJDUMP
44734
44735 # Method to check whether dependent libraries are shared objects.
44736 deplibs_check_method=$lt_deplibs_check_method
44737
44738 # Command to use when deplibs_check_method == "file_magic".
44739 file_magic_cmd=$lt_file_magic_cmd
44740
44741 # The archiver.
44742 AR=$lt_AR
44743 AR_FLAGS=$lt_AR_FLAGS
44744
44745 # A symbol stripping program.
44746 STRIP=$lt_STRIP
44747
44748 # Commands used to install an old-style archive.
44749 RANLIB=$lt_RANLIB
44750 old_postinstall_cmds=$lt_old_postinstall_cmds
44751 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44752
44753 # A C compiler.
44754 LTCC=$lt_CC
44755
44756 # LTCC compiler flags.
44757 LTCFLAGS=$lt_CFLAGS
44758
44759 # Take the output of nm and produce a listing of raw symbols and C names.
44760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44761
44762 # Transform the output of nm in a proper C declaration.
44763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44764
44765 # Transform the output of nm in a C name address pair.
44766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44767
44768 # Transform the output of nm in a C name address pair when lib prefix is needed.
44769 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44770
44771 # The name of the directory that contains temporary libtool files.
44772 objdir=$objdir
44773
44774 # Shell to use when invoking shell scripts.
44775 SHELL=$lt_SHELL
44776
44777 # An echo program that does not interpret backslashes.
44778 ECHO=$lt_ECHO
44779
44780 # Used to examine libraries when file_magic_cmd begins with "file".
44781 MAGIC_CMD=$MAGIC_CMD
44782
44783 # Must we lock files when doing compilation?
44784 need_locks=$lt_need_locks
44785
44786 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44787 DSYMUTIL=$lt_DSYMUTIL
44788
44789 # Tool to change global to local symbols on Mac OS X.
44790 NMEDIT=$lt_NMEDIT
44791
44792 # Tool to manipulate fat objects and archives on Mac OS X.
44793 LIPO=$lt_LIPO
44794
44795 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44796 OTOOL=$lt_OTOOL
44797
44798 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44799 OTOOL64=$lt_OTOOL64
44800
44801 # Old archive suffix (normally "a").
44802 libext=$libext
44803
44804 # Shared library suffix (normally ".so").
44805 shrext_cmds=$lt_shrext_cmds
44806
44807 # The commands to extract the exported symbol list from a shared archive.
44808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44809
44810 # Variables whose values should be saved in libtool wrapper scripts and
44811 # restored at link time.
44812 variables_saved_for_relink=$lt_variables_saved_for_relink
44813
44814 # Do we need the "lib" prefix for modules?
44815 need_lib_prefix=$need_lib_prefix
44816
44817 # Do we need a version for libraries?
44818 need_version=$need_version
44819
44820 # Library versioning type.
44821 version_type=$version_type
44822
44823 # Shared library runtime path variable.
44824 runpath_var=$runpath_var
44825
44826 # Shared library path variable.
44827 shlibpath_var=$shlibpath_var
44828
44829 # Is shlibpath searched before the hard-coded library search path?
44830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44831
44832 # Format of library name prefix.
44833 libname_spec=$lt_libname_spec
44834
44835 # List of archive names.  First name is the real one, the rest are links.
44836 # The last name is the one that the linker finds with -lNAME
44837 library_names_spec=$lt_library_names_spec
44838
44839 # The coded name of the library, if different from the real name.
44840 soname_spec=$lt_soname_spec
44841
44842 # Command to use after installation of a shared archive.
44843 postinstall_cmds=$lt_postinstall_cmds
44844
44845 # Command to use after uninstallation of a shared archive.
44846 postuninstall_cmds=$lt_postuninstall_cmds
44847
44848 # Commands used to finish a libtool library installation in a directory.
44849 finish_cmds=$lt_finish_cmds
44850
44851 # As "finish_cmds", except a single script fragment to be evaled but
44852 # not shown.
44853 finish_eval=$lt_finish_eval
44854
44855 # Whether we should hardcode library paths into libraries.
44856 hardcode_into_libs=$hardcode_into_libs
44857
44858 # Compile-time system search path for libraries.
44859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44860
44861 # Run-time system search path for libraries.
44862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44863
44864 # Whether dlopen is supported.
44865 dlopen_support=$enable_dlopen
44866
44867 # Whether dlopen of programs is supported.
44868 dlopen_self=$enable_dlopen_self
44869
44870 # Whether dlopen of statically linked programs is supported.
44871 dlopen_self_static=$enable_dlopen_self_static
44872
44873 # Commands to strip libraries.
44874 old_striplib=$lt_old_striplib
44875 striplib=$lt_striplib
44876
44877
44878 # The linker used to build libraries.
44879 LD=$lt_LD
44880
44881 # Commands used to build an old-style archive.
44882 old_archive_cmds=$lt_old_archive_cmds
44883
44884 # A language specific compiler.
44885 CC=$lt_compiler
44886
44887 # Is the compiler the GNU compiler?
44888 with_gcc=$GCC
44889
44890 # Compiler flag to turn off builtin functions.
44891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44892
44893 # How to pass a linker flag through the compiler.
44894 wl=$lt_lt_prog_compiler_wl
44895
44896 # Additional compiler flags for building library objects.
44897 pic_flag=$lt_lt_prog_compiler_pic
44898
44899 # Compiler flag to prevent dynamic linking.
44900 link_static_flag=$lt_lt_prog_compiler_static
44901
44902 # Does compiler simultaneously support -c and -o options?
44903 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44904
44905 # Whether or not to add -lc for building shared libraries.
44906 build_libtool_need_lc=$archive_cmds_need_lc
44907
44908 # Whether or not to disallow shared libs when runtime libs are static.
44909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44910
44911 # Compiler flag to allow reflexive dlopens.
44912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44913
44914 # Compiler flag to generate shared objects directly from archives.
44915 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44916
44917 # Whether the compiler copes with passing no objects directly.
44918 compiler_needs_object=$lt_compiler_needs_object
44919
44920 # Create an old-style archive from a shared archive.
44921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44922
44923 # Create a temporary old-style archive to link instead of a shared archive.
44924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44925
44926 # Commands used to build a shared archive.
44927 archive_cmds=$lt_archive_cmds
44928 archive_expsym_cmds=$lt_archive_expsym_cmds
44929
44930 # Commands used to build a loadable module if different from building
44931 # a shared archive.
44932 module_cmds=$lt_module_cmds
44933 module_expsym_cmds=$lt_module_expsym_cmds
44934
44935 # Whether we are building with GNU ld or not.
44936 with_gnu_ld=$lt_with_gnu_ld
44937
44938 # Flag that allows shared libraries with undefined symbols to be built.
44939 allow_undefined_flag=$lt_allow_undefined_flag
44940
44941 # Flag that enforces no undefined symbols.
44942 no_undefined_flag=$lt_no_undefined_flag
44943
44944 # Flag to hardcode \$libdir into a binary during linking.
44945 # This must work even if \$libdir does not exist
44946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44947
44948 # If ld is used when linking, flag to hardcode \$libdir into a binary
44949 # during linking.  This must work even if \$libdir does not exist.
44950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44951
44952 # Whether we need a single "-rpath" flag with a separated argument.
44953 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44954
44955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44956 # DIR into the resulting binary.
44957 hardcode_direct=$hardcode_direct
44958
44959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44960 # DIR into the resulting binary and the resulting library dependency is
44961 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44962 # library is relocated.
44963 hardcode_direct_absolute=$hardcode_direct_absolute
44964
44965 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44966 # into the resulting binary.
44967 hardcode_minus_L=$hardcode_minus_L
44968
44969 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44970 # into the resulting binary.
44971 hardcode_shlibpath_var=$hardcode_shlibpath_var
44972
44973 # Set to "yes" if building a shared library automatically hardcodes DIR
44974 # into the library and all subsequent libraries and executables linked
44975 # against it.
44976 hardcode_automatic=$hardcode_automatic
44977
44978 # Set to yes if linker adds runtime paths of dependent libraries
44979 # to runtime path list.
44980 inherit_rpath=$inherit_rpath
44981
44982 # Whether libtool must link a program against all its dependency libraries.
44983 link_all_deplibs=$link_all_deplibs
44984
44985 # Fix the shell variable \$srcfile for the compiler.
44986 fix_srcfile_path=$lt_fix_srcfile_path
44987
44988 # Set to "yes" if exported symbols are required.
44989 always_export_symbols=$always_export_symbols
44990
44991 # The commands to list exported symbols.
44992 export_symbols_cmds=$lt_export_symbols_cmds
44993
44994 # Symbols that should not be listed in the preloaded symbols.
44995 exclude_expsyms=$lt_exclude_expsyms
44996
44997 # Symbols that must always be exported.
44998 include_expsyms=$lt_include_expsyms
44999
45000 # Commands necessary for linking programs (against libraries) with templates.
45001 prelink_cmds=$lt_prelink_cmds
45002
45003 # Specify filename containing input files.
45004 file_list_spec=$lt_file_list_spec
45005
45006 # How to hardcode a shared library path into an executable.
45007 hardcode_action=$hardcode_action
45008
45009 # The directories searched by this compiler when creating a shared library.
45010 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45011
45012 # Dependencies to place before and after the objects being linked to
45013 # create a shared library.
45014 predep_objects=$lt_predep_objects
45015 postdep_objects=$lt_postdep_objects
45016 predeps=$lt_predeps
45017 postdeps=$lt_postdeps
45018
45019 # The library search path used internally by the compiler when linking
45020 # a shared library.
45021 compiler_lib_search_path=$lt_compiler_lib_search_path
45022
45023 # ### END LIBTOOL CONFIG
45024
45025 _LT_EOF
45026
45027   case $host_os in
45028   aix3*)
45029     cat <<\_LT_EOF >> "$cfgfile"
45030 # AIX sometimes has problems with the GCC collect2 program.  For some
45031 # reason, if we set the COLLECT_NAMES environment variable, the problems
45032 # vanish in a puff of smoke.
45033 if test "X${COLLECT_NAMES+set}" != Xset; then
45034   COLLECT_NAMES=
45035   export COLLECT_NAMES
45036 fi
45037 _LT_EOF
45038     ;;
45039   esac
45040
45041
45042 ltmain="$ac_aux_dir/ltmain.sh"
45043
45044
45045   # We use sed instead of cat because bash on DJGPP gets confused if
45046   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45047   # text mode, it properly converts lines to CR/LF.  This bash problem
45048   # is reportedly fixed, but why not run on old versions too?
45049   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45050     || (rm -f "$cfgfile"; exit 1)
45051
45052   case $xsi_shell in
45053   yes)
45054     cat << \_LT_EOF >> "$cfgfile"
45055
45056 # func_dirname file append nondir_replacement
45057 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45058 # otherwise set result to NONDIR_REPLACEMENT.
45059 func_dirname ()
45060 {
45061   case ${1} in
45062     */*) func_dirname_result="${1%/*}${2}" ;;
45063     *  ) func_dirname_result="${3}" ;;
45064   esac
45065 }
45066
45067 # func_basename file
45068 func_basename ()
45069 {
45070   func_basename_result="${1##*/}"
45071 }
45072
45073 # func_dirname_and_basename file append nondir_replacement
45074 # perform func_basename and func_dirname in a single function
45075 # call:
45076 #   dirname:  Compute the dirname of FILE.  If nonempty,
45077 #             add APPEND to the result, otherwise set result
45078 #             to NONDIR_REPLACEMENT.
45079 #             value returned in "$func_dirname_result"
45080 #   basename: Compute filename of FILE.
45081 #             value retuned in "$func_basename_result"
45082 # Implementation must be kept synchronized with func_dirname
45083 # and func_basename. For efficiency, we do not delegate to
45084 # those functions but instead duplicate the functionality here.
45085 func_dirname_and_basename ()
45086 {
45087   case ${1} in
45088     */*) func_dirname_result="${1%/*}${2}" ;;
45089     *  ) func_dirname_result="${3}" ;;
45090   esac
45091   func_basename_result="${1##*/}"
45092 }
45093
45094 # func_stripname prefix suffix name
45095 # strip PREFIX and SUFFIX off of NAME.
45096 # PREFIX and SUFFIX must not contain globbing or regex special
45097 # characters, hashes, percent signs, but SUFFIX may contain a leading
45098 # dot (in which case that matches only a dot).
45099 func_stripname ()
45100 {
45101   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45102   # positional parameters, so assign one to ordinary parameter first.
45103   func_stripname_result=${3}
45104   func_stripname_result=${func_stripname_result#"${1}"}
45105   func_stripname_result=${func_stripname_result%"${2}"}
45106 }
45107
45108 # func_opt_split
45109 func_opt_split ()
45110 {
45111   func_opt_split_opt=${1%%=*}
45112   func_opt_split_arg=${1#*=}
45113 }
45114
45115 # func_lo2o object
45116 func_lo2o ()
45117 {
45118   case ${1} in
45119     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45120     *)    func_lo2o_result=${1} ;;
45121   esac
45122 }
45123
45124 # func_xform libobj-or-source
45125 func_xform ()
45126 {
45127   func_xform_result=${1%.*}.lo
45128 }
45129
45130 # func_arith arithmetic-term...
45131 func_arith ()
45132 {
45133   func_arith_result=$(( $* ))
45134 }
45135
45136 # func_len string
45137 # STRING may not start with a hyphen.
45138 func_len ()
45139 {
45140   func_len_result=${#1}
45141 }
45142
45143 _LT_EOF
45144     ;;
45145   *) # Bourne compatible functions.
45146     cat << \_LT_EOF >> "$cfgfile"
45147
45148 # func_dirname file append nondir_replacement
45149 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45150 # otherwise set result to NONDIR_REPLACEMENT.
45151 func_dirname ()
45152 {
45153   # Extract subdirectory from the argument.
45154   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45155   if test "X$func_dirname_result" = "X${1}"; then
45156     func_dirname_result="${3}"
45157   else
45158     func_dirname_result="$func_dirname_result${2}"
45159   fi
45160 }
45161
45162 # func_basename file
45163 func_basename ()
45164 {
45165   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45166 }
45167
45168
45169 # func_stripname prefix suffix name
45170 # strip PREFIX and SUFFIX off of NAME.
45171 # PREFIX and SUFFIX must not contain globbing or regex special
45172 # characters, hashes, percent signs, but SUFFIX may contain a leading
45173 # dot (in which case that matches only a dot).
45174 # func_strip_suffix prefix name
45175 func_stripname ()
45176 {
45177   case ${2} in
45178     .*) func_stripname_result=`$ECHO "X${3}" \
45179            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45180     *)  func_stripname_result=`$ECHO "X${3}" \
45181            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45182   esac
45183 }
45184
45185 # sed scripts:
45186 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45187 my_sed_long_arg='1s/^-[^=]*=//'
45188
45189 # func_opt_split
45190 func_opt_split ()
45191 {
45192   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45193   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45194 }
45195
45196 # func_lo2o object
45197 func_lo2o ()
45198 {
45199   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45200 }
45201
45202 # func_xform libobj-or-source
45203 func_xform ()
45204 {
45205   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45206 }
45207
45208 # func_arith arithmetic-term...
45209 func_arith ()
45210 {
45211   func_arith_result=`expr "$@"`
45212 }
45213
45214 # func_len string
45215 # STRING may not start with a hyphen.
45216 func_len ()
45217 {
45218   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45219 }
45220
45221 _LT_EOF
45222 esac
45223
45224 case $lt_shell_append in
45225   yes)
45226     cat << \_LT_EOF >> "$cfgfile"
45227
45228 # func_append var value
45229 # Append VALUE to the end of shell variable VAR.
45230 func_append ()
45231 {
45232   eval "$1+=\$2"
45233 }
45234 _LT_EOF
45235     ;;
45236   *)
45237     cat << \_LT_EOF >> "$cfgfile"
45238
45239 # func_append var value
45240 # Append VALUE to the end of shell variable VAR.
45241 func_append ()
45242 {
45243   eval "$1=\$$1\$2"
45244 }
45245
45246 _LT_EOF
45247     ;;
45248   esac
45249
45250
45251   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45252     || (rm -f "$cfgfile"; exit 1)
45253
45254   mv -f "$cfgfile" "$ofile" ||
45255     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45256   chmod +x "$ofile"
45257
45258
45259     cat <<_LT_EOF >> "$ofile"
45260
45261 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45262
45263 # The linker used to build libraries.
45264 LD=$lt_LD_CXX
45265
45266 # Commands used to build an old-style archive.
45267 old_archive_cmds=$lt_old_archive_cmds_CXX
45268
45269 # A language specific compiler.
45270 CC=$lt_compiler_CXX
45271
45272 # Is the compiler the GNU compiler?
45273 with_gcc=$GCC_CXX
45274
45275 # Compiler flag to turn off builtin functions.
45276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45277
45278 # How to pass a linker flag through the compiler.
45279 wl=$lt_lt_prog_compiler_wl_CXX
45280
45281 # Additional compiler flags for building library objects.
45282 pic_flag=$lt_lt_prog_compiler_pic_CXX
45283
45284 # Compiler flag to prevent dynamic linking.
45285 link_static_flag=$lt_lt_prog_compiler_static_CXX
45286
45287 # Does compiler simultaneously support -c and -o options?
45288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45289
45290 # Whether or not to add -lc for building shared libraries.
45291 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45292
45293 # Whether or not to disallow shared libs when runtime libs are static.
45294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45295
45296 # Compiler flag to allow reflexive dlopens.
45297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45298
45299 # Compiler flag to generate shared objects directly from archives.
45300 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45301
45302 # Whether the compiler copes with passing no objects directly.
45303 compiler_needs_object=$lt_compiler_needs_object_CXX
45304
45305 # Create an old-style archive from a shared archive.
45306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45307
45308 # Create a temporary old-style archive to link instead of a shared archive.
45309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45310
45311 # Commands used to build a shared archive.
45312 archive_cmds=$lt_archive_cmds_CXX
45313 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45314
45315 # Commands used to build a loadable module if different from building
45316 # a shared archive.
45317 module_cmds=$lt_module_cmds_CXX
45318 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45319
45320 # Whether we are building with GNU ld or not.
45321 with_gnu_ld=$lt_with_gnu_ld_CXX
45322
45323 # Flag that allows shared libraries with undefined symbols to be built.
45324 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45325
45326 # Flag that enforces no undefined symbols.
45327 no_undefined_flag=$lt_no_undefined_flag_CXX
45328
45329 # Flag to hardcode \$libdir into a binary during linking.
45330 # This must work even if \$libdir does not exist
45331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45332
45333 # If ld is used when linking, flag to hardcode \$libdir into a binary
45334 # during linking.  This must work even if \$libdir does not exist.
45335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45336
45337 # Whether we need a single "-rpath" flag with a separated argument.
45338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45339
45340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45341 # DIR into the resulting binary.
45342 hardcode_direct=$hardcode_direct_CXX
45343
45344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45345 # DIR into the resulting binary and the resulting library dependency is
45346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45347 # library is relocated.
45348 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45349
45350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45351 # into the resulting binary.
45352 hardcode_minus_L=$hardcode_minus_L_CXX
45353
45354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45355 # into the resulting binary.
45356 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45357
45358 # Set to "yes" if building a shared library automatically hardcodes DIR
45359 # into the library and all subsequent libraries and executables linked
45360 # against it.
45361 hardcode_automatic=$hardcode_automatic_CXX
45362
45363 # Set to yes if linker adds runtime paths of dependent libraries
45364 # to runtime path list.
45365 inherit_rpath=$inherit_rpath_CXX
45366
45367 # Whether libtool must link a program against all its dependency libraries.
45368 link_all_deplibs=$link_all_deplibs_CXX
45369
45370 # Fix the shell variable \$srcfile for the compiler.
45371 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45372
45373 # Set to "yes" if exported symbols are required.
45374 always_export_symbols=$always_export_symbols_CXX
45375
45376 # The commands to list exported symbols.
45377 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45378
45379 # Symbols that should not be listed in the preloaded symbols.
45380 exclude_expsyms=$lt_exclude_expsyms_CXX
45381
45382 # Symbols that must always be exported.
45383 include_expsyms=$lt_include_expsyms_CXX
45384
45385 # Commands necessary for linking programs (against libraries) with templates.
45386 prelink_cmds=$lt_prelink_cmds_CXX
45387
45388 # Specify filename containing input files.
45389 file_list_spec=$lt_file_list_spec_CXX
45390
45391 # How to hardcode a shared library path into an executable.
45392 hardcode_action=$hardcode_action_CXX
45393
45394 # The directories searched by this compiler when creating a shared library.
45395 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45396
45397 # Dependencies to place before and after the objects being linked to
45398 # create a shared library.
45399 predep_objects=$lt_predep_objects_CXX
45400 postdep_objects=$lt_postdep_objects_CXX
45401 predeps=$lt_predeps_CXX
45402 postdeps=$lt_postdeps_CXX
45403
45404 # The library search path used internally by the compiler when linking
45405 # a shared library.
45406 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45407
45408 # ### END LIBTOOL TAG CONFIG: CXX
45409 _LT_EOF
45410
45411  ;;
45412     "default-1":C)
45413     for ac_file in $CONFIG_FILES; do
45414       # Support "outfile[:infile[:infile...]]"
45415       case "$ac_file" in
45416         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45417       esac
45418       # PO directories have a Makefile.in generated from Makefile.in.in.
45419       case "$ac_file" in */Makefile.in)
45420         # Adjust a relative srcdir.
45421         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45422         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45423         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45424         # In autoconf-2.13 it is called $ac_given_srcdir.
45425         # In autoconf-2.50 it is called $srcdir.
45426         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45427         case "$ac_given_srcdir" in
45428           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45429           /*) top_srcdir="$ac_given_srcdir" ;;
45430           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45431         esac
45432         # Treat a directory as a PO directory if and only if it has a
45433         # POTFILES.in file. This allows packages to have multiple PO
45434         # directories under different names or in different locations.
45435         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45436           rm -f "$ac_dir/POTFILES"
45437           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45438           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45439           POMAKEFILEDEPS="POTFILES.in"
45440           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45441           # on $ac_dir but don't depend on user-specified configuration
45442           # parameters.
45443           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45444             # The LINGUAS file contains the set of available languages.
45445             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45446               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45447             fi
45448             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45449             # Hide the ALL_LINGUAS assigment from automake.
45450             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45451             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45452           else
45453             # The set of available languages was given in configure.in.
45454             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45455           fi
45456           # Compute POFILES
45457           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45458           # Compute UPDATEPOFILES
45459           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45460           # Compute DUMMYPOFILES
45461           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45462           # Compute GMOFILES
45463           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45464           case "$ac_given_srcdir" in
45465             .) srcdirpre= ;;
45466             *) srcdirpre='$(srcdir)/' ;;
45467           esac
45468           POFILES=
45469           UPDATEPOFILES=
45470           DUMMYPOFILES=
45471           GMOFILES=
45472           for lang in $ALL_LINGUAS; do
45473             POFILES="$POFILES $srcdirpre$lang.po"
45474             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45475             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45476             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45477           done
45478           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45479           # environment variable.
45480           INST_LINGUAS=
45481           if test -n "$ALL_LINGUAS"; then
45482             for presentlang in $ALL_LINGUAS; do
45483               useit=no
45484               if test "%UNSET%" != "$LINGUAS"; then
45485                 desiredlanguages="$LINGUAS"
45486               else
45487                 desiredlanguages="$ALL_LINGUAS"
45488               fi
45489               for desiredlang in $desiredlanguages; do
45490                 # Use the presentlang catalog if desiredlang is
45491                 #   a. equal to presentlang, or
45492                 #   b. a variant of presentlang (because in this case,
45493                 #      presentlang can be used as a fallback for messages
45494                 #      which are not translated in the desiredlang catalog).
45495                 case "$desiredlang" in
45496                   "$presentlang"*) useit=yes;;
45497                 esac
45498               done
45499               if test $useit = yes; then
45500                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45501               fi
45502             done
45503           fi
45504           CATALOGS=
45505           if test -n "$INST_LINGUAS"; then
45506             for lang in $INST_LINGUAS; do
45507               CATALOGS="$CATALOGS $lang.gmo"
45508             done
45509           fi
45510           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45511           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"
45512           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45513             if test -f "$f"; then
45514               case "$f" in
45515                 *.orig | *.bak | *~) ;;
45516                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45517               esac
45518             fi
45519           done
45520         fi
45521         ;;
45522       esac
45523     done ;;
45524     "default":C)
45525  ;;
45526
45527   esac
45528 done # for ac_tag
45529
45530
45531 { (exit 0); exit 0; }
45532 _ACEOF
45533 chmod +x $CONFIG_STATUS
45534 ac_clean_files=$ac_clean_files_save
45535
45536
45537 # configure is writing to config.log, and then calls config.status.
45538 # config.status does its own redirection, appending to config.log.
45539 # Unfortunately, on DOS this fails, as config.log is still kept open
45540 # by configure, so config.status won't be able to write to it; its
45541 # output is simply discarded.  So we exec the FD to /dev/null,
45542 # effectively closing config.log, so it can be properly (re)opened and
45543 # appended to by config.status.  When coming back to configure, we
45544 # need to make the FD available again.
45545 if test "$no_create" != yes; then
45546   ac_cs_success=:
45547   ac_config_status_args=
45548   test "$silent" = yes &&
45549     ac_config_status_args="$ac_config_status_args --quiet"
45550   exec 5>/dev/null
45551   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45552   exec 5>>config.log
45553   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45554   # would make configure fail if this is the last instruction.
45555   $ac_cs_success || { (exit 1); exit 1; }
45556 fi
45557
45558
45559 if test "${support_bat}" = "yes" ; then
45560    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45561       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45562       exit 1
45563    fi
45564
45565    QMAKEBIN="qmake"
45566
45567    if test "x$QMAKEQT4" != "xnone"; then
45568        QMAKEBIN=qmake-qt4
45569    fi
45570
45571    cd src/qt-console
45572    chmod 755 install_conf_file build-depkgs-qt-console
45573    echo "Creating bat Makefile"
45574    $QMAKEBIN
45575    make clean
45576    cd ${BUILD_DIR}
45577 fi
45578
45579 if test X"$GCC" = "Xyes" ; then
45580   echo "Doing make of dependencies"
45581   ${MAKE:-make} depend
45582 fi
45583
45584 cd scripts
45585 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45586 chmod 755 dvd-handler dvd-simulator
45587 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45588 cd ..
45589
45590 c=updatedb
45591 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45592 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45593
45594 c=src/cats
45595
45596 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45597 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45598
45599 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45600 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45601
45602 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45603 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45604
45605 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45606 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45607
45608 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45609 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45610
45611 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45612 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45613
45614 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45615 chmod 755 $c/sqlite
45616 chmod 755 $c/mysql
45617
45618 chmod 755 src/win32/build-depkgs-mingw32
45619
45620 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45621    largefile_support="yes"
45622 fi
45623
45624 if test X"$GCC" = "Xyes" ; then
45625                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45626    if test "x${CCVERSION}" = "x" ; then
45627       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45628    fi
45629    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45630    if test x"${CXXVERSION}" = x ; then
45631       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45632    fi
45633 fi
45634
45635 # clean up any old junk
45636 echo " "
45637 echo "Cleaning up"
45638 echo " "
45639 make clean
45640
45641 if test "x${db_type}" = "xInternal" ; then
45642    echo " "
45643    echo " "
45644    echo "You have not specified either --enable-client-only or one of the"
45645    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45646    echo "  This is not permitted. Please reconfigure."
45647    echo " "
45648    echo "Aborting the configuration ..."
45649    echo " "
45650    echo " "
45651    exit 1
45652 fi
45653
45654 echo "
45655 Configuration on `date`:
45656
45657    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45658    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45659    Source code location:    ${srcdir}
45660    Install binaries:        ${sbindir}
45661    Install libraries:       ${libdir}
45662    Install config files:    ${sysconfdir}
45663    Scripts directory:       ${scriptdir}
45664    Archive directory:       ${archivedir}
45665    Working directory:       ${working_dir}
45666    PID directory:           ${piddir}
45667    Subsys directory:        ${subsysdir}
45668    Man directory:           ${mandir}
45669    Data directory:          ${datarootdir}
45670    Plugin directory:        ${plugindir}
45671    C Compiler:              ${CC} ${CCVERSION}
45672    C++ Compiler:            ${CXX} ${CXXVERSION}
45673    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45674    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45675    Libraries:               ${LIBS}
45676    Statically Linked Tools: ${support_static_tools}
45677    Statically Linked FD:    ${support_static_fd}
45678    Statically Linked SD:    ${support_static_sd}
45679    Statically Linked DIR:   ${support_static_dir}
45680    Statically Linked CONS:  ${support_static_cons}
45681    Database type:           ${db_type}
45682    Database port:           ${db_port}
45683    Database lib:            ${DB_LIBS}
45684    Database name:           ${db_name}
45685    Database user:           ${db_user}
45686
45687    Job Output Email:        ${job_email}
45688    Traceback Email:         ${dump_email}
45689    SMTP Host Address:       ${smtp_host}
45690
45691    Director Port:           ${dir_port}
45692    File daemon Port:        ${fd_port}
45693    Storage daemon Port:     ${sd_port}
45694
45695    Director User:           ${dir_user}
45696    Director Group:          ${dir_group}
45697    Storage Daemon User:     ${sd_user}
45698    Storage DaemonGroup:     ${sd_group}
45699    File Daemon User:        ${fd_user}
45700    File Daemon Group:       ${fd_group}
45701
45702    SQL binaries Directory   ${SQL_BINDIR}
45703
45704    Large file support:      $largefile_support
45705    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45706    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45707    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45708    TLS support:             ${support_tls}
45709    Encryption support:      ${support_crypto}
45710    ZLIB support:            ${have_zlib}
45711    enable-smartalloc:       ${support_smartalloc}
45712    enable-lockmgr:          ${support_lockmgr}
45713    bat support:             ${support_bat} ${QWT_LDFLAGS}
45714    enable-gnome:            ${support_gnome} ${gnome_version}
45715    enable-bwx-console:      ${support_wx_console} ${wx_version}
45716    enable-tray-monitor:     ${support_tray_monitor}
45717    client-only:             ${build_client_only}
45718    build-dird:              ${build_dird}
45719    build-stored:            ${build_stored}
45720    ACL support:             ${have_acl}
45721    XATTR support:           ${have_xattr}
45722    Python support:          ${support_python} ${PYTHON_LIBS}
45723    Batch insert enabled:    ${support_batch_insert}
45724
45725   " > config.out
45726
45727 cat config.out